Alibaba Cloud

v3.10.0 published on Wednesday, Nov 24, 2021 by Pulumi

getIpSets

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

NOTE: Available in v1.113.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.Ga.GetIpSets.InvokeAsync(new AliCloud.Ga.GetIpSetsArgs
        {
            AcceleratorId = "example_value",
            Ids = 
            {
                "example_value",
            },
        }));
        this.FirstGaIpSetId = example.Apply(example => example.Sets?[0]?.Id);
    }

    [Output("firstGaIpSetId")]
    public Output<string> FirstGaIpSetId { 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 {
		example, err := ga.GetIpSets(ctx, &ga.GetIpSetsArgs{
			AcceleratorId: "example_value",
			Ids: []string{
				"example_value",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstGaIpSetId", example.Sets[0].Id)
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ga.get_ip_sets(accelerator_id="example_value",
    ids=["example_value"])
pulumi.export("firstGaIpSetId", example.sets[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.ga.getIpSets({
    acceleratorId: "example_value",
    ids: ["example_value"],
});
export const firstGaIpSetId = example.then(example => example.sets?[0]?.id);

Using getIpSets

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 getIpSets(args: GetIpSetsArgs, opts?: InvokeOptions): Promise<GetIpSetsResult>
function getIpSetsOutput(args: GetIpSetsOutputArgs, opts?: InvokeOptions): Output<GetIpSetsResult>
def get_ip_sets(accelerator_id: Optional[str] = None,
                ids: Optional[Sequence[str]] = None,
                output_file: Optional[str] = None,
                status: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetIpSetsResult
def get_ip_sets_output(accelerator_id: Optional[pulumi.Input[str]] = None,
                ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                output_file: Optional[pulumi.Input[str]] = None,
                status: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetIpSetsResult]
func GetIpSets(ctx *Context, args *GetIpSetsArgs, opts ...InvokeOption) (*GetIpSetsResult, error)
func GetIpSetsOutput(ctx *Context, args *GetIpSetsOutputArgs, opts ...InvokeOption) GetIpSetsResultOutput

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

public static class GetIpSets 
{
    public static Task<GetIpSetsResult> InvokeAsync(GetIpSetsArgs args, InvokeOptions? opts = null)
    public static Output<GetIpSetsResult> Invoke(GetIpSetsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AcceleratorId string
The ID of the Global Accelerator (GA) instance.
Ids List<string>
A list of Ip Set IDs.
OutputFile string
Status string
The status of the acceleration region.
AcceleratorId string
The ID of the Global Accelerator (GA) instance.
Ids []string
A list of Ip Set IDs.
OutputFile string
Status string
The status of the acceleration region.
acceleratorId string
The ID of the Global Accelerator (GA) instance.
ids string[]
A list of Ip Set IDs.
outputFile string
status string
The status of the acceleration region.
accelerator_id str
The ID of the Global Accelerator (GA) instance.
ids Sequence[str]
A list of Ip Set IDs.
output_file str
status str
The status of the acceleration region.

getIpSets Result

The following output properties are available:

AcceleratorId string
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Sets List<Pulumi.AliCloud.Ga.Outputs.GetIpSetsSet>
OutputFile string
Status string
AcceleratorId string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Sets []GetIpSetsSet
OutputFile string
Status string
acceleratorId string
id string
The provider-assigned unique ID for this managed resource.
ids string[]
sets GetIpSetsSet[]
outputFile string
status string
accelerator_id str
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
sets Sequence[GetIpSetsSet]
output_file str
status str

Supporting Types

GetIpSetsSet

AccelerateRegionId string
The ID of an acceleration region.
Bandwidth int
The bandwidth allocated to the acceleration region.
Id string
The ID of the Ip Set.
IpAddressLists List<string>
The list of accelerated IP addresses in the acceleration region.
IpSetId string
Accelerated area ID.
IpVersion string
The IP protocol used by the GA instance.
Status string
The status of the acceleration region.
AccelerateRegionId string
The ID of an acceleration region.
Bandwidth int
The bandwidth allocated to the acceleration region.
Id string
The ID of the Ip Set.
IpAddressLists []string
The list of accelerated IP addresses in the acceleration region.
IpSetId string
Accelerated area ID.
IpVersion string
The IP protocol used by the GA instance.
Status string
The status of the acceleration region.
accelerateRegionId string
The ID of an acceleration region.
bandwidth number
The bandwidth allocated to the acceleration region.
id string
The ID of the Ip Set.
ipAddressLists string[]
The list of accelerated IP addresses in the acceleration region.
ipSetId string
Accelerated area ID.
ipVersion string
The IP protocol used by the GA instance.
status string
The status of the acceleration region.
accelerate_region_id str
The ID of an acceleration region.
bandwidth int
The bandwidth allocated to the acceleration region.
id str
The ID of the Ip Set.
ip_address_lists Sequence[str]
The list of accelerated IP addresses in the acceleration region.
ip_set_id str
Accelerated area ID.
ip_version str
The IP protocol used by the GA instance.
status str
The status of the acceleration region.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.