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",
});
import pulumi
import pulumi_nutanix as nutanix
acctest_managed = nutanix.NdbCloneRefresh("acctest-managed",
clone_id="{{ clone_id }}",
snapshot_id="{{ snapshot_id }}",
timezone="Asia/Calcutta")
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
})
}
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",
});
});
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());
}
}
resources:
acctest-managed:
type: nutanix:NdbCloneRefresh
properties:
cloneId: '{{ clone_id }}'
snapshotId: '{{ snapshot_id }}'
timezone: Asia/Calcutta
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 }}'
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 string
- The unique name of the resource.
- args NdbCloneRefreshArgs
- 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 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 string
- The unique name of the resource.
- args NdbCloneRefreshArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NdbCloneRefreshArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := nutanix.NewNdbCloneRefresh(ctx, "ndbCloneRefreshResource", &nutanix.NdbCloneRefreshArgs{
CloneId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Timezone: pulumi.String("string"),
UserPitrTimestamp: pulumi.String("string"),
})
var ndbCloneRefreshResource = new NdbCloneRefresh("ndbCloneRefreshResource", NdbCloneRefreshArgs.builder()
.cloneId("string")
.snapshotId("string")
.timezone("string")
.userPitrTimestamp("string")
.build());
ndb_clone_refresh_resource = nutanix.NdbCloneRefresh("ndbCloneRefreshResource",
clone_id="string",
snapshot_id="string",
timezone="string",
user_pitr_timestamp="string")
const ndbCloneRefreshResource = new nutanix.NdbCloneRefresh("ndbCloneRefreshResource", {
cloneId: "string",
snapshotId: "string",
timezone: "string",
userPitrTimestamp: "string",
});
type: nutanix:NdbCloneRefresh
properties:
cloneId: string
snapshotId: string
timezone: string
userPitrTimestamp: string
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
The NdbCloneRefresh resource accepts the following input properties:
- Clone
Id string - clone id
- Snapshot
Id string - snapshot id where clone has to be refreshed
- Timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- User
Pitr stringTimestamp
- Clone
Id string - clone id
- Snapshot
Id string - snapshot id where clone has to be refreshed
- Timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- User
Pitr stringTimestamp
- clone
Id String - clone id
- snapshot
Id String - snapshot id where clone has to be refreshed
- timezone String
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr StringTimestamp
- clone
Id string - clone id
- snapshot
Id string - snapshot id where clone has to be refreshed
- timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr stringTimestamp
- 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_ strtimestamp
- clone
Id String - clone id
- snapshot
Id String - snapshot id where clone has to be refreshed
- timezone String
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr StringTimestamp
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)
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.
- Clone
Id string - clone id
- Snapshot
Id string - snapshot id where clone has to be refreshed
- Timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- User
Pitr stringTimestamp
- Clone
Id string - clone id
- Snapshot
Id string - snapshot id where clone has to be refreshed
- Timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- User
Pitr stringTimestamp
- clone
Id String - clone id
- snapshot
Id String - snapshot id where clone has to be refreshed
- timezone String
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr StringTimestamp
- clone
Id string - clone id
- snapshot
Id string - snapshot id where clone has to be refreshed
- timezone string
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr stringTimestamp
- 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_ strtimestamp
- clone
Id String - clone id
- snapshot
Id String - snapshot id where clone has to be refreshed
- timezone String
timezone. Default is Asia/Calcutta.
See detailed information in NDB Clone Refresh.
- user
Pitr StringTimestamp
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.