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

alicloud.ga.getBasicAccelerateIps

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) Basic Accelerate IPs of the current Alibaba Cloud user.

    NOTE: Available in v1.194.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.ga.getBasicAccelerateIps({
        ids: ["example_id"],
        ipSetId: "example_ip_set_id",
    });
    export const gaBasicAccelerateIpId1 = ids.then(ids => ids.ips?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_basic_accelerate_ips(ids=["example_id"],
        ip_set_id="example_ip_set_id")
    pulumi.export("gaBasicAccelerateIpId1", ids.ips[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.GetBasicAccelerateIps(ctx, &ga.GetBasicAccelerateIpsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			IpSetId: "example_ip_set_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaBasicAccelerateIpId1", ids.Ips[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.GetBasicAccelerateIps.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            IpSetId = "example_ip_set_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaBasicAccelerateIpId1"] = ids.Apply(getBasicAccelerateIpsResult => getBasicAccelerateIpsResult.Ips[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.GetBasicAccelerateIpsArgs;
    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.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder()
                .ids("example_id")
                .ipSetId("example_ip_set_id")
                .build());
    
            ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getBasicAccelerateIps
          Arguments:
            ids:
              - example_id
            ipSetId: example_ip_set_id
    outputs:
      gaBasicAccelerateIpId1: ${ids.ips[0].id}
    

    Using getBasicAccelerateIps

    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 getBasicAccelerateIps(args: GetBasicAccelerateIpsArgs, opts?: InvokeOptions): Promise<GetBasicAccelerateIpsResult>
    function getBasicAccelerateIpsOutput(args: GetBasicAccelerateIpsOutputArgs, opts?: InvokeOptions): Output<GetBasicAccelerateIpsResult>
    def get_basic_accelerate_ips(accelerate_ip_address: Optional[str] = None,
                                 accelerate_ip_id: Optional[str] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 ip_set_id: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetBasicAccelerateIpsResult
    def get_basic_accelerate_ips_output(accelerate_ip_address: Optional[pulumi.Input[str]] = None,
                                 accelerate_ip_id: Optional[pulumi.Input[str]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 ip_set_id: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetBasicAccelerateIpsResult]
    func GetBasicAccelerateIps(ctx *Context, args *GetBasicAccelerateIpsArgs, opts ...InvokeOption) (*GetBasicAccelerateIpsResult, error)
    func GetBasicAccelerateIpsOutput(ctx *Context, args *GetBasicAccelerateIpsOutputArgs, opts ...InvokeOption) GetBasicAccelerateIpsResultOutput

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

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

    The following arguments are supported:

    IpSetId string
    The ID of the Basic Ip Set.
    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    Ids List<string>
    A list of Global Accelerator Basic Accelerate IP IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    IpSetId string
    The ID of the Basic Ip Set.
    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    Ids []string
    A list of Global Accelerator Basic Accelerate IP IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    ipSetId String
    The ID of the Basic Ip Set.
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    ids List<String>
    A list of Global Accelerator Basic Accelerate IP IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    ipSetId string
    The ID of the Basic Ip Set.
    accelerateIpAddress string
    The address of the Basic Accelerate IP.
    accelerateIpId string
    The id of the Basic Accelerate IP.
    ids string[]
    A list of Global Accelerator Basic Accelerate IP IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    ip_set_id str
    The ID of the Basic Ip Set.
    accelerate_ip_address str
    The address of the Basic Accelerate IP.
    accelerate_ip_id str
    The id of the Basic Accelerate IP.
    ids Sequence[str]
    A list of Global Accelerator Basic Accelerate IP IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    ipSetId String
    The ID of the Basic Ip Set.
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    ids List<String>
    A list of Global Accelerator Basic Accelerate IP IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.

    getBasicAccelerateIps Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    IpSetId string
    The ID of the Basic Ip Set.
    Ips List<Pulumi.AliCloud.Ga.Outputs.GetBasicAccelerateIpsIp>
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    OutputFile string
    Status string
    The status of the Basic Accelerate IP instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    IpSetId string
    The ID of the Basic Ip Set.
    Ips []GetBasicAccelerateIpsIp
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    OutputFile string
    Status string
    The status of the Basic Accelerate IP instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    ipSetId String
    The ID of the Basic Ip Set.
    ips List<GetBasicAccelerateIpsIp>
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    outputFile String
    status String
    The status of the Basic Accelerate IP instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    ipSetId string
    The ID of the Basic Ip Set.
    ips GetBasicAccelerateIpsIp[]
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    accelerateIpAddress string
    The address of the Basic Accelerate IP.
    accelerateIpId string
    The id of the Basic Accelerate IP.
    outputFile string
    status string
    The status of the Basic Accelerate IP instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    ip_set_id str
    The ID of the Basic Ip Set.
    ips Sequence[GetBasicAccelerateIpsIp]
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    accelerate_ip_address str
    The address of the Basic Accelerate IP.
    accelerate_ip_id str
    The id of the Basic Accelerate IP.
    output_file str
    status str
    The status of the Basic Accelerate IP instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    ipSetId String
    The ID of the Basic Ip Set.
    ips List<Property Map>
    A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    outputFile String
    status String
    The status of the Basic Accelerate IP instance.

    Supporting Types

    GetBasicAccelerateIpsIp

    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    AcceleratorId string
    The id of the Global Accelerator Basic Accelerator instance.
    Id string
    The id of the Basic Accelerate IP.
    IpSetId string
    The ID of the Basic Ip Set.
    Status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    AccelerateIpAddress string
    The address of the Basic Accelerate IP.
    AccelerateIpId string
    The id of the Basic Accelerate IP.
    AcceleratorId string
    The id of the Global Accelerator Basic Accelerator instance.
    Id string
    The id of the Basic Accelerate IP.
    IpSetId string
    The ID of the Basic Ip Set.
    Status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    acceleratorId String
    The id of the Global Accelerator Basic Accelerator instance.
    id String
    The id of the Basic Accelerate IP.
    ipSetId String
    The ID of the Basic Ip Set.
    status String
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    accelerateIpAddress string
    The address of the Basic Accelerate IP.
    accelerateIpId string
    The id of the Basic Accelerate IP.
    acceleratorId string
    The id of the Global Accelerator Basic Accelerator instance.
    id string
    The id of the Basic Accelerate IP.
    ipSetId string
    The ID of the Basic Ip Set.
    status string
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    accelerate_ip_address str
    The address of the Basic Accelerate IP.
    accelerate_ip_id str
    The id of the Basic Accelerate IP.
    accelerator_id str
    The id of the Global Accelerator Basic Accelerator instance.
    id str
    The id of the Basic Accelerate IP.
    ip_set_id str
    The ID of the Basic Ip Set.
    status str
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.
    accelerateIpAddress String
    The address of the Basic Accelerate IP.
    accelerateIpId String
    The id of the Basic Accelerate IP.
    acceleratorId String
    The id of the Global Accelerator Basic Accelerator instance.
    id String
    The id of the Basic Accelerate IP.
    ipSetId String
    The ID of the Basic Ip Set.
    status String
    The status of the Global Accelerator Basic Accelerate IP instance. Valid Value: active, binding, bound, unbinding, deleting.

    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