GetAcls

This data source provides Sag Acls available to the user.

NOTE: Available in 1.60.0+

NOTE: Only the following regions support create Cloud Connect Network. [cn-shanghai, cn-shanghai-finance-1, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1]

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultAcls = Output.Create(AliCloud.Sag.GetAcls.InvokeAsync(new AliCloud.Sag.GetAclsArgs
        {
            Ids = 
            {
                alicloud_sag_acls.Default.Id,
            },
            NameRegex = "^tf-testAcc.*",
        }));
        var defaultAcl = new AliCloud.RocketMQ.Acl("defaultAcl", new AliCloud.RocketMQ.AclArgs
        {
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_acls = alicloud.sag.get_acls(ids=[alicloud_sag_acls["default"]["id"]],
    name_regex="^tf-testAcc.*")
default_acl = alicloud.rocketmq.Acl("defaultAcl")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultAcls = alicloud_sag_acls_default.id.apply(id => alicloud.sag.getAcls({
    ids: [id],
    nameRegex: "^tf-testAcc.*",
}, { async: true }));
const defaultAcl = new alicloud.rocketmq.Acl("default", {});

Using GetAcls

function getAcls(args: GetAclsArgs, opts?: InvokeOptions): Promise<GetAclsResult>
function  get_acls(ids=None, name_regex=None, output_file=None, opts=None)
func GetAcls(ctx *Context, args *GetAclsArgs, opts ...InvokeOption) (*GetAclsResult, error)
public static class GetAcls {
    public static Task<GetAclsResult> InvokeAsync(GetAclsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of Sag Acl IDs.

NameRegex string

A regex string to filter Sag Acl instances by name.

OutputFile string
Ids []string

A list of Sag Acl IDs.

NameRegex string

A regex string to filter Sag Acl instances by name.

OutputFile string
ids string[]

A list of Sag Acl IDs.

nameRegex string

A regex string to filter Sag Acl instances by name.

outputFile string
ids List[str]

A list of Sag Acl IDs.

name_regex str

A regex string to filter Sag Acl instances by name.

output_file str

GetAcls Result

The following output properties are available:

Acls List<Pulumi.AliCloud.Sag.Outputs.GetAclsAcl>

A list of Sag Acls. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of Sag Acl IDs.

Names List<string>

A list of Sag Acls names.

NameRegex string
OutputFile string
Acls []GetAclsAcl

A list of Sag Acls. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of Sag Acl IDs.

Names []string

A list of Sag Acls names.

NameRegex string
OutputFile string
acls GetAclsAcl[]

A list of Sag Acls. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of Sag Acl IDs.

names string[]

A list of Sag Acls names.

nameRegex string
outputFile string
acls List[GetAclsAcl]

A list of Sag Acls. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of Sag Acl IDs.

names List[str]

A list of Sag Acls names.

name_regex str
output_file str

Supporting Types

GetAclsAcl

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

The ID of the ACL. For example “acl-xxx”.

Name string

The name of the Acl.

Id string

The ID of the ACL. For example “acl-xxx”.

Name string

The name of the Acl.

id string

The ID of the ACL. For example “acl-xxx”.

name string

The name of the Acl.

id str

The ID of the ACL. For example “acl-xxx”.

name str

The name of the Acl.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.