Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getExadataInfrastructureDownloadConfigFile

This data source provides details about a specific Exadata Infrastructure Download Config File resource in Oracle Cloud Infrastructure Database service.

Downloads the configuration file for the specified Exadata Cloud@Customer infrastructure.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testExadataInfrastructureDownloadConfigFile = Oci.Database.GetExadataInfrastructureDownloadConfigFile.Invoke(new()
    {
        ExadataInfrastructureId = oci_database_exadata_infrastructure.Test_exadata_infrastructure.Id,
        Base64EncodeContent = false,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetExadataInfrastructureDownloadConfigFile(ctx, &database.GetExadataInfrastructureDownloadConfigFileArgs{
			ExadataInfrastructureId: oci_database_exadata_infrastructure.Test_exadata_infrastructure.Id,
			Base64EncodeContent:     pulumi.BoolRef(false),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetExadataInfrastructureDownloadConfigFileArgs;
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 testExadataInfrastructureDownloadConfigFile = DatabaseFunctions.getExadataInfrastructureDownloadConfigFile(GetExadataInfrastructureDownloadConfigFileArgs.builder()
            .exadataInfrastructureId(oci_database_exadata_infrastructure.test_exadata_infrastructure().id())
            .base64EncodeContent("false")
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_exadata_infrastructure_download_config_file = oci.Database.get_exadata_infrastructure_download_config_file(exadata_infrastructure_id=oci_database_exadata_infrastructure["test_exadata_infrastructure"]["id"],
    base64_encode_content=False)
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testExadataInfrastructureDownloadConfigFile = oci.Database.getExadataInfrastructureDownloadConfigFile({
    exadataInfrastructureId: oci_database_exadata_infrastructure.test_exadata_infrastructure.id,
    base64EncodeContent: false,
});
variables:
  testExadataInfrastructureDownloadConfigFile:
    Fn::Invoke:
      Function: oci:Database:getExadataInfrastructureDownloadConfigFile
      Arguments:
        exadataInfrastructureId: ${oci_database_exadata_infrastructure.test_exadata_infrastructure.id}
        base64EncodeContent: false

Using getExadataInfrastructureDownloadConfigFile

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 getExadataInfrastructureDownloadConfigFile(args: GetExadataInfrastructureDownloadConfigFileArgs, opts?: InvokeOptions): Promise<GetExadataInfrastructureDownloadConfigFileResult>
function getExadataInfrastructureDownloadConfigFileOutput(args: GetExadataInfrastructureDownloadConfigFileOutputArgs, opts?: InvokeOptions): Output<GetExadataInfrastructureDownloadConfigFileResult>
def get_exadata_infrastructure_download_config_file(base64_encode_content: Optional[bool] = None,
                                                    exadata_infrastructure_id: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetExadataInfrastructureDownloadConfigFileResult
def get_exadata_infrastructure_download_config_file_output(base64_encode_content: Optional[pulumi.Input[bool]] = None,
                                                    exadata_infrastructure_id: Optional[pulumi.Input[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetExadataInfrastructureDownloadConfigFileResult]
func GetExadataInfrastructureDownloadConfigFile(ctx *Context, args *GetExadataInfrastructureDownloadConfigFileArgs, opts ...InvokeOption) (*GetExadataInfrastructureDownloadConfigFileResult, error)
func GetExadataInfrastructureDownloadConfigFileOutput(ctx *Context, args *GetExadataInfrastructureDownloadConfigFileOutputArgs, opts ...InvokeOption) GetExadataInfrastructureDownloadConfigFileResultOutput

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

public static class GetExadataInfrastructureDownloadConfigFile 
{
    public static Task<GetExadataInfrastructureDownloadConfigFileResult> InvokeAsync(GetExadataInfrastructureDownloadConfigFileArgs args, InvokeOptions? opts = null)
    public static Output<GetExadataInfrastructureDownloadConfigFileResult> Invoke(GetExadataInfrastructureDownloadConfigFileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExadataInfrastructureDownloadConfigFileResult> getExadataInfrastructureDownloadConfigFile(GetExadataInfrastructureDownloadConfigFileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getExadataInfrastructureDownloadConfigFile:getExadataInfrastructureDownloadConfigFile
  arguments:
    # arguments dictionary

The following arguments are supported:

ExadataInfrastructureId string

The Exadata infrastructure OCID.

Base64EncodeContent bool
ExadataInfrastructureId string

The Exadata infrastructure OCID.

Base64EncodeContent bool
exadataInfrastructureId String

The Exadata infrastructure OCID.

base64EncodeContent Boolean
exadataInfrastructureId string

The Exadata infrastructure OCID.

base64EncodeContent boolean
exadata_infrastructure_id str

The Exadata infrastructure OCID.

base64_encode_content bool
exadataInfrastructureId String

The Exadata infrastructure OCID.

base64EncodeContent Boolean

getExadataInfrastructureDownloadConfigFile Result

The following output properties are available:

Content string

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

ExadataInfrastructureId string
Id string

The provider-assigned unique ID for this managed resource.

Base64EncodeContent bool
Content string

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

ExadataInfrastructureId string
Id string

The provider-assigned unique ID for this managed resource.

Base64EncodeContent bool
content String

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

exadataInfrastructureId String
id String

The provider-assigned unique ID for this managed resource.

base64EncodeContent Boolean
content string

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

exadataInfrastructureId string
id string

The provider-assigned unique ID for this managed resource.

base64EncodeContent boolean
content str

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

exadata_infrastructure_id str
id str

The provider-assigned unique ID for this managed resource.

base64_encode_content bool
content String

content of the downloaded config file for exadata infrastructure. If base64_encode_content is set to true, then this content will be base64 encoded.

exadataInfrastructureId String
id String

The provider-assigned unique ID for this managed resource.

base64EncodeContent Boolean

Package Details

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

This Pulumi package is based on the oci Terraform Provider.