API Gateway
api_gateway
Configurations
api_gateway.configurations
Methods
Gets the current API Shield configuration settings for a zone, including validation behavior and enforcement mode.
Updates API Shield configuration settings for a zone. Can modify validation strictness, enforcement mode, and other global settings.
Domain types
Discovery
api_gateway.discovery
Methods
Retrieve the most up to date view of discovered operations, rendered as OpenAPI schemas
Domain types
api_gateway.discovery.operations
Methods
Retrieve the most up to date view of discovered operations
Update the state on a discovered operation
Update the state on one or more discovered operations
Expression Template
api_gateway.expression_template
api_gateway.expression_template.fallthrough
Methods
Creates an expression template fallthrough rule for API Shield. Used for configuring default behavior when no other expression templates match.
Operations
api_gateway.operations
Methods
Lists all API operations tracked by API Shield for a zone with pagination. Returns operation details including method, path, and feature configurations.
Gets detailed information about a specific API operation in API Shield, including its schema validation settings and traffic statistics.
Add one operation to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.
Removes a single API operation from API Shield endpoint management. The operation will no longer be tracked or protected by API Shield rules.
Add one or more operations to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.
Bulk removes multiple API operations from API Shield endpoint management in a single request. Efficient for cleaning up unused endpoints.
Domain types
api_gateway.operations.schema_validation
Methods
Deprecated
Use Schema Validation API instead.
Retrieves operation-level schema validation settings on the zone
Deprecated
Use Schema Validation API instead.
Updates operation-level schema validation settings on the zone
Deprecated
Use Schema Validation API instead.
Updates multiple operation-level schema validation settings on the zone
Domain types
Schemas
api_gateway.schemas
Methods
Retrieve operations and features as OpenAPI schemas
Settings
api_gateway.settings
Domain types
api_gateway.settings.schema_validation
Methods
Deprecated
Use Schema Validation API instead.
Retrieves zone level schema validation settings currently set on the zone
Deprecated
Use Schema Validation API instead.
Updates zone level schema validation settings on the zone
Deprecated
Use Schema Validation API instead.
Updates zone level schema validation settings on the zone
User Schemas
api_gateway.user_schemas
Methods
Deprecated
Use Schema Validation API instead.
Lists all OpenAPI schemas uploaded to API Shield for the zone, including their validation status and associated operations.
Deprecated
Use Schema Validation API instead.
Gets detailed information about a specific uploaded OpenAPI schema, including its contents and validation configuration.
Deprecated
Use Schema Validation API instead.
Upload a schema to a zone
Deprecated
Use Schema Validation API instead.
Activates schema validation for an uploaded OpenAPI schema. Requests to matching endpoints will be validated against the schema definitions.
Deprecated
Use Schema Validation API instead.
Permanently removes an uploaded OpenAPI schema from API Shield schema validation. Operations using this schema will lose their validation rules.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Account API Gateway Domain API Gateway
Identifier.
Domain types
api_gateway.user_schemas.hosts
Methods
Deprecated
Use Schema Validation API instead.
Lists all unique hosts found in uploaded OpenAPI schemas for the zone. Useful for understanding which domains have schema coverage.
api_gateway.user_schemas.operations
Methods
Deprecated
Use Schema Validation API instead.
Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.