get Instance Attachments
This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
NOTE: Available in v1.97.0+.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetInstanceAttachmentsArgs;
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 example = CenFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
.instanceId("cen-o40h17ll9w********")
.build());
ctx.export("theFirstAttachmentedInstanceId", example.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].childInstanceId()));
}
}Return
A collection of values returned by getInstanceAttachments.
Parameters
A collection of arguments for invoking getInstanceAttachments.
Return
A collection of values returned by getInstanceAttachments.
See also
Parameters
The region to which the network to be queried belongs.
The type of the associated network. Valid values: VPC, VBR and CCN.
The ID of the CEN instance.
File name where to save data source results (after running pulumi preview).
The status of the Cen Child Instance Attachment. Valid value: Attaching, Attached and Aetaching.
Return
A collection of values returned by getInstanceAttachments.
See also
Parameters
Builder for com.pulumi.alicloud.cen.kotlin.inputs.GetInstanceAttachmentsPlainArgs.