1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getFleetDrsFile
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Jms.getFleetDrsFile

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Fleet Drs File resource in Oracle Cloud Infrastructure Jms service.

    Get the detail about the created DRS file in the Fleet.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetDrsFile = oci.Jms.getFleetDrsFile({
        drsFileKey: fleetDrsFileDrsFileKey,
        fleetId: testFleet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_drs_file = oci.Jms.get_fleet_drs_file(drs_file_key=fleet_drs_file_drs_file_key,
        fleet_id=test_fleet["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Jms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Jms.GetFleetDrsFile(ctx, &jms.GetFleetDrsFileArgs{
    			DrsFileKey: fleetDrsFileDrsFileKey,
    			FleetId:    testFleet.Id,
    		}, 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 testFleetDrsFile = Oci.Jms.GetFleetDrsFile.Invoke(new()
        {
            DrsFileKey = fleetDrsFileDrsFileKey,
            FleetId = testFleet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Jms.JmsFunctions;
    import com.pulumi.oci.Jms.inputs.GetFleetDrsFileArgs;
    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 testFleetDrsFile = JmsFunctions.getFleetDrsFile(GetFleetDrsFileArgs.builder()
                .drsFileKey(fleetDrsFileDrsFileKey)
                .fleetId(testFleet.id())
                .build());
    
        }
    }
    
    variables:
      testFleetDrsFile:
        fn::invoke:
          Function: oci:Jms:getFleetDrsFile
          Arguments:
            drsFileKey: ${fleetDrsFileDrsFileKey}
            fleetId: ${testFleet.id}
    

    Using getFleetDrsFile

    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 getFleetDrsFile(args: GetFleetDrsFileArgs, opts?: InvokeOptions): Promise<GetFleetDrsFileResult>
    function getFleetDrsFileOutput(args: GetFleetDrsFileOutputArgs, opts?: InvokeOptions): Output<GetFleetDrsFileResult>
    def get_fleet_drs_file(drs_file_key: Optional[str] = None,
                           fleet_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetFleetDrsFileResult
    def get_fleet_drs_file_output(drs_file_key: Optional[pulumi.Input[str]] = None,
                           fleet_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetFleetDrsFileResult]
    func GetFleetDrsFile(ctx *Context, args *GetFleetDrsFileArgs, opts ...InvokeOption) (*GetFleetDrsFileResult, error)
    func GetFleetDrsFileOutput(ctx *Context, args *GetFleetDrsFileOutputArgs, opts ...InvokeOption) GetFleetDrsFileResultOutput

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

    public static class GetFleetDrsFile 
    {
        public static Task<GetFleetDrsFileResult> InvokeAsync(GetFleetDrsFileArgs args, InvokeOptions? opts = null)
        public static Output<GetFleetDrsFileResult> Invoke(GetFleetDrsFileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFleetDrsFileResult> getFleetDrsFile(GetFleetDrsFileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getFleetDrsFile:getFleetDrsFile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DrsFileKey string
    The unique identifier of the DRS File in Object Storage.
    FleetId string
    The OCID of the Fleet.
    DrsFileKey string
    The unique identifier of the DRS File in Object Storage.
    FleetId string
    The OCID of the Fleet.
    drsFileKey String
    The unique identifier of the DRS File in Object Storage.
    fleetId String
    The OCID of the Fleet.
    drsFileKey string
    The unique identifier of the DRS File in Object Storage.
    fleetId string
    The OCID of the Fleet.
    drs_file_key str
    The unique identifier of the DRS File in Object Storage.
    fleet_id str
    The OCID of the Fleet.
    drsFileKey String
    The unique identifier of the DRS File in Object Storage.
    fleetId String
    The OCID of the Fleet.

    getFleetDrsFile Result

    The following output properties are available:

    Bucket string
    The Object Storage bucket name where the DRS file is located.
    ChecksumType string
    The checksum type for the DRS file in Object Storage.
    ChecksumValue string
    The checksum value for the DRS file in Object Storage.
    DrsFileKey string
    The unique identifier of the DRS file in Object Storage.
    DrsFileName string
    The name of the DRS file in Object Store.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    To check if the DRS file is the detfault ones.
    Namespace string
    The namespace for Object Storage.
    Bucket string
    The Object Storage bucket name where the DRS file is located.
    ChecksumType string
    The checksum type for the DRS file in Object Storage.
    ChecksumValue string
    The checksum value for the DRS file in Object Storage.
    DrsFileKey string
    The unique identifier of the DRS file in Object Storage.
    DrsFileName string
    The name of the DRS file in Object Store.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    To check if the DRS file is the detfault ones.
    Namespace string
    The namespace for Object Storage.
    bucket String
    The Object Storage bucket name where the DRS file is located.
    checksumType String
    The checksum type for the DRS file in Object Storage.
    checksumValue String
    The checksum value for the DRS file in Object Storage.
    drsFileKey String
    The unique identifier of the DRS file in Object Storage.
    drsFileName String
    The name of the DRS file in Object Store.
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    To check if the DRS file is the detfault ones.
    namespace String
    The namespace for Object Storage.
    bucket string
    The Object Storage bucket name where the DRS file is located.
    checksumType string
    The checksum type for the DRS file in Object Storage.
    checksumValue string
    The checksum value for the DRS file in Object Storage.
    drsFileKey string
    The unique identifier of the DRS file in Object Storage.
    drsFileName string
    The name of the DRS file in Object Store.
    fleetId string
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    To check if the DRS file is the detfault ones.
    namespace string
    The namespace for Object Storage.
    bucket str
    The Object Storage bucket name where the DRS file is located.
    checksum_type str
    The checksum type for the DRS file in Object Storage.
    checksum_value str
    The checksum value for the DRS file in Object Storage.
    drs_file_key str
    The unique identifier of the DRS file in Object Storage.
    drs_file_name str
    The name of the DRS file in Object Store.
    fleet_id str
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    To check if the DRS file is the detfault ones.
    namespace str
    The namespace for Object Storage.
    bucket String
    The Object Storage bucket name where the DRS file is located.
    checksumType String
    The checksum type for the DRS file in Object Storage.
    checksumValue String
    The checksum value for the DRS file in Object Storage.
    drsFileKey String
    The unique identifier of the DRS file in Object Storage.
    drsFileName String
    The name of the DRS file in Object Store.
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    To check if the DRS file is the detfault ones.
    namespace String
    The namespace for Object Storage.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi