You can call this operation to view information about a service.

Request headers

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

Request syntax

GET /services/{serviceName[.qualifier]} 

Request parameters

Parameter Type Position Required Example Description
serviceName String Path Yes service_name

The name of the service.

qualifier String Path No test

The version or the alias of the service.

Response parameters

Parameter Type Example Description
ETag String e19d5cd5af0378da05f63f891c7467af

The ETag value of the service name. This value is used to ensure that the modified service is consistent with the service to be modified.

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

Specifies whether to allow functions 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-f6fa-44e6-b659-568fb***

The ID generated by the system for the service, which is unique in Function Compute.

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.

tracingConfig TracingConfig

The Tracing Analysis configuration. After Function Compute integrates with Tracing Analysis, you can record the stay time of a request in Function Compute, view the cold start time for a function, and record the execution time of a function. For more information, see Tracing analysis.

Examples

Sample requests

GET /2016-08-15/services/service_name[.test] HTTP/1.1 
Common request headers

Sample success responses

JSON format

HTTP/1.1 200 OK
Common response headers
{
  "description": "test_description",
  "etag": "e19d5cd5af0378da05f63f891c7467af",
  "internetAccess": true,
  "createdTime": "2020-04-03T05:57:28Z",
  "lastModifiedTime": "2020-04-03T05:57:28Z",
  "logConfig": {
    "project": "test_project",
    "logstore": "test_logstore"
  },
  "nasConfig": {
    "groupId": 100,
    "mountPoints": [
      {
        "serverAddr": "***-uni85.cn-hangzhou.nas.aliyuncs.com:/",
        "mountDir": "/home/test"
      }
    ],
    "userId": 100
  },
  "role": "acs:ram::19861****3743:role/fc-public-test",
  "serviceId": "c910061f-f6fa-44e6-b659-568fb***",
  "serviceName": "service_name",
  "tracingConfig": {
    "params": {
      "endpoint": "http://tracing-*********-dc-sh-internal.aliyuncs.com/*****_iioe7jcnuk@***************_iioe7*****@******d2afe****/api/traces"
    },
    "type": "Jaeger"
  },
 "vpcConfig": {
    "securityGroupId": "sg_bp18hj1wtxgy3***",
    "vSwitchIds": [
      "vsw_***"
    ],
    "vpcId": "vpc_***"
  },
  "success": true
}