Up-to-date reference of API arguments for CES dashboard you can get at documentation portal
Manages a CES Dashboard v2 resource within OpenTelekomCloud.
Example Usage
Basic dashboard
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const dashboard = new opentelekomcloud.CesDashboardV2("dashboard", {
name: "my-dashboard",
rowWidgetNum: 1,
isFavorite: true,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
dashboard = opentelekomcloud.CesDashboardV2("dashboard",
name="my-dashboard",
row_widget_num=1,
is_favorite=True)
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.NewCesDashboardV2(ctx, "dashboard", &opentelekomcloud.CesDashboardV2Args{
Name: pulumi.String("my-dashboard"),
RowWidgetNum: pulumi.Float64(1),
IsFavorite: pulumi.Bool(true),
})
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 dashboard = new Opentelekomcloud.CesDashboardV2("dashboard", new()
{
Name = "my-dashboard",
RowWidgetNum = 1,
IsFavorite = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesDashboardV2;
import com.pulumi.opentelekomcloud.CesDashboardV2Args;
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 dashboard = new CesDashboardV2("dashboard", CesDashboardV2Args.builder()
.name("my-dashboard")
.rowWidgetNum(1.0)
.isFavorite(true)
.build());
}
}
resources:
dashboard:
type: opentelekomcloud:CesDashboardV2
properties:
name: my-dashboard
rowWidgetNum: 1
isFavorite: true
Copy an existing dashboard
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const base = new opentelekomcloud.CesDashboardV2("base", {
name: "base-dashboard",
rowWidgetNum: 2,
});
const copy = new opentelekomcloud.CesDashboardV2("copy", {
name: "copied-dashboard",
dashboardId: base.cesDashboardV2Id,
rowWidgetNum: 1,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
base = opentelekomcloud.CesDashboardV2("base",
name="base-dashboard",
row_widget_num=2)
copy = opentelekomcloud.CesDashboardV2("copy",
name="copied-dashboard",
dashboard_id=base.ces_dashboard_v2_id,
row_widget_num=1)
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 {
base, err := opentelekomcloud.NewCesDashboardV2(ctx, "base", &opentelekomcloud.CesDashboardV2Args{
Name: pulumi.String("base-dashboard"),
RowWidgetNum: pulumi.Float64(2),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCesDashboardV2(ctx, "copy", &opentelekomcloud.CesDashboardV2Args{
Name: pulumi.String("copied-dashboard"),
DashboardId: base.CesDashboardV2Id,
RowWidgetNum: pulumi.Float64(1),
})
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 @base = new Opentelekomcloud.CesDashboardV2("base", new()
{
Name = "base-dashboard",
RowWidgetNum = 2,
});
var copy = new Opentelekomcloud.CesDashboardV2("copy", new()
{
Name = "copied-dashboard",
DashboardId = @base.CesDashboardV2Id,
RowWidgetNum = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesDashboardV2;
import com.pulumi.opentelekomcloud.CesDashboardV2Args;
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 base = new CesDashboardV2("base", CesDashboardV2Args.builder()
.name("base-dashboard")
.rowWidgetNum(2.0)
.build());
var copy = new CesDashboardV2("copy", CesDashboardV2Args.builder()
.name("copied-dashboard")
.dashboardId(base.cesDashboardV2Id())
.rowWidgetNum(1.0)
.build());
}
}
resources:
base:
type: opentelekomcloud:CesDashboardV2
properties:
name: base-dashboard
rowWidgetNum: 2
copy:
type: opentelekomcloud:CesDashboardV2
properties:
name: copied-dashboard
dashboardId: ${base.cesDashboardV2Id}
rowWidgetNum: 1
Create CesDashboardV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CesDashboardV2(name: string, args?: CesDashboardV2Args, opts?: CustomResourceOptions);@overload
def CesDashboardV2(resource_name: str,
args: Optional[CesDashboardV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CesDashboardV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
ces_dashboard_v2_id: Optional[str] = None,
dashboard_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
is_favorite: Optional[bool] = None,
name: Optional[str] = None,
row_widget_num: Optional[float] = None)func NewCesDashboardV2(ctx *Context, name string, args *CesDashboardV2Args, opts ...ResourceOption) (*CesDashboardV2, error)public CesDashboardV2(string name, CesDashboardV2Args? args = null, CustomResourceOptions? opts = null)
public CesDashboardV2(String name, CesDashboardV2Args args)
public CesDashboardV2(String name, CesDashboardV2Args args, CustomResourceOptions options)
type: opentelekomcloud:CesDashboardV2
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 CesDashboardV2Args
- 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 CesDashboardV2Args
- 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 CesDashboardV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CesDashboardV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CesDashboardV2Args
- 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 cesDashboardV2Resource = new Opentelekomcloud.CesDashboardV2("cesDashboardV2Resource", new()
{
CesDashboardV2Id = "string",
DashboardId = "string",
EnterpriseProjectId = "string",
IsFavorite = false,
Name = "string",
RowWidgetNum = 0,
});
example, err := opentelekomcloud.NewCesDashboardV2(ctx, "cesDashboardV2Resource", &opentelekomcloud.CesDashboardV2Args{
CesDashboardV2Id: pulumi.String("string"),
DashboardId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
IsFavorite: pulumi.Bool(false),
Name: pulumi.String("string"),
RowWidgetNum: pulumi.Float64(0),
})
var cesDashboardV2Resource = new CesDashboardV2("cesDashboardV2Resource", CesDashboardV2Args.builder()
.cesDashboardV2Id("string")
.dashboardId("string")
.enterpriseProjectId("string")
.isFavorite(false)
.name("string")
.rowWidgetNum(0.0)
.build());
ces_dashboard_v2_resource = opentelekomcloud.CesDashboardV2("cesDashboardV2Resource",
ces_dashboard_v2_id="string",
dashboard_id="string",
enterprise_project_id="string",
is_favorite=False,
name="string",
row_widget_num=0)
const cesDashboardV2Resource = new opentelekomcloud.CesDashboardV2("cesDashboardV2Resource", {
cesDashboardV2Id: "string",
dashboardId: "string",
enterpriseProjectId: "string",
isFavorite: false,
name: "string",
rowWidgetNum: 0,
});
type: opentelekomcloud:CesDashboardV2
properties:
cesDashboardV2Id: string
dashboardId: string
enterpriseProjectId: string
isFavorite: false
name: string
rowWidgetNum: 0
CesDashboardV2 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 CesDashboardV2 resource accepts the following input properties:
- Ces
Dashboard stringV2Id - The dashboard ID.
- Dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- Enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- Is
Favorite bool - Specifies whether to add the dashboard to favorites.
- Name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - Row
Widget doubleNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- Ces
Dashboard stringV2Id - The dashboard ID.
- Dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- Enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- Is
Favorite bool - Specifies whether to add the dashboard to favorites.
- Name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - Row
Widget float64Num Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard StringV2Id - The dashboard ID.
- dashboard
Id String - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project StringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite Boolean - Specifies whether to add the dashboard to favorites.
- name String
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - row
Widget DoubleNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard stringV2Id - The dashboard ID.
- dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite boolean - Specifies whether to add the dashboard to favorites.
- name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - row
Widget numberNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces_
dashboard_ strv2_ id - The dashboard ID.
- dashboard_
id str - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise_
project_ strid - Specifies the enterprise project ID. Changing this creates a new resource.
- is_
favorite bool - Specifies whether to add the dashboard to favorites.
- name str
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - row_
widget_ floatnum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard StringV2Id - The dashboard ID.
- dashboard
Id String - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project StringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite Boolean - Specifies whether to add the dashboard to favorites.
- name String
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - row
Widget NumberNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
Outputs
All input properties are implicitly available as output properties. Additionally, the CesDashboardV2 resource produces the following output properties:
- Created
At string - The creation time of the dashboard in RFC3339 format.
- Creator
Name string - The creator of the dashboard.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The region in which the dashboard is created.
- Created
At string - The creation time of the dashboard in RFC3339 format.
- Creator
Name string - The creator of the dashboard.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The region in which the dashboard is created.
- created
At String - The creation time of the dashboard in RFC3339 format.
- creator
Name String - The creator of the dashboard.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The region in which the dashboard is created.
- created
At string - The creation time of the dashboard in RFC3339 format.
- creator
Name string - The creator of the dashboard.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- The region in which the dashboard is created.
- created_
at str - The creation time of the dashboard in RFC3339 format.
- creator_
name str - The creator of the dashboard.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region in which the dashboard is created.
- created
At String - The creation time of the dashboard in RFC3339 format.
- creator
Name String - The creator of the dashboard.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The region in which the dashboard is created.
Look up Existing CesDashboardV2 Resource
Get an existing CesDashboardV2 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?: CesDashboardV2State, opts?: CustomResourceOptions): CesDashboardV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ces_dashboard_v2_id: Optional[str] = None,
created_at: Optional[str] = None,
creator_name: Optional[str] = None,
dashboard_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
is_favorite: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
row_widget_num: Optional[float] = None) -> CesDashboardV2func GetCesDashboardV2(ctx *Context, name string, id IDInput, state *CesDashboardV2State, opts ...ResourceOption) (*CesDashboardV2, error)public static CesDashboardV2 Get(string name, Input<string> id, CesDashboardV2State? state, CustomResourceOptions? opts = null)public static CesDashboardV2 get(String name, Output<String> id, CesDashboardV2State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:CesDashboardV2 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.
- Ces
Dashboard stringV2Id - The dashboard ID.
- Created
At string - The creation time of the dashboard in RFC3339 format.
- Creator
Name string - The creator of the dashboard.
- Dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- Enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- Is
Favorite bool - Specifies whether to add the dashboard to favorites.
- Name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - Region string
- The region in which the dashboard is created.
- Row
Widget doubleNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- Ces
Dashboard stringV2Id - The dashboard ID.
- Created
At string - The creation time of the dashboard in RFC3339 format.
- Creator
Name string - The creator of the dashboard.
- Dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- Enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- Is
Favorite bool - Specifies whether to add the dashboard to favorites.
- Name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - Region string
- The region in which the dashboard is created.
- Row
Widget float64Num Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard StringV2Id - The dashboard ID.
- created
At String - The creation time of the dashboard in RFC3339 format.
- creator
Name String - The creator of the dashboard.
- dashboard
Id String - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project StringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite Boolean - Specifies whether to add the dashboard to favorites.
- name String
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - region String
- The region in which the dashboard is created.
- row
Widget DoubleNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard stringV2Id - The dashboard ID.
- created
At string - The creation time of the dashboard in RFC3339 format.
- creator
Name string - The creator of the dashboard.
- dashboard
Id string - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project stringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite boolean - Specifies whether to add the dashboard to favorites.
- name string
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - region string
- The region in which the dashboard is created.
- row
Widget numberNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces_
dashboard_ strv2_ id - The dashboard ID.
- created_
at str - The creation time of the dashboard in RFC3339 format.
- creator_
name str - The creator of the dashboard.
- dashboard_
id str - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise_
project_ strid - Specifies the enterprise project ID. Changing this creates a new resource.
- is_
favorite bool - Specifies whether to add the dashboard to favorites.
- name str
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - region str
- The region in which the dashboard is created.
- row_
widget_ floatnum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
- ces
Dashboard StringV2Id - The dashboard ID.
- created
At String - The creation time of the dashboard in RFC3339 format.
- creator
Name String - The creator of the dashboard.
- dashboard
Id String - Specifies the ID of an existing dashboard to copy. If omitted, a new empty dashboard is created. Changing this creates a new resource.
- enterprise
Project StringId - Specifies the enterprise project ID. Changing this creates a new resource.
- is
Favorite Boolean - Specifies whether to add the dashboard to favorites.
- name String
- Specifies the dashboard name. The value can be a string of
1to128characters that can consist of letters, digits, underscores (_), and hyphens (-). - region String
- The region in which the dashboard is created.
- row
Widget NumberNum Specifies the graph display mode. The value can be:
- 0: Graphs are displayed in a customizable position.
- 1: One graph is displayed per row.
- 2: Two graphs are displayed per row.
- 3: Three graphs are displayed per row.
Defaults to
0.
Import
CES dashboards v2 can be imported using the id, e.g.
bash
$ pulumi import opentelekomcloud:index/cesDashboardV2:CesDashboardV2 dashboard db16564943172807wjOmoLyn
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.
