oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.GoldenGate.getDeploymentVersions

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

Returns the list of available deployment versions.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDeploymentVersions = Oci.GoldenGate.GetDeploymentVersions.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DeploymentId = oci_golden_gate_deployment.Test_deployment.Id,
        DeploymentType = @var.Deployment_version_deployment_type,
    });

});
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.GetDeploymentVersions(ctx, &goldengate.GetDeploymentVersionsArgs{
			CompartmentId:  _var.Compartment_id,
			DeploymentId:   pulumi.StringRef(oci_golden_gate_deployment.Test_deployment.Id),
			DeploymentType: pulumi.StringRef(_var.Deployment_version_deployment_type),
		}, 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.GetDeploymentVersionsArgs;
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 testDeploymentVersions = GoldenGateFunctions.getDeploymentVersions(GetDeploymentVersionsArgs.builder()
            .compartmentId(var_.compartment_id())
            .deploymentId(oci_golden_gate_deployment.test_deployment().id())
            .deploymentType(var_.deployment_version_deployment_type())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_deployment_versions = oci.GoldenGate.get_deployment_versions(compartment_id=var["compartment_id"],
    deployment_id=oci_golden_gate_deployment["test_deployment"]["id"],
    deployment_type=var["deployment_version_deployment_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDeploymentVersions = oci.GoldenGate.getDeploymentVersions({
    compartmentId: _var.compartment_id,
    deploymentId: oci_golden_gate_deployment.test_deployment.id,
    deploymentType: _var.deployment_version_deployment_type,
});
variables:
  testDeploymentVersions:
    fn::invoke:
      Function: oci:GoldenGate:getDeploymentVersions
      Arguments:
        compartmentId: ${var.compartment_id}
        deploymentId: ${oci_golden_gate_deployment.test_deployment.id}
        deploymentType: ${var.deployment_version_deployment_type}

Using getDeploymentVersions

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 getDeploymentVersions(args: GetDeploymentVersionsArgs, opts?: InvokeOptions): Promise<GetDeploymentVersionsResult>
function getDeploymentVersionsOutput(args: GetDeploymentVersionsOutputArgs, opts?: InvokeOptions): Output<GetDeploymentVersionsResult>
def get_deployment_versions(compartment_id: Optional[str] = None,
                            deployment_id: Optional[str] = None,
                            deployment_type: Optional[str] = None,
                            filters: Optional[Sequence[_goldengate.GetDeploymentVersionsFilter]] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDeploymentVersionsResult
def get_deployment_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            deployment_id: Optional[pulumi.Input[str]] = None,
                            deployment_type: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetDeploymentVersionsFilterArgs]]]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentVersionsResult]
func GetDeploymentVersions(ctx *Context, args *GetDeploymentVersionsArgs, opts ...InvokeOption) (*GetDeploymentVersionsResult, error)
func GetDeploymentVersionsOutput(ctx *Context, args *GetDeploymentVersionsOutputArgs, opts ...InvokeOption) GetDeploymentVersionsResultOutput

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

public static class GetDeploymentVersions 
{
    public static Task<GetDeploymentVersionsResult> InvokeAsync(GetDeploymentVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDeploymentVersionsResult> Invoke(GetDeploymentVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeploymentVersionsResult> getDeploymentVersions(GetDeploymentVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:GoldenGate/getDeploymentVersions:getDeploymentVersions
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment in which to list resources.

DeploymentId string

The OCID of the deployment in which to list resources.

DeploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

Filters List<GetDeploymentVersionsFilter>
CompartmentId string

The OCID of the compartment in which to list resources.

DeploymentId string

The OCID of the deployment in which to list resources.

DeploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

Filters []GetDeploymentVersionsFilter
compartmentId String

The OCID of the compartment in which to list resources.

deploymentId String

The OCID of the deployment in which to list resources.

deploymentType String

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

filters List<GetDeploymentVersionsFilter>
compartmentId string

The OCID of the compartment in which to list resources.

deploymentId string

The OCID of the deployment in which to list resources.

deploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

filters GetDeploymentVersionsFilter[]
compartment_id str

The OCID of the compartment in which to list resources.

deployment_id str

The OCID of the deployment in which to list resources.

deployment_type str

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

filters GetDeploymentVersionsFilter]
compartmentId String

The OCID of the compartment in which to list resources.

deploymentId String

The OCID of the deployment in which to list resources.

deploymentType String

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

filters List<Property Map>

getDeploymentVersions Result

The following output properties are available:

CompartmentId string
DeploymentVersionCollections List<GetDeploymentVersionsDeploymentVersionCollection>

The list of deployment_version_collection.

Id string

The provider-assigned unique ID for this managed resource.

DeploymentId string
DeploymentType string

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

Filters List<GetDeploymentVersionsFilter>
CompartmentId string
DeploymentVersionCollections []GetDeploymentVersionsDeploymentVersionCollection

The list of deployment_version_collection.

Id string

The provider-assigned unique ID for this managed resource.

DeploymentId string
DeploymentType string

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

Filters []GetDeploymentVersionsFilter
compartmentId String
deploymentVersionCollections List<GetDeploymentVersionsDeploymentVersionCollection>

The list of deployment_version_collection.

id String

The provider-assigned unique ID for this managed resource.

deploymentId String
deploymentType String

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

filters List<GetDeploymentVersionsFilter>
compartmentId string
deploymentVersionCollections GetDeploymentVersionsDeploymentVersionCollection[]

The list of deployment_version_collection.

id string

The provider-assigned unique ID for this managed resource.

deploymentId string
deploymentType string

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

filters GetDeploymentVersionsFilter[]
compartment_id str
deployment_version_collections GetDeploymentVersionsDeploymentVersionCollection]

The list of deployment_version_collection.

id str

The provider-assigned unique ID for this managed resource.

deployment_id str
deployment_type str

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

filters GetDeploymentVersionsFilter]
compartmentId String
deploymentVersionCollections List<Property Map>

The list of deployment_version_collection.

id String

The provider-assigned unique ID for this managed resource.

deploymentId String
deploymentType String

The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of the equivalent 'DATABASE_ORACLE' value.

filters List<Property Map>

Supporting Types

GetDeploymentVersionsDeploymentVersionCollection

items List<Property Map>

Array of DeploymentVersionSummary.

GetDeploymentVersionsDeploymentVersionCollectionItem

DeploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

IsSecurityFix bool

Indicates if OGG release contains security fix.

OggVersion string

Version of OGG

ReleaseType string

The type of release.

TimeReleased string

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

DeploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

IsSecurityFix bool

Indicates if OGG release contains security fix.

OggVersion string

Version of OGG

ReleaseType string

The type of release.

TimeReleased string

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

deploymentType String

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

isSecurityFix Boolean

Indicates if OGG release contains security fix.

oggVersion String

Version of OGG

releaseType String

The type of release.

timeReleased String

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

deploymentType string

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

isSecurityFix boolean

Indicates if OGG release contains security fix.

oggVersion string

Version of OGG

releaseType string

The type of release.

timeReleased string

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

deployment_type str

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

is_security_fix bool

Indicates if OGG release contains security fix.

ogg_version str

Version of OGG

release_type str

The type of release.

time_released str

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

deploymentType String

The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.

isSecurityFix Boolean

Indicates if OGG release contains security fix.

oggVersion String

Version of OGG

releaseType String

The type of release.

timeReleased String

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

GetDeploymentVersionsFilter

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
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.