import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Volume Attachments in Oracle Cloud Infrastructure Core service. * * Lists the volume attachments in the specified compartment. You can filter the * list by specifying an instance OCID, volume OCID, or both. * * Currently, the only supported volume attachment type are [IScsiVolumeAttachment](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/IScsiVolumeAttachment/) and * [ParavirtualizedVolumeAttachment](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/ParavirtualizedVolumeAttachment/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVolumeAttachments = oci.core.getVolumeAttachments({ * compartmentId: compartmentId, * availabilityDomain: volumeAttachmentAvailabilityDomain, * instanceId: testInstance.id, * volumeId: testVolume.id, * }); * ``` */ export declare function getVolumeAttachments(args: GetVolumeAttachmentsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVolumeAttachments. */ export interface GetVolumeAttachmentsArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; filters?: inputs.Core.GetVolumeAttachmentsFilter[]; /** * The OCID of the instance. */ instanceId?: string; /** * The OCID of the volume. */ volumeId?: string; } /** * A collection of values returned by getVolumeAttachments. */ export interface GetVolumeAttachmentsResult { /** * The availability domain of an instance. Example: `Uocm:PHX-AD-1` */ readonly availabilityDomain?: string; /** * The OCID of the compartment. */ readonly compartmentId: string; readonly filters?: outputs.Core.GetVolumeAttachmentsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The OCID of the instance the volume is attached to. */ readonly instanceId?: string; /** * The list of volume_attachments. */ readonly volumeAttachments: outputs.Core.GetVolumeAttachmentsVolumeAttachment[]; /** * The OCID of the volume. */ readonly volumeId?: string; } /** * This data source provides the list of Volume Attachments in Oracle Cloud Infrastructure Core service. * * Lists the volume attachments in the specified compartment. You can filter the * list by specifying an instance OCID, volume OCID, or both. * * Currently, the only supported volume attachment type are [IScsiVolumeAttachment](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/IScsiVolumeAttachment/) and * [ParavirtualizedVolumeAttachment](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/ParavirtualizedVolumeAttachment/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVolumeAttachments = oci.core.getVolumeAttachments({ * compartmentId: compartmentId, * availabilityDomain: volumeAttachmentAvailabilityDomain, * instanceId: testInstance.id, * volumeId: testVolume.id, * }); * ``` */ export declare function getVolumeAttachmentsOutput(args: GetVolumeAttachmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVolumeAttachments. */ export interface GetVolumeAttachmentsOutputArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The OCID of the instance. */ instanceId?: pulumi.Input; /** * The OCID of the volume. */ volumeId?: pulumi.Input; } //# sourceMappingURL=getVolumeAttachments.d.ts.map