oci.Database.PluggableDatabaseSnapshot
Explore with Pulumi AI
This resource provides the Pluggable Database Snapshot resource in Oracle Cloud Infrastructure Database service.
Creates a Pluggable Database Snapshot
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPluggableDatabaseSnapshot = new oci.database.PluggableDatabaseSnapshot("test_pluggable_database_snapshot", {
name: pluggableDatabaseSnapshotName,
pluggableDatabaseId: testPluggableDatabase.id,
definedTags: pluggableDatabaseSnapshotDefinedTags,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_pluggable_database_snapshot = oci.database.PluggableDatabaseSnapshot("test_pluggable_database_snapshot",
name=pluggable_database_snapshot_name,
pluggable_database_id=test_pluggable_database["id"],
defined_tags=pluggable_database_snapshot_defined_tags,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := database.NewPluggableDatabaseSnapshot(ctx, "test_pluggable_database_snapshot", &database.PluggableDatabaseSnapshotArgs{
Name: pulumi.Any(pluggableDatabaseSnapshotName),
PluggableDatabaseId: pulumi.Any(testPluggableDatabase.Id),
DefinedTags: pulumi.Any(pluggableDatabaseSnapshotDefinedTags),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testPluggableDatabaseSnapshot = new Oci.Database.PluggableDatabaseSnapshot("test_pluggable_database_snapshot", new()
{
Name = pluggableDatabaseSnapshotName,
PluggableDatabaseId = testPluggableDatabase.Id,
DefinedTags = pluggableDatabaseSnapshotDefinedTags,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.PluggableDatabaseSnapshot;
import com.pulumi.oci.Database.PluggableDatabaseSnapshotArgs;
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 testPluggableDatabaseSnapshot = new PluggableDatabaseSnapshot("testPluggableDatabaseSnapshot", PluggableDatabaseSnapshotArgs.builder()
.name(pluggableDatabaseSnapshotName)
.pluggableDatabaseId(testPluggableDatabase.id())
.definedTags(pluggableDatabaseSnapshotDefinedTags)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testPluggableDatabaseSnapshot:
type: oci:Database:PluggableDatabaseSnapshot
name: test_pluggable_database_snapshot
properties:
name: ${pluggableDatabaseSnapshotName}
pluggableDatabaseId: ${testPluggableDatabase.id}
definedTags: ${pluggableDatabaseSnapshotDefinedTags}
freeformTags:
Department: Finance
Create PluggableDatabaseSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PluggableDatabaseSnapshot(name: string, args: PluggableDatabaseSnapshotArgs, opts?: CustomResourceOptions);
@overload
def PluggableDatabaseSnapshot(resource_name: str,
args: PluggableDatabaseSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PluggableDatabaseSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
pluggable_database_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)
func NewPluggableDatabaseSnapshot(ctx *Context, name string, args PluggableDatabaseSnapshotArgs, opts ...ResourceOption) (*PluggableDatabaseSnapshot, error)
public PluggableDatabaseSnapshot(string name, PluggableDatabaseSnapshotArgs args, CustomResourceOptions? opts = null)
public PluggableDatabaseSnapshot(String name, PluggableDatabaseSnapshotArgs args)
public PluggableDatabaseSnapshot(String name, PluggableDatabaseSnapshotArgs args, CustomResourceOptions options)
type: oci:Database:PluggableDatabaseSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PluggableDatabaseSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PluggableDatabaseSnapshotArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PluggableDatabaseSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PluggableDatabaseSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PluggableDatabaseSnapshotArgs
- 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 pluggableDatabaseSnapshotResource = new Oci.Database.PluggableDatabaseSnapshot("pluggableDatabaseSnapshotResource", new()
{
PluggableDatabaseId = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
});
example, err := database.NewPluggableDatabaseSnapshot(ctx, "pluggableDatabaseSnapshotResource", &database.PluggableDatabaseSnapshotArgs{
PluggableDatabaseId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var pluggableDatabaseSnapshotResource = new PluggableDatabaseSnapshot("pluggableDatabaseSnapshotResource", PluggableDatabaseSnapshotArgs.builder()
.pluggableDatabaseId("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.name("string")
.build());
pluggable_database_snapshot_resource = oci.database.PluggableDatabaseSnapshot("pluggableDatabaseSnapshotResource",
pluggable_database_id="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
name="string")
const pluggableDatabaseSnapshotResource = new oci.database.PluggableDatabaseSnapshot("pluggableDatabaseSnapshotResource", {
pluggableDatabaseId: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
name: "string",
});
type: oci:Database:PluggableDatabaseSnapshot
properties:
definedTags:
string: string
freeformTags:
string: string
name: string
pluggableDatabaseId: string
PluggableDatabaseSnapshot 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 PluggableDatabaseSnapshot resource accepts the following input properties:
- Pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- Pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId The OCID of the Exadata Pluggable Database.
** 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
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name String
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable_
database_ strid The OCID of the Exadata Pluggable Database.
** 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
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name str
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId The OCID of the Exadata Pluggable Database.
** 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
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name String
- The user-friendly name for the Database Snapshot. The name should be unique.
Outputs
All input properties are implicitly available as output properties. Additionally, the PluggableDatabaseSnapshot resource produces the following output properties:
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- state String
- The current state of the Exadata Pluggable Database Snapshot.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id string - The OCID of the VM cluster.
- compartment
Id string - The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- state string
- The current state of the Exadata Pluggable Database Snapshot.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster_
id str - The OCID of the VM cluster.
- compartment_
id str - The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- state str
- The current state of the Exadata Pluggable Database Snapshot.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time_
created str - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- state String
- The current state of the Exadata Pluggable Database Snapshot.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
Look up Existing PluggableDatabaseSnapshot Resource
Get an existing PluggableDatabaseSnapshot 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?: PluggableDatabaseSnapshotState, opts?: CustomResourceOptions): PluggableDatabaseSnapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
name: Optional[str] = None,
pluggable_database_id: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None) -> PluggableDatabaseSnapshot
func GetPluggableDatabaseSnapshot(ctx *Context, name string, id IDInput, state *PluggableDatabaseSnapshotState, opts ...ResourceOption) (*PluggableDatabaseSnapshot, error)
public static PluggableDatabaseSnapshot Get(string name, Input<string> id, PluggableDatabaseSnapshotState? state, CustomResourceOptions? opts = null)
public static PluggableDatabaseSnapshot get(String name, Output<String> id, PluggableDatabaseSnapshotState state, CustomResourceOptions options)
resources: _: type: oci:Database:PluggableDatabaseSnapshot get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- Pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- Pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name String
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId The OCID of the Exadata Pluggable Database.
** 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
- state String
- The current state of the Exadata Pluggable Database Snapshot.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id string - The OCID of the VM cluster.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database stringId The OCID of the Exadata Pluggable Database.
** 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
- state string
- The current state of the Exadata Pluggable Database Snapshot.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created string - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster_
id str - The OCID of the VM cluster.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- lifecycle_
details str - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name str
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable_
database_ strid The OCID of the Exadata Pluggable Database.
** 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
- state str
- The current state of the Exadata Pluggable Database Snapshot.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time_
created str - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name String
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId The OCID of the Exadata Pluggable Database.
** 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
- state String
- The current state of the Exadata Pluggable Database Snapshot.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
Import
PluggableDatabaseSnapshots can be imported using the id
, e.g.
$ pulumi import oci:Database/pluggableDatabaseSnapshot:PluggableDatabaseSnapshot test_pluggable_database_snapshot "id"
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.