1. Packages
  2. Nutanix
  3. API Docs
  4. NdbLogCatchups
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.NdbLogCatchups

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    Provides a resource to perform the log cactup for database instance based on the input parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const name = new nutanix.NdbLogCatchups("name", {databaseId: "{{ DatabaseID }}"});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    name = nutanix.NdbLogCatchups("name", database_id="{{ DatabaseID }}")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.NewNdbLogCatchups(ctx, "name", &nutanix.NdbLogCatchupsArgs{
    			DatabaseId: pulumi.String("{{ DatabaseID }}"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var name = new Nutanix.NdbLogCatchups("name", new()
        {
            DatabaseId = "{{ DatabaseID }}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NdbLogCatchups;
    import com.pulumi.nutanix.NdbLogCatchupsArgs;
    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 name = new NdbLogCatchups("name", NdbLogCatchupsArgs.builder()
                .databaseId("{{ DatabaseID }}")
                .build());
    
        }
    }
    
    resources:
      name:
        type: nutanix:NdbLogCatchups
        properties:
          databaseId: '{{ DatabaseID }}'
    

    Create NdbLogCatchups Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NdbLogCatchups(name: string, args?: NdbLogCatchupsArgs, opts?: CustomResourceOptions);
    @overload
    def NdbLogCatchups(resource_name: str,
                       args: Optional[NdbLogCatchupsArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def NdbLogCatchups(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       database_id: Optional[str] = None,
                       for_restore: Optional[bool] = None,
                       log_catchup_version: Optional[int] = None,
                       time_machine_id: Optional[str] = None)
    func NewNdbLogCatchups(ctx *Context, name string, args *NdbLogCatchupsArgs, opts ...ResourceOption) (*NdbLogCatchups, error)
    public NdbLogCatchups(string name, NdbLogCatchupsArgs? args = null, CustomResourceOptions? opts = null)
    public NdbLogCatchups(String name, NdbLogCatchupsArgs args)
    public NdbLogCatchups(String name, NdbLogCatchupsArgs args, CustomResourceOptions options)
    
    type: nutanix:NdbLogCatchups
    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 NdbLogCatchupsArgs
    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 NdbLogCatchupsArgs
    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 NdbLogCatchupsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NdbLogCatchupsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NdbLogCatchupsArgs
    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 ndbLogCatchupsResource = new Nutanix.NdbLogCatchups("ndbLogCatchupsResource", new()
    {
        DatabaseId = "string",
        ForRestore = false,
        LogCatchupVersion = 0,
        TimeMachineId = "string",
    });
    
    example, err := nutanix.NewNdbLogCatchups(ctx, "ndbLogCatchupsResource", &nutanix.NdbLogCatchupsArgs{
    	DatabaseId:        pulumi.String("string"),
    	ForRestore:        pulumi.Bool(false),
    	LogCatchupVersion: pulumi.Int(0),
    	TimeMachineId:     pulumi.String("string"),
    })
    
    var ndbLogCatchupsResource = new NdbLogCatchups("ndbLogCatchupsResource", NdbLogCatchupsArgs.builder()
        .databaseId("string")
        .forRestore(false)
        .logCatchupVersion(0)
        .timeMachineId("string")
        .build());
    
    ndb_log_catchups_resource = nutanix.NdbLogCatchups("ndbLogCatchupsResource",
        database_id="string",
        for_restore=False,
        log_catchup_version=0,
        time_machine_id="string")
    
    const ndbLogCatchupsResource = new nutanix.NdbLogCatchups("ndbLogCatchupsResource", {
        databaseId: "string",
        forRestore: false,
        logCatchupVersion: 0,
        timeMachineId: "string",
    });
    
    type: nutanix:NdbLogCatchups
    properties:
        databaseId: string
        forRestore: false
        logCatchupVersion: 0
        timeMachineId: string
    

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

    DatabaseId string
    ForRestore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    LogCatchupVersion int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    TimeMachineId string
    Time machine id of
    DatabaseId string
    ForRestore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    LogCatchupVersion int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    TimeMachineId string
    Time machine id of
    databaseId String
    forRestore Boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion Integer

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId String
    Time machine id of
    databaseId string
    forRestore boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion number

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId string
    Time machine id of
    database_id str
    for_restore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    log_catchup_version int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    time_machine_id str
    Time machine id of
    databaseId String
    forRestore Boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion Number

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId String
    Time machine id of

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NdbLogCatchups 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 NdbLogCatchups Resource

    Get an existing NdbLogCatchups 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?: NdbLogCatchupsState, opts?: CustomResourceOptions): NdbLogCatchups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database_id: Optional[str] = None,
            for_restore: Optional[bool] = None,
            log_catchup_version: Optional[int] = None,
            time_machine_id: Optional[str] = None) -> NdbLogCatchups
    func GetNdbLogCatchups(ctx *Context, name string, id IDInput, state *NdbLogCatchupsState, opts ...ResourceOption) (*NdbLogCatchups, error)
    public static NdbLogCatchups Get(string name, Input<string> id, NdbLogCatchupsState? state, CustomResourceOptions? opts = null)
    public static NdbLogCatchups get(String name, Output<String> id, NdbLogCatchupsState 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:
    DatabaseId string
    ForRestore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    LogCatchupVersion int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    TimeMachineId string
    Time machine id of
    DatabaseId string
    ForRestore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    LogCatchupVersion int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    TimeMachineId string
    Time machine id of
    databaseId String
    forRestore Boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion Integer

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId String
    Time machine id of
    databaseId string
    forRestore boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion number

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId string
    Time machine id of
    database_id str
    for_restore bool
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    log_catchup_version int

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    time_machine_id str
    Time machine id of
    databaseId String
    forRestore Boolean
    Logs to Backup. The database may contain additional logs. Backup any remaining logs before restore or they will be lost.
    logCatchupVersion Number

    it helps to perform same operation with same config.

    See detailed information in NDB Log Catchups .

    timeMachineId String
    Time machine id of

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg