oci.BigDataService.BdsInstanceNodeBackup
Explore with Pulumi AI
This resource provides the Bds Instance Node Backup resource in Oracle Cloud Infrastructure Big Data Service service.
Add a node volume backup to the cluster for an indicated node type or node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBdsInstanceNodeBackup = new oci.bigdataservice.BdsInstanceNodeBackup("test_bds_instance_node_backup", {
bdsInstanceId: testBdsInstance.id,
levelTypeDetails: {
levelType: bdsInstanceNodeBackupLevelTypeDetailsLevelType,
nodeHostName: bdsInstanceNodeBackupLevelTypeDetailsNodeHostName,
nodeType: bdsInstanceNodeBackupLevelTypeDetailsNodeType,
},
backupType: bdsInstanceNodeBackupBackupType,
});
import pulumi
import pulumi_oci as oci
test_bds_instance_node_backup = oci.big_data_service.BdsInstanceNodeBackup("test_bds_instance_node_backup",
bds_instance_id=test_bds_instance["id"],
level_type_details={
"level_type": bds_instance_node_backup_level_type_details_level_type,
"node_host_name": bds_instance_node_backup_level_type_details_node_host_name,
"node_type": bds_instance_node_backup_level_type_details_node_type,
},
backup_type=bds_instance_node_backup_backup_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/bigdataservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bigdataservice.NewBdsInstanceNodeBackup(ctx, "test_bds_instance_node_backup", &bigdataservice.BdsInstanceNodeBackupArgs{
BdsInstanceId: pulumi.Any(testBdsInstance.Id),
LevelTypeDetails: &bigdataservice.BdsInstanceNodeBackupLevelTypeDetailsArgs{
LevelType: pulumi.Any(bdsInstanceNodeBackupLevelTypeDetailsLevelType),
NodeHostName: pulumi.Any(bdsInstanceNodeBackupLevelTypeDetailsNodeHostName),
NodeType: pulumi.Any(bdsInstanceNodeBackupLevelTypeDetailsNodeType),
},
BackupType: pulumi.Any(bdsInstanceNodeBackupBackupType),
})
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 testBdsInstanceNodeBackup = new Oci.BigDataService.BdsInstanceNodeBackup("test_bds_instance_node_backup", new()
{
BdsInstanceId = testBdsInstance.Id,
LevelTypeDetails = new Oci.BigDataService.Inputs.BdsInstanceNodeBackupLevelTypeDetailsArgs
{
LevelType = bdsInstanceNodeBackupLevelTypeDetailsLevelType,
NodeHostName = bdsInstanceNodeBackupLevelTypeDetailsNodeHostName,
NodeType = bdsInstanceNodeBackupLevelTypeDetailsNodeType,
},
BackupType = bdsInstanceNodeBackupBackupType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.BigDataService.BdsInstanceNodeBackup;
import com.pulumi.oci.BigDataService.BdsInstanceNodeBackupArgs;
import com.pulumi.oci.BigDataService.inputs.BdsInstanceNodeBackupLevelTypeDetailsArgs;
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 testBdsInstanceNodeBackup = new BdsInstanceNodeBackup("testBdsInstanceNodeBackup", BdsInstanceNodeBackupArgs.builder()
.bdsInstanceId(testBdsInstance.id())
.levelTypeDetails(BdsInstanceNodeBackupLevelTypeDetailsArgs.builder()
.levelType(bdsInstanceNodeBackupLevelTypeDetailsLevelType)
.nodeHostName(bdsInstanceNodeBackupLevelTypeDetailsNodeHostName)
.nodeType(bdsInstanceNodeBackupLevelTypeDetailsNodeType)
.build())
.backupType(bdsInstanceNodeBackupBackupType)
.build());
}
}
resources:
testBdsInstanceNodeBackup:
type: oci:BigDataService:BdsInstanceNodeBackup
name: test_bds_instance_node_backup
properties:
bdsInstanceId: ${testBdsInstance.id}
levelTypeDetails:
levelType: ${bdsInstanceNodeBackupLevelTypeDetailsLevelType}
nodeHostName: ${bdsInstanceNodeBackupLevelTypeDetailsNodeHostName}
nodeType: ${bdsInstanceNodeBackupLevelTypeDetailsNodeType}
backupType: ${bdsInstanceNodeBackupBackupType}
Create BdsInstanceNodeBackup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BdsInstanceNodeBackup(name: string, args: BdsInstanceNodeBackupArgs, opts?: CustomResourceOptions);
@overload
def BdsInstanceNodeBackup(resource_name: str,
args: BdsInstanceNodeBackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BdsInstanceNodeBackup(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_type: Optional[str] = None,
bds_instance_id: Optional[str] = None,
level_type_details: Optional[BdsInstanceNodeBackupLevelTypeDetailsArgs] = None,
backup_config_id: Optional[str] = None,
display_name: Optional[str] = None,
node_instance_id: Optional[str] = None)
func NewBdsInstanceNodeBackup(ctx *Context, name string, args BdsInstanceNodeBackupArgs, opts ...ResourceOption) (*BdsInstanceNodeBackup, error)
public BdsInstanceNodeBackup(string name, BdsInstanceNodeBackupArgs args, CustomResourceOptions? opts = null)
public BdsInstanceNodeBackup(String name, BdsInstanceNodeBackupArgs args)
public BdsInstanceNodeBackup(String name, BdsInstanceNodeBackupArgs args, CustomResourceOptions options)
type: oci:BigDataService:BdsInstanceNodeBackup
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 BdsInstanceNodeBackupArgs
- 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 BdsInstanceNodeBackupArgs
- 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 BdsInstanceNodeBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BdsInstanceNodeBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BdsInstanceNodeBackupArgs
- 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 bdsInstanceNodeBackupResource = new Oci.BigDataService.BdsInstanceNodeBackup("bdsInstanceNodeBackupResource", new()
{
BackupType = "string",
BdsInstanceId = "string",
LevelTypeDetails = new Oci.BigDataService.Inputs.BdsInstanceNodeBackupLevelTypeDetailsArgs
{
LevelType = "string",
NodeHostName = "string",
NodeType = "string",
},
BackupConfigId = "string",
DisplayName = "string",
NodeInstanceId = "string",
});
example, err := bigdataservice.NewBdsInstanceNodeBackup(ctx, "bdsInstanceNodeBackupResource", &bigdataservice.BdsInstanceNodeBackupArgs{
BackupType: pulumi.String("string"),
BdsInstanceId: pulumi.String("string"),
LevelTypeDetails: &bigdataservice.BdsInstanceNodeBackupLevelTypeDetailsArgs{
LevelType: pulumi.String("string"),
NodeHostName: pulumi.String("string"),
NodeType: pulumi.String("string"),
},
BackupConfigId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
NodeInstanceId: pulumi.String("string"),
})
var bdsInstanceNodeBackupResource = new BdsInstanceNodeBackup("bdsInstanceNodeBackupResource", BdsInstanceNodeBackupArgs.builder()
.backupType("string")
.bdsInstanceId("string")
.levelTypeDetails(BdsInstanceNodeBackupLevelTypeDetailsArgs.builder()
.levelType("string")
.nodeHostName("string")
.nodeType("string")
.build())
.backupConfigId("string")
.displayName("string")
.nodeInstanceId("string")
.build());
bds_instance_node_backup_resource = oci.bigdataservice.BdsInstanceNodeBackup("bdsInstanceNodeBackupResource",
backup_type="string",
bds_instance_id="string",
level_type_details={
"level_type": "string",
"node_host_name": "string",
"node_type": "string",
},
backup_config_id="string",
display_name="string",
node_instance_id="string")
const bdsInstanceNodeBackupResource = new oci.bigdataservice.BdsInstanceNodeBackup("bdsInstanceNodeBackupResource", {
backupType: "string",
bdsInstanceId: "string",
levelTypeDetails: {
levelType: "string",
nodeHostName: "string",
nodeType: "string",
},
backupConfigId: "string",
displayName: "string",
nodeInstanceId: "string",
});
type: oci:BigDataService:BdsInstanceNodeBackup
properties:
backupConfigId: string
backupType: string
bdsInstanceId: string
displayName: string
levelTypeDetails:
levelType: string
nodeHostName: string
nodeType: string
nodeInstanceId: string
BdsInstanceNodeBackup 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 BdsInstanceNodeBackup resource accepts the following input properties:
- Backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- Bds
Instance stringId - The OCID of the cluster.
- Level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- Backup
Config stringId - Display
Name string - Node
Instance stringId
- Backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- Bds
Instance stringId - The OCID of the cluster.
- Level
Type BdsDetails Instance Node Backup Level Type Details Args - Details of the type of level used to trigger the creation of a new node backup.
- Backup
Config stringId - Display
Name string - Node
Instance stringId
- backup
Type String - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance StringId - The OCID of the cluster.
- level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- backup
Config StringId - display
Name String - node
Instance StringId
- backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance stringId - The OCID of the cluster.
- level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- backup
Config stringId - display
Name string - node
Instance stringId
- backup_
type str - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds_
instance_ strid - The OCID of the cluster.
- level_
type_ Bdsdetails Instance Node Backup Level Type Details Args - Details of the type of level used to trigger the creation of a new node backup.
- backup_
config_ strid - display_
name str - node_
instance_ strid
- backup
Type String - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance StringId - The OCID of the cluster.
- level
Type Property MapDetails - Details of the type of level used to trigger the creation of a new node backup.
- backup
Config StringId - display
Name String - node
Instance StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the BdsInstanceNodeBackup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the NodeBackup.
- Time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- Time
Updated string
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the NodeBackup.
- Time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- Time
Updated string
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the NodeBackup.
- time
Created String - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated String
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The state of the NodeBackup.
- time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated string
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The state of the NodeBackup.
- time_
created str - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time_
updated str
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the NodeBackup.
- time
Created String - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated String
Look up Existing BdsInstanceNodeBackup Resource
Get an existing BdsInstanceNodeBackup 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?: BdsInstanceNodeBackupState, opts?: CustomResourceOptions): BdsInstanceNodeBackup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_config_id: Optional[str] = None,
backup_type: Optional[str] = None,
bds_instance_id: Optional[str] = None,
display_name: Optional[str] = None,
level_type_details: Optional[BdsInstanceNodeBackupLevelTypeDetailsArgs] = None,
node_instance_id: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> BdsInstanceNodeBackup
func GetBdsInstanceNodeBackup(ctx *Context, name string, id IDInput, state *BdsInstanceNodeBackupState, opts ...ResourceOption) (*BdsInstanceNodeBackup, error)
public static BdsInstanceNodeBackup Get(string name, Input<string> id, BdsInstanceNodeBackupState? state, CustomResourceOptions? opts = null)
public static BdsInstanceNodeBackup get(String name, Output<String> id, BdsInstanceNodeBackupState state, CustomResourceOptions options)
resources: _: type: oci:BigDataService:BdsInstanceNodeBackup 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.
- Backup
Config stringId - Backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- Bds
Instance stringId - The OCID of the cluster.
- Display
Name string - Level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- Node
Instance stringId - State string
- The state of the NodeBackup.
- Time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- Time
Updated string
- Backup
Config stringId - Backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- Bds
Instance stringId - The OCID of the cluster.
- Display
Name string - Level
Type BdsDetails Instance Node Backup Level Type Details Args - Details of the type of level used to trigger the creation of a new node backup.
- Node
Instance stringId - State string
- The state of the NodeBackup.
- Time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- Time
Updated string
- backup
Config StringId - backup
Type String - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance StringId - The OCID of the cluster.
- display
Name String - level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- node
Instance StringId - state String
- The state of the NodeBackup.
- time
Created String - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated String
- backup
Config stringId - backup
Type string - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance stringId - The OCID of the cluster.
- display
Name string - level
Type BdsDetails Instance Node Backup Level Type Details - Details of the type of level used to trigger the creation of a new node backup.
- node
Instance stringId - state string
- The state of the NodeBackup.
- time
Created string - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated string
- backup_
config_ strid - backup_
type str - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds_
instance_ strid - The OCID of the cluster.
- display_
name str - level_
type_ Bdsdetails Instance Node Backup Level Type Details Args - Details of the type of level used to trigger the creation of a new node backup.
- node_
instance_ strid - state str
- The state of the NodeBackup.
- time_
created str - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time_
updated str
- backup
Config StringId - backup
Type String - Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
- bds
Instance StringId - The OCID of the cluster.
- display
Name String - level
Type Property MapDetails - Details of the type of level used to trigger the creation of a new node backup.
- node
Instance StringId - state String
- The state of the NodeBackup.
- time
Created String - The time the NodeBackup was created, shown as an RFC 3339 formatted datetime string.
- time
Updated String
Supporting Types
BdsInstanceNodeBackupLevelTypeDetails, BdsInstanceNodeBackupLevelTypeDetailsArgs
- Level
Type string - Type of level used to trigger the creation of a new node backup.
- Node
Host stringName - (Updatable) Host name of the node to create backup.
- Node
Type string (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
- Level
Type string - Type of level used to trigger the creation of a new node backup.
- Node
Host stringName - (Updatable) Host name of the node to create backup.
- Node
Type string (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
- level
Type String - Type of level used to trigger the creation of a new node backup.
- node
Host StringName - (Updatable) Host name of the node to create backup.
- node
Type String (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
- level
Type string - Type of level used to trigger the creation of a new node backup.
- node
Host stringName - (Updatable) Host name of the node to create backup.
- node
Type string (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
- level_
type str - Type of level used to trigger the creation of a new node backup.
- node_
host_ strname - (Updatable) Host name of the node to create backup.
- node_
type str (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
- level
Type String - Type of level used to trigger the creation of a new node backup.
- node
Host StringName - (Updatable) Host name of the node to create backup.
- node
Type String (Updatable) Type of the node or nodes of the node backup which are going to be created.
** 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
BdsInstanceNodeBackupConfigurations can be imported using the id
, e.g.
$ pulumi import oci:BigDataService/bdsInstanceNodeBackup:BdsInstanceNodeBackup test_bds_instance_node_backup "bdsInstances/{bdsInstanceId}/nodeBackup/{nodeBackupId}"
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.