Alibaba Cloud
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:
- Accelerator
Id string The ID of the global acceleration instance.
- Ids List<string>
A list of Accelerator Spare Ip Attachment IDs.
- Output
File string - Status string
The status of the standby CNAME IP address. Valid values:
active
,inuse
.
- Accelerator
Id string The ID of the global acceleration instance.
- Ids []string
A list of Accelerator Spare Ip Attachment IDs.
- Output
File string - Status string
The status of the standby CNAME IP address. Valid values:
active
,inuse
.
- accelerator
Id String The ID of the global acceleration instance.
- ids List<String>
A list of Accelerator Spare Ip Attachment IDs.
- output
File String - status String
The status of the standby CNAME IP address. Valid values:
active
,inuse
.
- accelerator
Id string The ID of the global acceleration instance.
- ids string[]
A list of Accelerator Spare Ip Attachment IDs.
- output
File 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
.
- accelerator
Id String The ID of the global acceleration instance.
- ids List<String>
A list of Accelerator Spare Ip Attachment IDs.
- output
File String - status String
The status of the standby CNAME IP address. Valid values:
active
,inuse
.
getAcceleratorSpareIpAttachments Result
The following output properties are available:
- Accelerator
Id string - Attachments
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Accelerator Spare Ip Attachments Attachment> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Output
File string - Status string
- Accelerator
Id string - Attachments
[]Get
Accelerator Spare Ip Attachments Attachment - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Output
File string - Status string
- accelerator
Id String - attachments
List<Get
Accelerator Spare Ip Attachments Attachment> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
- accelerator
Id string - attachments
Get
Accelerator Spare Ip Attachments Attachment[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- output
File string - status string
- accelerator_
id str - attachments
Sequence[Get
Accelerator Spare Ip Attachments Attachment] - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- output_
file str - status str
- accelerator
Id String - attachments List<Property Map>
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
Supporting Types
GetAcceleratorSpareIpAttachmentsAttachment
- Accelerator
Id string The ID of the global acceleration instance.
- Id string
The ID of the Accelerator Spare Ip Attachment.
- Spare
Ip 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 string The ID of the global acceleration instance.
- Id string
The ID of the Accelerator Spare Ip Attachment.
- Spare
Ip 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 String The ID of the global acceleration instance.
- id String
The ID of the Accelerator Spare Ip Attachment.
- spare
Ip 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 string The ID of the global acceleration instance.
- id string
The ID of the Accelerator Spare Ip Attachment.
- spare
Ip 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
.
- accelerator
Id String The ID of the global acceleration instance.
- id String
The ID of the Accelerator Spare Ip Attachment.
- spare
Ip 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.