Method: projects.locations.workloadIdentityPools.namespaces.list

Lists all non-deleted WorkloadIdentityPoolNamespaces in a workload identity pool. If showDeleted is set to true, then deleted namespaces are also listed.

HTTP request

GET https://iam.googleapis.com/v1/{parent=projects/*/locations/*/workloadIdentityPools/*}/namespaces

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource to list namespaces for.

Query parameters

Parameters
pageSize

integer

The maximum number of namespaces to return. If unspecified, at most 50 namespaces are returned. The maximum value is 1000; values above are 1000 truncated to 1000.

pageToken

string

A page token, received from a previous namespaces.list call. Provide this to retrieve the subsequent page.

showDeleted

boolean

Whether to return soft-deleted namespaces.

Request body

The request body must be empty.

Response body

Response message for namespaces.list.

If successful, the response body contains data with the following structure:

JSON representation
{
  "workloadIdentityPoolNamespaces": [
    {
      object (WorkloadIdentityPoolNamespace)
    }
  ],
  "nextPageToken": string
}
Fields
workloadIdentityPoolNamespaces[]

object (WorkloadIdentityPoolNamespace)

A list of namespaces.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/iam

For more information, see the Authentication Overview.