Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.22.0 published on Monday, Jun 27, 2022 by Pulumi

getAcceleratorSpareIpAttachments

This data source provides the Ga Accelerator Spare Ip Attachments of the current Alibaba Cloud user.

NOTE: Available in v1.167.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Ga.GetAcceleratorSpareIpAttachments.InvokeAsync(new AliCloud.Ga.GetAcceleratorSpareIpAttachmentsArgs
        {
            AcceleratorId = "example_value",
            Ids = 
            {
                "example_value-1",
                "example_value-2",
            },
        }));
        this.GaAcceleratorSpareIpAttachmentId1 = ids.Apply(ids => ids.Attachments?[0]?.Id);
    }

    [Output("gaAcceleratorSpareIpAttachmentId1")]
    public Output<string> GaAcceleratorSpareIpAttachmentId1 { 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 {
		ids, err := ga.GetAcceleratorSpareIpAttachments(ctx, &ga.GetAcceleratorSpareIpAttachmentsArgs{
			AcceleratorId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gaAcceleratorSpareIpAttachmentId1", ids.Attachments[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.ga.get_accelerator_spare_ip_attachments(accelerator_id="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("gaAcceleratorSpareIpAttachmentId1", ids.attachments[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.ga.getAcceleratorSpareIpAttachments({
    acceleratorId: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const gaAcceleratorSpareIpAttachmentId1 = ids.then(ids => ids.attachments?[0]?.id);

Coming soon!

Using getAcceleratorSpareIpAttachments

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 getAcceleratorSpareIpAttachments(args: GetAcceleratorSpareIpAttachmentsArgs, opts?: InvokeOptions): Promise<GetAcceleratorSpareIpAttachmentsResult>
function getAcceleratorSpareIpAttachmentsOutput(args: GetAcceleratorSpareIpAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetAcceleratorSpareIpAttachmentsResult>
def get_accelerator_spare_ip_attachments(accelerator_id: Optional[str] = None,
                                         ids: Optional[Sequence[str]] = None,
                                         output_file: Optional[str] = None,
                                         status: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetAcceleratorSpareIpAttachmentsResult
def get_accelerator_spare_ip_attachments_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[GetAcceleratorSpareIpAttachmentsResult]
func GetAcceleratorSpareIpAttachments(ctx *Context, args *GetAcceleratorSpareIpAttachmentsArgs, opts ...InvokeOption) (*GetAcceleratorSpareIpAttachmentsResult, error)
func GetAcceleratorSpareIpAttachmentsOutput(ctx *Context, args *GetAcceleratorSpareIpAttachmentsOutputArgs, opts ...InvokeOption) GetAcceleratorSpareIpAttachmentsResultOutput

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

public static class GetAcceleratorSpareIpAttachments 
{
    public static Task<GetAcceleratorSpareIpAttachmentsResult> InvokeAsync(GetAcceleratorSpareIpAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetAcceleratorSpareIpAttachmentsResult> Invoke(GetAcceleratorSpareIpAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAcceleratorSpareIpAttachmentsResult> getAcceleratorSpareIpAttachments(GetAcceleratorSpareIpAttachmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AcceleratorId string

The ID of the global acceleration instance.

Ids List<string>

A list of Accelerator Spare Ip Attachment IDs.

OutputFile string
Status string

The status of the standby CNAME IP address. Valid values: active, inuse.

AcceleratorId string

The ID of the global acceleration instance.

Ids []string

A list of Accelerator Spare Ip Attachment IDs.

OutputFile string
Status string

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId String

The ID of the global acceleration instance.

ids List<String>

A list of Accelerator Spare Ip Attachment IDs.

outputFile String
status String

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId string

The ID of the global acceleration instance.

ids string[]

A list of Accelerator Spare Ip Attachment IDs.

outputFile string
status string

The status of the standby CNAME IP address. Valid values: active, inuse.

accelerator_id str

The ID of the global acceleration instance.

ids Sequence[str]

A list of Accelerator Spare Ip Attachment IDs.

output_file str
status str

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId String

The ID of the global acceleration instance.

ids List<String>

A list of Accelerator Spare Ip Attachment IDs.

outputFile String
status String

The status of the standby CNAME IP address. Valid values: active, inuse.

getAcceleratorSpareIpAttachments Result

The following output properties are available:

AcceleratorId string
Attachments List<Pulumi.AliCloud.Ga.Outputs.GetAcceleratorSpareIpAttachmentsAttachment>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
OutputFile string
Status string
AcceleratorId string
Attachments []GetAcceleratorSpareIpAttachmentsAttachment
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
OutputFile string
Status string
acceleratorId String
attachments List<GetAcceleratorSpareIpAttachmentsAttachment>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
outputFile String
status String
acceleratorId string
attachments GetAcceleratorSpareIpAttachmentsAttachment[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
outputFile string
status string
accelerator_id str
attachments Sequence[GetAcceleratorSpareIpAttachmentsAttachment]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
output_file str
status str
acceleratorId String
attachments List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
outputFile String
status String

Supporting Types

GetAcceleratorSpareIpAttachmentsAttachment

AcceleratorId string

The ID of the global acceleration instance.

Id string

The ID of the Accelerator Spare Ip Attachment.

SpareIp string

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

Status string

The status of the standby CNAME IP address. Valid values: active, inuse.

AcceleratorId string

The ID of the global acceleration instance.

Id string

The ID of the Accelerator Spare Ip Attachment.

SpareIp string

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

Status string

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId String

The ID of the global acceleration instance.

id String

The ID of the Accelerator Spare Ip Attachment.

spareIp String

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

status String

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId string

The ID of the global acceleration instance.

id string

The ID of the Accelerator Spare Ip Attachment.

spareIp string

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

status string

The status of the standby CNAME IP address. Valid values: active, inuse.

accelerator_id str

The ID of the global acceleration instance.

id str

The ID of the Accelerator Spare Ip Attachment.

spare_ip str

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

status str

The status of the standby CNAME IP address. Valid values: active, inuse.

acceleratorId String

The ID of the global acceleration instance.

id String

The ID of the Accelerator Spare Ip Attachment.

spareIp String

The standby IP address of CNAME. When the acceleration area is abnormal, the traffic is switched to the standby IP address.

status String

The status of the standby CNAME IP address. Valid values: active, inuse.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.