REST Resource: projects.locations.namespaces

Resource: Namespace

A container for services. Namespaces allow administrators to group services together and define permissions for a collection of services.

JSON representation
{
  "name": string,
  "labels": {
    string: string,
    ...
  },
  "uid": string
}
Fields
name

string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

labels

map (key: string, value: string)

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

uid

string

Output only. The globally unique identifier of the namespace in the UUID4 format.

Methods

create

Creates a namespace, and returns the new namespace.

delete

Deletes a namespace.

get

Gets a namespace.

getIamPolicy

Gets the IAM Policy for a resource (namespace or service only).

list

Lists all namespaces.

patch

Updates a namespace.

setIamPolicy

Sets the IAM Policy for a resource (namespace or service only).

testIamPermissions

Tests IAM permissions for a resource (namespace or service only).