Identity and Access Management API, REST: ServiceControl.List
Retrieves the list of Service in the specified resource container.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/v1/services
Query parameters
Field |
Description |
resource |
Required field. Resource container to list a services. It is supported only resource-manager.cloud resource container now. |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
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
{
"services": [
{
"serviceId": "string",
"resource": {
"id": "string",
"type": "string"
},
"updatedAt": "string",
"status": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
services[] |
List of Services. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
Service
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. |