Oracle Cloud Infrastructure

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

getDeploymentUpgrades

This data source provides the list of Deployment Upgrades in Oracle Cloud Infrastructure Golden Gate service.

Lists the Deployment Upgrades in a compartment.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDeploymentUpgrades = Oci.GoldenGate.GetDeploymentUpgrades.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DeploymentId = oci_golden_gate_deployment.Test_deployment.Id,
        DisplayName = @var.Deployment_upgrade_display_name,
        State = @var.Deployment_upgrade_state,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GoldenGate.GetDeploymentUpgrades(ctx, &goldengate.GetDeploymentUpgradesArgs{
			CompartmentId: _var.Compartment_id,
			DeploymentId:  pulumi.StringRef(oci_golden_gate_deployment.Test_deployment.Id),
			DisplayName:   pulumi.StringRef(_var.Deployment_upgrade_display_name),
			State:         pulumi.StringRef(_var.Deployment_upgrade_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.GoldenGate.GoldenGateFunctions;
import com.pulumi.oci.GoldenGate.inputs.GetDeploymentUpgradesArgs;
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 testDeploymentUpgrades = GoldenGateFunctions.getDeploymentUpgrades(GetDeploymentUpgradesArgs.builder()
            .compartmentId(var_.compartment_id())
            .deploymentId(oci_golden_gate_deployment.test_deployment().id())
            .displayName(var_.deployment_upgrade_display_name())
            .state(var_.deployment_upgrade_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_deployment_upgrades = oci.GoldenGate.get_deployment_upgrades(compartment_id=var["compartment_id"],
    deployment_id=oci_golden_gate_deployment["test_deployment"]["id"],
    display_name=var["deployment_upgrade_display_name"],
    state=var["deployment_upgrade_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDeploymentUpgrades = oci.GoldenGate.getDeploymentUpgrades({
    compartmentId: _var.compartment_id,
    deploymentId: oci_golden_gate_deployment.test_deployment.id,
    displayName: _var.deployment_upgrade_display_name,
    state: _var.deployment_upgrade_state,
});
variables:
  testDeploymentUpgrades:
    Fn::Invoke:
      Function: oci:GoldenGate:getDeploymentUpgrades
      Arguments:
        compartmentId: ${var.compartment_id}
        deploymentId: ${oci_golden_gate_deployment.test_deployment.id}
        displayName: ${var.deployment_upgrade_display_name}
        state: ${var.deployment_upgrade_state}

Using getDeploymentUpgrades

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 getDeploymentUpgrades(args: GetDeploymentUpgradesArgs, opts?: InvokeOptions): Promise<GetDeploymentUpgradesResult>
function getDeploymentUpgradesOutput(args: GetDeploymentUpgradesOutputArgs, opts?: InvokeOptions): Output<GetDeploymentUpgradesResult>
def get_deployment_upgrades(compartment_id: Optional[str] = None,
                            deployment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[_goldengate.GetDeploymentUpgradesFilter]] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDeploymentUpgradesResult
def get_deployment_upgrades_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            deployment_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetDeploymentUpgradesFilterArgs]]]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentUpgradesResult]
func GetDeploymentUpgrades(ctx *Context, args *GetDeploymentUpgradesArgs, opts ...InvokeOption) (*GetDeploymentUpgradesResult, error)
func GetDeploymentUpgradesOutput(ctx *Context, args *GetDeploymentUpgradesOutputArgs, opts ...InvokeOption) GetDeploymentUpgradesResultOutput

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

public static class GetDeploymentUpgrades 
{
    public static Task<GetDeploymentUpgradesResult> InvokeAsync(GetDeploymentUpgradesArgs args, InvokeOptions? opts = null)
    public static Output<GetDeploymentUpgradesResult> Invoke(GetDeploymentUpgradesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeploymentUpgradesResult> getDeploymentUpgrades(GetDeploymentUpgradesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:GoldenGate/getDeploymentUpgrades:getDeploymentUpgrades
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

DeploymentId string

The ID of the deployment in which to list resources.

DisplayName string

A filter to return only the resources that match the entire 'displayName' given.

Filters List<GetDeploymentUpgradesFilter>
State string

A filter to return only the resources that match the 'lifecycleState' given.

CompartmentId string

The ID of the compartment in which to list resources.

DeploymentId string

The ID of the deployment in which to list resources.

DisplayName string

A filter to return only the resources that match the entire 'displayName' given.

Filters []GetDeploymentUpgradesFilter
State string

A filter to return only the resources that match the 'lifecycleState' given.

compartmentId String

The ID of the compartment in which to list resources.

deploymentId String

The ID of the deployment in which to list resources.

displayName String

A filter to return only the resources that match the entire 'displayName' given.

filters List<GetDeploymentUpgradesFilter>
state String

A filter to return only the resources that match the 'lifecycleState' given.

compartmentId string

The ID of the compartment in which to list resources.

deploymentId string

The ID of the deployment in which to list resources.

displayName string

A filter to return only the resources that match the entire 'displayName' given.

filters GetDeploymentUpgradesFilter[]
state string

A filter to return only the resources that match the 'lifecycleState' given.

compartment_id str

The ID of the compartment in which to list resources.

deployment_id str

The ID of the deployment in which to list resources.

display_name str

A filter to return only the resources that match the entire 'displayName' given.

filters GetDeploymentUpgradesFilter]
state str

A filter to return only the resources that match the 'lifecycleState' given.

compartmentId String

The ID of the compartment in which to list resources.

deploymentId String

The ID of the deployment in which to list resources.

displayName String

A filter to return only the resources that match the entire 'displayName' given.

filters List<Property Map>
state String

A filter to return only the resources that match the 'lifecycleState' given.

getDeploymentUpgrades Result

The following output properties are available:

CompartmentId string

The OCID of the compartment being referenced.

DeploymentUpgradeCollections List<GetDeploymentUpgradesDeploymentUpgradeCollection>

The list of deployment_upgrade_collection.

Id string

The provider-assigned unique ID for this managed resource.

DeploymentId string

The OCID of the deployment being referenced.

DisplayName string

An object's Display Name.

Filters List<GetDeploymentUpgradesFilter>
State string

Possible lifecycle states.

CompartmentId string

The OCID of the compartment being referenced.

DeploymentUpgradeCollections []GetDeploymentUpgradesDeploymentUpgradeCollection

The list of deployment_upgrade_collection.

Id string

The provider-assigned unique ID for this managed resource.

DeploymentId string

The OCID of the deployment being referenced.

DisplayName string

An object's Display Name.

Filters []GetDeploymentUpgradesFilter
State string

Possible lifecycle states.

compartmentId String

The OCID of the compartment being referenced.

deploymentUpgradeCollections List<GetDeploymentUpgradesDeploymentUpgradeCollection>

The list of deployment_upgrade_collection.

id String

The provider-assigned unique ID for this managed resource.

deploymentId String

The OCID of the deployment being referenced.

displayName String

An object's Display Name.

filters List<GetDeploymentUpgradesFilter>
state String

Possible lifecycle states.

compartmentId string

The OCID of the compartment being referenced.

deploymentUpgradeCollections GetDeploymentUpgradesDeploymentUpgradeCollection[]

The list of deployment_upgrade_collection.

id string

The provider-assigned unique ID for this managed resource.

deploymentId string

The OCID of the deployment being referenced.

displayName string

An object's Display Name.

filters GetDeploymentUpgradesFilter[]
state string

Possible lifecycle states.

compartment_id str

The OCID of the compartment being referenced.

deployment_upgrade_collections GetDeploymentUpgradesDeploymentUpgradeCollection]

The list of deployment_upgrade_collection.

id str

The provider-assigned unique ID for this managed resource.

deployment_id str

The OCID of the deployment being referenced.

display_name str

An object's Display Name.

filters GetDeploymentUpgradesFilter]
state str

Possible lifecycle states.

compartmentId String

The OCID of the compartment being referenced.

deploymentUpgradeCollections List<Property Map>

The list of deployment_upgrade_collection.

id String

The provider-assigned unique ID for this managed resource.

deploymentId String

The OCID of the deployment being referenced.

displayName String

An object's Display Name.

filters List<Property Map>
state String

Possible lifecycle states.

Supporting Types

GetDeploymentUpgradesDeploymentUpgradeCollection

GetDeploymentUpgradesDeploymentUpgradeCollectionItem

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags Dictionary<string, object>

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DeploymentId string

The ID of the deployment in which to list resources.

DeploymentUpgradeType string

The type of the deployment upgrade: MANUAL or AUTOMATIC

Description string

Metadata about this specific object.

DisplayName string

A filter to return only the resources that match the entire 'displayName' given.

FreeformTags Dictionary<string, object>

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

The OCID of the deployment upgrade being referenced.

LifecycleDetails string

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

LifecycleSubState string

Possible GGS lifecycle sub-states.

OggVersion string

Version of OGG

State string

A filter to return only the resources that match the 'lifecycleState' given.

SystemTags Dictionary<string, object>

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

TimeCreated string

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeFinished string

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeStarted string

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeUpdated string

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags map[string]interface{}

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DeploymentId string

The ID of the deployment in which to list resources.

DeploymentUpgradeType string

The type of the deployment upgrade: MANUAL or AUTOMATIC

Description string

Metadata about this specific object.

DisplayName string

A filter to return only the resources that match the entire 'displayName' given.

FreeformTags map[string]interface{}

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

The OCID of the deployment upgrade being referenced.

LifecycleDetails string

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

LifecycleSubState string

Possible GGS lifecycle sub-states.

OggVersion string

Version of OGG

State string

A filter to return only the resources that match the 'lifecycleState' given.

SystemTags map[string]interface{}

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

TimeCreated string

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeFinished string

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeStarted string

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

TimeUpdated string

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<String,Object>

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

deploymentId String

The ID of the deployment in which to list resources.

deploymentUpgradeType String

The type of the deployment upgrade: MANUAL or AUTOMATIC

description String

Metadata about this specific object.

displayName String

A filter to return only the resources that match the entire 'displayName' given.

freeformTags Map<String,Object>

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

The OCID of the deployment upgrade being referenced.

lifecycleDetails String

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

lifecycleSubState String

Possible GGS lifecycle sub-states.

oggVersion String

Version of OGG

state String

A filter to return only the resources that match the 'lifecycleState' given.

systemTags Map<String,Object>

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

timeCreated String

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeFinished String

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeStarted String

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeUpdated String

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

compartmentId string

The ID of the compartment in which to list resources.

definedTags {[key: string]: any}

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

deploymentId string

The ID of the deployment in which to list resources.

deploymentUpgradeType string

The type of the deployment upgrade: MANUAL or AUTOMATIC

description string

Metadata about this specific object.

displayName string

A filter to return only the resources that match the entire 'displayName' given.

freeformTags {[key: string]: any}

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id string

The OCID of the deployment upgrade being referenced.

lifecycleDetails string

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

lifecycleSubState string

Possible GGS lifecycle sub-states.

oggVersion string

Version of OGG

state string

A filter to return only the resources that match the 'lifecycleState' given.

systemTags {[key: string]: any}

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

timeCreated string

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeFinished string

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeStarted string

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeUpdated string

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

compartment_id str

The ID of the compartment in which to list resources.

defined_tags Mapping[str, Any]

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

deployment_id str

The ID of the deployment in which to list resources.

deployment_upgrade_type str

The type of the deployment upgrade: MANUAL or AUTOMATIC

description str

Metadata about this specific object.

display_name str

A filter to return only the resources that match the entire 'displayName' given.

freeform_tags Mapping[str, Any]

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id str

The OCID of the deployment upgrade being referenced.

lifecycle_details str

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

lifecycle_sub_state str

Possible GGS lifecycle sub-states.

ogg_version str

Version of OGG

state str

A filter to return only the resources that match the 'lifecycleState' given.

system_tags Mapping[str, Any]

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

time_created str

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

time_finished str

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

time_started str

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

time_updated str

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<Any>

Tags defined for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

deploymentId String

The ID of the deployment in which to list resources.

deploymentUpgradeType String

The type of the deployment upgrade: MANUAL or AUTOMATIC

description String

Metadata about this specific object.

displayName String

A filter to return only the resources that match the entire 'displayName' given.

freeformTags Map<Any>

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

The OCID of the deployment upgrade being referenced.

lifecycleDetails String

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

lifecycleSubState String

Possible GGS lifecycle sub-states.

oggVersion String

Version of OGG

state String

A filter to return only the resources that match the 'lifecycleState' given.

systemTags Map<Any>

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

timeCreated String

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeFinished String

The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeStarted String

The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

timeUpdated String

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

GetDeploymentUpgradesFilter

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.