Oracle Cloud Infrastructure

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

getBdsInstancePatchHistories

This data source provides the list of Bds Instance Patch Histories in Oracle Cloud Infrastructure Big Data Service service.

List the patch history of this cluster.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testBdsInstancePatchHistories = Oci.BigDataService.GetBdsInstancePatchHistories.Invoke(new()
    {
        BdsInstanceId = oci_bds_bds_instance.Test_bds_instance.Id,
        PatchVersion = @var.Bds_instance_patch_history_patch_version,
        State = @var.Bds_instance_patch_history_state,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := BigDataService.GetBdsInstancePatchHistories(ctx, &bigdataservice.GetBdsInstancePatchHistoriesArgs{
			BdsInstanceId: oci_bds_bds_instance.Test_bds_instance.Id,
			PatchVersion:  pulumi.StringRef(_var.Bds_instance_patch_history_patch_version),
			State:         pulumi.StringRef(_var.Bds_instance_patch_history_state),
		}, 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.BigDataService.BigDataServiceFunctions;
import com.pulumi.oci.BigDataService.inputs.GetBdsInstancePatchHistoriesArgs;
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 testBdsInstancePatchHistories = BigDataServiceFunctions.getBdsInstancePatchHistories(GetBdsInstancePatchHistoriesArgs.builder()
            .bdsInstanceId(oci_bds_bds_instance.test_bds_instance().id())
            .patchVersion(var_.bds_instance_patch_history_patch_version())
            .state(var_.bds_instance_patch_history_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_bds_instance_patch_histories = oci.BigDataService.get_bds_instance_patch_histories(bds_instance_id=oci_bds_bds_instance["test_bds_instance"]["id"],
    patch_version=var["bds_instance_patch_history_patch_version"],
    state=var["bds_instance_patch_history_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBdsInstancePatchHistories = oci.BigDataService.getBdsInstancePatchHistories({
    bdsInstanceId: oci_bds_bds_instance.test_bds_instance.id,
    patchVersion: _var.bds_instance_patch_history_patch_version,
    state: _var.bds_instance_patch_history_state,
});
variables:
  testBdsInstancePatchHistories:
    Fn::Invoke:
      Function: oci:BigDataService:getBdsInstancePatchHistories
      Arguments:
        bdsInstanceId: ${oci_bds_bds_instance.test_bds_instance.id}
        patchVersion: ${var.bds_instance_patch_history_patch_version}
        state: ${var.bds_instance_patch_history_state}

Using getBdsInstancePatchHistories

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 getBdsInstancePatchHistories(args: GetBdsInstancePatchHistoriesArgs, opts?: InvokeOptions): Promise<GetBdsInstancePatchHistoriesResult>
function getBdsInstancePatchHistoriesOutput(args: GetBdsInstancePatchHistoriesOutputArgs, opts?: InvokeOptions): Output<GetBdsInstancePatchHistoriesResult>
def get_bds_instance_patch_histories(bds_instance_id: Optional[str] = None,
                                     filters: Optional[Sequence[_bigdataservice.GetBdsInstancePatchHistoriesFilter]] = None,
                                     patch_version: Optional[str] = None,
                                     state: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetBdsInstancePatchHistoriesResult
def get_bds_instance_patch_histories_output(bds_instance_id: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_bigdataservice.GetBdsInstancePatchHistoriesFilterArgs]]]] = None,
                                     patch_version: Optional[pulumi.Input[str]] = None,
                                     state: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetBdsInstancePatchHistoriesResult]
func GetBdsInstancePatchHistories(ctx *Context, args *GetBdsInstancePatchHistoriesArgs, opts ...InvokeOption) (*GetBdsInstancePatchHistoriesResult, error)
func GetBdsInstancePatchHistoriesOutput(ctx *Context, args *GetBdsInstancePatchHistoriesOutputArgs, opts ...InvokeOption) GetBdsInstancePatchHistoriesResultOutput

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

public static class GetBdsInstancePatchHistories 
{
    public static Task<GetBdsInstancePatchHistoriesResult> InvokeAsync(GetBdsInstancePatchHistoriesArgs args, InvokeOptions? opts = null)
    public static Output<GetBdsInstancePatchHistoriesResult> Invoke(GetBdsInstancePatchHistoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBdsInstancePatchHistoriesResult> getBdsInstancePatchHistories(GetBdsInstancePatchHistoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:BigDataService/getBdsInstancePatchHistories:getBdsInstancePatchHistories
  Arguments:
    # Arguments dictionary

The following arguments are supported:

BdsInstanceId string

The OCID of the cluster.

Filters List<GetBdsInstancePatchHistoriesFilter>
PatchVersion string

The version of the patch

State string

The status of the patch.

BdsInstanceId string

The OCID of the cluster.

Filters []GetBdsInstancePatchHistoriesFilter
PatchVersion string

The version of the patch

State string

The status of the patch.

bdsInstanceId String

The OCID of the cluster.

filters List<GetBdsInstancePatchHistoriesFilter>
patchVersion String

The version of the patch

state String

The status of the patch.

bdsInstanceId string

The OCID of the cluster.

filters GetBdsInstancePatchHistoriesFilter[]
patchVersion string

The version of the patch

state string

The status of the patch.

bds_instance_id str

The OCID of the cluster.

filters GetBdsInstancePatchHistoriesFilter]
patch_version str

The version of the patch

state str

The status of the patch.

bdsInstanceId String

The OCID of the cluster.

filters List<Property Map>
patchVersion String

The version of the patch

state String

The status of the patch.

getBdsInstancePatchHistories Result

The following output properties are available:

BdsInstanceId string
Id string

The provider-assigned unique ID for this managed resource.

PatchHistories List<GetBdsInstancePatchHistoriesPatchHistory>

The list of patch_histories.

Filters List<GetBdsInstancePatchHistoriesFilter>
PatchVersion string
State string

The status of this patch.

BdsInstanceId string
Id string

The provider-assigned unique ID for this managed resource.

PatchHistories []GetBdsInstancePatchHistoriesPatchHistory

The list of patch_histories.

Filters []GetBdsInstancePatchHistoriesFilter
PatchVersion string
State string

The status of this patch.

bdsInstanceId String
id String

The provider-assigned unique ID for this managed resource.

patchHistories List<GetBdsInstancePatchHistoriesPatchHistory>

The list of patch_histories.

filters List<GetBdsInstancePatchHistoriesFilter>
patchVersion String
state String

The status of this patch.

bdsInstanceId string
id string

The provider-assigned unique ID for this managed resource.

patchHistories GetBdsInstancePatchHistoriesPatchHistory[]

The list of patch_histories.

filters GetBdsInstancePatchHistoriesFilter[]
patchVersion string
state string

The status of this patch.

bds_instance_id str
id str

The provider-assigned unique ID for this managed resource.

patch_histories GetBdsInstancePatchHistoriesPatchHistory]

The list of patch_histories.

filters GetBdsInstancePatchHistoriesFilter]
patch_version str
state str

The status of this patch.

bdsInstanceId String
id String

The provider-assigned unique ID for this managed resource.

patchHistories List<Property Map>

The list of patch_histories.

filters List<Property Map>
patchVersion String
state String

The status of this patch.

Supporting Types

GetBdsInstancePatchHistoriesFilter

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

GetBdsInstancePatchHistoriesPatchHistory

State string

The status of the patch.

TimeUpdated string

The time when the patch history was last updated.

Version string

The version of the patch.

State string

The status of the patch.

TimeUpdated string

The time when the patch history was last updated.

Version string

The version of the patch.

state String

The status of the patch.

timeUpdated String

The time when the patch history was last updated.

version String

The version of the patch.

state string

The status of the patch.

timeUpdated string

The time when the patch history was last updated.

version string

The version of the patch.

state str

The status of the patch.

time_updated str

The time when the patch history was last updated.

version str

The version of the patch.

state String

The status of the patch.

timeUpdated String

The time when the patch history was last updated.

version String

The version of the patch.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.