Method: projects.locations.instances.namespaces.list

List namespaces in a given instance

HTTP request

GET https://datafusion.googleapis.com/v1beta1/{parent=projects/*/locations/*/instances/*}/namespaces

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The instance to list its namespaces.

Query parameters

Parameters
pageSize

integer

The maximum number of items to return.

pageToken

string

The nextPageToken value to use if there are additional results to retrieve for this list request.

view

enum (NamespaceView)

By default, only basic information about a namespace is returned (e.g. name). When NAMESPACE_VIEW_FULL is specified, additional information associated with a namespace gets returned (e.g. IAM policy set on the namespace)

Request body

The request body must be empty.

Response body

List namespaces response.

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

JSON representation
{
  "namespaces": [
    {
      object (Namespace)
    }
  ],
  "nextPageToken": string
}
Fields
namespaces[]

object (Namespace)

List of namespaces

nextPageToken

string

Token to retrieve the next page of results or empty if there are no more results in the list.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

NamespaceView

A view for Namespace

Enums
NAMESPACE_VIEW_UNSPECIFIED Default/unset value, which will use BASIC view.
NAMESPACE_VIEW_BASIC Show the most basic metadata of a namespace
NAMESPACE_VIEW_FULL Returns all metadata of a namespace

Namespace

Represents the information of a namespace

JSON representation
{
  "name": string,
  "iamPolicy": {
    object (IAMPolicy)
  }
}
Fields
name

string

Name of the given namespace.

iamPolicy

object (IAMPolicy)

IAM policy associated with this namespace.

IAMPolicy

IAMPolicy encapsulates the IAM policy name, definition and status of policy fetching.

JSON representation
{
  "policy": {
    object (Policy)
  },
  "status": {
    object (Status)
  }
}
Fields
policy

object (Policy)

Policy definition if IAM policy fetching is successful, otherwise empty.

status

object (Status)

Status of iam policy fetching.