Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.ga.getBasicAccelerateIps
Explore with Pulumi AI
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:
- Ip
Set stringId - The ID of the Basic Ip Set.
- Accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Ids List<string>
- A list of Global Accelerator Basic Accelerate IP IDs.
- Output
File 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 stringId - The ID of the Basic Ip Set.
- Accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Ids []string
- A list of Global Accelerator Basic Accelerate IP IDs.
- Output
File 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 StringId - The ID of the Basic Ip Set.
- accelerate
Ip StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- ids List<String>
- A list of Global Accelerator Basic Accelerate IP IDs.
- output
File 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 stringId - The ID of the Basic Ip Set.
- accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip stringId - The id of the Basic Accelerate IP.
- ids string[]
- A list of Global Accelerator Basic Accelerate IP IDs.
- output
File 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_ strid - The ID of the Basic Ip Set.
- accelerate_
ip_ straddress - The address of the Basic Accelerate IP.
- accelerate_
ip_ strid - 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
.
- ip
Set StringId - The ID of the Basic Ip Set.
- accelerate
Ip StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- ids List<String>
- A list of Global Accelerator Basic Accelerate IP IDs.
- output
File 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>
- Ip
Set stringId - The ID of the Basic Ip Set.
- Ips
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Basic Accelerate Ips Ip> - A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
- Accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Output
File string - Status string
- The status of the Basic Accelerate IP instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Ip
Set stringId - The ID of the Basic Ip Set.
- Ips
[]Get
Basic Accelerate Ips Ip - A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
- Accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Output
File 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>
- ip
Set StringId - The ID of the Basic Ip Set.
- ips
List<Get
Basic Accelerate Ips Ip> - A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
- accelerate
Ip StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- output
File String - status String
- The status of the Basic Accelerate IP instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- ip
Set stringId - The ID of the Basic Ip Set.
- ips
Get
Basic Accelerate Ips Ip[] - A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
- accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip stringId - The id of the Basic Accelerate IP.
- output
File 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_ strid - The ID of the Basic Ip Set.
- ips
Sequence[Get
Basic Accelerate Ips Ip] - A list of Global Accelerator Basic Accelerate IPs. Each element contains the following attributes:
- accelerate_
ip_ straddress - The address of the Basic Accelerate IP.
- accelerate_
ip_ strid - 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>
- ip
Set StringId - 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:
- accelerate
Ip StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- output
File String - status String
- The status of the Basic Accelerate IP instance.
Supporting Types
GetBasicAccelerateIpsIp
- Accelerate
Ip stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Accelerator
Id string - The id of the Global Accelerator Basic Accelerator instance.
- Id string
- The id of the Basic Accelerate IP.
- Ip
Set stringId - 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 stringAddress - The address of the Basic Accelerate IP.
- Accelerate
Ip stringId - The id of the Basic Accelerate IP.
- Accelerator
Id string - The id of the Global Accelerator Basic Accelerator instance.
- Id string
- The id of the Basic Accelerate IP.
- Ip
Set stringId - 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 StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- accelerator
Id String - The id of the Global Accelerator Basic Accelerator instance.
- id String
- The id of the Basic Accelerate IP.
- ip
Set StringId - 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 stringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip stringId - The id of the Basic Accelerate IP.
- accelerator
Id string - The id of the Global Accelerator Basic Accelerator instance.
- id string
- The id of the Basic Accelerate IP.
- ip
Set stringId - 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_ straddress - The address of the Basic Accelerate IP.
- accelerate_
ip_ strid - 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_ strid - 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
.
- accelerate
Ip StringAddress - The address of the Basic Accelerate IP.
- accelerate
Ip StringId - The id of the Basic Accelerate IP.
- accelerator
Id String - The id of the Global Accelerator Basic Accelerator instance.
- id String
- The id of the Basic Accelerate IP.
- ip
Set StringId - 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.