获取服务详情
获取服务详情
Path Parameters
service string required
The service id.
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
name string
名称
spec object required
status object
{
"name": "string",
"spec": {
"resource_id": "string",
"subscription": "string",
"resource_group": "string",
"zone": "string"
},
"status": {
"uri": "string",
"health": {
"message": "string",
"status": "HEALTH_STATE_CODE_UNKNOWN_UNSPECIFIED"
},
"instances": [
{
"name": "string",
"health": {
"message": "string",
"status": "HEALTH_STATE_CODE_UNKNOWN_UNSPECIFIED"
},
"running_replicas": 0,
"current_replicas": 0
}
],
"creator_name": "string"
},
"create_time": "2025-04-23T03:43:48.504Z"
}
Default error response
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
GET /v2/services/:service
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
python / requests
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
go / native
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
nodejs / axios
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ruby / Net::HTTP
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
csharp / RestSharp
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
php / cURL
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
java / OkHttp
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
powershell / RestMethod
curl -L -X GET 'https://ams.sensecoreapi.cn/studio/ams/data/rp/v2/services/:service' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'