Alibaba Cloud
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
})
}
Coming soon!
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);
Coming soon!
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)
}
public static CompletableFuture<GetIpSetsResult> getIpSets(GetIpSetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:ga/getIpSets:getIpSets
Arguments:
# Arguments dictionary
The following arguments are supported:
- Accelerator
Id string The ID of the Global Accelerator (GA) instance.
- Ids List<string>
A list of Ip Set IDs.
- Output
File string - Status string
The status of the acceleration region.
- Accelerator
Id string The ID of the Global Accelerator (GA) instance.
- Ids []string
A list of Ip Set IDs.
- Output
File string - Status string
The status of the acceleration region.
- accelerator
Id String The ID of the Global Accelerator (GA) instance.
- ids List<String>
A list of Ip Set IDs.
- output
File String - status String
The status of the acceleration region.
- accelerator
Id string The ID of the Global Accelerator (GA) instance.
- ids string[]
A list of Ip Set IDs.
- output
File 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.
- accelerator
Id String The ID of the Global Accelerator (GA) instance.
- ids List<String>
A list of Ip Set IDs.
- output
File String - status String
The status of the acceleration region.
getIpSets Result
The following output properties are available:
- Accelerator
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Sets
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Ip Sets Set> - Output
File string - Status string
- Accelerator
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Sets
[]Get
Ip Sets Set - Output
File string - Status string
- accelerator
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- sets
List<Get
Ip Sets Set> - output
File String - status String
- accelerator
Id string - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- sets
Get
Ip Sets Set[] - output
File string - status string
- accelerator_
id str - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- sets
Sequence[Get
Ip Sets Set] - output_
file str - status str
- accelerator
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- sets List<Property Map>
- output
File String - status String
Supporting Types
GetIpSetsSet
- Accelerate
Region stringId The ID of an acceleration region.
- Bandwidth int
The bandwidth allocated to the acceleration region.
- Id string
The ID of the Ip Set.
- Ip
Address List<string>Lists The list of accelerated IP addresses in the acceleration region.
- Ip
Set stringId Accelerated area ID.
- Ip
Version string The IP protocol used by the GA instance.
- Status string
The status of the acceleration region.
- Accelerate
Region stringId The ID of an acceleration region.
- Bandwidth int
The bandwidth allocated to the acceleration region.
- Id string
The ID of the Ip Set.
- Ip
Address []stringLists The list of accelerated IP addresses in the acceleration region.
- Ip
Set stringId Accelerated area ID.
- Ip
Version string The IP protocol used by the GA instance.
- Status string
The status of the acceleration region.
- accelerate
Region StringId The ID of an acceleration region.
- bandwidth Integer
The bandwidth allocated to the acceleration region.
- id String
The ID of the Ip Set.
- ip
Address List<String>Lists The list of accelerated IP addresses in the acceleration region.
- ip
Set StringId Accelerated area ID.
- ip
Version String The IP protocol used by the GA instance.
- status String
The status of the acceleration region.
- accelerate
Region stringId The ID of an acceleration region.
- bandwidth number
The bandwidth allocated to the acceleration region.
- id string
The ID of the Ip Set.
- ip
Address string[]Lists The list of accelerated IP addresses in the acceleration region.
- ip
Set stringId Accelerated area ID.
- ip
Version string The IP protocol used by the GA instance.
- status string
The status of the acceleration region.
- accelerate_
region_ strid 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_ Sequence[str]lists The list of accelerated IP addresses in the acceleration region.
- ip_
set_ strid Accelerated area ID.
- ip_
version str The IP protocol used by the GA instance.
- status str
The status of the acceleration region.
- accelerate
Region StringId The ID of an acceleration region.
- bandwidth Number
The bandwidth allocated to the acceleration region.
- id String
The ID of the Ip Set.
- ip
Address List<String>Lists The list of accelerated IP addresses in the acceleration region.
- ip
Set StringId Accelerated area ID.
- ip
Version String The IP protocol used by the GA instance.
- status String
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.