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

nutanix.NdbAuthorizeDbserver

Explore with Pulumi AI

Provides a resource to authorize db server VMs for cloning of 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.NdbAuthorizeDbserver("name", {
    dbserversIds: ["{{ dbServer_IDs}}"],
    timeMachineName: "test-pg-inst",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

name = nutanix.NdbAuthorizeDbserver("name",
    dbservers_ids=["{{ dbServer_IDs}}"],
    time_machine_name="test-pg-inst")
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.NewNdbAuthorizeDbserver(ctx, "name", &nutanix.NdbAuthorizeDbserverArgs{
			DbserversIds: pulumi.StringArray{
				pulumi.String("{{ dbServer_IDs}}"),
			},
			TimeMachineName: pulumi.String("test-pg-inst"),
		})
		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 name = new Nutanix.NdbAuthorizeDbserver("name", new()
    {
        DbserversIds = new[]
        {
            "{{ dbServer_IDs}}",
        },
        TimeMachineName = "test-pg-inst",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NdbAuthorizeDbserver;
import com.pulumi.nutanix.NdbAuthorizeDbserverArgs;
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 NdbAuthorizeDbserver("name", NdbAuthorizeDbserverArgs.builder()
            .dbserversIds("{{ dbServer_IDs}}")
            .timeMachineName("test-pg-inst")
            .build());

    }
}
Copy
resources:
  name:
    type: nutanix:NdbAuthorizeDbserver
    properties:
      dbserversIds:
        - '{{ dbServer_IDs}}'
      timeMachineName: test-pg-inst
Copy

Create NdbAuthorizeDbserver Resource

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

Constructor syntax

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

@overload
def NdbAuthorizeDbserver(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         dbservers_ids: Optional[Sequence[str]] = None,
                         time_machine_id: Optional[str] = None,
                         time_machine_name: Optional[str] = None)
func NewNdbAuthorizeDbserver(ctx *Context, name string, args *NdbAuthorizeDbserverArgs, opts ...ResourceOption) (*NdbAuthorizeDbserver, error)
public NdbAuthorizeDbserver(string name, NdbAuthorizeDbserverArgs? args = null, CustomResourceOptions? opts = null)
public NdbAuthorizeDbserver(String name, NdbAuthorizeDbserverArgs args)
public NdbAuthorizeDbserver(String name, NdbAuthorizeDbserverArgs args, CustomResourceOptions options)
type: nutanix:NdbAuthorizeDbserver
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 NdbAuthorizeDbserverArgs
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 NdbAuthorizeDbserverArgs
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 NdbAuthorizeDbserverArgs
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 NdbAuthorizeDbserverArgs
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. NdbAuthorizeDbserverArgs
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 ndbAuthorizeDbserverResource = new Nutanix.NdbAuthorizeDbserver("ndbAuthorizeDbserverResource", new()
{
    DbserversIds = new[]
    {
        "string",
    },
    TimeMachineId = "string",
    TimeMachineName = "string",
});
Copy
example, err := nutanix.NewNdbAuthorizeDbserver(ctx, "ndbAuthorizeDbserverResource", &nutanix.NdbAuthorizeDbserverArgs{
	DbserversIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	TimeMachineId:   pulumi.String("string"),
	TimeMachineName: pulumi.String("string"),
})
Copy
var ndbAuthorizeDbserverResource = new NdbAuthorizeDbserver("ndbAuthorizeDbserverResource", NdbAuthorizeDbserverArgs.builder()
    .dbserversIds("string")
    .timeMachineId("string")
    .timeMachineName("string")
    .build());
Copy
ndb_authorize_dbserver_resource = nutanix.NdbAuthorizeDbserver("ndbAuthorizeDbserverResource",
    dbservers_ids=["string"],
    time_machine_id="string",
    time_machine_name="string")
Copy
const ndbAuthorizeDbserverResource = new nutanix.NdbAuthorizeDbserver("ndbAuthorizeDbserverResource", {
    dbserversIds: ["string"],
    timeMachineId: "string",
    timeMachineName: "string",
});
Copy
type: nutanix:NdbAuthorizeDbserver
properties:
    dbserversIds:
        - string
    timeMachineId: string
    timeMachineName: string
Copy

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

DbserversIds List<string>
TimeMachineId string
TimeMachineName string
  • dbservers_id : (Required)
DbserversIds []string
TimeMachineId string
TimeMachineName string
  • dbservers_id : (Required)
dbserversIds List<String>
timeMachineId String
timeMachineName String
  • dbservers_id : (Required)
dbserversIds string[]
timeMachineId string
timeMachineName string
  • dbservers_id : (Required)
dbservers_ids Sequence[str]
time_machine_id str
time_machine_name str
  • dbservers_id : (Required)
dbserversIds List<String>
timeMachineId String
timeMachineName String
  • dbservers_id : (Required)

Outputs

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

Get an existing NdbAuthorizeDbserver 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?: NdbAuthorizeDbserverState, opts?: CustomResourceOptions): NdbAuthorizeDbserver
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dbservers_ids: Optional[Sequence[str]] = None,
        time_machine_id: Optional[str] = None,
        time_machine_name: Optional[str] = None) -> NdbAuthorizeDbserver
func GetNdbAuthorizeDbserver(ctx *Context, name string, id IDInput, state *NdbAuthorizeDbserverState, opts ...ResourceOption) (*NdbAuthorizeDbserver, error)
public static NdbAuthorizeDbserver Get(string name, Input<string> id, NdbAuthorizeDbserverState? state, CustomResourceOptions? opts = null)
public static NdbAuthorizeDbserver get(String name, Output<String> id, NdbAuthorizeDbserverState state, CustomResourceOptions options)
resources:  _:    type: nutanix:NdbAuthorizeDbserver    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:
DbserversIds List<string>
TimeMachineId string
TimeMachineName string
  • dbservers_id : (Required)
DbserversIds []string
TimeMachineId string
TimeMachineName string
  • dbservers_id : (Required)
dbserversIds List<String>
timeMachineId String
timeMachineName String
  • dbservers_id : (Required)
dbserversIds string[]
timeMachineId string
timeMachineName string
  • dbservers_id : (Required)
dbservers_ids Sequence[str]
time_machine_id str
time_machine_name str
  • dbservers_id : (Required)
dbserversIds List<String>
timeMachineId String
timeMachineName String
  • dbservers_id : (Required)

Package Details

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