oci.Psql.Backup
Explore with Pulumi AI
This resource provides the Backup resource in Oracle Cloud Infrastructure Psql service.
Creates a new backup.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBackup = new oci.psql.Backup("test_backup", {
compartmentId: compartmentId,
dbSystemId: testDbSystem.id,
displayName: backupDisplayName,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: backupDescription,
freeformTags: {
"bar-key": "value",
},
retentionPeriod: backupRetentionPeriod,
});
import pulumi
import pulumi_oci as oci
test_backup = oci.psql.Backup("test_backup",
compartment_id=compartment_id,
db_system_id=test_db_system["id"],
display_name=backup_display_name,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=backup_description,
freeform_tags={
"bar-key": "value",
},
retention_period=backup_retention_period)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Psql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Psql.NewBackup(ctx, "test_backup", &Psql.BackupArgs{
CompartmentId: pulumi.Any(compartmentId),
DbSystemId: pulumi.Any(testDbSystem.Id),
DisplayName: pulumi.Any(backupDisplayName),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(backupDescription),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
RetentionPeriod: pulumi.Any(backupRetentionPeriod),
})
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 testBackup = new Oci.Psql.Backup("test_backup", new()
{
CompartmentId = compartmentId,
DbSystemId = testDbSystem.Id,
DisplayName = backupDisplayName,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = backupDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
RetentionPeriod = backupRetentionPeriod,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.Backup;
import com.pulumi.oci.Psql.BackupArgs;
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 testBackup = new Backup("testBackup", BackupArgs.builder()
.compartmentId(compartmentId)
.dbSystemId(testDbSystem.id())
.displayName(backupDisplayName)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(backupDescription)
.freeformTags(Map.of("bar-key", "value"))
.retentionPeriod(backupRetentionPeriod)
.build());
}
}
resources:
testBackup:
type: oci:Psql:Backup
name: test_backup
properties:
compartmentId: ${compartmentId}
dbSystemId: ${testDbSystem.id}
displayName: ${backupDisplayName}
definedTags:
foo-namespace.bar-key: value
description: ${backupDescription}
freeformTags:
bar-key: value
retentionPeriod: ${backupRetentionPeriod}
Create Backup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
@overload
def Backup(resource_name: str,
args: BackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Backup(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
db_system_id: Optional[str] = None,
display_name: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
retention_period: Optional[int] = None)
func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)
public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
public Backup(String name, BackupArgs args)
public Backup(String name, BackupArgs args, CustomResourceOptions options)
type: oci:Psql:Backup
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 BackupArgs
- 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 BackupArgs
- 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 BackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupArgs
- 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 ociBackupResource = new Oci.Psql.Backup("ociBackupResource", new()
{
CompartmentId = "string",
DbSystemId = "string",
DisplayName = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
FreeformTags =
{
{ "string", "string" },
},
RetentionPeriod = 0,
});
example, err := Psql.NewBackup(ctx, "ociBackupResource", &Psql.BackupArgs{
CompartmentId: pulumi.String("string"),
DbSystemId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
RetentionPeriod: pulumi.Int(0),
})
var ociBackupResource = new Backup("ociBackupResource", BackupArgs.builder()
.compartmentId("string")
.dbSystemId("string")
.displayName("string")
.definedTags(Map.of("string", "string"))
.description("string")
.freeformTags(Map.of("string", "string"))
.retentionPeriod(0)
.build());
oci_backup_resource = oci.psql.Backup("ociBackupResource",
compartment_id="string",
db_system_id="string",
display_name="string",
defined_tags={
"string": "string",
},
description="string",
freeform_tags={
"string": "string",
},
retention_period=0)
const ociBackupResource = new oci.psql.Backup("ociBackupResource", {
compartmentId: "string",
dbSystemId: "string",
displayName: "string",
definedTags: {
string: "string",
},
description: "string",
freeformTags: {
string: "string",
},
retentionPeriod: 0,
});
type: oci:Psql:Backup
properties:
compartmentId: string
dbSystemId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
retentionPeriod: 0
Backup 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 Backup resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- Db
System stringId - The ID of the database system.
- Display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description for the backup.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Retention
Period int (Updatable) Backup retention period in days.
** 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
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- Db
System stringId - The ID of the database system.
- Display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description for the backup.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Retention
Period int (Updatable) Backup retention period in days.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment that contains the backup.
- db
System StringId - The ID of the database system.
- display
Name String - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description for the backup.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- retention
Period Integer (Updatable) Backup retention period in days.
** 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
- compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- db
System stringId - The ID of the database system.
- display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A description for the backup.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- retention
Period number (Updatable) Backup retention period in days.
** 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
- compartment_
id str - (Updatable) The OCID of the compartment that contains the backup.
- db_
system_ strid - The ID of the database system.
- display_
name str - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A description for the backup.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- retention_
period int (Updatable) Backup retention period in days.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment that contains the backup.
- db
System StringId - The ID of the database system.
- display
Name String - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description for the backup.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- retention
Period Number (Updatable) Backup retention period in days.
** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:
- Backup
Size int - The size of the backup, in gigabytes.
- Db
System List<BackupDetails Db System Detail> - Information about the database system associated with a backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- Last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Source
Type string - Specifies whether the backup was created manually, or by a management policy.
- State string
- The current state of the backup.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Backup
Size int - The size of the backup, in gigabytes.
- Db
System []BackupDetails Db System Detail - Information about the database system associated with a backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- Last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Source
Type string - Specifies whether the backup was created manually, or by a management policy.
- State string
- The current state of the backup.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size Integer - The size of the backup, in gigabytes.
- db
System List<BackupDetails Db System Detail> - Information about the database system associated with a backup.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Accepted StringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed StringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- source
Type String - Specifies whether the backup was created manually, or by a management policy.
- state String
- The current state of the backup.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size number - The size of the backup, in gigabytes.
- db
System BackupDetails Db System Detail[] - Information about the database system associated with a backup.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- source
Type string - Specifies whether the backup was created manually, or by a management policy.
- state string
- The current state of the backup.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup_
size int - The size of the backup, in gigabytes.
- db_
system_ Sequence[psql.details Backup Db System Detail] - Information about the database system associated with a backup.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
accepted_ strrequest_ token - lastAcceptedRequestToken from MP.
- last_
completed_ strrequest_ token - lastCompletedRequestToken from MP.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- source_
type str - Specifies whether the backup was created manually, or by a management policy.
- state str
- The current state of the backup.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size Number - The size of the backup, in gigabytes.
- db
System List<Property Map>Details - Information about the database system associated with a backup.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Accepted StringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed StringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- source
Type String - Specifies whether the backup was created manually, or by a management policy.
- state String
- The current state of the backup.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
Look up Existing Backup Resource
Get an existing Backup 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?: BackupState, opts?: CustomResourceOptions): Backup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_size: Optional[int] = None,
compartment_id: Optional[str] = None,
db_system_details: Optional[Sequence[_psql.BackupDbSystemDetailArgs]] = None,
db_system_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
last_accepted_request_token: Optional[str] = None,
last_completed_request_token: Optional[str] = None,
lifecycle_details: Optional[str] = None,
retention_period: Optional[int] = None,
source_type: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> Backup
func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Backup
Size int - The size of the backup, in gigabytes.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- Db
System List<BackupDetails Db System Detail> - Information about the database system associated with a backup.
- Db
System stringId - The ID of the database system.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description for the backup.
- Display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- Last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Retention
Period int (Updatable) Backup retention period in days.
** 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
- Source
Type string - Specifies whether the backup was created manually, or by a management policy.
- State string
- The current state of the backup.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Backup
Size int - The size of the backup, in gigabytes.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- Db
System []BackupDetails Db System Detail Args - Information about the database system associated with a backup.
- Db
System stringId - The ID of the database system.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description for the backup.
- Display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- Last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Retention
Period int (Updatable) Backup retention period in days.
** 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
- Source
Type string - Specifies whether the backup was created manually, or by a management policy.
- State string
- The current state of the backup.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size Integer - The size of the backup, in gigabytes.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the backup.
- db
System List<BackupDetails Db System Detail> - Information about the database system associated with a backup.
- db
System StringId - The ID of the database system.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description for the backup.
- display
Name String - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- last
Accepted StringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed StringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- retention
Period Integer (Updatable) Backup retention period in days.
** 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
- source
Type String - Specifies whether the backup was created manually, or by a management policy.
- state String
- The current state of the backup.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size number - The size of the backup, in gigabytes.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the backup.
- db
System BackupDetails Db System Detail[] - Information about the database system associated with a backup.
- db
System stringId - The ID of the database system.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A description for the backup.
- display
Name string - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- last
Accepted stringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed stringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- retention
Period number (Updatable) Backup retention period in days.
** 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
- source
Type string - Specifies whether the backup was created manually, or by a management policy.
- state string
- The current state of the backup.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup_
size int - The size of the backup, in gigabytes.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the backup.
- db_
system_ Sequence[psql.details Backup Db System Detail Args] - Information about the database system associated with a backup.
- db_
system_ strid - The ID of the database system.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A description for the backup.
- display_
name str - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- last_
accepted_ strrequest_ token - lastAcceptedRequestToken from MP.
- last_
completed_ strrequest_ token - lastCompletedRequestToken from MP.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- retention_
period int (Updatable) Backup retention period in days.
** 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
- source_
type str - Specifies whether the backup was created manually, or by a management policy.
- state str
- The current state of the backup.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- backup
Size Number - The size of the backup, in gigabytes.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the backup.
- db
System List<Property Map>Details - Information about the database system associated with a backup.
- db
System StringId - The ID of the database system.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description for the backup.
- display
Name String - (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- last
Accepted StringRequest Token - lastAcceptedRequestToken from MP.
- last
Completed StringRequest Token - lastCompletedRequestToken from MP.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- retention
Period Number (Updatable) Backup retention period in days.
** 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
- source
Type String - Specifies whether the backup was created manually, or by a management policy.
- state String
- The current state of the backup.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the backup request was received, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
Supporting Types
BackupDbSystemDetail, BackupDbSystemDetailArgs
- Db
Version string - The major and minor versions of the database system software.
- System
Type string - Type of the database system.
- Db
Version string - The major and minor versions of the database system software.
- System
Type string - Type of the database system.
- db
Version String - The major and minor versions of the database system software.
- system
Type String - Type of the database system.
- db
Version string - The major and minor versions of the database system software.
- system
Type string - Type of the database system.
- db_
version str - The major and minor versions of the database system software.
- system_
type str - Type of the database system.
- db
Version String - The major and minor versions of the database system software.
- system
Type String - Type of the database system.
Import
Backups can be imported using the id
, e.g.
$ pulumi import oci:Psql/backup:Backup test_backup "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.