Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.ga.getAccelerators
Explore with Pulumi AI
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)
public static Output<GetAcceleratorsResult> getAccelerators(GetAcceleratorsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ga/getAccelerators:getAccelerators
arguments:
# arguments dictionary
The following arguments are supported:
- Bandwidth
Billing Type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- Ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Accelerator name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- Bandwidth
Billing Type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- Ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Accelerator name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- bandwidth
Billing Type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Accelerator name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- bandwidth
Billing Type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Accelerator name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- bandwidth_
billing_ type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- name_
regex Changes to this property will trigger replacement.
- 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
Changes to this property will trigger replacement.
- The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- bandwidth
Billing Type Changes to this property will trigger replacement.
- The bandwidth billing method. Default value:
BandwidthPackage
. Valid values:BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.
- ids
Changes to this property will trigger replacement.
- A list of Accelerator IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Accelerator name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- 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.
Ali Cloud. Ga. Outputs. Get Accelerators Accelerator> - 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.
- Bandwidth
Billing stringType - Name
Regex string - Output
File string - Status string
- The status of the GA instance.
- Accelerators
[]Get
Accelerators Accelerator - 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.
- Bandwidth
Billing stringType - Name
Regex string - Output
File string - Status string
- The status of the GA instance.
- accelerators
List<Get
Accelerators Accelerator> - 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.
- bandwidth
Billing StringType - name
Regex String - output
File String - status String
- The status of the GA instance.
- accelerators
Get
Accelerators Accelerator[] - 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.
- bandwidth
Billing stringType - name
Regex string - output
File string - status string
- The status of the GA instance.
- accelerators
Sequence[Get
Accelerators Accelerator] - 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_ strtype - 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.
- bandwidth
Billing StringType - name
Regex String - output
File String - status String
- The status of the GA instance.
Supporting Types
GetAcceleratorsAccelerator
- Accelerator
Id This property is required. string - The ID of the GA instance to query.
- Accelerator
Name This property is required. string - The Name of the GA instance.
- Basic
Bandwidth Packages This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Accelerators Accelerator Basic Bandwidth Package> - Details of the basic bandwidth package bound to the global acceleration instance.
- Cen
Id This property is required. string - The cloud enterprise network instance ID bound to the global acceleration instance.
- Cross
Domain Bandwidth Packages This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Accelerators Accelerator Cross Domain Bandwidth Package> - Details of the cross-domain acceleration package bound to the global acceleration instance.
- Ddos
Id This property is required. string - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- Description
This property is required. string - Descriptive information of the global acceleration instance.
- Dns
Name This property is required. string - CNAME address assigned by Global Acceleration instance.
- Expired
Time This property is required. int - Time when the global acceleration instance expires.
- Id
This property is required. string - The ID of the Accelerator.
- Payment
Type This property is required. string - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - Second
Dns Name This property is required. string - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- Spec
This property is required. string - The instance type of the GA instance.
- Status
This property is required. string - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- Accelerator
Id This property is required. string - The ID of the GA instance to query.
- Accelerator
Name This property is required. string - The Name of the GA instance.
- Basic
Bandwidth Packages This property is required. []GetAccelerators Accelerator Basic Bandwidth Package - Details of the basic bandwidth package bound to the global acceleration instance.
- Cen
Id This property is required. string - The cloud enterprise network instance ID bound to the global acceleration instance.
- Cross
Domain Bandwidth Packages This property is required. []GetAccelerators Accelerator Cross Domain Bandwidth Package - Details of the cross-domain acceleration package bound to the global acceleration instance.
- Ddos
Id This property is required. string - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- Description
This property is required. string - Descriptive information of the global acceleration instance.
- Dns
Name This property is required. string - CNAME address assigned by Global Acceleration instance.
- Expired
Time This property is required. int - Time when the global acceleration instance expires.
- Id
This property is required. string - The ID of the Accelerator.
- Payment
Type This property is required. string - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - Second
Dns Name This property is required. string - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- Spec
This property is required. string - The instance type of the GA instance.
- Status
This property is required. string - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- accelerator
Id This property is required. String - The ID of the GA instance to query.
- accelerator
Name This property is required. String - The Name of the GA instance.
- basic
Bandwidth Packages This property is required. List<GetAccelerators Accelerator Basic Bandwidth Package> - Details of the basic bandwidth package bound to the global acceleration instance.
- cen
Id This property is required. String - The cloud enterprise network instance ID bound to the global acceleration instance.
- cross
Domain Bandwidth Packages This property is required. List<GetAccelerators Accelerator Cross Domain Bandwidth Package> - Details of the cross-domain acceleration package bound to the global acceleration instance.
- ddos
Id This property is required. String - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- description
This property is required. String - Descriptive information of the global acceleration instance.
- dns
Name This property is required. String - CNAME address assigned by Global Acceleration instance.
- expired
Time This property is required. Integer - Time when the global acceleration instance expires.
- id
This property is required. String - The ID of the Accelerator.
- payment
Type This property is required. String - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - second
Dns Name This property is required. String - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- spec
This property is required. String - The instance type of the GA instance.
- status
This property is required. String - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- accelerator
Id This property is required. string - The ID of the GA instance to query.
- accelerator
Name This property is required. string - The Name of the GA instance.
- basic
Bandwidth Packages This property is required. GetAccelerators Accelerator Basic Bandwidth Package[] - Details of the basic bandwidth package bound to the global acceleration instance.
- cen
Id This property is required. string - The cloud enterprise network instance ID bound to the global acceleration instance.
- cross
Domain Bandwidth Packages This property is required. GetAccelerators Accelerator Cross Domain Bandwidth Package[] - Details of the cross-domain acceleration package bound to the global acceleration instance.
- ddos
Id This property is required. string - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- description
This property is required. string - Descriptive information of the global acceleration instance.
- dns
Name This property is required. string - CNAME address assigned by Global Acceleration instance.
- expired
Time This property is required. number - Time when the global acceleration instance expires.
- id
This property is required. string - The ID of the Accelerator.
- payment
Type This property is required. string - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - second
Dns Name This property is required. string - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- spec
This property is required. string - The instance type of the GA instance.
- status
This property is required. string - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- accelerator_
id This property is required. str - The ID of the GA instance to query.
- accelerator_
name This property is required. str - The Name of the GA instance.
- basic_
bandwidth_ packages This property is required. Sequence[GetAccelerators Accelerator Basic Bandwidth Package] - Details of the basic bandwidth package bound to the global acceleration instance.
- cen_
id This property is required. str - The cloud enterprise network instance ID bound to the global acceleration instance.
- cross_
domain_ bandwidth_ packages This property is required. Sequence[GetAccelerators Accelerator Cross Domain Bandwidth Package] - Details of the cross-domain acceleration package bound to the global acceleration instance.
- ddos_
id This property is required. str - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- description
This property is required. str - Descriptive information of the global acceleration instance.
- dns_
name This property is required. str - CNAME address assigned by Global Acceleration instance.
- expired_
time This property is required. int - Time when the global acceleration instance expires.
- id
This property is required. str - The ID of the Accelerator.
- payment_
type This property is required. str - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - second_
dns_ name This property is required. str - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- spec
This property is required. str - The instance type of the GA instance.
- status
This property is required. str - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
- accelerator
Id This property is required. String - The ID of the GA instance to query.
- accelerator
Name This property is required. String - The Name of the GA instance.
- basic
Bandwidth Packages This property is required. List<Property Map> - Details of the basic bandwidth package bound to the global acceleration instance.
- cen
Id This property is required. String - The cloud enterprise network instance ID bound to the global acceleration instance.
- cross
Domain Bandwidth Packages This property is required. List<Property Map> - Details of the cross-domain acceleration package bound to the global acceleration instance.
- ddos
Id This property is required. String - DDoS high-defense instance ID that is unbound from the global acceleration instance.
- description
This property is required. String - Descriptive information of the global acceleration instance.
- dns
Name This property is required. String - CNAME address assigned by Global Acceleration instance.
- expired
Time This property is required. Number - Time when the global acceleration instance expires.
- id
This property is required. String - The ID of the Accelerator.
- payment
Type This property is required. String - The billing method of the GA instance. Valid values:
POSTPAY
,PREPAY
. - second
Dns Name This property is required. String - CNAME of the Global Acceleration Linkage DDoS High Defense Instance.
- spec
This property is required. String - The instance type of the GA instance.
- status
This property is required. String - The status of the GA instance. Valid values:
active
,binding
,configuring
,deleting
,finacialLocked
,init
,unbinding
.
GetAcceleratorsAcceleratorBasicBandwidthPackage
- Bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- Bandwidth
Type This property is required. string - The bandwidth type of the basic bandwidth package.
- Instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- Bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- Bandwidth
Type This property is required. string - The bandwidth type of the basic bandwidth package.
- Instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. Integer - Bandwidth value of cross-domain acceleration package.
- bandwidth
Type This property is required. String - The bandwidth type of the basic bandwidth package.
- instance
Id This property is required. String - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. number - Bandwidth value of cross-domain acceleration package.
- bandwidth
Type This property is required. string - The bandwidth type of the basic bandwidth package.
- instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- bandwidth_
type This property is required. str - The bandwidth type of the basic bandwidth package.
- instance_
id This property is required. str - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. Number - Bandwidth value of cross-domain acceleration package.
- bandwidth
Type This property is required. String - The bandwidth type of the basic bandwidth package.
- instance
Id This property is required. String - Instance ID of the cross-domain acceleration package.
GetAcceleratorsAcceleratorCrossDomainBandwidthPackage
- Bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- Instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- Bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- Instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. Integer - Bandwidth value of cross-domain acceleration package.
- instance
Id This property is required. String - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. number - Bandwidth value of cross-domain acceleration package.
- instance
Id This property is required. string - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. int - Bandwidth value of cross-domain acceleration package.
- instance_
id This property is required. str - Instance ID of the cross-domain acceleration package.
- bandwidth
This property is required. Number - Bandwidth value of cross-domain acceleration package.
- instance
Id This property is required. 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.