vmc.SrmNode
Explore with Pulumi AI
Provides a resource to add an instance to SDDC after site recovery has been activated.
Note: This resource depends on site recovery resource creation. Site recovery must be activated to add this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vmc from "@pulumi/vmc";
const srmNode1 = new vmc.SrmNode("srmNode1", {
sddcId: vmc_sddc.sddc_1.id,
srmNodeExtensionKeySuffix: _var.srm_node_srm_extension_key_suffix,
}, {
dependsOn: [vmc_site_recovery.site_recovery_1],
});
import pulumi
import pulumi_vmc as vmc
srm_node1 = vmc.SrmNode("srmNode1",
sddc_id=vmc_sddc["sddc_1"]["id"],
srm_node_extension_key_suffix=var["srm_node_srm_extension_key_suffix"],
opts = pulumi.ResourceOptions(depends_on=[vmc_site_recovery["site_recovery_1"]]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vmc/vmc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmc.NewSrmNode(ctx, "srmNode1", &vmc.SrmNodeArgs{
SddcId: pulumi.Any(vmc_sddc.Sddc_1.Id),
SrmNodeExtensionKeySuffix: pulumi.Any(_var.Srm_node_srm_extension_key_suffix),
}, pulumi.DependsOn([]pulumi.Resource{
vmc_site_recovery.Site_recovery_1,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vmc = Pulumi.Vmc;
return await Deployment.RunAsync(() =>
{
var srmNode1 = new Vmc.SrmNode("srmNode1", new()
{
SddcId = vmc_sddc.Sddc_1.Id,
SrmNodeExtensionKeySuffix = @var.Srm_node_srm_extension_key_suffix,
}, new CustomResourceOptions
{
DependsOn =
{
vmc_site_recovery.Site_recovery_1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vmc.SrmNode;
import com.pulumi.vmc.SrmNodeArgs;
import com.pulumi.resources.CustomResourceOptions;
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 srmNode1 = new SrmNode("srmNode1", SrmNodeArgs.builder()
.sddcId(vmc_sddc.sddc_1().id())
.srmNodeExtensionKeySuffix(var_.srm_node_srm_extension_key_suffix())
.build(), CustomResourceOptions.builder()
.dependsOn(vmc_site_recovery.site_recovery_1())
.build());
}
}
resources:
srmNode1:
type: vmc:SrmNode
properties:
sddcId: ${vmc_sddc.sddc_1.id}
srmNodeExtensionKeySuffix: ${var.srm_node_srm_extension_key_suffix}
options:
dependsOn:
- ${vmc_site_recovery.site_recovery_1}
Create SrmNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SrmNode(name: string, args: SrmNodeArgs, opts?: CustomResourceOptions);
@overload
def SrmNode(resource_name: str,
args: SrmNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SrmNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
sddc_id: Optional[str] = None,
srm_node_extension_key_suffix: Optional[str] = None,
srm_node_id: Optional[str] = None,
timeouts: Optional[SrmNodeTimeoutsArgs] = None)
func NewSrmNode(ctx *Context, name string, args SrmNodeArgs, opts ...ResourceOption) (*SrmNode, error)
public SrmNode(string name, SrmNodeArgs args, CustomResourceOptions? opts = null)
public SrmNode(String name, SrmNodeArgs args)
public SrmNode(String name, SrmNodeArgs args, CustomResourceOptions options)
type: vmc:SrmNode
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 SrmNodeArgs
- 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 SrmNodeArgs
- 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 SrmNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SrmNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SrmNodeArgs
- 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 srmNodeResource = new Vmc.SrmNode("srmNodeResource", new()
{
SddcId = "string",
SrmNodeExtensionKeySuffix = "string",
SrmNodeId = "string",
Timeouts = new Vmc.Inputs.SrmNodeTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := vmc.NewSrmNode(ctx, "srmNodeResource", &vmc.SrmNodeArgs{
SddcId: pulumi.String("string"),
SrmNodeExtensionKeySuffix: pulumi.String("string"),
SrmNodeId: pulumi.String("string"),
Timeouts: &vmc.SrmNodeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var srmNodeResource = new SrmNode("srmNodeResource", SrmNodeArgs.builder()
.sddcId("string")
.srmNodeExtensionKeySuffix("string")
.srmNodeId("string")
.timeouts(SrmNodeTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
srm_node_resource = vmc.SrmNode("srmNodeResource",
sddc_id="string",
srm_node_extension_key_suffix="string",
srm_node_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const srmNodeResource = new vmc.SrmNode("srmNodeResource", {
sddcId: "string",
srmNodeExtensionKeySuffix: "string",
srmNodeId: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: vmc:SrmNode
properties:
sddcId: string
srmNodeExtensionKeySuffix: string
srmNodeId: string
timeouts:
create: string
delete: string
SrmNode 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 SrmNode resource accepts the following input properties:
- Sddc
Id string - The SDDC identifier.
- Srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - Srm
Node stringId - Timeouts
Srm
Node Timeouts
- Sddc
Id string - The SDDC identifier.
- Srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - Srm
Node stringId - Timeouts
Srm
Node Timeouts Args
- sddc
Id String - The SDDC identifier.
- srm
Node StringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node StringId - timeouts
Srm
Node Timeouts
- sddc
Id string - The SDDC identifier.
- srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node stringId - timeouts
Srm
Node Timeouts
- sddc_
id str - The SDDC identifier.
- srm_
node_ strextension_ key_ suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm_
node_ strid - timeouts
Srm
Node Timeouts Args
- sddc
Id String - The SDDC identifier.
- srm
Node StringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node StringId - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SrmNode resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Srm
Instance Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Srm
Instance map[string]string
- id String
- The provider-assigned unique ID for this managed resource.
- srm
Instance Map<String,String>
- id string
- The provider-assigned unique ID for this managed resource.
- srm
Instance {[key: string]: string}
- id str
- The provider-assigned unique ID for this managed resource.
- srm_
instance Mapping[str, str]
- id String
- The provider-assigned unique ID for this managed resource.
- srm
Instance Map<String>
Look up Existing SrmNode Resource
Get an existing SrmNode 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?: SrmNodeState, opts?: CustomResourceOptions): SrmNode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
sddc_id: Optional[str] = None,
srm_instance: Optional[Mapping[str, str]] = None,
srm_node_extension_key_suffix: Optional[str] = None,
srm_node_id: Optional[str] = None,
timeouts: Optional[SrmNodeTimeoutsArgs] = None) -> SrmNode
func GetSrmNode(ctx *Context, name string, id IDInput, state *SrmNodeState, opts ...ResourceOption) (*SrmNode, error)
public static SrmNode Get(string name, Input<string> id, SrmNodeState? state, CustomResourceOptions? opts = null)
public static SrmNode get(String name, Output<String> id, SrmNodeState state, CustomResourceOptions options)
resources: _: type: vmc:SrmNode get: id: ${id}
- 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.
- Sddc
Id string - The SDDC identifier.
- Srm
Instance Dictionary<string, string> - Srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - Srm
Node stringId - Timeouts
Srm
Node Timeouts
- Sddc
Id string - The SDDC identifier.
- Srm
Instance map[string]string - Srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - Srm
Node stringId - Timeouts
Srm
Node Timeouts Args
- sddc
Id String - The SDDC identifier.
- srm
Instance Map<String,String> - srm
Node StringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node StringId - timeouts
Srm
Node Timeouts
- sddc
Id string - The SDDC identifier.
- srm
Instance {[key: string]: string} - srm
Node stringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node stringId - timeouts
Srm
Node Timeouts
- sddc_
id str - The SDDC identifier.
- srm_
instance Mapping[str, str] - srm_
node_ strextension_ key_ suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm_
node_ strid - timeouts
Srm
Node Timeouts Args
- sddc
Id String - The SDDC identifier.
- srm
Instance Map<String> - srm
Node StringExtension Key Suffix - Custom extension key suffix for
SRM. If not specified, default extension key will be used. The custom
extension suffix must contain 13 characters or fewer, be composed of letters,
numbers,
.
, and-
characters. The extension suffix must begin and end with a letter or number. The suffix is appended tocom.vmware.vcdr-
to form the full extension key. - srm
Node StringId - timeouts Property Map
Supporting Types
SrmNodeTimeouts, SrmNodeTimeoutsArgs
Import
Import the resource using the id
and sddc_id
.
$ pulumi import vmc:index/srmNode:SrmNode srm_node_1 id,sddc_id`
For example:
$ pulumi import vmc:index/srmNode:SrmNode srm_node_1 7aad97e9-9a4f-4e43-8817-5c8d8c0e87a5,afe7a0fd-3f0a-48b2-9ddb-0489c22732ae`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vmc vmware/terraform-provider-vmc
- License
- Notes
- This Pulumi package is based on the
vmc
Terraform Provider.