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
Parameter | Description |
---|---|
resource.id | Required. ID of the resource. The maximum string length in characters is 50. |
resource.type | Required. The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc. The maximum string length in characters is 64. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Default value: 100 Acceptable values are 0 to 1000, inclusive. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 2000. |
Response
HTTP Code: 200 - OK
{
"services": [
{
"serviceId": "string",
"resource": {
"id": "string",
"type": "string"
},
"updatedAt": "string",
"status": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
services[] | object List of Services. |
services[]. serviceId |
string ID of the service. |
services[]. resource |
object Resource that the service belongs to. A Resource. For more information, see Resource. |
services[]. resource. id |
string Required. ID of the resource. The maximum string length in characters is 50. |
services[]. resource. type |
string Required. The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc. The maximum string length in characters is 64. |
services[]. updatedAt |
string (date-time) Time of the last status update of the service. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
services[]. status |
string Current status of the service.
|
nextPageToken | string This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use the nextPageToken as the value for the pageToken query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results. |