1. Packages
  2. Packages
  3. Okta Provider
  4. API Docs
  5. getResourceLabel
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
okta logo
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi

    Lists all labeled resources > Note: If you create a custom admin role to view labeled resources, ensure that the custom role has permissions to view the resource and governance labels.

    Using getResourceLabel

    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 getResourceLabel(args: GetResourceLabelArgs, opts?: InvokeOptions): Promise<GetResourceLabelResult>
    function getResourceLabelOutput(args: GetResourceLabelOutputArgs, opts?: InvokeOptions): Output<GetResourceLabelResult>
    def get_resource_label(id: Optional[str] = None,
                           items: Optional[Sequence[GetResourceLabelItem]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetResourceLabelResult
    def get_resource_label_output(id: pulumi.Input[Optional[str]] = None,
                           items: pulumi.Input[Optional[Sequence[pulumi.Input[GetResourceLabelItemArgs]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetResourceLabelResult]
    func GetResourceLabel(ctx *Context, args *GetResourceLabelArgs, opts ...InvokeOption) (*GetResourceLabelResult, error)
    func GetResourceLabelOutput(ctx *Context, args *GetResourceLabelOutputArgs, opts ...InvokeOption) GetResourceLabelResultOutput

    > Note: This function is named GetResourceLabel in the Go SDK.

    public static class GetResourceLabel 
    {
        public static Task<GetResourceLabelResult> InvokeAsync(GetResourceLabelArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceLabelResult> Invoke(GetResourceLabelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceLabelResult> getResourceLabel(GetResourceLabelArgs args, InvokeOptions options)
    public static Output<GetResourceLabelResult> getResourceLabel(GetResourceLabelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getResourceLabel:getResourceLabel
      arguments:
        # arguments dictionary
    data "okta_getresourcelabel" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the data source.
    Items List<GetResourceLabelItem>
    Id string
    The ID of the data source.
    Items []GetResourceLabelItem
    id string
    The ID of the data source.
    items list(object)
    id String
    The ID of the data source.
    items List<GetResourceLabelItem>
    id string
    The ID of the data source.
    items GetResourceLabelItem[]
    id str
    The ID of the data source.
    items Sequence[GetResourceLabelItem]
    id String
    The ID of the data source.
    items List<Property Map>

    getResourceLabel Result

    The following output properties are available:

    Id string
    The ID of the data source.
    Items List<GetResourceLabelItem>
    Id string
    The ID of the data source.
    Items []GetResourceLabelItem
    id string
    The ID of the data source.
    items list(object)
    id String
    The ID of the data source.
    items List<GetResourceLabelItem>
    id string
    The ID of the data source.
    items GetResourceLabelItem[]
    id str
    The ID of the data source.
    items Sequence[GetResourceLabelItem]
    id String
    The ID of the data source.
    items List<Property Map>

    Supporting Types

    GetResourceLabelItem

    Id string
    The ID of the data source.
    Orn string
    The Okta resource, in ORN format format.
    Id string
    The ID of the data source.
    Orn string
    The Okta resource, in ORN format format.
    id string
    The ID of the data source.
    orn string
    The Okta resource, in ORN format format.
    id String
    The ID of the data source.
    orn String
    The Okta resource, in ORN format format.
    id string
    The ID of the data source.
    orn string
    The Okta resource, in ORN format format.
    id str
    The ID of the data source.
    orn str
    The Okta resource, in ORN format format.
    id String
    The ID of the data source.
    orn String
    The Okta resource, in ORN format format.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Viewing docs for Okta v6.9.0
    published on Wednesday, Jul 1, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial