1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. AutonomousContainerDatabaseSnapshotStandby
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Database.AutonomousContainerDatabaseSnapshotStandby

Explore with Pulumi AI

This resource provides the Autonomous Container Database Snapshot Standby resource in Oracle Cloud Infrastructure Database service.

Convert between and SnapshotStandby Standby Autonomous Container Database . For more information about changing Autonomous Container Databases Add Standby, see Convert Standby Autonomous Container Database and Convert Snapshot Standby to Physical Standby.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutonomousContainerDatabaseSnapshotStandby = new oci.database.AutonomousContainerDatabaseSnapshotStandby("test_autonomous_container_database_snapshot_standby", {
    autonomousContainerDatabaseId: testAutonomousContainerDatabase.id,
    role: autonomousContainerDatabaseSnapshotStandbyRole,
    connectionStringsType: autonomousContainerDatabaseSnapshotStandbyConnectionStringsType,
});
Copy
import pulumi
import pulumi_oci as oci

test_autonomous_container_database_snapshot_standby = oci.database.AutonomousContainerDatabaseSnapshotStandby("test_autonomous_container_database_snapshot_standby",
    autonomous_container_database_id=test_autonomous_container_database["id"],
    role=autonomous_container_database_snapshot_standby_role,
    connection_strings_type=autonomous_container_database_snapshot_standby_connection_strings_type)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.NewAutonomousContainerDatabaseSnapshotStandby(ctx, "test_autonomous_container_database_snapshot_standby", &database.AutonomousContainerDatabaseSnapshotStandbyArgs{
			AutonomousContainerDatabaseId: pulumi.Any(testAutonomousContainerDatabase.Id),
			Role:                          pulumi.Any(autonomousContainerDatabaseSnapshotStandbyRole),
			ConnectionStringsType:         pulumi.Any(autonomousContainerDatabaseSnapshotStandbyConnectionStringsType),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAutonomousContainerDatabaseSnapshotStandby = new Oci.Database.AutonomousContainerDatabaseSnapshotStandby("test_autonomous_container_database_snapshot_standby", new()
    {
        AutonomousContainerDatabaseId = testAutonomousContainerDatabase.Id,
        Role = autonomousContainerDatabaseSnapshotStandbyRole,
        ConnectionStringsType = autonomousContainerDatabaseSnapshotStandbyConnectionStringsType,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.AutonomousContainerDatabaseSnapshotStandby;
import com.pulumi.oci.Database.AutonomousContainerDatabaseSnapshotStandbyArgs;
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) {
        var testAutonomousContainerDatabaseSnapshotStandby = new AutonomousContainerDatabaseSnapshotStandby("testAutonomousContainerDatabaseSnapshotStandby", AutonomousContainerDatabaseSnapshotStandbyArgs.builder()
            .autonomousContainerDatabaseId(testAutonomousContainerDatabase.id())
            .role(autonomousContainerDatabaseSnapshotStandbyRole)
            .connectionStringsType(autonomousContainerDatabaseSnapshotStandbyConnectionStringsType)
            .build());

    }
}
Copy
resources:
  testAutonomousContainerDatabaseSnapshotStandby:
    type: oci:Database:AutonomousContainerDatabaseSnapshotStandby
    name: test_autonomous_container_database_snapshot_standby
    properties:
      autonomousContainerDatabaseId: ${testAutonomousContainerDatabase.id}
      role: ${autonomousContainerDatabaseSnapshotStandbyRole}
      connectionStringsType: ${autonomousContainerDatabaseSnapshotStandbyConnectionStringsType}
Copy

Create AutonomousContainerDatabaseSnapshotStandby Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AutonomousContainerDatabaseSnapshotStandby(name: string, args: AutonomousContainerDatabaseSnapshotStandbyArgs, opts?: CustomResourceOptions);
@overload
def AutonomousContainerDatabaseSnapshotStandby(resource_name: str,
                                               args: AutonomousContainerDatabaseSnapshotStandbyArgs,
                                               opts: Optional[ResourceOptions] = None)

@overload
def AutonomousContainerDatabaseSnapshotStandby(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               autonomous_container_database_id: Optional[str] = None,
                                               role: Optional[str] = None,
                                               connection_strings_type: Optional[str] = None)
func NewAutonomousContainerDatabaseSnapshotStandby(ctx *Context, name string, args AutonomousContainerDatabaseSnapshotStandbyArgs, opts ...ResourceOption) (*AutonomousContainerDatabaseSnapshotStandby, error)
public AutonomousContainerDatabaseSnapshotStandby(string name, AutonomousContainerDatabaseSnapshotStandbyArgs args, CustomResourceOptions? opts = null)
public AutonomousContainerDatabaseSnapshotStandby(String name, AutonomousContainerDatabaseSnapshotStandbyArgs args)
public AutonomousContainerDatabaseSnapshotStandby(String name, AutonomousContainerDatabaseSnapshotStandbyArgs args, CustomResourceOptions options)
type: oci:Database:AutonomousContainerDatabaseSnapshotStandby
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AutonomousContainerDatabaseSnapshotStandbyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AutonomousContainerDatabaseSnapshotStandbyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AutonomousContainerDatabaseSnapshotStandbyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AutonomousContainerDatabaseSnapshotStandbyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AutonomousContainerDatabaseSnapshotStandbyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var autonomousContainerDatabaseSnapshotStandbyResource = new Oci.Database.AutonomousContainerDatabaseSnapshotStandby("autonomousContainerDatabaseSnapshotStandbyResource", new()
{
    AutonomousContainerDatabaseId = "string",
    Role = "string",
    ConnectionStringsType = "string",
});
Copy
example, err := database.NewAutonomousContainerDatabaseSnapshotStandby(ctx, "autonomousContainerDatabaseSnapshotStandbyResource", &database.AutonomousContainerDatabaseSnapshotStandbyArgs{
	AutonomousContainerDatabaseId: pulumi.String("string"),
	Role:                          pulumi.String("string"),
	ConnectionStringsType:         pulumi.String("string"),
})
Copy
var autonomousContainerDatabaseSnapshotStandbyResource = new AutonomousContainerDatabaseSnapshotStandby("autonomousContainerDatabaseSnapshotStandbyResource", AutonomousContainerDatabaseSnapshotStandbyArgs.builder()
    .autonomousContainerDatabaseId("string")
    .role("string")
    .connectionStringsType("string")
    .build());
Copy
autonomous_container_database_snapshot_standby_resource = oci.database.AutonomousContainerDatabaseSnapshotStandby("autonomousContainerDatabaseSnapshotStandbyResource",
    autonomous_container_database_id="string",
    role="string",
    connection_strings_type="string")
Copy
const autonomousContainerDatabaseSnapshotStandbyResource = new oci.database.AutonomousContainerDatabaseSnapshotStandby("autonomousContainerDatabaseSnapshotStandbyResource", {
    autonomousContainerDatabaseId: "string",
    role: "string",
    connectionStringsType: "string",
});
Copy
type: oci:Database:AutonomousContainerDatabaseSnapshotStandby
properties:
    autonomousContainerDatabaseId: string
    connectionStringsType: string
    role: string
Copy

AutonomousContainerDatabaseSnapshotStandby Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AutonomousContainerDatabaseSnapshotStandby resource accepts the following input properties:

AutonomousContainerDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The Autonomous Container Database OCID.
Role
This property is required.
Changes to this property will trigger replacement.
string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

ConnectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
AutonomousContainerDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The Autonomous Container Database OCID.
Role
This property is required.
Changes to this property will trigger replacement.
string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

ConnectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
autonomousContainerDatabaseId
This property is required.
Changes to this property will trigger replacement.
String
The Autonomous Container Database OCID.
role
This property is required.
Changes to this property will trigger replacement.
String

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

connectionStringsType Changes to this property will trigger replacement. String
type of connection strings when converting database to snapshot mode
autonomousContainerDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The Autonomous Container Database OCID.
role
This property is required.
Changes to this property will trigger replacement.
string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

connectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
autonomous_container_database_id
This property is required.
Changes to this property will trigger replacement.
str
The Autonomous Container Database OCID.
role
This property is required.
Changes to this property will trigger replacement.
str

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

connection_strings_type Changes to this property will trigger replacement. str
type of connection strings when converting database to snapshot mode
autonomousContainerDatabaseId
This property is required.
Changes to this property will trigger replacement.
String
The Autonomous Container Database OCID.
role
This property is required.
Changes to this property will trigger replacement.
String

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

connectionStringsType Changes to this property will trigger replacement. String
type of connection strings when converting database to snapshot mode

Outputs

All input properties are implicitly available as output properties. Additionally, the AutonomousContainerDatabaseSnapshotStandby resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AutonomousContainerDatabaseSnapshotStandby Resource

Get an existing AutonomousContainerDatabaseSnapshotStandby resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AutonomousContainerDatabaseSnapshotStandbyState, opts?: CustomResourceOptions): AutonomousContainerDatabaseSnapshotStandby
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        autonomous_container_database_id: Optional[str] = None,
        connection_strings_type: Optional[str] = None,
        role: Optional[str] = None) -> AutonomousContainerDatabaseSnapshotStandby
func GetAutonomousContainerDatabaseSnapshotStandby(ctx *Context, name string, id IDInput, state *AutonomousContainerDatabaseSnapshotStandbyState, opts ...ResourceOption) (*AutonomousContainerDatabaseSnapshotStandby, error)
public static AutonomousContainerDatabaseSnapshotStandby Get(string name, Input<string> id, AutonomousContainerDatabaseSnapshotStandbyState? state, CustomResourceOptions? opts = null)
public static AutonomousContainerDatabaseSnapshotStandby get(String name, Output<String> id, AutonomousContainerDatabaseSnapshotStandbyState state, CustomResourceOptions options)
resources:  _:    type: oci:Database:AutonomousContainerDatabaseSnapshotStandby    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AutonomousContainerDatabaseId Changes to this property will trigger replacement. string
The Autonomous Container Database OCID.
ConnectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
Role Changes to this property will trigger replacement. string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

AutonomousContainerDatabaseId Changes to this property will trigger replacement. string
The Autonomous Container Database OCID.
ConnectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
Role Changes to this property will trigger replacement. string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

autonomousContainerDatabaseId Changes to this property will trigger replacement. String
The Autonomous Container Database OCID.
connectionStringsType Changes to this property will trigger replacement. String
type of connection strings when converting database to snapshot mode
role Changes to this property will trigger replacement. String

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

autonomousContainerDatabaseId Changes to this property will trigger replacement. string
The Autonomous Container Database OCID.
connectionStringsType Changes to this property will trigger replacement. string
type of connection strings when converting database to snapshot mode
role Changes to this property will trigger replacement. string

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

autonomous_container_database_id Changes to this property will trigger replacement. str
The Autonomous Container Database OCID.
connection_strings_type Changes to this property will trigger replacement. str
type of connection strings when converting database to snapshot mode
role Changes to this property will trigger replacement. str

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

autonomousContainerDatabaseId Changes to this property will trigger replacement. String
The Autonomous Container Database OCID.
connectionStringsType Changes to this property will trigger replacement. String
type of connection strings when converting database to snapshot mode
role Changes to this property will trigger replacement. String

The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Import

AutonomousContainerDatabaseSnapshotStandby can be imported using the id, e.g.

$ pulumi import oci:Database/autonomousContainerDatabaseSnapshotStandby:AutonomousContainerDatabaseSnapshotStandby test_autonomous_container_database_snapshot_standby "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.