Identity and Access Management API, REST: ServiceControl.Get
Returns the Service information in the specified resource container.
To get the list of available Services, make a List request.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/v1/services/{serviceId}
Path parameters
Field |
Description |
serviceId |
string Required field. ID of the Service. |
Query parameters
Field |
Description |
resource |
Required field. Resource container to get a service information in. It is supported only resource-manager.cloud resource container now. |
Resource
A Resource. For more information, see Resource.
Field |
Description |
id |
string Required field. ID of the resource. |
type |
string Required field. The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc. |
Response
HTTP Code: 200 - OK
{
"serviceId": "string",
"resource": {
"id": "string",
"type": "string"
},
"updatedAt": "string",
"status": "string"
}
A Service.
Field |
Description |
serviceId |
string ID of the service. |
resource |
Resource that the service belongs to. |
updatedAt |
string (date-time) Time of the last status update of the service. String in RFC3339 To work with values in this field, use the APIs described in the |
status |
enum (Status) Current status of the service.
|
Resource
A Resource. For more information, see Resource.
Field |
Description |
id |
string Required field. ID of the resource. |
type |
string Required field. The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc. |