Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides the Ga Acls of the current Alibaba Cloud user.
NOTE: Available since v1.150.0.
Example Usage
Basic Usage
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);
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)
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, &ga.GetAclsArgs{}, 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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Ga.GetAcls.Invoke();
var nameRegex = AliCloud.Ga.GetAcls.Invoke(new()
{
NameRegex = "^my-Acl",
});
return new Dictionary<string, object?>
{
["gaAclId1"] = ids.Apply(getAclsResult => getAclsResult.Acls[0]?.Id),
["gaAclId2"] = nameRegex.Apply(getAclsResult => getAclsResult.Acls[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.GaFunctions;
import com.pulumi.alicloud.ga.inputs.GetAclsArgs;
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 = GaFunctions.getAcls(GetAclsArgs.builder()
.build());
ctx.export("gaAclId1", ids.acls()[0].id());
final var nameRegex = GaFunctions.getAcls(GetAclsArgs.builder()
.nameRegex("^my-Acl")
.build());
ctx.export("gaAclId2", nameRegex.acls()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:ga:getAcls
arguments: {}
nameRegex:
fn::invoke:
function: alicloud:ga:getAcls
arguments:
nameRegex: ^my-Acl
outputs:
gaAclId1: ${ids.acls[0].id}
gaAclId2: ${nameRegex.acls[0].id}
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)
public static Output<GetAclsResult> getAcls(GetAclsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ga/getAcls:getAcls
arguments:
# arguments dictionaryThe following arguments are supported:
- Acl
Name string - The name of the acl.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids List<string>
- A list of Acl IDs.
- Name
Regex string - A regex string to filter results by Acl name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the resource. Valid values:
active,configuring,deleting,init.
- Acl
Name string - The name of the acl.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids []string
- A list of Acl IDs.
- Name
Regex string - A regex string to filter results by Acl name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the resource. Valid values:
active,configuring,deleting,init.
- acl
Name String - The name of the acl.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Acl IDs.
- name
Regex String - A regex string to filter results by Acl name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the resource. Valid values:
active,configuring,deleting,init.
- acl
Name string - The name of the acl.
- enable
Details boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids string[]
- A list of Acl IDs.
- name
Regex string - A regex string to filter results by Acl name.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of the resource. Valid values:
active,configuring,deleting,init.
- acl_
name str - The name of the acl.
- enable_
details bool - Default to
false. Set it totruecan 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 - File name where to save data source results (after running
pulumi preview). - status str
- The status of the resource. Valid values:
active,configuring,deleting,init.
- acl
Name String - The name of the acl.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Acl IDs.
- name
Regex String - A regex string to filter results by Acl name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the resource. Valid values:
active,configuring,deleting,init.
getAcls Result
The following output properties are available:
- Acls
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Acls Acl> - A list of Ga Acls. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Acl names.
- Acl
Name string - The name of the acl.
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- The status of the resource.
- Acls
[]Get
Acls Acl - A list of Ga Acls. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Acl names.
- Acl
Name string - The name of the acl.
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- The status of the resource.
- acls
List<Get
Acls Acl> - A list of Ga Acls. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Acl names.
- acl
Name String - The name of the acl.
- enable
Details Boolean - name
Regex String - output
File String - status String
- The status of the resource.
- acls
Get
Acls Acl[] - A list of Ga Acls. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Acl names.
- acl
Name string - The name of the acl.
- enable
Details boolean - name
Regex string - output
File string - status string
- The status of the resource.
- acls
Sequence[Get
Acls Acl] - A list of Ga Acls. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Acl names.
- acl_
name str - The name of the acl.
- enable_
details bool - name_
regex str - output_
file str - status str
- The status of the resource.
- acls List<Property Map>
- A list of Ga Acls. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Acl names.
- acl
Name String - The name of the acl.
- enable
Details Boolean - name
Regex String - output
File String - status String
- The status of the resource.
Supporting Types
GetAclsAcl
- Acl
Entries List<Pulumi.Ali Cloud. Ga. Inputs. Get Acls Acl Acl Entry> - The entries of the Acl.
- Acl
Id string - The ID of the Acl.
- Acl
Name string - The name of the acl.
- Address
Ip stringVersion - 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. Valid values:
active,configuring,deleting,init.
- Acl
Entries []GetAcls Acl Acl Entry - The entries of the Acl.
- Acl
Id string - The ID of the Acl.
- Acl
Name string - The name of the acl.
- Address
Ip stringVersion - 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. Valid values:
active,configuring,deleting,init.
- acl
Entries List<GetAcls Acl Acl Entry> - The entries of the Acl.
- acl
Id String - The ID of the Acl.
- acl
Name String - The name of the acl.
- address
Ip StringVersion - 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. Valid values:
active,configuring,deleting,init.
- acl
Entries GetAcls Acl Acl Entry[] - The entries of the Acl.
- acl
Id string - The ID of the Acl.
- acl
Name string - The name of the acl.
- address
Ip stringVersion - 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. Valid values:
active,configuring,deleting,init.
- acl_
entries Sequence[GetAcls Acl Acl Entry] - The entries of the Acl.
- acl_
id str - The ID of the Acl.
- acl_
name str - The name of the acl.
- address_
ip_ strversion - 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. Valid values:
active,configuring,deleting,init.
- acl
Entries List<Property Map> - The entries of the Acl.
- acl
Id String - The ID of the Acl.
- acl
Name String - The name of the acl.
- address
Ip StringVersion - 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. Valid values:
active,configuring,deleting,init.
GetAclsAclAclEntry
- Entry string
- The IP entry that you want to add to the ACL.
- Entry
Description string - The description of the IP entry.
- Entry string
- The IP entry that you want to add to the ACL.
- Entry
Description string - The description of the IP entry.
- entry String
- The IP entry that you want to add to the ACL.
- entry
Description String - The description of the IP entry.
- entry string
- The IP entry that you want to add to the ACL.
- entry
Description 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.
- entry
Description String - The description of the IP entry.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
