Alibaba Cloud
getEngineNamespaces
This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user.
NOTE: Available in v1.166.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ids = Output.Create(AliCloud.Mse.GetEngineNamespaces.InvokeAsync(new AliCloud.Mse.GetEngineNamespacesArgs
{
ClusterId = "example_value",
Ids =
{
"example_value",
},
}));
this.MseEngineNamespaceId1 = ids.Apply(ids => ids.Namespaces?[0]?.Id);
}
[Output("mseEngineNamespaceId1")]
public Output<string> MseEngineNamespaceId1 { get; set; }
}
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
})
}
Coming soon!
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)
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);
Coming soon!
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:
- Cluster
Id string The id of the cluster.
- Accept
Language 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>
.- Output
File string
- Cluster
Id string The id of the cluster.
- Accept
Language 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>
.- Output
File string
- cluster
Id String The id of the cluster.
- accept
Language 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>
.- output
File String
- cluster
Id string The id of the cluster.
- accept
Language 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>
.- output
File string
- 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
- cluster
Id String The id of the cluster.
- accept
Language 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>
.- output
File String
getEngineNamespaces Result
The following output properties are available:
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Namespaces
List<Pulumi.
Ali Cloud. Mse. Outputs. Get Engine Namespaces Namespace> - Accept
Language string - Output
File string
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Namespaces
[]Get
Engine Namespaces Namespace - Accept
Language string - Output
File string
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- namespaces
List<Get
Engine Namespaces Namespace> - accept
Language String - output
File String
- cluster
Id string - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- namespaces
Get
Engine Namespaces Namespace[] - accept
Language string - output
File string
- cluster_
id str - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- namespaces
Sequence[Get
Engine Namespaces Namespace] - accept_
language str - output_
file str
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- namespaces List<Property Map>
- accept
Language String - output
File String
Supporting Types
GetEngineNamespacesNamespace
- Config
Count int The Number of Configuration of the Namespace.
- Id string
The ID of the Engine Namespace. It is formatted to
<cluster_id>:<namespace_id>
.- Namespace
Desc string The description of the Namespace.
- Namespace
Id string The id of Namespace.
- Namespace
Show stringName The name of the Namespace.
- Quota int
The Quota of the Namespace.
- Service
Count 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.
- Config
Count int The Number of Configuration of the Namespace.
- Id string
The ID of the Engine Namespace. It is formatted to
<cluster_id>:<namespace_id>
.- Namespace
Desc string The description of the Namespace.
- Namespace
Id string The id of Namespace.
- Namespace
Show stringName The name of the Namespace.
- Quota int
The Quota of the Namespace.
- Service
Count 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.
- config
Count Integer The Number of Configuration of the Namespace.
- id String
The ID of the Engine Namespace. It is formatted to
<cluster_id>:<namespace_id>
.- namespace
Desc String The description of the Namespace.
- namespace
Id String The id of Namespace.
- namespace
Show StringName The name of the Namespace.
- quota Integer
The Quota of the Namespace.
- service
Count 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.
- config
Count number The Number of Configuration of the Namespace.
- id string
The ID of the Engine Namespace. It is formatted to
<cluster_id>:<namespace_id>
.- namespace
Desc string The description of the Namespace.
- namespace
Id string The id of Namespace.
- namespace
Show stringName The name of the Namespace.
- quota number
The Quota of the Namespace.
- service
Count 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_ strname 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.
- config
Count Number The Number of Configuration of the Namespace.
- id String
The ID of the Engine Namespace. It is formatted to
<cluster_id>:<namespace_id>
.- namespace
Desc String The description of the Namespace.
- namespace
Id String The id of Namespace.
- namespace
Show StringName The name of the Namespace.
- quota Number
The Quota of the Namespace.
- service
Count 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
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.