1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FileStorage
  5. getExportSets
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

oci.FileStorage.getExportSets

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

    This data source provides the list of Export Sets in Oracle Cloud Infrastructure File Storage service.

    Lists the export set resources in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testExportSets = oci.FileStorage.getExportSets({
        availabilityDomain: exportSetAvailabilityDomain,
        compartmentId: compartmentId,
        displayName: exportSetDisplayName,
        id: exportSetId,
        state: exportSetState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_export_sets = oci.FileStorage.get_export_sets(availability_domain=export_set_availability_domain,
        compartment_id=compartment_id,
        display_name=export_set_display_name,
        id=export_set_id,
        state=export_set_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/FileStorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := FileStorage.GetExportSets(ctx, &filestorage.GetExportSetsArgs{
    			AvailabilityDomain: exportSetAvailabilityDomain,
    			CompartmentId:      compartmentId,
    			DisplayName:        pulumi.StringRef(exportSetDisplayName),
    			Id:                 pulumi.StringRef(exportSetId),
    			State:              pulumi.StringRef(exportSetState),
    		}, 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 testExportSets = Oci.FileStorage.GetExportSets.Invoke(new()
        {
            AvailabilityDomain = exportSetAvailabilityDomain,
            CompartmentId = compartmentId,
            DisplayName = exportSetDisplayName,
            Id = exportSetId,
            State = exportSetState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.FileStorage.FileStorageFunctions;
    import com.pulumi.oci.FileStorage.inputs.GetExportSetsArgs;
    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 testExportSets = FileStorageFunctions.getExportSets(GetExportSetsArgs.builder()
                .availabilityDomain(exportSetAvailabilityDomain)
                .compartmentId(compartmentId)
                .displayName(exportSetDisplayName)
                .id(exportSetId)
                .state(exportSetState)
                .build());
    
        }
    }
    
    variables:
      testExportSets:
        fn::invoke:
          Function: oci:FileStorage:getExportSets
          Arguments:
            availabilityDomain: ${exportSetAvailabilityDomain}
            compartmentId: ${compartmentId}
            displayName: ${exportSetDisplayName}
            id: ${exportSetId}
            state: ${exportSetState}
    

    Using getExportSets

    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 getExportSets(args: GetExportSetsArgs, opts?: InvokeOptions): Promise<GetExportSetsResult>
    function getExportSetsOutput(args: GetExportSetsOutputArgs, opts?: InvokeOptions): Output<GetExportSetsResult>
    def get_export_sets(availability_domain: Optional[str] = None,
                        compartment_id: Optional[str] = None,
                        display_name: Optional[str] = None,
                        filters: Optional[Sequence[_filestorage.GetExportSetsFilter]] = None,
                        id: Optional[str] = None,
                        state: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetExportSetsResult
    def get_export_sets_output(availability_domain: Optional[pulumi.Input[str]] = None,
                        compartment_id: Optional[pulumi.Input[str]] = None,
                        display_name: Optional[pulumi.Input[str]] = None,
                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[_filestorage.GetExportSetsFilterArgs]]]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        state: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetExportSetsResult]
    func GetExportSets(ctx *Context, args *GetExportSetsArgs, opts ...InvokeOption) (*GetExportSetsResult, error)
    func GetExportSetsOutput(ctx *Context, args *GetExportSetsOutputArgs, opts ...InvokeOption) GetExportSetsResultOutput

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

    public static class GetExportSets 
    {
        public static Task<GetExportSetsResult> InvokeAsync(GetExportSetsArgs args, InvokeOptions? opts = null)
        public static Output<GetExportSetsResult> Invoke(GetExportSetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExportSetsResult> getExportSets(GetExportSetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FileStorage/getExportSets:getExportSets
      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
    Filters List<GetExportSetsFilter>
    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
    Filters []GetExportSetsFilter
    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
    filters List<GetExportSetsFilter>
    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
    filters GetExportSetsFilter[]
    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
    filters Sequence[filestorage.GetExportSetsFilter]
    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
    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.

    getExportSets Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain the export set 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 export set.
    ExportSets List<GetExportSetsExportSet>
    The list of export_sets.
    DisplayName string
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    Filters List<GetExportSetsFilter>
    Id string
    The OCID of the export set.
    State string
    The current state of the export set.
    AvailabilityDomain string
    The availability domain the export set 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 export set.
    ExportSets []GetExportSetsExportSet
    The list of export_sets.
    DisplayName string
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    Filters []GetExportSetsFilter
    Id string
    The OCID of the export set.
    State string
    The current state of the export set.
    availabilityDomain String
    The availability domain the export set 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 export set.
    exportSets List<GetExportSetsExportSet>
    The list of export_sets.
    displayName String
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    filters List<GetExportSetsFilter>
    id String
    The OCID of the export set.
    state String
    The current state of the export set.
    availabilityDomain string
    The availability domain the export set 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 export set.
    exportSets GetExportSetsExportSet[]
    The list of export_sets.
    displayName string
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    filters GetExportSetsFilter[]
    id string
    The OCID of the export set.
    state string
    The current state of the export set.
    availability_domain str
    The availability domain the export set 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 export set.
    export_sets Sequence[filestorage.GetExportSetsExportSet]
    The list of export_sets.
    display_name str
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    filters Sequence[filestorage.GetExportSetsFilter]
    id str
    The OCID of the export set.
    state str
    The current state of the export set.
    availabilityDomain String
    The availability domain the export set 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 export set.
    exportSets List<Property Map>
    The list of export_sets.
    displayName String
    A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: My export set
    filters List<Property Map>
    id String
    The OCID of the export set.
    state String
    The current state of the export set.

    Supporting Types

    GetExportSetsExportSet

    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
    Id string
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    MaxFsStatBytes string
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    MaxFsStatFiles string
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    MountTargetId string
    State string
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    TimeCreated string
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    VcnId string
    The OCID of the virtual cloud network (VCN) the export set is in.
    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
    Id string
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    MaxFsStatBytes string
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    MaxFsStatFiles string
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    MountTargetId string
    State string
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    TimeCreated string
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    VcnId string
    The OCID of the virtual cloud network (VCN) the export set is in.
    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
    id String
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    maxFsStatBytes String
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    maxFsStatFiles String
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    mountTargetId String
    state String
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    timeCreated String
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    vcnId String
    The OCID of the virtual cloud network (VCN) the export set is in.
    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
    id string
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    maxFsStatBytes string
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    maxFsStatFiles string
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    mountTargetId string
    state string
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    timeCreated string
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    vcnId string
    The OCID of the virtual cloud network (VCN) the export set is in.
    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
    id str
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    max_fs_stat_bytes str
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    max_fs_stat_files str
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    mount_target_id str
    state str
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    time_created str
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    vcn_id str
    The OCID of the virtual cloud network (VCN) the export set is in.
    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
    id String
    Filter results by OCID. Must be an OCID of the correct type for the resouce type.
    maxFsStatBytes String
    Controls the maximum tbytes, fbytes, and abytes, values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tbytes value reported by FSSTAT will be maxFsStatBytes. The value of fbytes and abytes will be maxFsStatBytes minus the metered size of the file system. If the metered size is larger than maxFsStatBytes, then fbytes and abytes will both be '0'.
    maxFsStatFiles String
    Controls the maximum tfiles, ffiles, and afiles values reported by NFS FSSTAT calls through any associated mount targets. This is an advanced feature. For most applications, use the default value. The tfiles value reported by FSSTAT will be maxFsStatFiles. The value of ffiles and afiles will be maxFsStatFiles minus the metered size of the file system. If the metered size is larger than maxFsStatFiles, then ffiles and afiles will both be '0'.
    mountTargetId String
    state String
    Filter results by the specified lifecycle state. Must be a valid state for the resource type.
    timeCreated String
    The date and time the export set was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    vcnId String
    The OCID of the virtual cloud network (VCN) the export set is in.

    GetExportSetsFilter

    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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi