Alibaba Cloud
getNamespaces
This data source provides the Edas Namespaces of the current Alibaba Cloud user.
NOTE: Available in v1.173.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ids = Output.Create(AliCloud.Edas.GetNamespaces.InvokeAsync(new AliCloud.Edas.GetNamespacesArgs
{
Ids =
{
"example_id",
},
}));
this.EdasNamespaceId1 = ids.Apply(ids => ids.Namespaces?[0]?.Id);
var nameRegex = Output.Create(AliCloud.Edas.GetNamespaces.InvokeAsync(new AliCloud.Edas.GetNamespacesArgs
{
NameRegex = "^my-Namespace",
}));
this.EdasNamespaceId2 = nameRegex.Apply(nameRegex => nameRegex.Namespaces?[0]?.Id);
}
[Output("edasNamespaceId1")]
public Output<string> EdasNamespaceId1 { get; set; }
[Output("edasNamespaceId2")]
public Output<string> EdasNamespaceId2 { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := edas.GetNamespaces(ctx, &edas.GetNamespacesArgs{
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("edasNamespaceId1", ids.Namespaces[0].Id)
nameRegex, err := edas.GetNamespaces(ctx, &edas.GetNamespacesArgs{
NameRegex: pulumi.StringRef("^my-Namespace"),
}, nil)
if err != nil {
return err
}
ctx.Export("edasNamespaceId2", nameRegex.Namespaces[0].Id)
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.edas.get_namespaces(ids=["example_id"])
pulumi.export("edasNamespaceId1", ids.namespaces[0].id)
name_regex = alicloud.edas.get_namespaces(name_regex="^my-Namespace")
pulumi.export("edasNamespaceId2", name_regex.namespaces[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.edas.getNamespaces({
ids: ["example_id"],
});
export const edasNamespaceId1 = ids.then(ids => ids.namespaces?[0]?.id);
const nameRegex = alicloud.edas.getNamespaces({
nameRegex: "^my-Namespace",
});
export const edasNamespaceId2 = nameRegex.then(nameRegex => nameRegex.namespaces?[0]?.id);
Coming soon!
Using getNamespaces
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 getNamespaces(args: GetNamespacesArgs, opts?: InvokeOptions): Promise<GetNamespacesResult>
function getNamespacesOutput(args: GetNamespacesOutputArgs, opts?: InvokeOptions): Output<GetNamespacesResult>
def get_namespaces(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespacesResult
def get_namespaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespacesResult]
func GetNamespaces(ctx *Context, args *GetNamespacesArgs, opts ...InvokeOption) (*GetNamespacesResult, error)
func GetNamespacesOutput(ctx *Context, args *GetNamespacesOutputArgs, opts ...InvokeOption) GetNamespacesResultOutput
> Note: This function is named GetNamespaces
in the Go SDK.
public static class GetNamespaces
{
public static Task<GetNamespacesResult> InvokeAsync(GetNamespacesArgs args, InvokeOptions? opts = null)
public static Output<GetNamespacesResult> Invoke(GetNamespacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespacesResult> getNamespaces(GetNamespacesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:edas/getNamespaces:getNamespaces
Arguments:
# Arguments dictionary
The following arguments are supported:
- Ids List<string>
A list of Namespace IDs.
- Name
Regex string A regex string to filter results by Namespace name.
- Output
File string
- Ids []string
A list of Namespace IDs.
- Name
Regex string A regex string to filter results by Namespace name.
- Output
File string
- ids List<String>
A list of Namespace IDs.
- name
Regex String A regex string to filter results by Namespace name.
- output
File String
- ids string[]
A list of Namespace IDs.
- name
Regex string A regex string to filter results by Namespace name.
- output
File string
- ids Sequence[str]
A list of Namespace IDs.
- name_
regex str A regex string to filter results by Namespace name.
- output_
file str
- ids List<String>
A list of Namespace IDs.
- name
Regex String A regex string to filter results by Namespace name.
- output
File String
getNamespaces Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Namespaces
List<Pulumi.
Ali Cloud. Edas. Outputs. Get Namespaces Namespace> - Name
Regex string - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Namespaces
[]Get
Namespaces Namespace - Name
Regex string - Output
File string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- namespaces
List<Get
Namespaces Namespace> - name
Regex String - output
File String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- namespaces
Get
Namespaces Namespace[] - name
Regex string - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- namespaces
Sequence[Get
Namespaces Namespace] - name_
regex str - output_
file str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- namespaces List<Property Map>
- name
Regex String - output
File String
Supporting Types
GetNamespacesNamespace
- Belong
Region string The ID of the physical region to which the namespace belongs.
- Debug
Enable bool Indicates whether remote debugging is allowed in this region.
- Description string
The description of the namespace.
- Id string
The ID of the resource.
- Namespace
Id string The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- Namespace
Logical stringId The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- Namespace
Name string The name of the namespace.
- User
Id string The ID of the Alibaba Cloud account to which the namespace belongs.
- Belong
Region string The ID of the physical region to which the namespace belongs.
- Debug
Enable bool Indicates whether remote debugging is allowed in this region.
- Description string
The description of the namespace.
- Id string
The ID of the resource.
- Namespace
Id string The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- Namespace
Logical stringId The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- Namespace
Name string The name of the namespace.
- User
Id string The ID of the Alibaba Cloud account to which the namespace belongs.
- belong
Region String The ID of the physical region to which the namespace belongs.
- debug
Enable Boolean Indicates whether remote debugging is allowed in this region.
- description String
The description of the namespace.
- id String
The ID of the resource.
- namespace
Id String The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- namespace
Logical StringId The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- namespace
Name String The name of the namespace.
- user
Id String The ID of the Alibaba Cloud account to which the namespace belongs.
- belong
Region string The ID of the physical region to which the namespace belongs.
- debug
Enable boolean Indicates whether remote debugging is allowed in this region.
- description string
The description of the namespace.
- id string
The ID of the resource.
- namespace
Id string The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- namespace
Logical stringId The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- namespace
Name string The name of the namespace.
- user
Id string The ID of the Alibaba Cloud account to which the namespace belongs.
- belong_
region str The ID of the physical region to which the namespace belongs.
- debug_
enable bool Indicates whether remote debugging is allowed in this region.
- description str
The description of the namespace.
- id str
The ID of the resource.
- namespace_
id str The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- namespace_
logical_ strid The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- namespace_
name str The name of the namespace.
- user_
id str The ID of the Alibaba Cloud account to which the namespace belongs.
- belong
Region String The ID of the physical region to which the namespace belongs.
- debug
Enable Boolean Indicates whether remote debugging is allowed in this region.
- description String
The description of the namespace.
- id String
The ID of the resource.
- namespace
Id String The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
- namespace
Logical StringId The ID of the namespace. Note: The ID cannot be changed after the namespace is created. The ID is in the format of
Physical region ID:Logical region identifier
.- namespace
Name String The name of the namespace.
- user
Id String The ID of the Alibaba Cloud account to which the namespace belongs.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.