Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.gkehub/v1beta.getNamespace
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Returns the details of a fleet namespace.
Using getNamespace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>
def get_namespace(location: Optional[str] = None,
namespace_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(location: Optional[pulumi.Input[str]] = None,
namespace_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]
func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput
> Note: This function is named LookupNamespace
in the Go SDK.
public static class GetNamespace
{
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:gkehub/v1beta:getNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Namespace
Id string - Project string
- Location string
- Namespace
Id string - Project string
- location String
- namespace
Id String - project String
- location string
- namespace
Id string - project string
- location str
- namespace_
id str - project str
- location String
- namespace
Id String - project String
getNamespace Result
The following output properties are available:
- Create
Time string When the namespace was created.
- Delete
Time string When the namespace was deleted.
- Name string
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- Scope string
Scope associated with the namespace
- State
Pulumi.
Google Native. GKEHub. V1Beta. Outputs. Namespace Lifecycle State Response State of the namespace resource.
- Uid string
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.
- Update
Time string When the namespace was last updated.
- Create
Time string When the namespace was created.
- Delete
Time string When the namespace was deleted.
- Name string
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- Scope string
Scope associated with the namespace
- State
Namespace
Lifecycle State Response State of the namespace resource.
- Uid string
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.
- Update
Time string When the namespace was last updated.
- create
Time String When the namespace was created.
- delete
Time String When the namespace was deleted.
- name String
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- scope String
Scope associated with the namespace
- state
Namespace
Lifecycle State Response State of the namespace resource.
- uid String
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.
- update
Time String When the namespace was last updated.
- create
Time string When the namespace was created.
- delete
Time string When the namespace was deleted.
- name string
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- scope string
Scope associated with the namespace
- state
Namespace
Lifecycle State Response State of the namespace resource.
- uid string
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.
- update
Time string When the namespace was last updated.
- create_
time str When the namespace was created.
- delete_
time str When the namespace was deleted.
- name str
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- scope str
Scope associated with the namespace
- state
Namespace
Lifecycle State Response State of the namespace resource.
- uid str
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.
- update_
time str When the namespace was last updated.
- create
Time String When the namespace was created.
- delete
Time String When the namespace was deleted.
- name String
The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- scope String
Scope associated with the namespace
- state Property Map
State of the namespace resource.
- uid String
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.
- update
Time String When the namespace was last updated.
Supporting Types
NamespaceLifecycleStateResponse
- Code string
The current state of the Namespace resource.
- Code string
The current state of the Namespace resource.
- code String
The current state of the Namespace resource.
- code string
The current state of the Namespace resource.
- code str
The current state of the Namespace resource.
- code String
The current state of the Namespace resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.