oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

oci.Database.BackupCancelManagement

Explore with Pulumi AI

This resource provides the Backup Cancel Management resource in Oracle Cloud Infrastructure Database service.

Cancel automatic full/incremental create backup workrequests specified by the backup Id. This cannot be used on manual backups.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testBackupCancelManagement = new Oci.Database.BackupCancelManagement("testBackupCancelManagement", new()
    {
        BackupId = oci_database_backup.Test_backup.Id,
        CancelBackupTrigger = 1,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.NewBackupCancelManagement(ctx, "testBackupCancelManagement", &Database.BackupCancelManagementArgs{
			BackupId:            pulumi.Any(oci_database_backup.Test_backup.Id),
			CancelBackupTrigger: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.BackupCancelManagement;
import com.pulumi.oci.Database.BackupCancelManagementArgs;
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 testBackupCancelManagement = new BackupCancelManagement("testBackupCancelManagement", BackupCancelManagementArgs.builder()        
            .backupId(oci_database_backup.test_backup().id())
            .cancelBackupTrigger(1)
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_backup_cancel_management = oci.database.BackupCancelManagement("testBackupCancelManagement",
    backup_id=oci_database_backup["test_backup"]["id"],
    cancel_backup_trigger=1)
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBackupCancelManagement = new oci.database.BackupCancelManagement("testBackupCancelManagement", {
    backupId: oci_database_backup.test_backup.id,
    cancelBackupTrigger: 1,
});
resources:
  testBackupCancelManagement:
    type: oci:Database:BackupCancelManagement
    properties:
      #Required
      backupId: ${oci_database_backup.test_backup.id}
      cancelBackupTrigger: 1

Create BackupCancelManagement Resource

new BackupCancelManagement(name: string, args: BackupCancelManagementArgs, opts?: CustomResourceOptions);
@overload
def BackupCancelManagement(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           backup_id: Optional[str] = None,
                           cancel_backup_trigger: Optional[int] = None)
@overload
def BackupCancelManagement(resource_name: str,
                           args: BackupCancelManagementArgs,
                           opts: Optional[ResourceOptions] = None)
func NewBackupCancelManagement(ctx *Context, name string, args BackupCancelManagementArgs, opts ...ResourceOption) (*BackupCancelManagement, error)
public BackupCancelManagement(string name, BackupCancelManagementArgs args, CustomResourceOptions? opts = null)
public BackupCancelManagement(String name, BackupCancelManagementArgs args)
public BackupCancelManagement(String name, BackupCancelManagementArgs args, CustomResourceOptions options)
type: oci:Database:BackupCancelManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BackupCancelManagementArgs
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 BackupCancelManagementArgs
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 BackupCancelManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BackupCancelManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BackupCancelManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BackupCancelManagement 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 BackupCancelManagement resource accepts the following input properties:

BackupId string

The backup OCID.

CancelBackupTrigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

BackupId string

The backup OCID.

CancelBackupTrigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId String

The backup OCID.

cancelBackupTrigger Integer

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId string

The backup OCID.

cancelBackupTrigger number

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backup_id str

The backup OCID.

cancel_backup_trigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId String

The backup OCID.

cancelBackupTrigger Number

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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 BackupCancelManagement resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing BackupCancelManagement Resource

Get an existing BackupCancelManagement 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?: BackupCancelManagementState, opts?: CustomResourceOptions): BackupCancelManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_id: Optional[str] = None,
        cancel_backup_trigger: Optional[int] = None) -> BackupCancelManagement
func GetBackupCancelManagement(ctx *Context, name string, id IDInput, state *BackupCancelManagementState, opts ...ResourceOption) (*BackupCancelManagement, error)
public static BackupCancelManagement Get(string name, Input<string> id, BackupCancelManagementState? state, CustomResourceOptions? opts = null)
public static BackupCancelManagement get(String name, Output<String> id, BackupCancelManagementState 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:
BackupId string

The backup OCID.

CancelBackupTrigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

BackupId string

The backup OCID.

CancelBackupTrigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId String

The backup OCID.

cancelBackupTrigger Integer

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId string

The backup OCID.

cancelBackupTrigger number

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backup_id str

The backup OCID.

cancel_backup_trigger int

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

** 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

backupId String

The backup OCID.

cancelBackupTrigger Number

When changed to a different integer, re-triggers cancel backup on the backup specified by the backup_id

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

Import

Import is not supported for this resource.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.