You can call this operation to view the list of services.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

GET /services HTTP|HTTPS

Request parameters

Parameter Type Position Required Example Description
limit Integer Query No 20

The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is smaller than or equal to the specified number.

nextToken String Query No nextService

The token used to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. Include this parameter in subsequent invocations to obtain more results. You do not need to provide this parameter in the first invocation.

prefix String Query No prefix_text

The prefix that the names of returned resources must contain. For example, if Prefix is a, all returned resource names start with a.

startKey String Query No nextService

The starting position of the result list. Results are sorted in the alphabetical order and those results following startKey (inclusive) are listed.

Response parameters

Parameter Type Example Description
nextToken String _FUN_NAS-classify

The token used to obtain more results.

Note If this value is not returned, all results are returned.
services Array

The list of services.

createdTime String 2020-04-03T05:57:28Z

The time when the service was created.

description String test_description

The description of the service.

internetAccess Boolean true

Indicates whether functions were allowed to access the Internet. Valid values:

  • true
  • false
lastModifiedTime String 2020-04-03T05:57:28Z

The last time when the service was updated.

logConfig LogConfig

The configurations of logs. Function Compute writes function execution logs to the configured Logstore.

nasConfig NASConfig

The configurations of Apsara File Storage NAS (NAS) file system, which enable a function to access the specified NAS file system.

role String acs:ram::19861****3743:role/fc-public-test

The RAM role that is used to grant required permissions to Function Compute. The role is used in the following scenarios:

  • Sends logs generated by a function to your Logstore.
  • Generates a token for a function to access other cloud resources during function execution.
serviceId String c910061f-****-44e6-b659-***c

The unique ID generated by the system for the service.

serviceName String service_name

The name of the service.

vpcConfig VPCConfig

The configurations of the VPC, which enable a function to access the specified VPC.


Sample requests

GET /2016-08-15/services HTTP/1.1 
Common request headers

Sample success responses

JSON format

HTTP/1.1 200 OK
Common response headers