1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getAccelerators
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.ga.getAccelerators

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Global Accelerator (GA) Accelerators of the current Alibaba Cloud user.

    NOTE: Available since v1.111.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.ga.getAccelerators({
        nameRegex: "tf",
    });
    export const firstGaAcceleratorId = example.then(example => example.accelerators?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.ga.get_accelerators(name_regex="tf")
    pulumi.export("firstGaAcceleratorId", example.accelerators[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 {
    		example, err := ga.GetAccelerators(ctx, &ga.GetAcceleratorsArgs{
    			NameRegex: pulumi.StringRef("tf"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstGaAcceleratorId", example.Accelerators[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Ga.GetAccelerators.Invoke(new()
        {
            NameRegex = "tf",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstGaAcceleratorId"] = example.Apply(getAcceleratorsResult => getAcceleratorsResult.Accelerators[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.GetAcceleratorsArgs;
    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 example = GaFunctions.getAccelerators(GetAcceleratorsArgs.builder()
                .nameRegex("tf")
                .build());
    
            ctx.export("firstGaAcceleratorId", example.applyValue(getAcceleratorsResult -> getAcceleratorsResult.accelerators()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:ga:getAccelerators
          Arguments:
            nameRegex: tf
    outputs:
      firstGaAcceleratorId: ${example.accelerators[0].id}
    

    Using getAccelerators

    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 getAccelerators(args: GetAcceleratorsArgs, opts?: InvokeOptions): Promise<GetAcceleratorsResult>
    function getAcceleratorsOutput(args: GetAcceleratorsOutputArgs, opts?: InvokeOptions): Output<GetAcceleratorsResult>
    def get_accelerators(bandwidth_billing_type: Optional[str] = None,
                         ids: Optional[Sequence[str]] = None,
                         name_regex: Optional[str] = None,
                         output_file: Optional[str] = None,
                         status: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAcceleratorsResult
    def get_accelerators_output(bandwidth_billing_type: Optional[pulumi.Input[str]] = 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[GetAcceleratorsResult]
    func GetAccelerators(ctx *Context, args *GetAcceleratorsArgs, opts ...InvokeOption) (*GetAcceleratorsResult, error)
    func GetAcceleratorsOutput(ctx *Context, args *GetAcceleratorsOutputArgs, opts ...InvokeOption) GetAcceleratorsResultOutput

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

    public static class GetAccelerators 
    {
        public static Task<GetAcceleratorsResult> InvokeAsync(GetAcceleratorsArgs args, InvokeOptions? opts = null)
        public static Output<GetAcceleratorsResult> Invoke(GetAcceleratorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAcceleratorsResult> getAccelerators(GetAcceleratorsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getAccelerators:getAccelerators
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BandwidthBillingType string
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    Ids List<string>
    A list of Accelerator IDs.
    NameRegex string
    A regex string to filter results by Accelerator name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    BandwidthBillingType string
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    Ids []string
    A list of Accelerator IDs.
    NameRegex string
    A regex string to filter results by Accelerator name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    bandwidthBillingType String
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    ids List<String>
    A list of Accelerator IDs.
    nameRegex String
    A regex string to filter results by Accelerator name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    bandwidthBillingType string
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    ids string[]
    A list of Accelerator IDs.
    nameRegex string
    A regex string to filter results by Accelerator name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    bandwidth_billing_type str
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    ids Sequence[str]
    A list of Accelerator IDs.
    name_regex str
    A regex string to filter results by Accelerator name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    bandwidthBillingType String
    The bandwidth billing method. Default value: BandwidthPackage. Valid values:

    • BandwidthPackage: billed based on bandwidth plans.
    • CDT: billed based on data transfer.
    ids List<String>
    A list of Accelerator IDs.
    nameRegex String
    A regex string to filter results by Accelerator name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.

    getAccelerators Result

    The following output properties are available:

    Accelerators List<Pulumi.AliCloud.Ga.Outputs.GetAcceleratorsAccelerator>
    A list of Ga Accelerators. 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 Accelerator names.
    BandwidthBillingType string
    NameRegex string
    OutputFile string
    Status string
    The status of the GA instance.
    Accelerators []GetAcceleratorsAccelerator
    A list of Ga Accelerators. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of Accelerator names.
    BandwidthBillingType string
    NameRegex string
    OutputFile string
    Status string
    The status of the GA instance.
    accelerators List<GetAcceleratorsAccelerator>
    A list of Ga Accelerators. 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 Accelerator names.
    bandwidthBillingType String
    nameRegex String
    outputFile String
    status String
    The status of the GA instance.
    accelerators GetAcceleratorsAccelerator[]
    A list of Ga Accelerators. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of Accelerator names.
    bandwidthBillingType string
    nameRegex string
    outputFile string
    status string
    The status of the GA instance.
    accelerators Sequence[GetAcceleratorsAccelerator]
    A list of Ga Accelerators. 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 Accelerator names.
    bandwidth_billing_type str
    name_regex str
    output_file str
    status str
    The status of the GA instance.
    accelerators List<Property Map>
    A list of Ga Accelerators. 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 Accelerator names.
    bandwidthBillingType String
    nameRegex String
    outputFile String
    status String
    The status of the GA instance.

    Supporting Types

    GetAcceleratorsAccelerator

    AcceleratorId string
    The ID of the GA instance to query.
    AcceleratorName string
    The Name of the GA instance.
    BasicBandwidthPackages List<Pulumi.AliCloud.Ga.Inputs.GetAcceleratorsAcceleratorBasicBandwidthPackage>
    Details of the basic bandwidth package bound to the global acceleration instance.
    CenId string
    The cloud enterprise network instance ID bound to the global acceleration instance.
    CrossDomainBandwidthPackages List<Pulumi.AliCloud.Ga.Inputs.GetAcceleratorsAcceleratorCrossDomainBandwidthPackage>
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    DdosId string
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    Description string
    Descriptive information of the global acceleration instance.
    DnsName string
    CNAME address assigned by Global Acceleration instance.
    ExpiredTime int
    Time when the global acceleration instance expires.
    Id string
    The ID of the Accelerator.
    PaymentType string
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    SecondDnsName string
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    Spec string
    The instance type of the GA instance.
    Status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    AcceleratorId string
    The ID of the GA instance to query.
    AcceleratorName string
    The Name of the GA instance.
    BasicBandwidthPackages []GetAcceleratorsAcceleratorBasicBandwidthPackage
    Details of the basic bandwidth package bound to the global acceleration instance.
    CenId string
    The cloud enterprise network instance ID bound to the global acceleration instance.
    CrossDomainBandwidthPackages []GetAcceleratorsAcceleratorCrossDomainBandwidthPackage
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    DdosId string
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    Description string
    Descriptive information of the global acceleration instance.
    DnsName string
    CNAME address assigned by Global Acceleration instance.
    ExpiredTime int
    Time when the global acceleration instance expires.
    Id string
    The ID of the Accelerator.
    PaymentType string
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    SecondDnsName string
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    Spec string
    The instance type of the GA instance.
    Status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    acceleratorId String
    The ID of the GA instance to query.
    acceleratorName String
    The Name of the GA instance.
    basicBandwidthPackages List<GetAcceleratorsAcceleratorBasicBandwidthPackage>
    Details of the basic bandwidth package bound to the global acceleration instance.
    cenId String
    The cloud enterprise network instance ID bound to the global acceleration instance.
    crossDomainBandwidthPackages List<GetAcceleratorsAcceleratorCrossDomainBandwidthPackage>
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    ddosId String
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    description String
    Descriptive information of the global acceleration instance.
    dnsName String
    CNAME address assigned by Global Acceleration instance.
    expiredTime Integer
    Time when the global acceleration instance expires.
    id String
    The ID of the Accelerator.
    paymentType String
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    secondDnsName String
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    spec String
    The instance type of the GA instance.
    status String
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    acceleratorId string
    The ID of the GA instance to query.
    acceleratorName string
    The Name of the GA instance.
    basicBandwidthPackages GetAcceleratorsAcceleratorBasicBandwidthPackage[]
    Details of the basic bandwidth package bound to the global acceleration instance.
    cenId string
    The cloud enterprise network instance ID bound to the global acceleration instance.
    crossDomainBandwidthPackages GetAcceleratorsAcceleratorCrossDomainBandwidthPackage[]
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    ddosId string
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    description string
    Descriptive information of the global acceleration instance.
    dnsName string
    CNAME address assigned by Global Acceleration instance.
    expiredTime number
    Time when the global acceleration instance expires.
    id string
    The ID of the Accelerator.
    paymentType string
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    secondDnsName string
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    spec string
    The instance type of the GA instance.
    status string
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    accelerator_id str
    The ID of the GA instance to query.
    accelerator_name str
    The Name of the GA instance.
    basic_bandwidth_packages Sequence[GetAcceleratorsAcceleratorBasicBandwidthPackage]
    Details of the basic bandwidth package bound to the global acceleration instance.
    cen_id str
    The cloud enterprise network instance ID bound to the global acceleration instance.
    cross_domain_bandwidth_packages Sequence[GetAcceleratorsAcceleratorCrossDomainBandwidthPackage]
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    ddos_id str
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    description str
    Descriptive information of the global acceleration instance.
    dns_name str
    CNAME address assigned by Global Acceleration instance.
    expired_time int
    Time when the global acceleration instance expires.
    id str
    The ID of the Accelerator.
    payment_type str
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    second_dns_name str
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    spec str
    The instance type of the GA instance.
    status str
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.
    acceleratorId String
    The ID of the GA instance to query.
    acceleratorName String
    The Name of the GA instance.
    basicBandwidthPackages List<Property Map>
    Details of the basic bandwidth package bound to the global acceleration instance.
    cenId String
    The cloud enterprise network instance ID bound to the global acceleration instance.
    crossDomainBandwidthPackages List<Property Map>
    Details of the cross-domain acceleration package bound to the global acceleration instance.
    ddosId String
    DDoS high-defense instance ID that is unbound from the global acceleration instance.
    description String
    Descriptive information of the global acceleration instance.
    dnsName String
    CNAME address assigned by Global Acceleration instance.
    expiredTime Number
    Time when the global acceleration instance expires.
    id String
    The ID of the Accelerator.
    paymentType String
    The billing method of the GA instance. Valid values: POSTPAY, PREPAY.
    secondDnsName String
    CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
    spec String
    The instance type of the GA instance.
    status String
    The status of the GA instance. Valid values: active, binding, configuring, deleting, finacialLocked, init, unbinding.

    GetAcceleratorsAcceleratorBasicBandwidthPackage

    Bandwidth int
    Bandwidth value of cross-domain acceleration package.
    BandwidthType string
    The bandwidth type of the basic bandwidth package.
    InstanceId string
    Instance ID of the cross-domain acceleration package.
    Bandwidth int
    Bandwidth value of cross-domain acceleration package.
    BandwidthType string
    The bandwidth type of the basic bandwidth package.
    InstanceId string
    Instance ID of the cross-domain acceleration package.
    bandwidth Integer
    Bandwidth value of cross-domain acceleration package.
    bandwidthType String
    The bandwidth type of the basic bandwidth package.
    instanceId String
    Instance ID of the cross-domain acceleration package.
    bandwidth number
    Bandwidth value of cross-domain acceleration package.
    bandwidthType string
    The bandwidth type of the basic bandwidth package.
    instanceId string
    Instance ID of the cross-domain acceleration package.
    bandwidth int
    Bandwidth value of cross-domain acceleration package.
    bandwidth_type str
    The bandwidth type of the basic bandwidth package.
    instance_id str
    Instance ID of the cross-domain acceleration package.
    bandwidth Number
    Bandwidth value of cross-domain acceleration package.
    bandwidthType String
    The bandwidth type of the basic bandwidth package.
    instanceId String
    Instance ID of the cross-domain acceleration package.

    GetAcceleratorsAcceleratorCrossDomainBandwidthPackage

    Bandwidth int
    Bandwidth value of cross-domain acceleration package.
    InstanceId string
    Instance ID of the cross-domain acceleration package.
    Bandwidth int
    Bandwidth value of cross-domain acceleration package.
    InstanceId string
    Instance ID of the cross-domain acceleration package.
    bandwidth Integer
    Bandwidth value of cross-domain acceleration package.
    instanceId String
    Instance ID of the cross-domain acceleration package.
    bandwidth number
    Bandwidth value of cross-domain acceleration package.
    instanceId string
    Instance ID of the cross-domain acceleration package.
    bandwidth int
    Bandwidth value of cross-domain acceleration package.
    instance_id str
    Instance ID of the cross-domain acceleration package.
    bandwidth Number
    Bandwidth value of cross-domain acceleration package.
    instanceId String
    Instance ID of the cross-domain acceleration package.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi