Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getAcls

This data source provides the Ga Acls of the current Alibaba Cloud user.

NOTE: Available in v1.150.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Ga.GetAcls.InvokeAsync());
        this.GaAclId1 = ids.Apply(ids => ids.Acls?[0]?.Id);
        var nameRegex = Output.Create(AliCloud.Ga.GetAcls.InvokeAsync(new AliCloud.Ga.GetAclsArgs
        {
            NameRegex = "^my-Acl",
        }));
        this.GaAclId2 = nameRegex.Apply(nameRegex => nameRegex.Acls?[0]?.Id);
    }

    [Output("gaAclId1")]
    public Output<string> GaAclId1 { get; set; }
    [Output("gaAclId2")]
    public Output<string> GaAclId2 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := ga.GetAcls(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("gaAclId1", ids.Acls[0].Id)
		nameRegex, err := ga.GetAcls(ctx, &ga.GetAclsArgs{
			NameRegex: pulumi.StringRef("^my-Acl"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gaAclId2", nameRegex.Acls[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.ga.get_acls()
pulumi.export("gaAclId1", ids.acls[0].id)
name_regex = alicloud.ga.get_acls(name_regex="^my-Acl")
pulumi.export("gaAclId2", name_regex.acls[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.ga.getAcls({});
export const gaAclId1 = ids.then(ids => ids.acls?[0]?.id);
const nameRegex = alicloud.ga.getAcls({
    nameRegex: "^my-Acl",
});
export const gaAclId2 = nameRegex.then(nameRegex => nameRegex.acls?[0]?.id);

Coming soon!

Using getAcls

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 getAcls(args: GetAclsArgs, opts?: InvokeOptions): Promise<GetAclsResult>
function getAclsOutput(args: GetAclsOutputArgs, opts?: InvokeOptions): Output<GetAclsResult>
def get_acls(acl_name: Optional[str] = None,
             enable_details: Optional[bool] = None,
             ids: Optional[Sequence[str]] = None,
             name_regex: Optional[str] = None,
             output_file: Optional[str] = None,
             status: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetAclsResult
def get_acls_output(acl_name: Optional[pulumi.Input[str]] = None,
             enable_details: Optional[pulumi.Input[bool]] = None,
             ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             name_regex: Optional[pulumi.Input[str]] = None,
             output_file: Optional[pulumi.Input[str]] = None,
             status: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetAclsResult]
func GetAcls(ctx *Context, args *GetAclsArgs, opts ...InvokeOption) (*GetAclsResult, error)
func GetAclsOutput(ctx *Context, args *GetAclsOutputArgs, opts ...InvokeOption) GetAclsResultOutput

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

public static class GetAcls 
{
    public static Task<GetAclsResult> InvokeAsync(GetAclsArgs args, InvokeOptions? opts = null)
    public static Output<GetAclsResult> Invoke(GetAclsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAclsResult> getAcls(GetAclsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ga/getAcls:getAcls
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AclName string

The name of the acl.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Acl IDs.

NameRegex string

A regex string to filter results by Acl name.

OutputFile string
Status string

The status of the resource.

AclName string

The name of the acl.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Acl IDs.

NameRegex string

A regex string to filter results by Acl name.

OutputFile string
Status string

The status of the resource.

aclName String

The name of the acl.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List

A list of Acl IDs.

nameRegex String

A regex string to filter results by Acl name.

outputFile String
status String

The status of the resource.

aclName string

The name of the acl.

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Acl IDs.

nameRegex string

A regex string to filter results by Acl name.

outputFile string
status string

The status of the resource.

acl_name str

The name of the acl.

enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of Acl IDs.

name_regex str

A regex string to filter results by Acl name.

output_file str
status str

The status of the resource.

aclName String

The name of the acl.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List

A list of Acl IDs.

nameRegex String

A regex string to filter results by Acl name.

outputFile String
status String

The status of the resource.

getAcls Result

The following output properties are available:

Acls List<Pulumi.AliCloud.Ga.Outputs.GetAclsAcl>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
AclName string
EnableDetails bool
NameRegex string
OutputFile string
Status string
Acls []GetAclsAcl
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
AclName string
EnableDetails bool
NameRegex string
OutputFile string
Status string
acls ListAclsAcl>
id String

The provider-assigned unique ID for this managed resource.

ids List
names List
aclName String
enableDetails Boolean
nameRegex String
outputFile String
status String
acls GetAclsAcl[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
aclName string
enableDetails boolean
nameRegex string
outputFile string
status string
acls Sequence[GetAclsAcl]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
acl_name str
enable_details bool
name_regex str
output_file str
status str
acls List
id String

The provider-assigned unique ID for this managed resource.

ids List
names List
aclName String
enableDetails Boolean
nameRegex String
outputFile String
status String

Supporting Types

GetAclsAcl

AclEntries List<Pulumi.AliCloud.Ga.Inputs.GetAclsAclAclEntry>

The entries of the Acl.

AclId string

The ID of the Acl.

AclName string

The name of the acl.

AddressIpVersion string

The address ip version.

Id string

The ID of the Acl. Its value is same as acl_id.

Status string

The status of the resource.

AclEntries []GetAclsAclAclEntry

The entries of the Acl.

AclId string

The ID of the Acl.

AclName string

The name of the acl.

AddressIpVersion string

The address ip version.

Id string

The ID of the Acl. Its value is same as acl_id.

Status string

The status of the resource.

aclEntries ListAclsAclAclEntry>

The entries of the Acl.

aclId String

The ID of the Acl.

aclName String

The name of the acl.

addressIpVersion String

The address ip version.

id String

The ID of the Acl. Its value is same as acl_id.

status String

The status of the resource.

aclEntries GetAclsAclAclEntry[]

The entries of the Acl.

aclId string

The ID of the Acl.

aclName string

The name of the acl.

addressIpVersion string

The address ip version.

id string

The ID of the Acl. Its value is same as acl_id.

status string

The status of the resource.

acl_entries Sequence[GetAclsAclAclEntry]

The entries of the Acl.

acl_id str

The ID of the Acl.

acl_name str

The name of the acl.

address_ip_version str

The address ip version.

id str

The ID of the Acl. Its value is same as acl_id.

status str

The status of the resource.

aclEntries List

The entries of the Acl.

aclId String

The ID of the Acl.

aclName String

The name of the acl.

addressIpVersion String

The address ip version.

id String

The ID of the Acl. Its value is same as acl_id.

status String

The status of the resource.

GetAclsAclAclEntry

Entry string

The IP entry that you want to add to the ACL.

EntryDescription string

The description of the IP entry.

Entry string

The IP entry that you want to add to the ACL.

EntryDescription string

The description of the IP entry.

entry String

The IP entry that you want to add to the ACL.

entryDescription String

The description of the IP entry.

entry string

The IP entry that you want to add to the ACL.

entryDescription string

The description of the IP entry.

entry str

The IP entry that you want to add to the ACL.

entry_description str

The description of the IP entry.

entry String

The IP entry that you want to add to the ACL.

entryDescription String

The description of the IP entry.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.