REST Resource: projects.locations.scopes.namespaces

Resource: Namespace

Namespace represents a namespace across the Fleet

JSON representation
{
  "name": string,
  "uid": string,
  "createTime": string,
  "updateTime": string,
  "deleteTime": string,
  "state": {
    object (NamespaceLifecycleState)
  },
  "scope": string,
  "namespaceLabels": {
    string: string,
    ...
  },
  "labels": {
    string: string,
    ...
  }
}
Fields
name

string

The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}

uid

string

Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.

createTime

string (Timestamp format)

Output only. When the namespace was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. When the namespace was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

deleteTime

string (Timestamp format)

Output only. When the namespace was deleted.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

state

object (NamespaceLifecycleState)

Output only. State of the namespace resource.

scope

string

Required. Scope associated with the namespace

namespaceLabels

map (key: string, value: string)

Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespaceLabels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.

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

labels

map (key: string, value: string)

Optional. Labels for this Namespace.

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

NamespaceLifecycleState

NamespaceLifecycleState describes the state of a Namespace resource.

JSON representation
{
  "code": enum (NamespaceLifecycleState.Code)
}
Fields
code

enum (NamespaceLifecycleState.Code)

Output only. The current state of the Namespace resource.

NamespaceLifecycleState.Code

Code describes the state of a Namespace resource.

Enums
CODE_UNSPECIFIED The code is not set.
CREATING The namespace is being created.
READY The namespace active.
DELETING The namespace is being deleted.
UPDATING The namespace is being updated.

Methods

create

Creates a fleet namespace.

delete

Deletes a fleet namespace.

get

Returns the details of a fleet namespace.

list

Lists fleet namespaces.

patch

Updates a fleet namespace.