Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Jms.getFleetDrsFile
Explore with Pulumi AI
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)
public static Output<GetFleetDrsFileResult> getFleetDrsFile(GetFleetDrsFileArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getFleetDrsFile:getFleetDrsFile
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DrsFile stringKey 
- The unique identifier of the DRS File in Object Storage.
- FleetId string
- The OCID of the Fleet.
- DrsFile stringKey 
- The unique identifier of the DRS File in Object Storage.
- FleetId string
- The OCID of the Fleet.
- drsFile StringKey 
- The unique identifier of the DRS File in Object Storage.
- fleetId String
- The OCID of the Fleet.
- drsFile stringKey 
- The unique identifier of the DRS File in Object Storage.
- fleetId string
- The OCID of the Fleet.
- drs_file_ strkey 
- The unique identifier of the DRS File in Object Storage.
- fleet_id str
- The OCID of the Fleet.
- drsFile StringKey 
- 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.
- DrsFile stringKey 
- The unique identifier of the DRS file in Object Storage.
- DrsFile stringName 
- 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.
- DrsFile stringKey 
- The unique identifier of the DRS file in Object Storage.
- DrsFile stringName 
- 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.
- drsFile StringKey 
- The unique identifier of the DRS file in Object Storage.
- drsFile StringName 
- 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.
- drsFile stringKey 
- The unique identifier of the DRS file in Object Storage.
- drsFile stringName 
- 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_ strkey 
- The unique identifier of the DRS file in Object Storage.
- drs_file_ strname 
- 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.
- drsFile StringKey 
- The unique identifier of the DRS file in Object Storage.
- drsFile StringName 
- 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 ociTerraform Provider.