1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CdwpgRestartInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CdwpgRestartInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    InstanceId string
    Instance id (e.g., "cdwpg-xxxx").
    CdwpgRestartInstanceId string
    ID of the resource.
    NodeIds List<string>
    Node ids to restart (specify nodes to reboot).
    NodeTypes List<string>
    Node types to restart (gtm/cn/dn).
    InstanceId string
    Instance id (e.g., "cdwpg-xxxx").
    CdwpgRestartInstanceId string
    ID of the resource.
    NodeIds []string
    Node ids to restart (specify nodes to reboot).
    NodeTypes []string
    Node types to restart (gtm/cn/dn).
    instanceId String
    Instance id (e.g., "cdwpg-xxxx").
    cdwpgRestartInstanceId String
    ID of the resource.
    nodeIds List<String>
    Node ids to restart (specify nodes to reboot).
    nodeTypes List<String>
    Node types to restart (gtm/cn/dn).
    instanceId string
    Instance id (e.g., "cdwpg-xxxx").
    cdwpgRestartInstanceId string
    ID of the resource.
    nodeIds string[]
    Node ids to restart (specify nodes to reboot).
    nodeTypes string[]
    Node types to restart (gtm/cn/dn).
    instance_id str
    Instance id (e.g., "cdwpg-xxxx").
    cdwpg_restart_instance_id str
    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).
    instanceId String
    Instance id (e.g., "cdwpg-xxxx").
    cdwpgRestartInstanceId String
    ID of the resource.
    nodeIds List<String>
    Node ids to restart (specify nodes to reboot).
    nodeTypes 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.
    The following state arguments are supported:
    CdwpgRestartInstanceId string
    ID of the resource.
    InstanceId string
    Instance id (e.g., "cdwpg-xxxx").
    NodeIds List<string>
    Node ids to restart (specify nodes to reboot).
    NodeTypes List<string>
    Node types to restart (gtm/cn/dn).
    CdwpgRestartInstanceId string
    ID of the resource.
    InstanceId string
    Instance id (e.g., "cdwpg-xxxx").
    NodeIds []string
    Node ids to restart (specify nodes to reboot).
    NodeTypes []string
    Node types to restart (gtm/cn/dn).
    cdwpgRestartInstanceId String
    ID of the resource.
    instanceId String
    Instance id (e.g., "cdwpg-xxxx").
    nodeIds List<String>
    Node ids to restart (specify nodes to reboot).
    nodeTypes List<String>
    Node types to restart (gtm/cn/dn).
    cdwpgRestartInstanceId string
    ID of the resource.
    instanceId string
    Instance id (e.g., "cdwpg-xxxx").
    nodeIds string[]
    Node ids to restart (specify nodes to reboot).
    nodeTypes string[]
    Node types to restart (gtm/cn/dn).
    cdwpg_restart_instance_id str
    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).
    cdwpgRestartInstanceId String
    ID of the resource.
    instanceId String
    Instance id (e.g., "cdwpg-xxxx").
    nodeIds List<String>
    Node ids to restart (specify nodes to reboot).
    nodeTypes 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack