Viewing docs for Grafana v2.45.0
published on Monday, Nov 9, 2026 by pulumiverse
published on Monday, Nov 9, 2026 by pulumiverse
GrafanaViewing docs for Grafana v2.45.0
published on Monday, Nov 9, 2026 by pulumiverse
published on Monday, Nov 9, 2026 by pulumiverse
Using getLabel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLabel(args: GetLabelArgs, opts?: InvokeOptions): Promise<GetLabelResult>
function getLabelOutput(args: GetLabelOutputArgs, opts?: InvokeOutputOptions): Output<GetLabelResult>def get_label(key: Optional[str] = None,
value: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLabelResult
def get_label_output(key: pulumi.Input[Optional[str]] = None,
value: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetLabelResult]func GetLabel(ctx *Context, args *GetLabelArgs, opts ...InvokeOption) (*GetLabelResult, error)
func GetLabelOutput(ctx *Context, args *GetLabelOutputArgs, opts ...InvokeOption) GetLabelResultOutput> Note: This function is named GetLabel in the Go SDK.
public static class GetLabel
{
public static Task<GetLabelResult> InvokeAsync(GetLabelArgs args, InvokeOptions? opts = null)
public static Output<GetLabelResult> Invoke(GetLabelInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetLabelResult> Invoke(GetLabelInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetLabelResult> getLabel(GetLabelArgs args, InvokeOptions options)
public static Output<GetLabelResult> getLabel(GetLabelArgs args, InvokeOptions options)
public static Output<GetLabelResult> getLabel(GetLabelArgs args, InvokeOutputOptions options)
fn::invoke:
function: grafana:onCall/getLabel:getLabel
arguments:
# arguments dictionarydata "grafana_on_call_get_label" "name" {
# arguments
}The following arguments are supported:
- Key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- Value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- Key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- Value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- key String
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value String
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- key str
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value str
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- key String
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value String
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
getLabel Result
The following output properties are available:
- Id string
- The ID of the label.
- Key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- Value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- Id string
- The ID of the label.
- Key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- Value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- id string
- The ID of the label.
- key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- id String
- The ID of the label.
- key String
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value String
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- id string
- The ID of the label.
- key string
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value string
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- id str
- The ID of the label.
- key str
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value str
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
- id String
- The ID of the label.
- key String
- The key for the label. Keys are 1-63 characters, can only contain alphanumeric characters or underscores, and must start and end with a letter.
- value String
- The value of the label. When the label is used as a static label, values are 1-63 characters, can only contain alphanumeric characters, hyphens, underscores and periods, must start with a letter and must end with a letter or digit. When the label is used as a dynamic label, the value is a Jinja2 template evaluated when an alert is received, and is not restricted.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
GrafanaViewing docs for Grafana v2.45.0
published on Monday, Nov 9, 2026 by pulumiverse
published on Monday, Nov 9, 2026 by pulumiverse