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"
},
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
resource |
Required field. Resource container to list a services. It is supported only resource-manager.cloud resource container now. |
pageSize |
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. |
ListServicesResponse
{
"services": [
{
"serviceId": "string",
"resource": {
"id": "string",
"type": "string"
},
"updatedAt": "google.protobuf.Timestamp",
"status": "Status"
}
],
"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 |
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. |