oci.GoldenGate.getDeploymentBackups
This data source provides the list of Deployment Backups in Oracle Cloud Infrastructure Golden Gate service.
Lists the Backups in a compartment.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDeploymentBackups = Oci.GoldenGate.GetDeploymentBackups.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DeploymentId = oci_golden_gate_deployment.Test_deployment.Id,
DisplayName = @var.Deployment_backup_display_name,
State = @var.Deployment_backup_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.GetDeploymentBackups(ctx, &goldengate.GetDeploymentBackupsArgs{
CompartmentId: _var.Compartment_id,
DeploymentId: pulumi.StringRef(oci_golden_gate_deployment.Test_deployment.Id),
DisplayName: pulumi.StringRef(_var.Deployment_backup_display_name),
State: pulumi.StringRef(_var.Deployment_backup_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.GetDeploymentBackupsArgs;
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 testDeploymentBackups = GoldenGateFunctions.getDeploymentBackups(GetDeploymentBackupsArgs.builder()
.compartmentId(var_.compartment_id())
.deploymentId(oci_golden_gate_deployment.test_deployment().id())
.displayName(var_.deployment_backup_display_name())
.state(var_.deployment_backup_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_deployment_backups = oci.GoldenGate.get_deployment_backups(compartment_id=var["compartment_id"],
deployment_id=oci_golden_gate_deployment["test_deployment"]["id"],
display_name=var["deployment_backup_display_name"],
state=var["deployment_backup_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDeploymentBackups = oci.GoldenGate.getDeploymentBackups({
compartmentId: _var.compartment_id,
deploymentId: oci_golden_gate_deployment.test_deployment.id,
displayName: _var.deployment_backup_display_name,
state: _var.deployment_backup_state,
});
variables:
testDeploymentBackups:
fn::invoke:
Function: oci:GoldenGate:getDeploymentBackups
Arguments:
compartmentId: ${var.compartment_id}
deploymentId: ${oci_golden_gate_deployment.test_deployment.id}
displayName: ${var.deployment_backup_display_name}
state: ${var.deployment_backup_state}
Using getDeploymentBackups
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 getDeploymentBackups(args: GetDeploymentBackupsArgs, opts?: InvokeOptions): Promise<GetDeploymentBackupsResult>
function getDeploymentBackupsOutput(args: GetDeploymentBackupsOutputArgs, opts?: InvokeOptions): Output<GetDeploymentBackupsResult>
def get_deployment_backups(compartment_id: Optional[str] = None,
deployment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_goldengate.GetDeploymentBackupsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeploymentBackupsResult
def get_deployment_backups_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.GetDeploymentBackupsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentBackupsResult]
func GetDeploymentBackups(ctx *Context, args *GetDeploymentBackupsArgs, opts ...InvokeOption) (*GetDeploymentBackupsResult, error)
func GetDeploymentBackupsOutput(ctx *Context, args *GetDeploymentBackupsOutputArgs, opts ...InvokeOption) GetDeploymentBackupsResultOutput
> Note: This function is named GetDeploymentBackups
in the Go SDK.
public static class GetDeploymentBackups
{
public static Task<GetDeploymentBackupsResult> InvokeAsync(GetDeploymentBackupsArgs args, InvokeOptions? opts = null)
public static Output<GetDeploymentBackupsResult> Invoke(GetDeploymentBackupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeploymentBackupsResult> getDeploymentBackups(GetDeploymentBackupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GoldenGate/getDeploymentBackups:getDeploymentBackups
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Display
Name string A filter to return only the resources that match the entire 'displayName' given.
- Filters
List<Get
Deployment Backups Filter> - State string
A filter to return only the resources that match the 'lifecycleState' given.
- Compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- Deployment
Id string The OCID of the deployment in which to list resources.
- Display
Name string A filter to return only the resources that match the entire 'displayName' given.
- Filters
[]Get
Deployment Backups Filter - State string
A filter to return only the resources that match the 'lifecycleState' given.
- compartment
Id String The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- deployment
Id String The OCID of the deployment in which to list resources.
- display
Name String A filter to return only the resources that match the entire 'displayName' given.
- filters
List<Get
Deployment Backups Filter> - state String
A filter to return only the resources that match the 'lifecycleState' given.
- compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- deployment
Id string The OCID of the deployment in which to list resources.
- display
Name string A filter to return only the resources that match the entire 'displayName' given.
- filters
Get
Deployment Backups Filter[] - state string
A filter to return only the resources that match the 'lifecycleState' given.
- compartment_
id str The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- deployment_
id str The OCID 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
Get
Deployment Backups Filter] - state str
A filter to return only the resources that match the 'lifecycleState' given.
- compartment
Id String The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- deployment
Id String The OCID of the deployment in which to list resources.
- display
Name 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.
getDeploymentBackups Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment being referenced.
- Deployment
Backup List<GetCollections Deployment Backups Deployment Backup Collection> The list of deployment_backup_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Deployment
Id string The OCID of the deployment being referenced.
- Display
Name string An object's Display Name.
- Filters
List<Get
Deployment Backups Filter> - State string
Possible lifecycle states.
- Compartment
Id string The OCID of the compartment being referenced.
- Deployment
Backup []GetCollections Deployment Backups Deployment Backup Collection The list of deployment_backup_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Deployment
Id string The OCID of the deployment being referenced.
- Display
Name string An object's Display Name.
- Filters
[]Get
Deployment Backups Filter - State string
Possible lifecycle states.
- compartment
Id String The OCID of the compartment being referenced.
- deployment
Backup List<GetCollections Deployment Backups Deployment Backup Collection> The list of deployment_backup_collection.
- id String
The provider-assigned unique ID for this managed resource.
- deployment
Id String The OCID of the deployment being referenced.
- display
Name String An object's Display Name.
- filters
List<Get
Deployment Backups Filter> - state String
Possible lifecycle states.
- compartment
Id string The OCID of the compartment being referenced.
- deployment
Backup GetCollections Deployment Backups Deployment Backup Collection[] The list of deployment_backup_collection.
- id string
The provider-assigned unique ID for this managed resource.
- deployment
Id string The OCID of the deployment being referenced.
- display
Name string An object's Display Name.
- filters
Get
Deployment Backups Filter[] - state string
Possible lifecycle states.
- compartment_
id str The OCID of the compartment being referenced.
- deployment_
backup_ Getcollections Deployment Backups Deployment Backup Collection] The list of deployment_backup_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
Get
Deployment Backups Filter] - state str
Possible lifecycle states.
- compartment
Id String The OCID of the compartment being referenced.
- deployment
Backup List<Property Map>Collections The list of deployment_backup_collection.
- id String
The provider-assigned unique ID for this managed resource.
- deployment
Id String The OCID of the deployment being referenced.
- display
Name String An object's Display Name.
- filters List<Property Map>
- state String
Possible lifecycle states.
Supporting Types
GetDeploymentBackupsDeploymentBackupCollection
GetDeploymentBackupsDeploymentBackupCollectionItem
- Backup
Type string Possible Deployment backup types.
- Bucket string
Name of the bucket where the object is to be uploaded in the object storage
- Compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- Dictionary<string, object>
Tags defined for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Deployment
Id string The OCID of the deployment in which to list resources.
- Display
Name string A filter to return only the resources that match the entire 'displayName' given.
- 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 backup being referenced.
- Is
Automatic bool True if this object is automatically created
- Lifecycle
Details 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.
- Namespace string
Name of namespace that serves as a container for all of your buckets
- Object string
Name of the object to be uploaded to object storage
- Ogg
Version string Version of OGG
- Size
In doubleBytes The size of the backup stored in object storage (in bytes)
- State string
A filter to return only the resources that match the 'lifecycleState' given.
- 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}}
- Time
Backup stringFinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Of stringBackup The time of the resource backup. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- Backup
Type string Possible Deployment backup types.
- Bucket string
Name of the bucket where the object is to be uploaded in the object storage
- Compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- map[string]interface{}
Tags defined for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Deployment
Id string The OCID of the deployment in which to list resources.
- Display
Name string A filter to return only the resources that match the entire 'displayName' given.
- 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 backup being referenced.
- Is
Automatic bool True if this object is automatically created
- Lifecycle
Details 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.
- Namespace string
Name of namespace that serves as a container for all of your buckets
- Object string
Name of the object to be uploaded to object storage
- Ogg
Version string Version of OGG
- Size
In float64Bytes The size of the backup stored in object storage (in bytes)
- State string
A filter to return only the resources that match the 'lifecycleState' given.
- 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}}
- Time
Backup stringFinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Of stringBackup The time of the resource backup. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- backup
Type String Possible Deployment backup types.
- bucket String
Name of the bucket where the object is to be uploaded in the object storage
- compartment
Id String The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- Map<String,Object>
Tags defined for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- deployment
Id String The OCID of the deployment in which to list resources.
- display
Name String A filter to return only the resources that match the entire 'displayName' given.
- 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 backup being referenced.
- is
Automatic Boolean True if this object is automatically created
- lifecycle
Details 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.
- namespace String
Name of namespace that serves as a container for all of your buckets
- object String
Name of the object to be uploaded to object storage
- ogg
Version String Version of OGG
- size
In DoubleBytes The size of the backup stored in object storage (in bytes)
- state String
A filter to return only the resources that match the 'lifecycleState' given.
- 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}}
- time
Backup StringFinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Of StringBackup The time of the resource backup. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- backup
Type string Possible Deployment backup types.
- bucket string
Name of the bucket where the object is to be uploaded in the object storage
- compartment
Id string The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- {[key: string]: any}
Tags defined for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- deployment
Id string The OCID of the deployment in which to list resources.
- display
Name string A filter to return only the resources that match the entire 'displayName' given.
- {[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 backup being referenced.
- is
Automatic boolean True if this object is automatically created
- lifecycle
Details 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.
- namespace string
Name of namespace that serves as a container for all of your buckets
- object string
Name of the object to be uploaded to object storage
- ogg
Version string Version of OGG
- size
In numberBytes The size of the backup stored in object storage (in bytes)
- state string
A filter to return only the resources that match the 'lifecycleState' given.
- {[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}}
- time
Backup stringFinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Of stringBackup The time of the resource backup. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- backup_
type str Possible Deployment backup types.
- bucket str
Name of the bucket where the object is to be uploaded in the object storage
- compartment_
id str The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- 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 OCID of the deployment in which to list resources.
- display_
name str A filter to return only the resources that match the entire 'displayName' given.
- 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 backup being referenced.
- is_
automatic bool True if this object is automatically created
- 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.
- namespace str
Name of namespace that serves as a container for all of your buckets
- object str
Name of the object to be uploaded to object storage
- ogg_
version str Version of OGG
- size_
in_ floatbytes The size of the backup stored in object storage (in bytes)
- state str
A filter to return only the resources that match the 'lifecycleState' given.
- 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_
backup_ strfinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time_
created str The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time_
of_ strbackup The time of the resource backup. 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
.
- backup
Type String Possible Deployment backup types.
- bucket String
Name of the bucket where the object is to be uploaded in the object storage
- compartment
Id String The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
- Map<Any>
Tags defined for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- deployment
Id String The OCID of the deployment in which to list resources.
- display
Name String A filter to return only the resources that match the entire 'displayName' given.
- 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 backup being referenced.
- is
Automatic Boolean True if this object is automatically created
- lifecycle
Details 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.
- namespace String
Name of namespace that serves as a container for all of your buckets
- object String
Name of the object to be uploaded to object storage
- ogg
Version String Version of OGG
- size
In NumberBytes The size of the backup stored in object storage (in bytes)
- state String
A filter to return only the resources that match the 'lifecycleState' given.
- 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}}
- time
Backup StringFinished The time of the resource backup finish. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Of StringBackup The time of the resource backup. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
GetDeploymentBackupsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.