Namespace

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

To get more information about Namespace, see:

Create a Namespace Resource

def Namespace(resource_name, opts=None, labels=None, location=None, namespace_id=None, project=None, __props__=None);
func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Namespace Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Namespace resource accepts the following input properties:

Location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

NamespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

Labels Dictionary<string, string>

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

NamespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

Labels map[string]string

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

namespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

labels {[key: string]: string}

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.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location str

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

namespace_id str

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

labels Dict[str, str]

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.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string

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

Id string
The provider-assigned unique ID for this managed resource.
Name string

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

id string
The provider-assigned unique ID for this managed resource.
name string

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

id str
The provider-assigned unique ID for this managed resource.
name str

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

Look up an Existing Namespace Resource

Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespace
static get(resource_name, id, opts=None, labels=None, location=None, name=None, namespace_id=None, project=None, __props__=None);
func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)
public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Labels Dictionary<string, string>

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.

Location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

Name string

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

NamespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Labels map[string]string

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.

Location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

Name string

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

NamespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

labels {[key: string]: string}

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.

location string

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

name string

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

namespaceId string

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

labels Dict[str, str]

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.

location str

The location for the Namespace. A full list of valid locations can be found by running gcloud beta service-directory locations list.

name str

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

namespace_id str

The Resource ID must be 1-63 characters long, including digits, lowercase letters or the hyphen character.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.