1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. mse
  5. getEngineNamespaces
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.mse.getEngineNamespaces

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user.

    NOTE: Available in v1.166.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.mse.getEngineNamespaces({
        clusterId: "example_value",
        ids: ["example_value"],
    });
    export const mseEngineNamespaceId1 = ids.then(ids => ids.namespaces?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.mse.get_engine_namespaces(cluster_id="example_value",
        ids=["example_value"])
    pulumi.export("mseEngineNamespaceId1", ids.namespaces[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mse"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := mse.GetEngineNamespaces(ctx, &mse.GetEngineNamespacesArgs{
    			ClusterId: "example_value",
    			Ids: []string{
    				"example_value",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("mseEngineNamespaceId1", ids.Namespaces[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Mse.GetEngineNamespaces.Invoke(new()
        {
            ClusterId = "example_value",
            Ids = new[]
            {
                "example_value",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["mseEngineNamespaceId1"] = ids.Apply(getEngineNamespacesResult => getEngineNamespacesResult.Namespaces[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.mse.MseFunctions;
    import com.pulumi.alicloud.mse.inputs.GetEngineNamespacesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var ids = MseFunctions.getEngineNamespaces(GetEngineNamespacesArgs.builder()
                .clusterId("example_value")
                .ids("example_value")
                .build());
    
            ctx.export("mseEngineNamespaceId1", ids.applyValue(getEngineNamespacesResult -> getEngineNamespacesResult.namespaces()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:mse:getEngineNamespaces
          Arguments:
            clusterId: example_value
            ids:
              - example_value
    outputs:
      mseEngineNamespaceId1: ${ids.namespaces[0].id}
    

    Using getEngineNamespaces

    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 getEngineNamespaces(args: GetEngineNamespacesArgs, opts?: InvokeOptions): Promise<GetEngineNamespacesResult>
    function getEngineNamespacesOutput(args: GetEngineNamespacesOutputArgs, opts?: InvokeOptions): Output<GetEngineNamespacesResult>
    def get_engine_namespaces(accept_language: Optional[str] = None,
                              cluster_id: Optional[str] = None,
                              ids: Optional[Sequence[str]] = None,
                              output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEngineNamespacesResult
    def get_engine_namespaces_output(accept_language: Optional[pulumi.Input[str]] = None,
                              cluster_id: Optional[pulumi.Input[str]] = None,
                              ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEngineNamespacesResult]
    func GetEngineNamespaces(ctx *Context, args *GetEngineNamespacesArgs, opts ...InvokeOption) (*GetEngineNamespacesResult, error)
    func GetEngineNamespacesOutput(ctx *Context, args *GetEngineNamespacesOutputArgs, opts ...InvokeOption) GetEngineNamespacesResultOutput

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

    public static class GetEngineNamespaces 
    {
        public static Task<GetEngineNamespacesResult> InvokeAsync(GetEngineNamespacesArgs args, InvokeOptions? opts = null)
        public static Output<GetEngineNamespacesResult> Invoke(GetEngineNamespacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEngineNamespacesResult> getEngineNamespaces(GetEngineNamespacesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:mse/getEngineNamespaces:getEngineNamespaces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The id of the cluster.
    AcceptLanguage string
    The language type of the returned information. Valid values: zh, en.
    Ids List<string>
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ClusterId string
    The id of the cluster.
    AcceptLanguage string
    The language type of the returned information. Valid values: zh, en.
    Ids []string
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    clusterId String
    The id of the cluster.
    acceptLanguage String
    The language type of the returned information. Valid values: zh, en.
    ids List<String>
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    clusterId string
    The id of the cluster.
    acceptLanguage string
    The language type of the returned information. Valid values: zh, en.
    ids string[]
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    cluster_id str
    The id of the cluster.
    accept_language str
    The language type of the returned information. Valid values: zh, en.
    ids Sequence[str]
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    output_file str
    File name where to save data source results (after running pulumi preview).
    clusterId String
    The id of the cluster.
    acceptLanguage String
    The language type of the returned information. Valid values: zh, en.
    ids List<String>
    A list of Engine Namespace IDs. It is formatted to <cluster_id>:<namespace_id>.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getEngineNamespaces Result

    The following output properties are available:

    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Namespaces List<Pulumi.AliCloud.Mse.Outputs.GetEngineNamespacesNamespace>
    AcceptLanguage string
    OutputFile string
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Namespaces []GetEngineNamespacesNamespace
    AcceptLanguage string
    OutputFile string
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    namespaces List<GetEngineNamespacesNamespace>
    acceptLanguage String
    outputFile String
    clusterId string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    namespaces GetEngineNamespacesNamespace[]
    acceptLanguage string
    outputFile string
    cluster_id str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    namespaces Sequence[GetEngineNamespacesNamespace]
    accept_language str
    output_file str
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    namespaces List<Property Map>
    acceptLanguage String
    outputFile String

    Supporting Types

    GetEngineNamespacesNamespace

    ConfigCount int
    The Number of Configuration of the Namespace.
    Id string
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    NamespaceDesc string
    The description of the Namespace.
    NamespaceId string
    The id of Namespace.
    NamespaceShowName string
    The name of the Namespace.
    Quota int
    The Quota of the Namespace.
    ServiceCount string
    The number of active services.
    Type int
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.
    ConfigCount int
    The Number of Configuration of the Namespace.
    Id string
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    NamespaceDesc string
    The description of the Namespace.
    NamespaceId string
    The id of Namespace.
    NamespaceShowName string
    The name of the Namespace.
    Quota int
    The Quota of the Namespace.
    ServiceCount string
    The number of active services.
    Type int
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.
    configCount Integer
    The Number of Configuration of the Namespace.
    id String
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    namespaceDesc String
    The description of the Namespace.
    namespaceId String
    The id of Namespace.
    namespaceShowName String
    The name of the Namespace.
    quota Integer
    The Quota of the Namespace.
    serviceCount String
    The number of active services.
    type Integer
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.
    configCount number
    The Number of Configuration of the Namespace.
    id string
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    namespaceDesc string
    The description of the Namespace.
    namespaceId string
    The id of Namespace.
    namespaceShowName string
    The name of the Namespace.
    quota number
    The Quota of the Namespace.
    serviceCount string
    The number of active services.
    type number
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.
    config_count int
    The Number of Configuration of the Namespace.
    id str
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    namespace_desc str
    The description of the Namespace.
    namespace_id str
    The id of Namespace.
    namespace_show_name str
    The name of the Namespace.
    quota int
    The Quota of the Namespace.
    service_count str
    The number of active services.
    type int
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.
    configCount Number
    The Number of Configuration of the Namespace.
    id String
    The ID of the Engine Namespace. It is formatted to <cluster_id>:<namespace_id>.
    namespaceDesc String
    The description of the Namespace.
    namespaceId String
    The id of Namespace.
    namespaceShowName String
    The name of the Namespace.
    quota Number
    The Quota of the Namespace.
    serviceCount String
    The number of active services.
    type Number
    The type of the Namespace, the value is as follows:

    • '0': Global Configuration.
    • '1': default namespace.
    • '2': Custom Namespace.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi