Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.mse.getEngineNamespaces
Explore with Pulumi AI
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:
- 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 - File name where to save data source results (after running
pulumi preview
).
- 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 - File name where to save data source results (after running
pulumi preview
).
- 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 - File name where to save data source results (after running
pulumi preview
).
- 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 - 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
).
- 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 - File name where to save data source results (after running
pulumi preview
).
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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.