tencentcloud.CdwpgRestartInstance
Explore with Pulumi AI
Provides a resource to create a cdwpg cdwpg_restart_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cdwpgRestartInstance = new tencentcloud.CdwpgRestartInstance("cdwpgRestartInstance", {
instanceId: "cdwpg-zpiemnyd",
nodeTypes: ["gtm"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cdwpg_restart_instance = tencentcloud.CdwpgRestartInstance("cdwpgRestartInstance",
instance_id="cdwpg-zpiemnyd",
node_types=["gtm"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCdwpgRestartInstance(ctx, "cdwpgRestartInstance", &tencentcloud.CdwpgRestartInstanceArgs{
InstanceId: pulumi.String("cdwpg-zpiemnyd"),
NodeTypes: pulumi.StringArray{
pulumi.String("gtm"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var cdwpgRestartInstance = new Tencentcloud.CdwpgRestartInstance("cdwpgRestartInstance", new()
{
InstanceId = "cdwpg-zpiemnyd",
NodeTypes = new[]
{
"gtm",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CdwpgRestartInstance;
import com.pulumi.tencentcloud.CdwpgRestartInstanceArgs;
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 cdwpgRestartInstance = new CdwpgRestartInstance("cdwpgRestartInstance", CdwpgRestartInstanceArgs.builder()
.instanceId("cdwpg-zpiemnyd")
.nodeTypes("gtm")
.build());
}
}
resources:
cdwpgRestartInstance:
type: tencentcloud:CdwpgRestartInstance
properties:
instanceId: cdwpg-zpiemnyd
nodeTypes:
- gtm
Create CdwpgRestartInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdwpgRestartInstance(name: string, args: CdwpgRestartInstanceArgs, opts?: CustomResourceOptions);
@overload
def CdwpgRestartInstance(resource_name: str,
args: CdwpgRestartInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdwpgRestartInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
cdwpg_restart_instance_id: Optional[str] = None,
node_ids: Optional[Sequence[str]] = None,
node_types: Optional[Sequence[str]] = None)
func NewCdwpgRestartInstance(ctx *Context, name string, args CdwpgRestartInstanceArgs, opts ...ResourceOption) (*CdwpgRestartInstance, error)
public CdwpgRestartInstance(string name, CdwpgRestartInstanceArgs args, CustomResourceOptions? opts = null)
public CdwpgRestartInstance(String name, CdwpgRestartInstanceArgs args)
public CdwpgRestartInstance(String name, CdwpgRestartInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CdwpgRestartInstance
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 CdwpgRestartInstanceArgs
- 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 CdwpgRestartInstanceArgs
- 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 CdwpgRestartInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdwpgRestartInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdwpgRestartInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CdwpgRestartInstance 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 CdwpgRestartInstance resource accepts the following input properties:
- Instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- Cdwpg
Restart stringInstance Id - ID of the resource.
- Node
Ids List<string> - Node ids to restart (specify nodes to reboot).
- Node
Types List<string> - Node types to restart (gtm/cn/dn).
- Instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- Cdwpg
Restart stringInstance Id - ID of the resource.
- Node
Ids []string - Node ids to restart (specify nodes to reboot).
- Node
Types []string - Node types to restart (gtm/cn/dn).
- instance
Id String - Instance id (e.g., "cdwpg-xxxx").
- cdwpg
Restart StringInstance Id - ID of the resource.
- node
Ids List<String> - Node ids to restart (specify nodes to reboot).
- node
Types List<String> - Node types to restart (gtm/cn/dn).
- instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- cdwpg
Restart stringInstance Id - ID of the resource.
- node
Ids string[] - Node ids to restart (specify nodes to reboot).
- node
Types string[] - Node types to restart (gtm/cn/dn).
- instance_
id str - Instance id (e.g., "cdwpg-xxxx").
- cdwpg_
restart_ strinstance_ id - ID of the resource.
- node_
ids Sequence[str] - Node ids to restart (specify nodes to reboot).
- node_
types Sequence[str] - Node types to restart (gtm/cn/dn).
- instance
Id String - Instance id (e.g., "cdwpg-xxxx").
- cdwpg
Restart StringInstance Id - ID of the resource.
- node
Ids List<String> - Node ids to restart (specify nodes to reboot).
- node
Types List<String> - Node types to restart (gtm/cn/dn).
Outputs
All input properties are implicitly available as output properties. Additionally, the CdwpgRestartInstance 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 CdwpgRestartInstance Resource
Get an existing CdwpgRestartInstance 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?: CdwpgRestartInstanceState, opts?: CustomResourceOptions): CdwpgRestartInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdwpg_restart_instance_id: Optional[str] = None,
instance_id: Optional[str] = None,
node_ids: Optional[Sequence[str]] = None,
node_types: Optional[Sequence[str]] = None) -> CdwpgRestartInstance
func GetCdwpgRestartInstance(ctx *Context, name string, id IDInput, state *CdwpgRestartInstanceState, opts ...ResourceOption) (*CdwpgRestartInstance, error)
public static CdwpgRestartInstance Get(string name, Input<string> id, CdwpgRestartInstanceState? state, CustomResourceOptions? opts = null)
public static CdwpgRestartInstance get(String name, Output<String> id, CdwpgRestartInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CdwpgRestartInstance 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.
- Cdwpg
Restart stringInstance Id - ID of the resource.
- Instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- Node
Ids List<string> - Node ids to restart (specify nodes to reboot).
- Node
Types List<string> - Node types to restart (gtm/cn/dn).
- Cdwpg
Restart stringInstance Id - ID of the resource.
- Instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- Node
Ids []string - Node ids to restart (specify nodes to reboot).
- Node
Types []string - Node types to restart (gtm/cn/dn).
- cdwpg
Restart StringInstance Id - ID of the resource.
- instance
Id String - Instance id (e.g., "cdwpg-xxxx").
- node
Ids List<String> - Node ids to restart (specify nodes to reboot).
- node
Types List<String> - Node types to restart (gtm/cn/dn).
- cdwpg
Restart stringInstance Id - ID of the resource.
- instance
Id string - Instance id (e.g., "cdwpg-xxxx").
- node
Ids string[] - Node ids to restart (specify nodes to reboot).
- node
Types string[] - Node types to restart (gtm/cn/dn).
- cdwpg_
restart_ strinstance_ id - ID of the resource.
- instance_
id str - Instance id (e.g., "cdwpg-xxxx").
- node_
ids Sequence[str] - Node ids to restart (specify nodes to reboot).
- node_
types Sequence[str] - Node types to restart (gtm/cn/dn).
- cdwpg
Restart StringInstance Id - ID of the resource.
- instance
Id String - Instance id (e.g., "cdwpg-xxxx").
- node
Ids List<String> - Node ids to restart (specify nodes to reboot).
- node
Types List<String> - Node types to restart (gtm/cn/dn).
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.