Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getMountTargets

This data source provides the list of Mount Targets in Oracle Cloud Infrastructure File Storage service.

Lists the mount target resources in the specified compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testMountTargets = Output.Create(Oci.FileStorage.GetMountTargets.InvokeAsync(new Oci.FileStorage.GetMountTargetsArgs
        {
            AvailabilityDomain = @var.Mount_target_availability_domain,
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Mount_target_display_name,
            ExportSetId = oci_file_storage_export_set.Test_export_set.Id,
            Id = @var.Mount_target_id,
            State = @var.Mount_target_state,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/FileStorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := FileStorage.GetMountTargets(ctx, &filestorage.GetMountTargetsArgs{
			AvailabilityDomain: _var.Mount_target_availability_domain,
			CompartmentId:      _var.Compartment_id,
			DisplayName:        pulumi.StringRef(_var.Mount_target_display_name),
			ExportSetId:        pulumi.StringRef(oci_file_storage_export_set.Test_export_set.Id),
			Id:                 pulumi.StringRef(_var.Mount_target_id),
			State:              pulumi.StringRef(_var.Mount_target_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_mount_targets = oci.FileStorage.get_mount_targets(availability_domain=var["mount_target_availability_domain"],
    compartment_id=var["compartment_id"],
    display_name=var["mount_target_display_name"],
    export_set_id=oci_file_storage_export_set["test_export_set"]["id"],
    id=var["mount_target_id"],
    state=var["mount_target_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMountTargets = oci.FileStorage.getMountTargets({
    availabilityDomain: _var.mount_target_availability_domain,
    compartmentId: _var.compartment_id,
    displayName: _var.mount_target_display_name,
    exportSetId: oci_file_storage_export_set.test_export_set.id,
    id: _var.mount_target_id,
    state: _var.mount_target_state,
});

Coming soon!

Using getMountTargets

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 getMountTargets(args: GetMountTargetsArgs, opts?: InvokeOptions): Promise<GetMountTargetsResult>
function getMountTargetsOutput(args: GetMountTargetsOutputArgs, opts?: InvokeOptions): Output<GetMountTargetsResult>
def get_mount_targets(availability_domain: Optional[str] = None,
                      compartment_id: Optional[str] = None,
                      display_name: Optional[str] = None,
                      export_set_id: Optional[str] = None,
                      filters: Optional[Sequence[_filestorage.GetMountTargetsFilter]] = None,
                      id: Optional[str] = None,
                      state: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetMountTargetsResult
def get_mount_targets_output(availability_domain: Optional[pulumi.Input[str]] = None,
                      compartment_id: Optional[pulumi.Input[str]] = None,
                      display_name: Optional[pulumi.Input[str]] = None,
                      export_set_id: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_filestorage.GetMountTargetsFilterArgs]]]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      state: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetMountTargetsResult]
func GetMountTargets(ctx *Context, args *GetMountTargetsArgs, opts ...InvokeOption) (*GetMountTargetsResult, error)
func GetMountTargetsOutput(ctx *Context, args *GetMountTargetsOutputArgs, opts ...InvokeOption) GetMountTargetsResultOutput

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

public static class GetMountTargets 
{
    public static Task<GetMountTargetsResult> InvokeAsync(GetMountTargetsArgs args, InvokeOptions? opts = null)
    public static Output<GetMountTargetsResult> Invoke(GetMountTargetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMountTargetsResult> getMountTargets(GetMountTargetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:FileStorage/getMountTargets:getMountTargets
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

ExportSetId string

The OCID of the export set.

Filters List<GetMountTargetsFilter>
Id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

ExportSetId string

The OCID of the export set.

Filters []GetMountTargetsFilter
Id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId String

The OCID of the export set.

filters List<GetMountTargetsFilter>
id String

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId string

The OCID of the compartment.

displayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId string

The OCID of the export set.

filters GetMountTargetsFilter[]
id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

state string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

compartment_id str

The OCID of the compartment.

display_name str

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

export_set_id str

The OCID of the export set.

filters GetMountTargetsFilter]
id str

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

state str

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId String

The OCID of the export set.

filters List<Property Map>
id String

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

getMountTargets Result

The following output properties are available:

AvailabilityDomain string

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment that contains the mount target.

MountTargets List<GetMountTargetsMountTarget>

The list of mount_targets.

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

ExportSetId string

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

Filters List<GetMountTargetsFilter>
Id string

The OCID of the mount target.

State string

The current state of the mount target.

AvailabilityDomain string

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment that contains the mount target.

MountTargets []GetMountTargetsMountTarget

The list of mount_targets.

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

ExportSetId string

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

Filters []GetMountTargetsFilter
Id string

The OCID of the mount target.

State string

The current state of the mount target.

availabilityDomain String

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment that contains the mount target.

mountTargets List<GetMountTargetsMountTarget>

The list of mount_targets.

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

exportSetId String

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

filters List<GetMountTargetsFilter>
id String

The OCID of the mount target.

state String

The current state of the mount target.

availabilityDomain string

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

compartmentId string

The OCID of the compartment that contains the mount target.

mountTargets GetMountTargetsMountTarget[]

The list of mount_targets.

displayName string

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

exportSetId string

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

filters GetMountTargetsFilter[]
id string

The OCID of the mount target.

state string

The current state of the mount target.

availability_domain str

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

compartment_id str

The OCID of the compartment that contains the mount target.

mount_targets GetMountTargetsMountTarget]

The list of mount_targets.

display_name str

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

export_set_id str

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

filters GetMountTargetsFilter]
id str

The OCID of the mount target.

state str

The current state of the mount target.

availabilityDomain String

The availability domain the mount target is in. May be unset as a blank or NULL value. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment that contains the mount target.

mountTargets List<Property Map>

The list of mount_targets.

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My mount target

exportSetId String

The OCID of the associated export set. Controls what file systems will be exported through Network File System (NFS) protocol on this mount target.

filters List<Property Map>
id String

The OCID of the mount target.

state String

The current state of the mount target.

Supporting Types

GetMountTargetsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetMountTargetsMountTarget

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

ExportSetId string

The OCID of the export set.

FreeformTags Dictionary<string, object>

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"}

HostnameLabel string
Id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

IpAddress string
LifecycleDetails string

Additional information about the current 'lifecycleState'.

NsgIds List<string>

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

PrivateIpIds List<string>

The OCIDs of the private IP addresses associated with this mount target.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

SubnetId string

The OCID of the subnet the mount target is in.

TimeCreated string

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

ExportSetId string

The OCID of the export set.

FreeformTags map[string]interface{}

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"}

HostnameLabel string
Id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

IpAddress string
LifecycleDetails string

Additional information about the current 'lifecycleState'.

NsgIds []string

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

PrivateIpIds []string

The OCIDs of the private IP addresses associated with this mount target.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

SubnetId string

The OCID of the subnet the mount target is in.

TimeCreated string

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId String

The OCID of the export set.

freeformTags Map<String,Object>

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"}

hostnameLabel String
id String

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

ipAddress String
lifecycleDetails String

Additional information about the current 'lifecycleState'.

nsgIds List<String>

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

privateIpIds List<String>

The OCIDs of the private IP addresses associated with this mount target.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

subnetId String

The OCID of the subnet the mount target is in.

timeCreated String

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId string

The OCID of the export set.

freeformTags {[key: string]: any}

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"}

hostnameLabel string
id string

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

ipAddress string
lifecycleDetails string

Additional information about the current 'lifecycleState'.

nsgIds string[]

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

privateIpIds string[]

The OCIDs of the private IP addresses associated with this mount target.

state string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

subnetId string

The OCID of the subnet the mount target is in.

timeCreated string

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

compartment_id str

The OCID of the compartment.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

export_set_id str

The OCID of the export set.

freeform_tags Mapping[str, Any]

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"}

hostname_label str
id str

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

ip_address str
lifecycle_details str

Additional information about the current 'lifecycleState'.

nsg_ids Sequence[str]

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

private_ip_ids Sequence[str]

The OCIDs of the private IP addresses associated with this mount target.

state str

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

subnet_id str

The OCID of the subnet the mount target is in.

time_created str

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource

exportSetId String

The OCID of the export set.

freeformTags Map<Any>

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"}

hostnameLabel String
id String

Filter results by OCID. Must be an OCID of the correct type for the resouce type.

ipAddress String
lifecycleDetails String

Additional information about the current 'lifecycleState'.

nsgIds List<String>

A list of Network Security Group OCIDs associated with this mount target. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the mount target from all NSGs. For more information about NSGs, see Security Rules.

privateIpIds List<String>

The OCIDs of the private IP addresses associated with this mount target.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

subnetId String

The OCID of the subnet the mount target is in.

timeCreated String

The date and time the mount target was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

Package Details

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

This Pulumi package is based on the oci Terraform Provider.