oci.Desktops.getDesktopPoolVolumes
Explore with Pulumi AI
This data source provides the list of Desktop Pool Volumes in Oracle Cloud Infrastructure Desktops service.
Returns a list of volumes within the given desktop pool. You can limit the results to an availability domain, volume name, or volume state. You can limit the number of results returned, sort the results by time or name, and sort in ascending or descending order.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDesktopPoolVolumes = oci.Desktops.getDesktopPoolVolumes({
compartmentId: compartmentId,
desktopPoolId: testDesktopPool.id,
availabilityDomain: desktopPoolVolumeAvailabilityDomain,
displayName: desktopPoolVolumeDisplayName,
id: desktopPoolVolumeId,
state: desktopPoolVolumeState,
});
import pulumi
import pulumi_oci as oci
test_desktop_pool_volumes = oci.Desktops.get_desktop_pool_volumes(compartment_id=compartment_id,
desktop_pool_id=test_desktop_pool["id"],
availability_domain=desktop_pool_volume_availability_domain,
display_name=desktop_pool_volume_display_name,
id=desktop_pool_volume_id,
state=desktop_pool_volume_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Desktops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Desktops.GetDesktopPoolVolumes(ctx, &desktops.GetDesktopPoolVolumesArgs{
CompartmentId: compartmentId,
DesktopPoolId: testDesktopPool.Id,
AvailabilityDomain: pulumi.StringRef(desktopPoolVolumeAvailabilityDomain),
DisplayName: pulumi.StringRef(desktopPoolVolumeDisplayName),
Id: pulumi.StringRef(desktopPoolVolumeId),
State: pulumi.StringRef(desktopPoolVolumeState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDesktopPoolVolumes = Oci.Desktops.GetDesktopPoolVolumes.Invoke(new()
{
CompartmentId = compartmentId,
DesktopPoolId = testDesktopPool.Id,
AvailabilityDomain = desktopPoolVolumeAvailabilityDomain,
DisplayName = desktopPoolVolumeDisplayName,
Id = desktopPoolVolumeId,
State = desktopPoolVolumeState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Desktops.DesktopsFunctions;
import com.pulumi.oci.Desktops.inputs.GetDesktopPoolVolumesArgs;
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 testDesktopPoolVolumes = DesktopsFunctions.getDesktopPoolVolumes(GetDesktopPoolVolumesArgs.builder()
.compartmentId(compartmentId)
.desktopPoolId(testDesktopPool.id())
.availabilityDomain(desktopPoolVolumeAvailabilityDomain)
.displayName(desktopPoolVolumeDisplayName)
.id(desktopPoolVolumeId)
.state(desktopPoolVolumeState)
.build());
}
}
variables:
testDesktopPoolVolumes:
fn::invoke:
Function: oci:Desktops:getDesktopPoolVolumes
Arguments:
compartmentId: ${compartmentId}
desktopPoolId: ${testDesktopPool.id}
availabilityDomain: ${desktopPoolVolumeAvailabilityDomain}
displayName: ${desktopPoolVolumeDisplayName}
id: ${desktopPoolVolumeId}
state: ${desktopPoolVolumeState}
Using getDesktopPoolVolumes
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 getDesktopPoolVolumes(args: GetDesktopPoolVolumesArgs, opts?: InvokeOptions): Promise<GetDesktopPoolVolumesResult>
function getDesktopPoolVolumesOutput(args: GetDesktopPoolVolumesOutputArgs, opts?: InvokeOptions): Output<GetDesktopPoolVolumesResult>
def get_desktop_pool_volumes(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
desktop_pool_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_desktops.GetDesktopPoolVolumesFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDesktopPoolVolumesResult
def get_desktop_pool_volumes_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
desktop_pool_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_desktops.GetDesktopPoolVolumesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDesktopPoolVolumesResult]
func GetDesktopPoolVolumes(ctx *Context, args *GetDesktopPoolVolumesArgs, opts ...InvokeOption) (*GetDesktopPoolVolumesResult, error)
func GetDesktopPoolVolumesOutput(ctx *Context, args *GetDesktopPoolVolumesOutputArgs, opts ...InvokeOption) GetDesktopPoolVolumesResultOutput
> Note: This function is named GetDesktopPoolVolumes
in the Go SDK.
public static class GetDesktopPoolVolumes
{
public static Task<GetDesktopPoolVolumesResult> InvokeAsync(GetDesktopPoolVolumesArgs args, InvokeOptions? opts = null)
public static Output<GetDesktopPoolVolumesResult> Invoke(GetDesktopPoolVolumesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDesktopPoolVolumesResult> getDesktopPoolVolumes(GetDesktopPoolVolumesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Desktops/getDesktopPoolVolumes:getDesktopPoolVolumes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment of the desktop pool.
- Desktop
Pool stringId - The OCID of the desktop pool.
- Availability
Domain string - The name of the availability domain.
- Display
Name string - A filter to return only results with the given displayName.
- Filters
List<Get
Desktop Pool Volumes Filter> - Id string
- A filter to return only results with the given OCID.
- State string
- A filter to return only results with the given lifecycleState.
- Compartment
Id string - The OCID of the compartment of the desktop pool.
- Desktop
Pool stringId - The OCID of the desktop pool.
- Availability
Domain string - The name of the availability domain.
- Display
Name string - A filter to return only results with the given displayName.
- Filters
[]Get
Desktop Pool Volumes Filter - Id string
- A filter to return only results with the given OCID.
- State string
- A filter to return only results with the given lifecycleState.
- compartment
Id String - The OCID of the compartment of the desktop pool.
- desktop
Pool StringId - The OCID of the desktop pool.
- availability
Domain String - The name of the availability domain.
- display
Name String - A filter to return only results with the given displayName.
- filters
List<Get
Desktop Pool Volumes Filter> - id String
- A filter to return only results with the given OCID.
- state String
- A filter to return only results with the given lifecycleState.
- compartment
Id string - The OCID of the compartment of the desktop pool.
- desktop
Pool stringId - The OCID of the desktop pool.
- availability
Domain string - The name of the availability domain.
- display
Name string - A filter to return only results with the given displayName.
- filters
Get
Desktop Pool Volumes Filter[] - id string
- A filter to return only results with the given OCID.
- state string
- A filter to return only results with the given lifecycleState.
- compartment_
id str - The OCID of the compartment of the desktop pool.
- desktop_
pool_ strid - The OCID of the desktop pool.
- availability_
domain str - The name of the availability domain.
- display_
name str - A filter to return only results with the given displayName.
- filters
Sequence[desktops.
Get Desktop Pool Volumes Filter] - id str
- A filter to return only results with the given OCID.
- state str
- A filter to return only results with the given lifecycleState.
- compartment
Id String - The OCID of the compartment of the desktop pool.
- desktop
Pool StringId - The OCID of the desktop pool.
- availability
Domain String - The name of the availability domain.
- display
Name String - A filter to return only results with the given displayName.
- filters List<Property Map>
- id String
- A filter to return only results with the given OCID.
- state String
- A filter to return only results with the given lifecycleState.
getDesktopPoolVolumes Result
The following output properties are available:
- Compartment
Id string - Desktop
Pool stringId - Desktop
Pool List<GetVolume Collections Desktop Pool Volumes Desktop Pool Volume Collection> - The list of desktop_pool_volume_collection.
- Availability
Domain string - The availability domain of the desktop pool.
- Display
Name string - Filters
List<Get
Desktop Pool Volumes Filter> - Id string
- The OCID of the desktop pool volume.
- State string
- The state of the desktop pool volume.
- Compartment
Id string - Desktop
Pool stringId - Desktop
Pool []GetVolume Collections Desktop Pool Volumes Desktop Pool Volume Collection - The list of desktop_pool_volume_collection.
- Availability
Domain string - The availability domain of the desktop pool.
- Display
Name string - Filters
[]Get
Desktop Pool Volumes Filter - Id string
- The OCID of the desktop pool volume.
- State string
- The state of the desktop pool volume.
- compartment
Id String - desktop
Pool StringId - desktop
Pool List<GetVolume Collections Desktop Pool Volumes Desktop Pool Volume Collection> - The list of desktop_pool_volume_collection.
- availability
Domain String - The availability domain of the desktop pool.
- display
Name String - filters
List<Get
Desktop Pool Volumes Filter> - id String
- The OCID of the desktop pool volume.
- state String
- The state of the desktop pool volume.
- compartment
Id string - desktop
Pool stringId - desktop
Pool GetVolume Collections Desktop Pool Volumes Desktop Pool Volume Collection[] - The list of desktop_pool_volume_collection.
- availability
Domain string - The availability domain of the desktop pool.
- display
Name string - filters
Get
Desktop Pool Volumes Filter[] - id string
- The OCID of the desktop pool volume.
- state string
- The state of the desktop pool volume.
- compartment_
id str - desktop_
pool_ strid - desktop_
pool_ Sequence[desktops.volume_ collections Get Desktop Pool Volumes Desktop Pool Volume Collection] - The list of desktop_pool_volume_collection.
- availability_
domain str - The availability domain of the desktop pool.
- display_
name str - filters
Sequence[desktops.
Get Desktop Pool Volumes Filter] - id str
- The OCID of the desktop pool volume.
- state str
- The state of the desktop pool volume.
- compartment
Id String - desktop
Pool StringId - desktop
Pool List<Property Map>Volume Collections - The list of desktop_pool_volume_collection.
- availability
Domain String - The availability domain of the desktop pool.
- display
Name String - filters List<Property Map>
- id String
- The OCID of the desktop pool volume.
- state String
- The state of the desktop pool volume.
Supporting Types
GetDesktopPoolVolumesDesktopPoolVolumeCollection
- Items
List<Get
Desktop Pool Volumes Desktop Pool Volume Collection Item> - A list of desktop pool volumes.
- Items
[]Get
Desktop Pool Volumes Desktop Pool Volume Collection Item - A list of desktop pool volumes.
- items
List<Get
Desktop Pool Volumes Desktop Pool Volume Collection Item> - A list of desktop pool volumes.
- items
Get
Desktop Pool Volumes Desktop Pool Volume Collection Item[] - A list of desktop pool volumes.
- items
Sequence[desktops.
Get Desktop Pool Volumes Desktop Pool Volume Collection Item] - A list of desktop pool volumes.
- items List<Property Map>
- A list of desktop pool volumes.
GetDesktopPoolVolumesDesktopPoolVolumeCollectionItem
- Availability
Domain string - The name of the availability domain.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- A filter to return only results with the given OCID.
- Name string
- The name of the desktop pool volume.
- Pool
Id string - The OCID of the desktop pool to which this volume belongs.
- State string
- A filter to return only results with the given lifecycleState.
- User
Name string - The owner of the desktop pool volume.
- Availability
Domain string - The name of the availability domain.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- A filter to return only results with the given OCID.
- Name string
- The name of the desktop pool volume.
- Pool
Id string - The OCID of the desktop pool to which this volume belongs.
- State string
- A filter to return only results with the given lifecycleState.
- User
Name string - The owner of the desktop pool volume.
- availability
Domain String - The name of the availability domain.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- A filter to return only results with the given OCID.
- name String
- The name of the desktop pool volume.
- pool
Id String - The OCID of the desktop pool to which this volume belongs.
- state String
- A filter to return only results with the given lifecycleState.
- user
Name String - The owner of the desktop pool volume.
- availability
Domain string - The name of the availability domain.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- A filter to return only results with the given OCID.
- name string
- The name of the desktop pool volume.
- pool
Id string - The OCID of the desktop pool to which this volume belongs.
- state string
- A filter to return only results with the given lifecycleState.
- user
Name string - The owner of the desktop pool volume.
- availability_
domain str - The name of the availability domain.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- A filter to return only results with the given OCID.
- name str
- The name of the desktop pool volume.
- pool_
id str - The OCID of the desktop pool to which this volume belongs.
- state str
- A filter to return only results with the given lifecycleState.
- user_
name str - The owner of the desktop pool volume.
- availability
Domain String - The name of the availability domain.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- A filter to return only results with the given OCID.
- name String
- The name of the desktop pool volume.
- pool
Id String - The OCID of the desktop pool to which this volume belongs.
- state String
- A filter to return only results with the given lifecycleState.
- user
Name String - The owner of the desktop pool volume.
GetDesktopPoolVolumesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.