1. Packages
  2. Nutanix
  3. API Docs
  4. NdbCloneRefresh
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.NdbCloneRefresh

Explore with Pulumi AI

Provides a resource to perform the refresh clone of database based on the input parameters.

Example Usage

resource to refresh clone with snapshot id

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";

const acctest_managed = new nutanix.NdbCloneRefresh("acctest-managed", {
    cloneId: "{{ clone_id }}",
    snapshotId: "{{ snapshot_id }}",
    timezone: "Asia/Calcutta",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

acctest_managed = nutanix.NdbCloneRefresh("acctest-managed",
    clone_id="{{ clone_id }}",
    snapshot_id="{{ snapshot_id }}",
    timezone="Asia/Calcutta")
Copy
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.NewNdbCloneRefresh(ctx, "acctest-managed", &nutanix.NdbCloneRefreshArgs{
			CloneId:    pulumi.String("{{ clone_id }}"),
			SnapshotId: pulumi.String("{{ snapshot_id }}"),
			Timezone:   pulumi.String("Asia/Calcutta"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;

return await Deployment.RunAsync(() => 
{
    var acctest_managed = new Nutanix.NdbCloneRefresh("acctest-managed", new()
    {
        CloneId = "{{ clone_id }}",
        SnapshotId = "{{ snapshot_id }}",
        Timezone = "Asia/Calcutta",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NdbCloneRefresh;
import com.pulumi.nutanix.NdbCloneRefreshArgs;
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 acctest_managed = new NdbCloneRefresh("acctest-managed", NdbCloneRefreshArgs.builder()
            .cloneId("{{ clone_id }}")
            .snapshotId("{{ snapshot_id }}")
            .timezone("Asia/Calcutta")
            .build());

    }
}
Copy
resources:
  acctest-managed:
    type: nutanix:NdbCloneRefresh
    properties:
      cloneId: '{{ clone_id }}'
      snapshotId: '{{ snapshot_id }}'
      timezone: Asia/Calcutta
Copy

resource to refresh clone with user pitr timestamp

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  acctest-managed:
    type: nutanix:NdbCloneRefresh
    properties:
      cloneId: '{{ clone_id }}'
      timezone: Asia/Calcutta
      userPitrStamp: '{{ timestamp }}'
Copy

Create NdbCloneRefresh Resource

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

Constructor syntax

new NdbCloneRefresh(name: string, args: NdbCloneRefreshArgs, opts?: CustomResourceOptions);
@overload
def NdbCloneRefresh(resource_name: str,
                    args: NdbCloneRefreshArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def NdbCloneRefresh(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    clone_id: Optional[str] = None,
                    snapshot_id: Optional[str] = None,
                    timezone: Optional[str] = None,
                    user_pitr_timestamp: Optional[str] = None)
func NewNdbCloneRefresh(ctx *Context, name string, args NdbCloneRefreshArgs, opts ...ResourceOption) (*NdbCloneRefresh, error)
public NdbCloneRefresh(string name, NdbCloneRefreshArgs args, CustomResourceOptions? opts = null)
public NdbCloneRefresh(String name, NdbCloneRefreshArgs args)
public NdbCloneRefresh(String name, NdbCloneRefreshArgs args, CustomResourceOptions options)
type: nutanix:NdbCloneRefresh
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NdbCloneRefreshArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NdbCloneRefreshArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NdbCloneRefreshArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NdbCloneRefreshArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NdbCloneRefreshArgs
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 ndbCloneRefreshResource = new Nutanix.NdbCloneRefresh("ndbCloneRefreshResource", new()
{
    CloneId = "string",
    SnapshotId = "string",
    Timezone = "string",
    UserPitrTimestamp = "string",
});
Copy
example, err := nutanix.NewNdbCloneRefresh(ctx, "ndbCloneRefreshResource", &nutanix.NdbCloneRefreshArgs{
	CloneId:           pulumi.String("string"),
	SnapshotId:        pulumi.String("string"),
	Timezone:          pulumi.String("string"),
	UserPitrTimestamp: pulumi.String("string"),
})
Copy
var ndbCloneRefreshResource = new NdbCloneRefresh("ndbCloneRefreshResource", NdbCloneRefreshArgs.builder()
    .cloneId("string")
    .snapshotId("string")
    .timezone("string")
    .userPitrTimestamp("string")
    .build());
Copy
ndb_clone_refresh_resource = nutanix.NdbCloneRefresh("ndbCloneRefreshResource",
    clone_id="string",
    snapshot_id="string",
    timezone="string",
    user_pitr_timestamp="string")
Copy
const ndbCloneRefreshResource = new nutanix.NdbCloneRefresh("ndbCloneRefreshResource", {
    cloneId: "string",
    snapshotId: "string",
    timezone: "string",
    userPitrTimestamp: "string",
});
Copy
type: nutanix:NdbCloneRefresh
properties:
    cloneId: string
    snapshotId: string
    timezone: string
    userPitrTimestamp: string
Copy

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

CloneId This property is required. string
clone id
SnapshotId string
snapshot id where clone has to be refreshed
Timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

UserPitrTimestamp string
CloneId This property is required. string
clone id
SnapshotId string
snapshot id where clone has to be refreshed
Timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

UserPitrTimestamp string
cloneId This property is required. String
clone id
snapshotId String
snapshot id where clone has to be refreshed
timezone String

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp String
cloneId This property is required. string
clone id
snapshotId string
snapshot id where clone has to be refreshed
timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp string
clone_id This property is required. str
clone id
snapshot_id str
snapshot id where clone has to be refreshed
timezone str

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

user_pitr_timestamp str
cloneId This property is required. String
clone id
snapshotId String
snapshot id where clone has to be refreshed
timezone String

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp String

Outputs

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

Get an existing NdbCloneRefresh 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?: NdbCloneRefreshState, opts?: CustomResourceOptions): NdbCloneRefresh
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        clone_id: Optional[str] = None,
        snapshot_id: Optional[str] = None,
        timezone: Optional[str] = None,
        user_pitr_timestamp: Optional[str] = None) -> NdbCloneRefresh
func GetNdbCloneRefresh(ctx *Context, name string, id IDInput, state *NdbCloneRefreshState, opts ...ResourceOption) (*NdbCloneRefresh, error)
public static NdbCloneRefresh Get(string name, Input<string> id, NdbCloneRefreshState? state, CustomResourceOptions? opts = null)
public static NdbCloneRefresh get(String name, Output<String> id, NdbCloneRefreshState state, CustomResourceOptions options)
resources:  _:    type: nutanix:NdbCloneRefresh    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CloneId string
clone id
SnapshotId string
snapshot id where clone has to be refreshed
Timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

UserPitrTimestamp string
CloneId string
clone id
SnapshotId string
snapshot id where clone has to be refreshed
Timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

UserPitrTimestamp string
cloneId String
clone id
snapshotId String
snapshot id where clone has to be refreshed
timezone String

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp String
cloneId string
clone id
snapshotId string
snapshot id where clone has to be refreshed
timezone string

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp string
clone_id str
clone id
snapshot_id str
snapshot id where clone has to be refreshed
timezone str

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

user_pitr_timestamp str
cloneId String
clone id
snapshotId String
snapshot id where clone has to be refreshed
timezone String

timezone. Default is Asia/Calcutta.

See detailed information in NDB Clone Refresh.

userPitrTimestamp String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.