Up-to-date reference of API arguments for CES resource group you can get at documentation portal
Manages a CES resource group resource within OpenTelekomCloud.
Example Usage
Add resources manually
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const subnetId = config.requireObject<any>("subnetId");
const vm1 = new opentelekomcloud.ComputeInstanceV2("vm_1", {
name: "ecs-test",
imageName: "Standard_Debian_11_latest",
flavorName: "s3.large.2",
networks: [{
uuid: subnetId,
}],
});
const test = new opentelekomcloud.CesResourceGroupV2("test", {
name: "test",
resources: [
{
namespace: "SYS.ECS",
dimensions: [{
name: "instance_id",
value: vm1.computeInstanceV2Id,
}],
},
{
namespace: "SYS.EVS",
dimensions: [{
name: "disk_name",
value: pulumi.interpolate`${vm1.computeInstanceV2Id}-sda`,
}],
},
],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
subnet_id = config.require_object("subnetId")
vm1 = opentelekomcloud.ComputeInstanceV2("vm_1",
name="ecs-test",
image_name="Standard_Debian_11_latest",
flavor_name="s3.large.2",
networks=[{
"uuid": subnet_id,
}])
test = opentelekomcloud.CesResourceGroupV2("test",
name="test",
resources=[
{
"namespace": "SYS.ECS",
"dimensions": [{
"name": "instance_id",
"value": vm1.compute_instance_v2_id,
}],
},
{
"namespace": "SYS.EVS",
"dimensions": [{
"name": "disk_name",
"value": vm1.compute_instance_v2_id.apply(lambda compute_instance_v2_id: f"{compute_instance_v2_id}-sda"),
}],
},
])
package main
import (
"fmt"
"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, "")
subnetId := cfg.RequireObject("subnetId")
vm1, err := opentelekomcloud.NewComputeInstanceV2(ctx, "vm_1", &opentelekomcloud.ComputeInstanceV2Args{
Name: pulumi.String("ecs-test"),
ImageName: pulumi.String("Standard_Debian_11_latest"),
FlavorName: pulumi.String("s3.large.2"),
Networks: opentelekomcloud.ComputeInstanceV2NetworkArray{
&opentelekomcloud.ComputeInstanceV2NetworkArgs{
Uuid: pulumi.Any(subnetId),
},
},
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCesResourceGroupV2(ctx, "test", &opentelekomcloud.CesResourceGroupV2Args{
Name: pulumi.String("test"),
Resources: opentelekomcloud.CesResourceGroupV2ResourceArray{
&opentelekomcloud.CesResourceGroupV2ResourceArgs{
Namespace: pulumi.String("SYS.ECS"),
Dimensions: opentelekomcloud.CesResourceGroupV2ResourceDimensionArray{
&opentelekomcloud.CesResourceGroupV2ResourceDimensionArgs{
Name: pulumi.String("instance_id"),
Value: vm1.ComputeInstanceV2Id,
},
},
},
&opentelekomcloud.CesResourceGroupV2ResourceArgs{
Namespace: pulumi.String("SYS.EVS"),
Dimensions: opentelekomcloud.CesResourceGroupV2ResourceDimensionArray{
&opentelekomcloud.CesResourceGroupV2ResourceDimensionArgs{
Name: pulumi.String("disk_name"),
Value: vm1.ComputeInstanceV2Id.ApplyT(func(computeInstanceV2Id string) (string, error) {
return fmt.Sprintf("%v-sda", computeInstanceV2Id), nil
}).(pulumi.StringOutput),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var subnetId = config.RequireObject<dynamic>("subnetId");
var vm1 = new Opentelekomcloud.ComputeInstanceV2("vm_1", new()
{
Name = "ecs-test",
ImageName = "Standard_Debian_11_latest",
FlavorName = "s3.large.2",
Networks = new[]
{
new Opentelekomcloud.Inputs.ComputeInstanceV2NetworkArgs
{
Uuid = subnetId,
},
},
});
var test = new Opentelekomcloud.CesResourceGroupV2("test", new()
{
Name = "test",
Resources = new[]
{
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceArgs
{
Namespace = "SYS.ECS",
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceDimensionArgs
{
Name = "instance_id",
Value = vm1.ComputeInstanceV2Id,
},
},
},
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceArgs
{
Namespace = "SYS.EVS",
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceDimensionArgs
{
Name = "disk_name",
Value = vm1.ComputeInstanceV2Id.Apply(computeInstanceV2Id => $"{computeInstanceV2Id}-sda"),
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ComputeInstanceV2;
import com.pulumi.opentelekomcloud.ComputeInstanceV2Args;
import com.pulumi.opentelekomcloud.inputs.ComputeInstanceV2NetworkArgs;
import com.pulumi.opentelekomcloud.CesResourceGroupV2;
import com.pulumi.opentelekomcloud.CesResourceGroupV2Args;
import com.pulumi.opentelekomcloud.inputs.CesResourceGroupV2ResourceArgs;
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 subnetId = config.get("subnetId");
var vm1 = new ComputeInstanceV2("vm1", ComputeInstanceV2Args.builder()
.name("ecs-test")
.imageName("Standard_Debian_11_latest")
.flavorName("s3.large.2")
.networks(ComputeInstanceV2NetworkArgs.builder()
.uuid(subnetId)
.build())
.build());
var test = new CesResourceGroupV2("test", CesResourceGroupV2Args.builder()
.name("test")
.resources(
CesResourceGroupV2ResourceArgs.builder()
.namespace("SYS.ECS")
.dimensions(CesResourceGroupV2ResourceDimensionArgs.builder()
.name("instance_id")
.value(vm1.computeInstanceV2Id())
.build())
.build(),
CesResourceGroupV2ResourceArgs.builder()
.namespace("SYS.EVS")
.dimensions(CesResourceGroupV2ResourceDimensionArgs.builder()
.name("disk_name")
.value(vm1.computeInstanceV2Id().applyValue(_computeInstanceV2Id -> String.format("%s-sda", _computeInstanceV2Id)))
.build())
.build())
.build());
}
}
configuration:
subnetId:
type: dynamic
resources:
vm1:
type: opentelekomcloud:ComputeInstanceV2
name: vm_1
properties:
name: ecs-test
imageName: Standard_Debian_11_latest
flavorName: s3.large.2
networks:
- uuid: ${subnetId}
test:
type: opentelekomcloud:CesResourceGroupV2
properties:
name: test
resources:
- namespace: SYS.ECS
dimensions:
- name: instance_id
value: ${vm1.computeInstanceV2Id}
- namespace: SYS.EVS
dimensions:
- name: disk_name
value: ${vm1.computeInstanceV2Id}-sda
Add resources from enterprise projects
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const epsId = config.requireObject<any>("epsId");
const test = new opentelekomcloud.CesResourceGroupV2("test", {
name: "test",
type: "EPS",
associatedEpsIds: [epsId],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
eps_id = config.require_object("epsId")
test = opentelekomcloud.CesResourceGroupV2("test",
name="test",
type="EPS",
associated_eps_ids=[eps_id])
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, "")
epsId := cfg.RequireObject("epsId")
_, err := opentelekomcloud.NewCesResourceGroupV2(ctx, "test", &opentelekomcloud.CesResourceGroupV2Args{
Name: pulumi.String("test"),
Type: pulumi.String("EPS"),
AssociatedEpsIds: pulumi.StringArray{
epsId,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var epsId = config.RequireObject<dynamic>("epsId");
var test = new Opentelekomcloud.CesResourceGroupV2("test", new()
{
Name = "test",
Type = "EPS",
AssociatedEpsIds = new[]
{
epsId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesResourceGroupV2;
import com.pulumi.opentelekomcloud.CesResourceGroupV2Args;
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 epsId = config.get("epsId");
var test = new CesResourceGroupV2("test", CesResourceGroupV2Args.builder()
.name("test")
.type("EPS")
.associatedEpsIds(epsId)
.build());
}
}
configuration:
epsId:
type: dynamic
resources:
test:
type: opentelekomcloud:CesResourceGroupV2
properties:
name: test
type: EPS
associatedEpsIds:
- ${epsId}
Add resources by tags
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const test = new opentelekomcloud.CesResourceGroupV2("test", {
name: "test",
type: "TAG",
tags: {
key: "value",
foo: "bar",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
test = opentelekomcloud.CesResourceGroupV2("test",
name="test",
type="TAG",
tags={
"key": "value",
"foo": "bar",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCesResourceGroupV2(ctx, "test", &opentelekomcloud.CesResourceGroupV2Args{
Name: pulumi.String("test"),
Type: pulumi.String("TAG"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var test = new Opentelekomcloud.CesResourceGroupV2("test", new()
{
Name = "test",
Type = "TAG",
Tags =
{
{ "key", "value" },
{ "foo", "bar" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesResourceGroupV2;
import com.pulumi.opentelekomcloud.CesResourceGroupV2Args;
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 test = new CesResourceGroupV2("test", CesResourceGroupV2Args.builder()
.name("test")
.type("TAG")
.tags(Map.ofEntries(
Map.entry("key", "value"),
Map.entry("foo", "bar")
))
.build());
}
}
resources:
test:
type: opentelekomcloud:CesResourceGroupV2
properties:
name: test
type: TAG
tags:
key: value
foo: bar
Create CesResourceGroupV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CesResourceGroupV2(name: string, args?: CesResourceGroupV2Args, opts?: CustomResourceOptions);@overload
def CesResourceGroupV2(resource_name: str,
args: Optional[CesResourceGroupV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CesResourceGroupV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
associated_eps_ids: Optional[Sequence[str]] = None,
ces_resource_group_v2_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
resources: Optional[Sequence[CesResourceGroupV2ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None)func NewCesResourceGroupV2(ctx *Context, name string, args *CesResourceGroupV2Args, opts ...ResourceOption) (*CesResourceGroupV2, error)public CesResourceGroupV2(string name, CesResourceGroupV2Args? args = null, CustomResourceOptions? opts = null)
public CesResourceGroupV2(String name, CesResourceGroupV2Args args)
public CesResourceGroupV2(String name, CesResourceGroupV2Args args, CustomResourceOptions options)
type: opentelekomcloud:CesResourceGroupV2
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 CesResourceGroupV2Args
- 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 CesResourceGroupV2Args
- 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 CesResourceGroupV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CesResourceGroupV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CesResourceGroupV2Args
- 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 cesResourceGroupV2Resource = new Opentelekomcloud.CesResourceGroupV2("cesResourceGroupV2Resource", new()
{
AssociatedEpsIds = new[]
{
"string",
},
CesResourceGroupV2Id = "string",
EnterpriseProjectId = "string",
Name = "string",
Resources = new[]
{
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesResourceGroupV2ResourceDimensionArgs
{
Name = "string",
Value = "string",
},
},
Namespace = "string",
},
},
Tags =
{
{ "string", "string" },
},
Type = "string",
});
example, err := opentelekomcloud.NewCesResourceGroupV2(ctx, "cesResourceGroupV2Resource", &opentelekomcloud.CesResourceGroupV2Args{
AssociatedEpsIds: pulumi.StringArray{
pulumi.String("string"),
},
CesResourceGroupV2Id: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
Resources: opentelekomcloud.CesResourceGroupV2ResourceArray{
&opentelekomcloud.CesResourceGroupV2ResourceArgs{
Dimensions: opentelekomcloud.CesResourceGroupV2ResourceDimensionArray{
&opentelekomcloud.CesResourceGroupV2ResourceDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Namespace: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var cesResourceGroupV2Resource = new CesResourceGroupV2("cesResourceGroupV2Resource", CesResourceGroupV2Args.builder()
.associatedEpsIds("string")
.cesResourceGroupV2Id("string")
.enterpriseProjectId("string")
.name("string")
.resources(CesResourceGroupV2ResourceArgs.builder()
.dimensions(CesResourceGroupV2ResourceDimensionArgs.builder()
.name("string")
.value("string")
.build())
.namespace("string")
.build())
.tags(Map.of("string", "string"))
.type("string")
.build());
ces_resource_group_v2_resource = opentelekomcloud.CesResourceGroupV2("cesResourceGroupV2Resource",
associated_eps_ids=["string"],
ces_resource_group_v2_id="string",
enterprise_project_id="string",
name="string",
resources=[{
"dimensions": [{
"name": "string",
"value": "string",
}],
"namespace": "string",
}],
tags={
"string": "string",
},
type="string")
const cesResourceGroupV2Resource = new opentelekomcloud.CesResourceGroupV2("cesResourceGroupV2Resource", {
associatedEpsIds: ["string"],
cesResourceGroupV2Id: "string",
enterpriseProjectId: "string",
name: "string",
resources: [{
dimensions: [{
name: "string",
value: "string",
}],
namespace: "string",
}],
tags: {
string: "string",
},
type: "string",
});
type: opentelekomcloud:CesResourceGroupV2
properties:
associatedEpsIds:
- string
cesResourceGroupV2Id: string
enterpriseProjectId: string
name: string
resources:
- dimensions:
- name: string
value: string
namespace: string
tags:
string: string
type: string
CesResourceGroupV2 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 CesResourceGroupV2 resource accepts the following input properties:
- Associated
Eps List<string>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- Ces
Resource stringGroup V2Id - The resource ID.
- Enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Resources
List<Ces
Resource Group V2Resource> Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Dictionary<string, string>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- Type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- Associated
Eps []stringIds - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- Ces
Resource stringGroup V2Id - The resource ID.
- Enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Resources
[]Ces
Resource Group V2Resource Args Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- map[string]string
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- Type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps List<String>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource StringGroup V2Id - The resource ID.
- enterprise
Project StringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- resources
List<Ces
Resource Group V2Resource> Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Map<String,String>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type String
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps string[]Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource stringGroup V2Id - The resource ID.
- enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- resources
Ces
Resource Group V2Resource[] Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- {[key: string]: string}
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated_
eps_ Sequence[str]ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces_
resource_ strgroup_ v2_ id - The resource ID.
- enterprise_
project_ strid - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name str
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- resources
Sequence[Ces
Resource Group V2Resource Args] Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Mapping[str, str]
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type str
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps List<String>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource StringGroup V2Id - The resource ID.
- enterprise
Project StringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- resources List<Property Map>
Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Map<String>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type String
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CesResourceGroupV2 resource produces the following output properties:
- created_
at str - The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region in which the resource group is created.
Look up Existing CesResourceGroupV2 Resource
Get an existing CesResourceGroupV2 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?: CesResourceGroupV2State, opts?: CustomResourceOptions): CesResourceGroupV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associated_eps_ids: Optional[Sequence[str]] = None,
ces_resource_group_v2_id: Optional[str] = None,
created_at: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
resources: Optional[Sequence[CesResourceGroupV2ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None) -> CesResourceGroupV2func GetCesResourceGroupV2(ctx *Context, name string, id IDInput, state *CesResourceGroupV2State, opts ...ResourceOption) (*CesResourceGroupV2, error)public static CesResourceGroupV2 Get(string name, Input<string> id, CesResourceGroupV2State? state, CustomResourceOptions? opts = null)public static CesResourceGroupV2 get(String name, Output<String> id, CesResourceGroupV2State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:CesResourceGroupV2 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.
- Associated
Eps List<string>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- Ces
Resource stringGroup V2Id - The resource ID.
- Created
At string - The creation time.
- Enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Region string
- The region in which the resource group is created.
- Resources
List<Ces
Resource Group V2Resource> Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Dictionary<string, string>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- Type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- Associated
Eps []stringIds - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- Ces
Resource stringGroup V2Id - The resource ID.
- Created
At string - The creation time.
- Enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Region string
- The region in which the resource group is created.
- Resources
[]Ces
Resource Group V2Resource Args Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- map[string]string
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- Type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps List<String>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource StringGroup V2Id - The resource ID.
- created
At String - The creation time.
- enterprise
Project StringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- region String
- The region in which the resource group is created.
- resources
List<Ces
Resource Group V2Resource> Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Map<String,String>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type String
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps string[]Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource stringGroup V2Id - The resource ID.
- created
At string - The creation time.
- enterprise
Project stringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- region string
- The region in which the resource group is created.
- resources
Ces
Resource Group V2Resource[] Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- {[key: string]: string}
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type string
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated_
eps_ Sequence[str]ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces_
resource_ strgroup_ v2_ id - The resource ID.
- created_
at str - The creation time.
- enterprise_
project_ strid - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name str
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- region str
- The region in which the resource group is created.
- resources
Sequence[Ces
Resource Group V2Resource Args] Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Mapping[str, str]
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type str
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
- associated
Eps List<String>Ids - Specifies the enterprise project IDs where the resources from. It's required if the value of type is EPS. Changing this parameter will create a new resource.
- ces
Resource StringGroup V2Id - The resource ID.
- created
At String - The creation time.
- enterprise
Project StringId - Specifies the enterprise project ID of the resource group. Changing this parameter will create a new resource.
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- region String
- The region in which the resource group is created.
- resources List<Property Map>
Specifies the list of resources to add into the group. The resources structure is documented below.
The
resourcesblock supports:- Map<String>
- Specifies the key/value to match resources. It's required if the value of type is TAG.
- type String
- Specifies the resource group type. The value can be EPS, TAG, and Manual. If not specified, that means add resources manually. Changing this parameter will create a new resource.
Supporting Types
CesResourceGroupV2Resource, CesResourceGroupV2ResourceArgs
- Dimensions
List<Ces
Resource Group V2Resource Dimension> Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- Namespace string
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
- Dimensions
[]Ces
Resource Group V2Resource Dimension Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- Namespace string
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
List<Ces
Resource Group V2Resource Dimension> Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- namespace String
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
Ces
Resource Group V2Resource Dimension[] Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- namespace string
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
Sequence[Ces
Resource Group V2Resource Dimension] Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- namespace str
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions List<Property Map>
Specifies the list of dimensions. The dimensions structure is documented below.
The
dimensionsblock supports:- namespace String
- Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
CesResourceGroupV2ResourceDimension, CesResourceGroupV2ResourceDimensionArgs
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Value string
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- Value string
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- value String
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
- name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- value string
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
- name str
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- value str
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, and underscores (_).
- value String
- Specifies the dimension value. The value can be a string of 1 to 256 characters that must start with a letter or a number and contain only letters, digits, underscores (_), hyphens (-), and dots (.).
Import
The resource group can be imported using the id, e.g.
bash
$ pulumi import opentelekomcloud:index/cesResourceGroupV2:CesResourceGroupV2 test 0ce123456a00f2591fabc00385ff1234
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the
API response, security or some other reason. The missing attributes include: resources.
It is generally recommended running pulumi preview after importing a resource group.
You can then decide if changes should be applied to the resource group, or the resource definition should be updated to
align with the resource group. Also you can ignore changes as below.
hcl
resource “opentelekomcloud_ces_resource_group_v2” “test” {
lifecycle {
ignore_changes = [
resources,
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
