1. Packages
  2. Google Cloud Native
  3. API Docs
  4. gkehub
  5. gkehub/v1alpha
  6. getScope

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.gkehub/v1alpha.getScope

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Returns the details of a Scope.

    Using getScope

    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 getScope(args: GetScopeArgs, opts?: InvokeOptions): Promise<GetScopeResult>
    function getScopeOutput(args: GetScopeOutputArgs, opts?: InvokeOptions): Output<GetScopeResult>
    def get_scope(location: Optional[str] = None,
                  project: Optional[str] = None,
                  scope_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetScopeResult
    def get_scope_output(location: Optional[pulumi.Input[str]] = None,
                  project: Optional[pulumi.Input[str]] = None,
                  scope_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetScopeResult]
    func LookupScope(ctx *Context, args *LookupScopeArgs, opts ...InvokeOption) (*LookupScopeResult, error)
    func LookupScopeOutput(ctx *Context, args *LookupScopeOutputArgs, opts ...InvokeOption) LookupScopeResultOutput

    > Note: This function is named LookupScope in the Go SDK.

    public static class GetScope 
    {
        public static Task<GetScopeResult> InvokeAsync(GetScopeArgs args, InvokeOptions? opts = null)
        public static Output<GetScopeResult> Invoke(GetScopeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:gkehub/v1alpha:getScope
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    ScopeId string
    Project string
    Location string
    ScopeId string
    Project string
    location String
    scopeId String
    project String
    location string
    scopeId string
    project string
    location String
    scopeId String
    project String

    getScope Result

    The following output properties are available:

    CreateTime string
    When the scope was created.
    DeleteTime string
    When the scope was deleted.
    Labels Dictionary<string, string>
    Optional. Labels for this Scope.
    Name string
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    NamespaceLabels Dictionary<string, string>
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    State Pulumi.GoogleNative.GKEHub.V1Alpha.Outputs.ScopeLifecycleStateResponse
    State of the scope resource.
    Uid string
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    When the scope was last updated.
    CreateTime string
    When the scope was created.
    DeleteTime string
    When the scope was deleted.
    Labels map[string]string
    Optional. Labels for this Scope.
    Name string
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    NamespaceLabels map[string]string
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    State ScopeLifecycleStateResponse
    State of the scope resource.
    Uid string
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    When the scope was last updated.
    createTime String
    When the scope was created.
    deleteTime String
    When the scope was deleted.
    labels Map<String,String>
    Optional. Labels for this Scope.
    name String
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    namespaceLabels Map<String,String>
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    state ScopeLifecycleStateResponse
    State of the scope resource.
    uid String
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    When the scope was last updated.
    createTime string
    When the scope was created.
    deleteTime string
    When the scope was deleted.
    labels {[key: string]: string}
    Optional. Labels for this Scope.
    name string
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    namespaceLabels {[key: string]: string}
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    state ScopeLifecycleStateResponse
    State of the scope resource.
    uid string
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime string
    When the scope was last updated.
    create_time str
    When the scope was created.
    delete_time str
    When the scope was deleted.
    labels Mapping[str, str]
    Optional. Labels for this Scope.
    name str
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    namespace_labels Mapping[str, str]
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    state ScopeLifecycleStateResponse
    State of the scope resource.
    uid str
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    update_time str
    When the scope was last updated.
    createTime String
    When the scope was created.
    deleteTime String
    When the scope was deleted.
    labels Map<String>
    Optional. Labels for this Scope.
    name String
    The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}
    namespaceLabels Map<String>
    Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
    state Property Map
    State of the scope resource.
    uid String
    Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    When the scope was last updated.

    Supporting Types

    ScopeLifecycleStateResponse

    Code string
    The current state of the scope resource.
    Code string
    The current state of the scope resource.
    code String
    The current state of the scope resource.
    code string
    The current state of the scope resource.
    code str
    The current state of the scope resource.
    code String
    The current state of the scope resource.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi