1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getUrlCategory
Strata Cloud Manager v1.0.2 published on Friday, Jan 16, 2026 by Pulumi
scm logo
Strata Cloud Manager v1.0.2 published on Friday, Jan 16, 2026 by Pulumi

    UrlCategory data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //
    // Data source to retrieve a single URL Category object by its ID.
    //
    // Replace the ID with the UUID of the URL Category you want to find.
    const example = scm.getUrlCategory({
        id: "5ae04e1a-bc7b-4ea3-99bb-86de23886b45",
    });
    export const urlCategoryDetails = example;
    
    import pulumi
    import pulumi_scm as scm
    
    #
    # Data source to retrieve a single URL Category object by its ID.
    #
    # Replace the ID with the UUID of the URL Category you want to find.
    example = scm.get_url_category(id="5ae04e1a-bc7b-4ea3-99bb-86de23886b45")
    pulumi.export("urlCategoryDetails", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Data source to retrieve a single URL Category object by its ID.
    		//
    		// Replace the ID with the UUID of the URL Category you want to find.
    		example, err := scm.LookupUrlCategory(ctx, &scm.LookupUrlCategoryArgs{
    			Id: "5ae04e1a-bc7b-4ea3-99bb-86de23886b45",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("urlCategoryDetails", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //
        // Data source to retrieve a single URL Category object by its ID.
        //
        // Replace the ID with the UUID of the URL Category you want to find.
        var example = Scm.GetUrlCategory.Invoke(new()
        {
            Id = "5ae04e1a-bc7b-4ea3-99bb-86de23886b45",
        });
    
        return new Dictionary<string, object?>
        {
            ["urlCategoryDetails"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetUrlCategoryArgs;
    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) {
            //
            // Data source to retrieve a single URL Category object by its ID.
            //
            // Replace the ID with the UUID of the URL Category you want to find.
            final var example = ScmFunctions.getUrlCategory(GetUrlCategoryArgs.builder()
                .id("5ae04e1a-bc7b-4ea3-99bb-86de23886b45")
                .build());
    
            ctx.export("urlCategoryDetails", example);
        }
    }
    
    variables:
      #
      # Data source to retrieve a single URL Category object by its ID.
      #
    
      # Replace the ID with the UUID of the URL Category you want to find.
      example:
        fn::invoke:
          function: scm:getUrlCategory
          arguments:
            id: 5ae04e1a-bc7b-4ea3-99bb-86de23886b45
    outputs:
      # Output the details of the single URL Category object found.
      urlCategoryDetails: ${example}
    

    Using getUrlCategory

    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 getUrlCategory(args: GetUrlCategoryArgs, opts?: InvokeOptions): Promise<GetUrlCategoryResult>
    function getUrlCategoryOutput(args: GetUrlCategoryOutputArgs, opts?: InvokeOptions): Output<GetUrlCategoryResult>
    def get_url_category(device: Optional[str] = None,
                         folder: Optional[str] = None,
                         id: Optional[str] = None,
                         name: Optional[str] = None,
                         snippet: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetUrlCategoryResult
    def get_url_category_output(device: Optional[pulumi.Input[str]] = None,
                         folder: Optional[pulumi.Input[str]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         snippet: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetUrlCategoryResult]
    func LookupUrlCategory(ctx *Context, args *LookupUrlCategoryArgs, opts ...InvokeOption) (*LookupUrlCategoryResult, error)
    func LookupUrlCategoryOutput(ctx *Context, args *LookupUrlCategoryOutputArgs, opts ...InvokeOption) LookupUrlCategoryResultOutput

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

    public static class GetUrlCategory 
    {
        public static Task<GetUrlCategoryResult> InvokeAsync(GetUrlCategoryArgs args, InvokeOptions? opts = null)
        public static Output<GetUrlCategoryResult> Invoke(GetUrlCategoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUrlCategoryResult> getUrlCategory(GetUrlCategoryArgs args, InvokeOptions options)
    public static Output<GetUrlCategoryResult> getUrlCategory(GetUrlCategoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getUrlCategory:getUrlCategory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    UUID of the resource
    Device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Name string
    Name
    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Id string
    UUID of the resource
    Device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Name string
    Name
    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id String
    UUID of the resource
    device String

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    name String
    Name
    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id string
    UUID of the resource
    device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    name string
    Name
    snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id str
    UUID of the resource
    device str

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder str

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    name str
    Name
    snippet str

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id String
    UUID of the resource
    device String

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    name String
    Name
    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    getUrlCategory Result

    The following output properties are available:

    Description string
    Description
    Device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Id string
    UUID of the resource
    Lists List<string>
    List
    Name string
    Name
    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Tfid string
    Type string
    Type
    Description string
    Description
    Device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Id string
    UUID of the resource
    Lists []string
    List
    Name string
    Name
    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Tfid string
    Type string
    Type
    description String
    Description
    device String

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id String
    UUID of the resource
    lists List<String>
    List
    name String
    Name
    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid String
    type String
    Type
    description string
    Description
    device string

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id string
    UUID of the resource
    lists string[]
    List
    name string
    Name
    snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid string
    type string
    Type
    description str
    Description
    device str

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder str

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id str
    UUID of the resource
    lists Sequence[str]
    List
    name str
    Name
    snippet str

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid str
    type str
    Type
    description String
    Description
    device String

    The device in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    id String
    UUID of the resource
    lists List<String>
    List
    name String
    Name
    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid String
    type String
    Type

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v1.0.2 published on Friday, Jan 16, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate