Workload Identity, gRPC: FederatedCredentialService.List
Retrieves the list of federated credentials for the specified service account.
gRPC request
rpc List (ListFederatedCredentialsRequest) returns (ListFederatedCredentialsResponse)
ListFederatedCredentialsRequest
{
"serviceAccountId": "string",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
serviceAccountId |
string Required field. ID of the service account to list federated credentials for. |
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 |
ListFederatedCredentialsResponse
{
"federatedCredentials": [
{
"id": "string",
"serviceAccountId": "string",
"federationId": "string",
"externalSubjectId": "string",
"createdAt": "google.protobuf.Timestamp"
}
],
"nextPageToken": "string"
}
Field |
Description |
federatedCredentials[] |
List of federated credentials. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
FederatedCredential
A federated credential.
Field |
Description |
id |
string Id of the federated credential. |
serviceAccountId |
string Id of the service account that the federated credential belongs to. |
federationId |
string ID of the workload identity federation which is used for authentication. |
externalSubjectId |
string Id of the external subject. |
createdAt |
Creation timestamp. |