1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Psql
  5. Backup
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

oci.Psql.Backup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

    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.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(backupDescription),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("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, Any]] = None,
               description: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, Any]] = 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", "any" },
        },
        Description = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        RetentionPeriod = 0,
    });
    
    example, err := Psql.NewBackup(ctx, "ociBackupResource", &Psql.BackupArgs{
    	CompartmentId: pulumi.String("string"),
    	DbSystemId:    pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	RetentionPeriod: pulumi.Int(0),
    })
    
    var ociBackupResource = new Backup("ociBackupResource", BackupArgs.builder()
        .compartmentId("string")
        .dbSystemId("string")
        .displayName("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .freeformTags(Map.of("string", "any"))
        .retentionPeriod(0)
        .build());
    
    oci_backup_resource = oci.psql.Backup("ociBackupResource",
        compartment_id="string",
        db_system_id="string",
        display_name="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        freeform_tags={
            "string": "any",
        },
        retention_period=0)
    
    const ociBackupResource = new oci.psql.Backup("ociBackupResource", {
        compartmentId: "string",
        dbSystemId: "string",
        displayName: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        freeformTags: {
            string: "any",
        },
        retentionPeriod: 0,
    });
    
    type: oci:Psql:Backup
    properties:
        compartmentId: string
        dbSystemId: string
        definedTags:
            string: any
        description: string
        displayName: string
        freeformTags:
            string: any
        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

    The Backup resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    DbSystemId string
    The ID of the database system.
    DisplayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    DefinedTags Dictionary<string, object>
    (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.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    RetentionPeriod 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

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    DbSystemId string
    The ID of the database system.
    DisplayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    DefinedTags map[string]interface{}
    (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.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    RetentionPeriod 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

    compartmentId String
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemId String
    The ID of the database system.
    displayName String
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    definedTags Map<String,Object>
    (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.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    retentionPeriod 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

    compartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemId string
    The ID of the database system.
    displayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    definedTags {[key: string]: any}
    (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.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    retentionPeriod 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_id str
    The ID of the database system.
    display_name str
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    defined_tags Mapping[str, Any]
    (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.
    freeform_tags Mapping[str, Any]
    (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

    compartmentId String
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemId String
    The ID of the database system.
    displayName String
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    definedTags Map<Any>
    (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.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    retentionPeriod 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:

    BackupSize int
    The size of the backup, in gigabytes.
    DbSystemDetails List<BackupDbSystemDetail>
    Information about the database system associated with a backup.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    LastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    LifecycleDetails 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.
    SourceType string
    Specifies whether the backup was created manually, or by a management policy.
    State string
    The current state of the backup.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    BackupSize int
    The size of the backup, in gigabytes.
    DbSystemDetails []BackupDbSystemDetail
    Information about the database system associated with a backup.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    LastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    LifecycleDetails 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.
    SourceType string
    Specifies whether the backup was created manually, or by a management policy.
    State string
    The current state of the backup.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    backupSize Integer
    The size of the backup, in gigabytes.
    dbSystemDetails List<BackupDbSystemDetail>
    Information about the database system associated with a backup.
    id String
    The provider-assigned unique ID for this managed resource.
    lastAcceptedRequestToken String
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken String
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    sourceType String
    Specifies whether the backup was created manually, or by a management policy.
    state String
    The current state of the backup.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    backupSize number
    The size of the backup, in gigabytes.
    dbSystemDetails BackupDbSystemDetail[]
    Information about the database system associated with a backup.
    id string
    The provider-assigned unique ID for this managed resource.
    lastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    sourceType string
    Specifies whether the backup was created manually, or by a management policy.
    state string
    The current state of the backup.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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_details Sequence[psql.BackupDbSystemDetail]
    Information about the database system associated with a backup.
    id str
    The provider-assigned unique ID for this managed resource.
    last_accepted_request_token str
    lastAcceptedRequestToken from MP.
    last_completed_request_token str
    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.
    system_tags Mapping[str, Any]
    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 was created, 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
    backupSize Number
    The size of the backup, in gigabytes.
    dbSystemDetails List<Property Map>
    Information about the database system associated with a backup.
    id String
    The provider-assigned unique ID for this managed resource.
    lastAcceptedRequestToken String
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken String
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    sourceType String
    Specifies whether the backup was created manually, or by a management policy.
    state String
    The current state of the backup.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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, Any]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = 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, Any]] = 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.
    The following state arguments are supported:
    BackupSize int
    The size of the backup, in gigabytes.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    DbSystemDetails List<BackupDbSystemDetail>
    Information about the database system associated with a backup.
    DbSystemId string
    The ID of the database system.
    DefinedTags Dictionary<string, object>
    (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.
    DisplayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    LastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    LifecycleDetails 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.
    RetentionPeriod 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

    SourceType string
    Specifies whether the backup was created manually, or by a management policy.
    State string
    The current state of the backup.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    BackupSize int
    The size of the backup, in gigabytes.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    DbSystemDetails []BackupDbSystemDetailArgs
    Information about the database system associated with a backup.
    DbSystemId string
    The ID of the database system.
    DefinedTags map[string]interface{}
    (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.
    DisplayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    LastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    LifecycleDetails 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.
    RetentionPeriod 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

    SourceType string
    Specifies whether the backup was created manually, or by a management policy.
    State string
    The current state of the backup.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    backupSize Integer
    The size of the backup, in gigabytes.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemDetails List<BackupDbSystemDetail>
    Information about the database system associated with a backup.
    dbSystemId String
    The ID of the database system.
    definedTags Map<String,Object>
    (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.
    displayName String
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lastAcceptedRequestToken String
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken String
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    retentionPeriod 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

    sourceType String
    Specifies whether the backup was created manually, or by a management policy.
    state String
    The current state of the backup.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the backup was updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    backupSize number
    The size of the backup, in gigabytes.
    compartmentId string
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemDetails BackupDbSystemDetail[]
    Information about the database system associated with a backup.
    dbSystemId string
    The ID of the database system.
    definedTags {[key: string]: any}
    (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.
    displayName string
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lastAcceptedRequestToken string
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken string
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    retentionPeriod 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

    sourceType string
    Specifies whether the backup was created manually, or by a management policy.
    state string
    The current state of the backup.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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_details Sequence[psql.BackupDbSystemDetailArgs]
    Information about the database system associated with a backup.
    db_system_id str
    The ID of the database system.
    defined_tags Mapping[str, Any]
    (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.
    freeform_tags Mapping[str, Any]
    (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_request_token str
    lastAcceptedRequestToken from MP.
    last_completed_request_token str
    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.
    system_tags Mapping[str, Any]
    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 was created, 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
    backupSize Number
    The size of the backup, in gigabytes.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the backup.
    dbSystemDetails List<Property Map>
    Information about the database system associated with a backup.
    dbSystemId String
    The ID of the database system.
    definedTags Map<Any>
    (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.
    displayName String
    (Updatable) A user-friendly display name for the backup. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lastAcceptedRequestToken String
    lastAcceptedRequestToken from MP.
    lastCompletedRequestToken String
    lastCompletedRequestToken from MP.
    lifecycleDetails 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.
    retentionPeriod 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

    sourceType String
    Specifies whether the backup was created manually, or by a management policy.
    state String
    The current state of the backup.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the backup was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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

    DbVersion string
    The major and minor versions of the database system software.
    SystemType string
    Type of the database system.
    DbVersion string
    The major and minor versions of the database system software.
    SystemType string
    Type of the database system.
    dbVersion String
    The major and minor versions of the database system software.
    systemType String
    Type of the database system.
    dbVersion string
    The major and minor versions of the database system software.
    systemType 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.
    dbVersion String
    The major and minor versions of the database system software.
    systemType 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.
    oci logo
    Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi