1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getApiShieldSchemas
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getApiShieldSchemas

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleApiShieldSchemas = cloudflare.getApiShieldSchemas({
    zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    validationEnabled: true,
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_api_shield_schemas = cloudflare.get_api_shield_schemas(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
    validation_enabled=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.LookupApiShieldSchemas(ctx, &cloudflare.LookupApiShieldSchemasArgs{
			ZoneId:            "023e105f4ecef8ad9ca31a8372d0c353",
			ValidationEnabled: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleApiShieldSchemas = Cloudflare.GetApiShieldSchemas.Invoke(new()
    {
        ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        ValidationEnabled = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetApiShieldSchemasArgs;
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 exampleApiShieldSchemas = CloudflareFunctions.getApiShieldSchemas(GetApiShieldSchemasArgs.builder()
            .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
            .validationEnabled(true)
            .build());

    }
}
Copy
variables:
  exampleApiShieldSchemas:
    fn::invoke:
      function: cloudflare:getApiShieldSchemas
      arguments:
        zoneId: 023e105f4ecef8ad9ca31a8372d0c353
        validationEnabled: true
Copy

Using getApiShieldSchemas

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 getApiShieldSchemas(args: GetApiShieldSchemasArgs, opts?: InvokeOptions): Promise<GetApiShieldSchemasResult>
function getApiShieldSchemasOutput(args: GetApiShieldSchemasOutputArgs, opts?: InvokeOptions): Output<GetApiShieldSchemasResult>
Copy
def get_api_shield_schemas(max_items: Optional[int] = None,
                           omit_source: Optional[bool] = None,
                           validation_enabled: Optional[bool] = None,
                           zone_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetApiShieldSchemasResult
def get_api_shield_schemas_output(max_items: Optional[pulumi.Input[int]] = None,
                           omit_source: Optional[pulumi.Input[bool]] = None,
                           validation_enabled: Optional[pulumi.Input[bool]] = None,
                           zone_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetApiShieldSchemasResult]
Copy
func LookupApiShieldSchemas(ctx *Context, args *LookupApiShieldSchemasArgs, opts ...InvokeOption) (*LookupApiShieldSchemasResult, error)
func LookupApiShieldSchemasOutput(ctx *Context, args *LookupApiShieldSchemasOutputArgs, opts ...InvokeOption) LookupApiShieldSchemasResultOutput
Copy

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

public static class GetApiShieldSchemas 
{
    public static Task<GetApiShieldSchemasResult> InvokeAsync(GetApiShieldSchemasArgs args, InvokeOptions? opts = null)
    public static Output<GetApiShieldSchemasResult> Invoke(GetApiShieldSchemasInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetApiShieldSchemasResult> getApiShieldSchemas(GetApiShieldSchemasArgs args, InvokeOptions options)
public static Output<GetApiShieldSchemasResult> getApiShieldSchemas(GetApiShieldSchemasArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getApiShieldSchemas:getApiShieldSchemas
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ZoneId This property is required. string
Identifier
MaxItems int
Max items to fetch, default: 1000
OmitSource bool
Omit the source-files of schemas and only retrieve their meta-data.
ValidationEnabled bool
Flag whether schema is enabled for validation.
ZoneId This property is required. string
Identifier
MaxItems int
Max items to fetch, default: 1000
OmitSource bool
Omit the source-files of schemas and only retrieve their meta-data.
ValidationEnabled bool
Flag whether schema is enabled for validation.
zoneId This property is required. String
Identifier
maxItems Integer
Max items to fetch, default: 1000
omitSource Boolean
Omit the source-files of schemas and only retrieve their meta-data.
validationEnabled Boolean
Flag whether schema is enabled for validation.
zoneId This property is required. string
Identifier
maxItems number
Max items to fetch, default: 1000
omitSource boolean
Omit the source-files of schemas and only retrieve their meta-data.
validationEnabled boolean
Flag whether schema is enabled for validation.
zone_id This property is required. str
Identifier
max_items int
Max items to fetch, default: 1000
omit_source bool
Omit the source-files of schemas and only retrieve their meta-data.
validation_enabled bool
Flag whether schema is enabled for validation.
zoneId This property is required. String
Identifier
maxItems Number
Max items to fetch, default: 1000
omitSource Boolean
Omit the source-files of schemas and only retrieve their meta-data.
validationEnabled Boolean
Flag whether schema is enabled for validation.

getApiShieldSchemas Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
OmitSource bool
Omit the source-files of schemas and only retrieve their meta-data.
Results List<GetApiShieldSchemasResult>
The items returned by the data source
ZoneId string
Identifier
MaxItems int
Max items to fetch, default: 1000
ValidationEnabled bool
Flag whether schema is enabled for validation.
Id string
The provider-assigned unique ID for this managed resource.
OmitSource bool
Omit the source-files of schemas and only retrieve their meta-data.
Results []GetApiShieldSchemasResult
The items returned by the data source
ZoneId string
Identifier
MaxItems int
Max items to fetch, default: 1000
ValidationEnabled bool
Flag whether schema is enabled for validation.
id String
The provider-assigned unique ID for this managed resource.
omitSource Boolean
Omit the source-files of schemas and only retrieve their meta-data.
results List<GetApiShieldSchemasResult>
The items returned by the data source
zoneId String
Identifier
maxItems Integer
Max items to fetch, default: 1000
validationEnabled Boolean
Flag whether schema is enabled for validation.
id string
The provider-assigned unique ID for this managed resource.
omitSource boolean
Omit the source-files of schemas and only retrieve their meta-data.
results GetApiShieldSchemasResult[]
The items returned by the data source
zoneId string
Identifier
maxItems number
Max items to fetch, default: 1000
validationEnabled boolean
Flag whether schema is enabled for validation.
id str
The provider-assigned unique ID for this managed resource.
omit_source bool
Omit the source-files of schemas and only retrieve their meta-data.
results Sequence[GetApiShieldSchemasResult]
The items returned by the data source
zone_id str
Identifier
max_items int
Max items to fetch, default: 1000
validation_enabled bool
Flag whether schema is enabled for validation.
id String
The provider-assigned unique ID for this managed resource.
omitSource Boolean
Omit the source-files of schemas and only retrieve their meta-data.
results List<Property Map>
The items returned by the data source
zoneId String
Identifier
maxItems Number
Max items to fetch, default: 1000
validationEnabled Boolean
Flag whether schema is enabled for validation.

Supporting Types

GetApiShieldSchemasResult

CreatedAt This property is required. string
Kind This property is required. string
Kind of schema Available values: "openapi_v3".
Name This property is required. string
Name of the schema
SchemaId This property is required. string
UUID
Source This property is required. string
Source of the schema
ValidationEnabled This property is required. bool
Flag whether schema is enabled for validation.
CreatedAt This property is required. string
Kind This property is required. string
Kind of schema Available values: "openapi_v3".
Name This property is required. string
Name of the schema
SchemaId This property is required. string
UUID
Source This property is required. string
Source of the schema
ValidationEnabled This property is required. bool
Flag whether schema is enabled for validation.
createdAt This property is required. String
kind This property is required. String
Kind of schema Available values: "openapi_v3".
name This property is required. String
Name of the schema
schemaId This property is required. String
UUID
source This property is required. String
Source of the schema
validationEnabled This property is required. Boolean
Flag whether schema is enabled for validation.
createdAt This property is required. string
kind This property is required. string
Kind of schema Available values: "openapi_v3".
name This property is required. string
Name of the schema
schemaId This property is required. string
UUID
source This property is required. string
Source of the schema
validationEnabled This property is required. boolean
Flag whether schema is enabled for validation.
created_at This property is required. str
kind This property is required. str
Kind of schema Available values: "openapi_v3".
name This property is required. str
Name of the schema
schema_id This property is required. str
UUID
source This property is required. str
Source of the schema
validation_enabled This property is required. bool
Flag whether schema is enabled for validation.
createdAt This property is required. String
kind This property is required. String
Kind of schema Available values: "openapi_v3".
name This property is required. String
Name of the schema
schemaId This property is required. String
UUID
source This property is required. String
Source of the schema
validationEnabled This property is required. Boolean
Flag whether schema is enabled for validation.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.