Identity and Access Management API, gRPC: ServiceControlService.List
Retrieves the list of Service in the specified resource container.
gRPC request
rpc List (ListServicesRequest) returns (ListServicesResponse)
ListServicesRequest
{
"resource": {
"id": "string",
"type": "string"
},
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
resource |
Required field. Resource container to list a services. It is supported only resource-manager.cloud resource container now. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
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. |
ListServicesResponse
{
"services": [
{
"service_id": "string",
"resource": {
"id": "string",
"type": "string"
},
"updated_at": "google.protobuf.Timestamp",
"status": "Status"
}
],
"next_page_token": "string"
}
Field |
Description |
services[] |
List of Services. |
next_page_token |
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 |
service_id |
string ID of the service. |
resource |
Resource that the service belongs to. |
updated_at |
Time of the last status update of the service. |
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. |