1. Packages
  2. Grafana Cloud
  3. API Docs
  4. onCall
  5. getLabel
Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse

grafana.onCall.getLabel

Explore with Pulumi AI

grafana logo
Grafana v0.19.2 published on Friday, Jul 18, 2025 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?: InvokeOptions): Output<GetLabelResult>
    def get_label(key: Optional[str] = None,
                  value: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLabelResult
    def get_label_output(key: Optional[pulumi.Input[str]] = None,
                  value: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = 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 CompletableFuture<GetLabelResult> getLabel(GetLabelArgs args, InvokeOptions options)
    public static Output<GetLabelResult> getLabel(GetLabelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: grafana:onCall/getLabel:getLabel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    The key for the label.
    Value string
    The value of the label.
    Key string
    The key for the label.
    Value string
    The value of the label.
    key String
    The key for the label.
    value String
    The value of the label.
    key string
    The key for the label.
    value string
    The value of the label.
    key str
    The key for the label.
    value str
    The value of the label.
    key String
    The key for the label.
    value String
    The value of the label.

    getLabel Result

    The following output properties are available:

    Id string
    The ID of the label.
    Key string
    The key for the label.
    Value string
    The value of the label.
    Id string
    The ID of the label.
    Key string
    The key for the label.
    Value string
    The value of the label.
    id String
    The ID of the label.
    key String
    The key for the label.
    value String
    The value of the label.
    id string
    The ID of the label.
    key string
    The key for the label.
    value string
    The value of the label.
    id str
    The ID of the label.
    key str
    The key for the label.
    value str
    The value of the label.
    id String
    The ID of the label.
    key String
    The key for the label.
    value String
    The value of the label.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse