Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse
grafana.DashboardPublic
Explore with Pulumi AI
Create DashboardPublic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DashboardPublic(name: string, args: DashboardPublicArgs, opts?: CustomResourceOptions);
@overload
def DashboardPublic(resource_name: str,
args: DashboardPublicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DashboardPublic(resource_name: str,
opts: Optional[ResourceOptions] = None,
dashboard_uid: Optional[str] = None,
access_token: Optional[str] = None,
annotations_enabled: Optional[bool] = None,
is_enabled: Optional[bool] = None,
org_id: Optional[str] = None,
share: Optional[str] = None,
time_selection_enabled: Optional[bool] = None,
uid: Optional[str] = None)
func NewDashboardPublic(ctx *Context, name string, args DashboardPublicArgs, opts ...ResourceOption) (*DashboardPublic, error)
public DashboardPublic(string name, DashboardPublicArgs args, CustomResourceOptions? opts = null)
public DashboardPublic(String name, DashboardPublicArgs args)
public DashboardPublic(String name, DashboardPublicArgs args, CustomResourceOptions options)
type: grafana:DashboardPublic
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 DashboardPublicArgs
- 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 DashboardPublicArgs
- 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 DashboardPublicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DashboardPublicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DashboardPublicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var dashboardPublicResource = new Grafana.DashboardPublic("dashboardPublicResource", new()
{
DashboardUid = "string",
AccessToken = "string",
AnnotationsEnabled = false,
IsEnabled = false,
OrgId = "string",
Share = "string",
TimeSelectionEnabled = false,
Uid = "string",
});
example, err := grafana.NewDashboardPublic(ctx, "dashboardPublicResource", &grafana.DashboardPublicArgs{
DashboardUid: pulumi.String("string"),
AccessToken: pulumi.String("string"),
AnnotationsEnabled: pulumi.Bool(false),
IsEnabled: pulumi.Bool(false),
OrgId: pulumi.String("string"),
Share: pulumi.String("string"),
TimeSelectionEnabled: pulumi.Bool(false),
Uid: pulumi.String("string"),
})
var dashboardPublicResource = new DashboardPublic("dashboardPublicResource", DashboardPublicArgs.builder()
.dashboardUid("string")
.accessToken("string")
.annotationsEnabled(false)
.isEnabled(false)
.orgId("string")
.share("string")
.timeSelectionEnabled(false)
.uid("string")
.build());
dashboard_public_resource = grafana.DashboardPublic("dashboardPublicResource",
dashboard_uid="string",
access_token="string",
annotations_enabled=False,
is_enabled=False,
org_id="string",
share="string",
time_selection_enabled=False,
uid="string")
const dashboardPublicResource = new grafana.DashboardPublic("dashboardPublicResource", {
dashboardUid: "string",
accessToken: "string",
annotationsEnabled: false,
isEnabled: false,
orgId: "string",
share: "string",
timeSelectionEnabled: false,
uid: "string",
});
type: grafana:DashboardPublic
properties:
accessToken: string
annotationsEnabled: false
dashboardUid: string
isEnabled: false
orgId: string
share: string
timeSelectionEnabled: false
uid: string
DashboardPublic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DashboardPublic resource accepts the following input properties:
- Dashboard
Uid string - The unique identifier of the original dashboard.
- Access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- Annotations
Enabled bool - Set to
true
to show annotations. The default value isfalse
. - Is
Enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - Time
Selection boolEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - Uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- Dashboard
Uid string - The unique identifier of the original dashboard.
- Access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- Annotations
Enabled bool - Set to
true
to show annotations. The default value isfalse
. - Is
Enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - Time
Selection boolEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - Uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- dashboard
Uid String - The unique identifier of the original dashboard.
- access
Token String - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled Boolean - Set to
true
to show annotations. The default value isfalse
. - is
Enabled Boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- String
- Set the share mode. The default value is
public
. - time
Selection BooleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid String
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- dashboard
Uid string - The unique identifier of the original dashboard.
- access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled boolean - Set to
true
to show annotations. The default value isfalse
. - is
Enabled boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - time
Selection booleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- dashboard_
uid str - The unique identifier of the original dashboard.
- access_
token str - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations_
enabled bool - Set to
true
to show annotations. The default value isfalse
. - is_
enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- str
- Set the share mode. The default value is
public
. - time_
selection_ boolenabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid str
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- dashboard
Uid String - The unique identifier of the original dashboard.
- access
Token String - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled Boolean - Set to
true
to show annotations. The default value isfalse
. - is
Enabled Boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- String
- Set the share mode. The default value is
public
. - time
Selection BooleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid String
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
Outputs
All input properties are implicitly available as output properties. Additionally, the DashboardPublic 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 DashboardPublic Resource
Get an existing DashboardPublic 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?: DashboardPublicState, opts?: CustomResourceOptions): DashboardPublic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_token: Optional[str] = None,
annotations_enabled: Optional[bool] = None,
dashboard_uid: Optional[str] = None,
is_enabled: Optional[bool] = None,
org_id: Optional[str] = None,
share: Optional[str] = None,
time_selection_enabled: Optional[bool] = None,
uid: Optional[str] = None) -> DashboardPublic
func GetDashboardPublic(ctx *Context, name string, id IDInput, state *DashboardPublicState, opts ...ResourceOption) (*DashboardPublic, error)
public static DashboardPublic Get(string name, Input<string> id, DashboardPublicState? state, CustomResourceOptions? opts = null)
public static DashboardPublic get(String name, Output<String> id, DashboardPublicState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- Annotations
Enabled bool - Set to
true
to show annotations. The default value isfalse
. - Dashboard
Uid string - The unique identifier of the original dashboard.
- Is
Enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - Time
Selection boolEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - Uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- Access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- Annotations
Enabled bool - Set to
true
to show annotations. The default value isfalse
. - Dashboard
Uid string - The unique identifier of the original dashboard.
- Is
Enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - Time
Selection boolEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - Uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- access
Token String - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled Boolean - Set to
true
to show annotations. The default value isfalse
. - dashboard
Uid String - The unique identifier of the original dashboard.
- is
Enabled Boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- String
- Set the share mode. The default value is
public
. - time
Selection BooleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid String
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- access
Token string - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled boolean - Set to
true
to show annotations. The default value isfalse
. - dashboard
Uid string - The unique identifier of the original dashboard.
- is
Enabled boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- string
- Set the share mode. The default value is
public
. - time
Selection booleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid string
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- access_
token str - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations_
enabled bool - Set to
true
to show annotations. The default value isfalse
. - dashboard_
uid str - The unique identifier of the original dashboard.
- is_
enabled bool - Set to
true
to enable the public dashboard. The default value isfalse
. - org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- str
- Set the share mode. The default value is
public
. - time_
selection_ boolenabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid str
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
- access
Token String - A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
- annotations
Enabled Boolean - Set to
true
to show annotations. The default value isfalse
. - dashboard
Uid String - The unique identifier of the original dashboard.
- is
Enabled Boolean - Set to
true
to enable the public dashboard. The default value isfalse
. - org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- String
- Set the share mode. The default value is
public
. - time
Selection BooleanEnabled - Set to
true
to enable the time picker in the public dashboard. The default value isfalse
. - uid String
- The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.