1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getSnippetList
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

cloudflare.getSnippetList

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

    Using getSnippetList

    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 getSnippetList(args: GetSnippetListArgs, opts?: InvokeOptions): Promise<GetSnippetListResult>
    function getSnippetListOutput(args: GetSnippetListOutputArgs, opts?: InvokeOptions): Output<GetSnippetListResult>
    def get_snippet_list(max_items: Optional[int] = None,
                         zone_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSnippetListResult
    def get_snippet_list_output(max_items: Optional[pulumi.Input[int]] = None,
                         zone_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetSnippetListResult]
    func LookupSnippetList(ctx *Context, args *LookupSnippetListArgs, opts ...InvokeOption) (*LookupSnippetListResult, error)
    func LookupSnippetListOutput(ctx *Context, args *LookupSnippetListOutputArgs, opts ...InvokeOption) LookupSnippetListResultOutput

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

    public static class GetSnippetList 
    {
        public static Task<GetSnippetListResult> InvokeAsync(GetSnippetListArgs args, InvokeOptions? opts = null)
        public static Output<GetSnippetListResult> Invoke(GetSnippetListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnippetListResult> getSnippetList(GetSnippetListArgs args, InvokeOptions options)
    public static Output<GetSnippetListResult> getSnippetList(GetSnippetListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSnippetList:getSnippetList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneId string
    The unique ID of the zone.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    The unique ID of the zone.
    MaxItems int
    Max items to fetch, default: 1000
    zoneId String
    The unique ID of the zone.
    maxItems Integer
    Max items to fetch, default: 1000
    zoneId string
    The unique ID of the zone.
    maxItems number
    Max items to fetch, default: 1000
    zone_id str
    The unique ID of the zone.
    max_items int
    Max items to fetch, default: 1000
    zoneId String
    The unique ID of the zone.
    maxItems Number
    Max items to fetch, default: 1000

    getSnippetList Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetSnippetListResult>
    The items returned by the data source
    ZoneId string
    The unique ID of the zone.
    MaxItems int
    Max items to fetch, default: 1000
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetSnippetListResult
    The items returned by the data source
    ZoneId string
    The unique ID of the zone.
    MaxItems int
    Max items to fetch, default: 1000
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetSnippetListResult>
    The items returned by the data source
    zoneId String
    The unique ID of the zone.
    maxItems Integer
    Max items to fetch, default: 1000
    id string
    The provider-assigned unique ID for this managed resource.
    results GetSnippetListResult[]
    The items returned by the data source
    zoneId string
    The unique ID of the zone.
    maxItems number
    Max items to fetch, default: 1000
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetSnippetListResult]
    The items returned by the data source
    zone_id str
    The unique ID of the zone.
    max_items int
    Max items to fetch, default: 1000
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    zoneId String
    The unique ID of the zone.
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetSnippetListResult

    CreatedOn string
    The timestamp of when the snippet was created.
    ModifiedOn string
    The timestamp of when the snippet was last modified.
    SnippetName string
    The identifying name of the snippet.
    CreatedOn string
    The timestamp of when the snippet was created.
    ModifiedOn string
    The timestamp of when the snippet was last modified.
    SnippetName string
    The identifying name of the snippet.
    createdOn String
    The timestamp of when the snippet was created.
    modifiedOn String
    The timestamp of when the snippet was last modified.
    snippetName String
    The identifying name of the snippet.
    createdOn string
    The timestamp of when the snippet was created.
    modifiedOn string
    The timestamp of when the snippet was last modified.
    snippetName string
    The identifying name of the snippet.
    created_on str
    The timestamp of when the snippet was created.
    modified_on str
    The timestamp of when the snippet was last modified.
    snippet_name str
    The identifying name of the snippet.
    createdOn String
    The timestamp of when the snippet was created.
    modifiedOn String
    The timestamp of when the snippet was last modified.
    snippetName String
    The identifying name of the snippet.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi