1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getCollections
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getCollections

Explore with Pulumi AI

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    Lists collections.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getCollections({});
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_collections()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := prismacloud.GetCollections(ctx, &prismacloud.GetCollectionsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Prismacloud = Pulumi.Prismacloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Prismacloud.GetCollections.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.prismacloud.PrismacloudFunctions;
    import com.pulumi.prismacloud.inputs.GetCollectionsArgs;
    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) {
            final var example = PrismacloudFunctions.getCollections();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getCollections
          arguments: {}
    

    Using getCollections

    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 getCollections(args: GetCollectionsArgs, opts?: InvokeOptions): Promise<GetCollectionsResult>
    function getCollectionsOutput(args: GetCollectionsOutputArgs, opts?: InvokeOptions): Output<GetCollectionsResult>
    def get_collections(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCollectionsResult
    def get_collections_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCollectionsResult]
    func GetCollections(ctx *Context, args *GetCollectionsArgs, opts ...InvokeOption) (*GetCollectionsResult, error)
    func GetCollectionsOutput(ctx *Context, args *GetCollectionsOutputArgs, opts ...InvokeOption) GetCollectionsResultOutput

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

    public static class GetCollections 
    {
        public static Task<GetCollectionsResult> InvokeAsync(GetCollectionsArgs args, InvokeOptions? opts = null)
        public static Output<GetCollectionsResult> Invoke(GetCollectionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCollectionsResult> getCollections(GetCollectionsArgs args, InvokeOptions options)
    public static Output<GetCollectionsResult> getCollections(GetCollectionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getCollections:getCollections
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the collection.
    Id string
    ID of the collection.
    id String
    ID of the collection.
    id string
    ID of the collection.
    id str
    ID of the collection.
    id String
    ID of the collection.

    getCollections Result

    The following output properties are available:

    Id string
    ID of the collection.
    Listings List<GetCollectionsListing>
    List of collections, as defined below.
    Total double
    (int) Total number of collections.
    Id string
    ID of the collection.
    Listings []GetCollectionsListing
    List of collections, as defined below.
    Total float64
    (int) Total number of collections.
    id String
    ID of the collection.
    listings List<GetCollectionsListing>
    List of collections, as defined below.
    total Double
    (int) Total number of collections.
    id string
    ID of the collection.
    listings GetCollectionsListing[]
    List of collections, as defined below.
    total number
    (int) Total number of collections.
    id str
    ID of the collection.
    listings Sequence[GetCollectionsListing]
    List of collections, as defined below.
    total float
    (int) Total number of collections.
    id String
    ID of the collection.
    listings List<Property Map>
    List of collections, as defined below.
    total Number
    (int) Total number of collections.

    Supporting Types

    GetCollectionsListing

    CreatedBy string
    Created by.
    CreatedTs double
    The timestamp when the collection was created.
    Description string
    Description.
    Id string
    ID of the collection.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Name string
    The name of the collection.
    CreatedBy string
    Created by.
    CreatedTs float64
    The timestamp when the collection was created.
    Description string
    Description.
    Id string
    ID of the collection.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Name string
    The name of the collection.
    createdBy String
    Created by.
    createdTs Double
    The timestamp when the collection was created.
    description String
    Description.
    id String
    ID of the collection.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    name String
    The name of the collection.
    createdBy string
    Created by.
    createdTs number
    The timestamp when the collection was created.
    description string
    Description.
    id string
    ID of the collection.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    name string
    The name of the collection.
    created_by str
    Created by.
    created_ts float
    The timestamp when the collection was created.
    description str
    Description.
    id str
    ID of the collection.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    name str
    The name of the collection.
    createdBy String
    Created by.
    createdTs Number
    The timestamp when the collection was created.
    description String
    Description.
    id String
    ID of the collection.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    name String
    The name of the collection.

    Package Details

    Repository
    prismacloud paloaltonetworks/terraform-provider-prismacloud
    License
    Notes
    This Pulumi package is based on the prismacloud Terraform Provider.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks