1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CssClusterRestartV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.CssClusterRestartV1

Explore with Pulumi AI

Manages CSS cluster restart resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const clusterId = config.requireObject("clusterId");
const test = new opentelekomcloud.CssClusterRestartV1("test", {clusterId: clusterId});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
cluster_id = config.require_object("clusterId")
test = opentelekomcloud.CssClusterRestartV1("test", cluster_id=cluster_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		clusterId := cfg.RequireObject("clusterId")
		_, err := opentelekomcloud.NewCssClusterRestartV1(ctx, "test", &opentelekomcloud.CssClusterRestartV1Args{
			ClusterId: pulumi.Any(clusterId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var clusterId = config.RequireObject<dynamic>("clusterId");
    var test = new Opentelekomcloud.CssClusterRestartV1("test", new()
    {
        ClusterId = clusterId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CssClusterRestartV1;
import com.pulumi.opentelekomcloud.CssClusterRestartV1Args;
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) {
        final var config = ctx.config();
        final var clusterId = config.get("clusterId");
        var test = new CssClusterRestartV1("test", CssClusterRestartV1Args.builder()
            .clusterId(clusterId)
            .build());

    }
}
Copy
configuration:
  clusterId:
    type: dynamic
resources:
  test:
    type: opentelekomcloud:CssClusterRestartV1
    properties:
      clusterId: ${clusterId}
Copy

Create CssClusterRestartV1 Resource

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

Constructor syntax

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

@overload
def CssClusterRestartV1(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        cluster_id: Optional[str] = None,
                        css_cluster_restart_v1_id: Optional[str] = None,
                        timeouts: Optional[CssClusterRestartV1TimeoutsArgs] = None)
func NewCssClusterRestartV1(ctx *Context, name string, args CssClusterRestartV1Args, opts ...ResourceOption) (*CssClusterRestartV1, error)
public CssClusterRestartV1(string name, CssClusterRestartV1Args args, CustomResourceOptions? opts = null)
public CssClusterRestartV1(String name, CssClusterRestartV1Args args)
public CssClusterRestartV1(String name, CssClusterRestartV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CssClusterRestartV1
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 This property is required. CssClusterRestartV1Args
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 This property is required. CssClusterRestartV1Args
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 This property is required. CssClusterRestartV1Args
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 This property is required. CssClusterRestartV1Args
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. CssClusterRestartV1Args
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 cssClusterRestartV1Resource = new Opentelekomcloud.CssClusterRestartV1("cssClusterRestartV1Resource", new()
{
    ClusterId = "string",
    CssClusterRestartV1Id = "string",
    Timeouts = new Opentelekomcloud.Inputs.CssClusterRestartV1TimeoutsArgs
    {
        Create = "string",
    },
});
Copy
example, err := opentelekomcloud.NewCssClusterRestartV1(ctx, "cssClusterRestartV1Resource", &opentelekomcloud.CssClusterRestartV1Args{
ClusterId: pulumi.String("string"),
CssClusterRestartV1Id: pulumi.String("string"),
Timeouts: &.CssClusterRestartV1TimeoutsArgs{
Create: pulumi.String("string"),
},
})
Copy
var cssClusterRestartV1Resource = new CssClusterRestartV1("cssClusterRestartV1Resource", CssClusterRestartV1Args.builder()
    .clusterId("string")
    .cssClusterRestartV1Id("string")
    .timeouts(CssClusterRestartV1TimeoutsArgs.builder()
        .create("string")
        .build())
    .build());
Copy
css_cluster_restart_v1_resource = opentelekomcloud.CssClusterRestartV1("cssClusterRestartV1Resource",
    cluster_id="string",
    css_cluster_restart_v1_id="string",
    timeouts={
        "create": "string",
    })
Copy
const cssClusterRestartV1Resource = new opentelekomcloud.CssClusterRestartV1("cssClusterRestartV1Resource", {
    clusterId: "string",
    cssClusterRestartV1Id: "string",
    timeouts: {
        create: "string",
    },
});
Copy
type: opentelekomcloud:CssClusterRestartV1
properties:
    clusterId: string
    cssClusterRestartV1Id: string
    timeouts:
        create: string
Copy

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

ClusterId This property is required. string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
CssClusterRestartV1Id string
The resource ID.
Timeouts CssClusterRestartV1Timeouts
ClusterId This property is required. string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
CssClusterRestartV1Id string
The resource ID.
Timeouts CssClusterRestartV1TimeoutsArgs
clusterId This property is required. String
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id String
The resource ID.
timeouts CssClusterRestartV1Timeouts
clusterId This property is required. string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id string
The resource ID.
timeouts CssClusterRestartV1Timeouts
cluster_id This property is required. str
Specifies the ID of the CSS cluster. Changing this creates a new resource.
css_cluster_restart_v1_id str
The resource ID.
timeouts CssClusterRestartV1TimeoutsArgs
clusterId This property is required. String
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id String
The resource ID.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the CssClusterRestartV1 resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Region string
The region in which the resource created.
Id string
The provider-assigned unique ID for this managed resource.
Region string
The region in which the resource created.
id String
The provider-assigned unique ID for this managed resource.
region String
The region in which the resource created.
id string
The provider-assigned unique ID for this managed resource.
region string
The region in which the resource created.
id str
The provider-assigned unique ID for this managed resource.
region str
The region in which the resource created.
id String
The provider-assigned unique ID for this managed resource.
region String
The region in which the resource created.

Look up Existing CssClusterRestartV1 Resource

Get an existing CssClusterRestartV1 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?: CssClusterRestartV1State, opts?: CustomResourceOptions): CssClusterRestartV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        css_cluster_restart_v1_id: Optional[str] = None,
        region: Optional[str] = None,
        timeouts: Optional[CssClusterRestartV1TimeoutsArgs] = None) -> CssClusterRestartV1
func GetCssClusterRestartV1(ctx *Context, name string, id IDInput, state *CssClusterRestartV1State, opts ...ResourceOption) (*CssClusterRestartV1, error)
public static CssClusterRestartV1 Get(string name, Input<string> id, CssClusterRestartV1State? state, CustomResourceOptions? opts = null)
public static CssClusterRestartV1 get(String name, Output<String> id, CssClusterRestartV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:CssClusterRestartV1    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:
ClusterId string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
CssClusterRestartV1Id string
The resource ID.
Region string
The region in which the resource created.
Timeouts CssClusterRestartV1Timeouts
ClusterId string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
CssClusterRestartV1Id string
The resource ID.
Region string
The region in which the resource created.
Timeouts CssClusterRestartV1TimeoutsArgs
clusterId String
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id String
The resource ID.
region String
The region in which the resource created.
timeouts CssClusterRestartV1Timeouts
clusterId string
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id string
The resource ID.
region string
The region in which the resource created.
timeouts CssClusterRestartV1Timeouts
cluster_id str
Specifies the ID of the CSS cluster. Changing this creates a new resource.
css_cluster_restart_v1_id str
The resource ID.
region str
The region in which the resource created.
timeouts CssClusterRestartV1TimeoutsArgs
clusterId String
Specifies the ID of the CSS cluster. Changing this creates a new resource.
cssClusterRestartV1Id String
The resource ID.
region String
The region in which the resource created.
timeouts Property Map

Supporting Types

CssClusterRestartV1Timeouts
, CssClusterRestartV1TimeoutsArgs

Create string
Create string
create String
create string
create str
create String

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.