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",
});
import pulumi
import pulumi_nutanix as nutanix
name = nutanix.NdbAuthorizeDbserver("name",
dbservers_ids=["{{ dbServer_IDs}}"],
time_machine_name="test-pg-inst")
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
})
}
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",
});
});
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());
}
}
resources:
name:
type: nutanix:NdbAuthorizeDbserver
properties:
dbserversIds:
- '{{ dbServer_IDs}}'
timeMachineName: test-pg-inst
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := nutanix.NewNdbAuthorizeDbserver(ctx, "ndbAuthorizeDbserverResource", &nutanix.NdbAuthorizeDbserverArgs{
DbserversIds: pulumi.StringArray{
pulumi.String("string"),
},
TimeMachineId: pulumi.String("string"),
TimeMachineName: pulumi.String("string"),
})
var ndbAuthorizeDbserverResource = new NdbAuthorizeDbserver("ndbAuthorizeDbserverResource", NdbAuthorizeDbserverArgs.builder()
.dbserversIds("string")
.timeMachineId("string")
.timeMachineName("string")
.build());
ndb_authorize_dbserver_resource = nutanix.NdbAuthorizeDbserver("ndbAuthorizeDbserverResource",
dbservers_ids=["string"],
time_machine_id="string",
time_machine_name="string")
const ndbAuthorizeDbserverResource = new nutanix.NdbAuthorizeDbserver("ndbAuthorizeDbserverResource", {
dbserversIds: ["string"],
timeMachineId: "string",
timeMachineName: "string",
});
type: nutanix:NdbAuthorizeDbserver
properties:
dbserversIds:
- string
timeMachineId: string
timeMachineName: string
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
The NdbAuthorizeDbserver resource accepts the following input properties:
- Dbservers
Ids List<string> - Time
Machine stringId - Time
Machine stringName dbservers_id
: (Required)
- Dbservers
Ids []string - Time
Machine stringId - Time
Machine stringName dbservers_id
: (Required)
- dbservers
Ids List<String> - time
Machine StringId - time
Machine StringName dbservers_id
: (Required)
- dbservers
Ids string[] - time
Machine stringId - time
Machine stringName dbservers_id
: (Required)
- dbservers_
ids Sequence[str] - time_
machine_ strid - time_
machine_ strname dbservers_id
: (Required)
- dbservers
Ids List<String> - time
Machine StringId - time
Machine StringName 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)
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.
- Dbservers
Ids List<string> - Time
Machine stringId - Time
Machine stringName dbservers_id
: (Required)
- Dbservers
Ids []string - Time
Machine stringId - Time
Machine stringName dbservers_id
: (Required)
- dbservers
Ids List<String> - time
Machine StringId - time
Machine StringName dbservers_id
: (Required)
- dbservers
Ids string[] - time
Machine stringId - time
Machine stringName dbservers_id
: (Required)
- dbservers_
ids Sequence[str] - time_
machine_ strid - time_
machine_ strname dbservers_id
: (Required)
- dbservers
Ids List<String> - time
Machine StringId - time
Machine StringName 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.