| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| properties | Array of strings (properties) unique Items Value: "auth_id_characteristics" Example: properties=auth_id_characteristics Requests information about certain properties. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "auth_id_characteristics": [
- {
- "type": "header",
- "name": "authorization"
}
]
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
Array of objects (characteristics) <= 10 items unique |
{- "auth_id_characteristics": [
- {
- "type": "header",
- "name": "authorization"
}
]
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": { }
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| operation_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the operation |
| feature | Array of strings unique Items Enum: "thresholds" "parameter_schemas" "schema_info" Example: feature=thresholds Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}",
- "operation_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "last_updated": "2014-01-01T05:20:00.12345Z",
- "features": {
- "thresholds": {
- "period_seconds": 0,
- "suggested_threshold": 0,
- "p50": 0,
- "p90": 0,
- "p99": 0,
- "requests": 0,
- "auth_id_tokens": 0,
- "data_points": 0,
- "last_updated": "2014-01-01T05:20:00.12345Z"
}
}
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| operation_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the operation |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": { }
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| page | number >= 1 Default: 1 Page number of paginated results. |
| per_page | number >= 5 Default: 20 Number of results to return per page |
| order | string Enum: "method" "host" "endpoint" "thresholds.$key" Example: order=method Field to order by. When requesting a feature, the feature keys are available for ordering as well, e.g., |
| direction | string Enum: "asc" "desc" Example: direction=desc Direction to order results. |
| host | Array of strings unique Example: host=api.cloudflare.com Filter results to only include the specified hosts. |
| method | Array of strings unique Example: method=GET Filter results to only include the specified HTTP methods. |
| endpoint | string Example: endpoint=/api/v1 Filter results to only include endpoints containing this pattern. |
| feature | Array of strings unique Items Enum: "thresholds" "parameter_schemas" "schema_info" Example: feature=thresholds Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": [
- {
- "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}",
- "operation_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "last_updated": "2014-01-01T05:20:00.12345Z",
- "features": {
- "thresholds": {
- "period_seconds": 0,
- "suggested_threshold": 0,
- "p50": 0,
- "p90": 0,
- "p99": 0,
- "requests": 0,
- "auth_id_tokens": 0,
- "data_points": 0,
- "last_updated": "2014-01-01T05:20:00.12345Z"
}
}
}
], - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}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.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| method required | string (method) Enum: "GET" "POST" "HEAD" "OPTIONS" "PUT" "DELETE" "CONNECT" "PATCH" "TRACE" The HTTP method used to access the endpoint. |
| host required | string <hostname> (host) <= 255 characters RFC3986-compliant host. |
| endpoint required | string <uri-template> (endpoint) <= 4096 characters ^/.*$ The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/. |
[- {
- "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}"
}
]{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": [
- {
- "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}",
- "operation_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "last_updated": "2014-01-01T05:20:00.12345Z",
- "features": null
}
], - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| host | Array of strings unique Example: host=www.example.com Receive schema only for the given host(s). |
| feature | Array of strings unique Items Enum: "thresholds" "parameter_schemas" "schema_info" Example: feature=thresholds Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "timestamp": "string",
- "schemas": [
- {
- "openapi": "3.0.0",
- "servers": [
- {
- "url": "www.example.com"
}
], - "info": {
- "title": "OpenAPI JSON schema for www.example.com",
- "version": "1.0"
}, - "paths": {
- "/api/v1/users/{var1}": {
- "get": {
- "parameters": [
- {
- "in": "path",
- "name": "var1",
- "required": true,
- "schema": {
- "type": "string"
}
}
], - "x-cf-threshold": {
- "period_seconds": 600,
- "suggested_threshold": 18,
- "p50": 3,
- "p90": 7,
- "p99": 11,
- "requests": 66886,
- "auth_id_tokens": 7262,
- "data_points": 10189,
- "last_udated": "2014-01-01T05:20:00.12345Z"
}
}
}, - "... Further paths ...": { }
}
}
]
}
}Retrieve the most up to date view of discovered operations
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| page | number >= 1 Default: 1 Page number of paginated results. |
| per_page | number [ 5 .. 50 ] Default: 20 Maximum number of results per page. |
| host | Array of strings unique Example: host=api.cloudflare.com Filter results to only include the specified hosts. |
| method | Array of strings unique Example: method=GET Filter results to only include the specified HTTP methods. |
| endpoint | string Example: endpoint=/api/v1 Filter results to only include endpoints containing this pattern. |
| direction | string Enum: "asc" "desc" Example: direction=desc Direction to order results. |
| order | string Enum: "host" "method" "endpoint" "traffic_stats.requests" "traffic_stats.last_updated" Example: order=method Field to order by |
| diff | boolean When |
| origin | string (api_discovery_origin) Enum: "ML" "SessionIdentifier" Filter results to only include discovery results sourced from a particular discovery engine
|
| state | string (api_discovery_state) Enum: "review" "saved" "ignored" Filter results to only include discovery results in a particular state. States are as follows
|
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": [
- {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "origin": [
- "ML"
], - "state": "review",
- "last_updated": "2014-01-01T05:20:00.12345Z",
- "features": {
- "traffic_stats": {
- "period_seconds": 3600,
- "requests": 1987.06,
- "last_updated": "2014-01-01T05:20:00.12345Z"
}
}, - "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}"
}
], - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}Update the state on one or more discovered operations
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
additional property | object (api_discovery_patch_multiple_request_entry) Operation ID to patch state mappings |
{- "b17c8043-99a0-4202-b7d9-8f7cdbee02cd": {
- "state": "review"
}, - "3818d821-5901-4147-a474-f5f5aec1d54e": {
- "state": "ignored"
}
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "b17c8043-99a0-4202-b7d9-8f7cdbee02cd": {
- "state": "review"
}, - "3818d821-5901-4147-a474-f5f5aec1d54e": {
- "state": "ignored"
}
}
}Update the state on a discovered operation
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| operation_id required | string <uuid> (uuid) = 36 characters Example: 0d9bf70c-92e1-4bb3-9411-34a3bcc59003 Identifier for the discovered operation |
| state | string Enum: "review" "ignored" Mark state of operation in API Discovery
|
{- "state": "review"
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "state": "review"
}
}Retrieve the most up to date view of discovered operations, rendered as OpenAPI schemas
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "timestamp": "2014-01-01T05:20:00.12345Z",
- "schemas": [
- {
- "openapi": "3.0.0",
- "servers": [
- {
- "url": "www.example.com"
}
], - "info": {
- "title": "OpenAPI JSON schema for www.example.com",
- "version": "1.0"
}, - "paths": {
- "/api/v1/users/{var1}": {
- "get": {
- "x-cf-api-discovery-source": [
- "ML",
- "SessionIdentifier"
], - "x-cf-api-discovery-state": "review",
- "parameters": [
- {
- "in": "path",
- "name": "var1",
- "required": true,
- "schema": {
- "type": "string"
}
}
]
}
}, - "... Further paths ...": { }
}
}
]
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| page | number >= 1 Default: 1 Page number of paginated results. |
| per_page | number [ 5 .. 50 ] Default: 20 Maximum number of results per page. |
| omit_source | boolean Default: false Omit the source-files of schemas and only retrieve their meta-data. |
| validation_enabled | boolean (validation_enabled) Flag whether schema is enabled for validation. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": [
- {
- "schema_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "name": "petstore schema",
- "kind": "openapi_v3",
- "source": "<schema file bytes>",
- "created_at": "2014-01-01T05:20:00.12345Z",
- "validation_enabled": true
}
], - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| file required | string <binary> Schema file bytes |
| kind required | string (kind) Value: "openapi_v3" Kind of schema |
| name | string Name of the schema |
| validation_enabled | string Enum: "true" "false" Flag whether schema is enabled for validation. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "schema": {
- "schema_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "name": "petstore schema",
- "kind": "openapi_v3",
- "source": "<schema file bytes>",
- "created_at": "2014-01-01T05:20:00.12345Z",
- "validation_enabled": true
}, - "upload_details": {
- "warnings": [
- {
- "code": 28,
- "message": "unsupported media type: application/octet-stream",
- "locations": [
- ".paths[\"/user/{username}\"].put"
]
}
]
}
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| schema_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the schema-ID |
| omit_source | boolean Default: false Omit the source-files of schemas and only retrieve their meta-data. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "schema_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "name": "petstore schema",
- "kind": "openapi_v3",
- "source": "<schema file bytes>",
- "created_at": "2014-01-01T05:20:00.12345Z",
- "validation_enabled": true
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| schema_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the schema-ID |
| validation_enabled | boolean Value: true Flag whether schema is enabled for validation. |
{- "validation_enabled": true
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "schema_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "name": "petstore schema",
- "kind": "openapi_v3",
- "source": "<schema file bytes>",
- "created_at": "2014-01-01T05:20:00.12345Z",
- "validation_enabled": true
}
}| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| schema_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the schema-ID |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": { }
}Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.
| schema_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the schema-ID |
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| feature | Array of strings unique Items Enum: "thresholds" "parameter_schemas" "schema_info" Example: feature=thresholds Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning. |
| host | Array of strings unique Example: host=api.cloudflare.com Filter results to only include the specified hosts. |
| method | Array of strings unique Example: method=GET Filter results to only include the specified HTTP methods. |
| endpoint | string Example: endpoint=/api/v1 Filter results to only include endpoints containing this pattern. |
| page | number >= 1 Default: 1 Page number of paginated results. |
| per_page | number [ 5 .. 50 ] Default: 20 Maximum number of results per page. |
| operation_status | string Enum: "new" "existing" Example: operation_status=new Filter results by whether operations exist in API Shield Endpoint Management or not. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": [
- {
- "method": "GET",
- "host": "www.example.com",
- "endpoint": "/api/v1/users/{var1}",
- "operation_id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "last_updated": "2014-01-01T05:20:00.12345Z",
- "features": {
- "thresholds": {
- "period_seconds": 0,
- "suggested_threshold": 0,
- "p50": 0,
- "p90": 0,
- "p99": 0,
- "requests": 0,
- "auth_id_tokens": 0,
- "data_points": 0,
- "last_updated": "2014-01-01T05:20:00.12345Z"
}
}
}
], - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}Retrieves zone level schema validation settings currently set on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
{- "validation_default_mitigation_action": "block",
- "validation_override_mitigation_action": "disable_override"
}Updates zone level schema validation settings on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| validation_default_mitigation_action required | string (validation_default_mitigation_action) Enum: "none" "log" "block" The default mitigation action used when there is no mitigation action defined on the operation Mitigation actions are as follows:
A special value of of |
| validation_override_mitigation_action | string or null (validation_override_mitigation_action_write) Enum: "none" "disable_override" null When set, this overrides both zone level and operation level mitigation actions.
To clear any override, use the special value |
{- "validation_default_mitigation_action": "block",
- "validation_override_mitigation_action": "none"
}{- "validation_default_mitigation_action": "block",
- "validation_override_mitigation_action": "disable_override"
}Updates zone level schema validation settings on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| validation_default_mitigation_action | string or null (validation_default_mitigation_action_patch) Enum: "none" "log" "block" null The default mitigation action used when there is no mitigation action defined on the operation Mitigation actions are as follows:
A special value of of
|
| validation_override_mitigation_action | string or null (validation_override_mitigation_action_patch) Enum: "none" "disable_override" null When set, this overrides both zone level and operation level mitigation actions.
To clear any override, use the special value
|
{- "validation_default_mitigation_action": "block",
- "validation_override_mitigation_action": "none"
}{- "validation_default_mitigation_action": "block",
- "validation_override_mitigation_action": "disable_override"
}Retrieves operation-level schema validation settings on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| operation_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the operation |
{- "mitigation_action": "block"
}Updates operation-level schema validation settings on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| operation_id required | string <uuid> <= 36 characters Example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 Identifier for the operation |
| mitigation_action | string or null (operation_mitigation_action) Enum: "log" "block" "none" null When set, this applies a mitigation action to this operation
|
{- "mitigation_action": "block"
}{- "mitigation_action": "block"
}Updates multiple operation-level schema validation settings on the zone
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
additional property | object (operation_schema_validation_settings_multiple_request_entry) Operation ID to mitigation action mappings |
{- "b17c8043-99a0-4202-b7d9-8f7cdbee02cd": {
- "mitigation_action": "block"
}, - "3818d821-5901-4147-a474-f5f5aec1d54e": {
- "mitigation_action": "log"
}
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "b17c8043-99a0-4202-b7d9-8f7cdbee02cd": {
- "mitigation_action": "block"
}, - "3818d821-5901-4147-a474-f5f5aec1d54e": {
- "mitigation_action": "log"
}
}
}List all currently configured sequence rules.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| page | number >= 1 Default: 1 Page number of paginated results. |
| per_page | number [ 5 .. 50 ] Default: 20 Maximum number of results per page. |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "rules": [
- {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0,
- "last_updated": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}, - "result_info": {
- "page": 1,
- "per_page": 20,
- "count": 1,
- "total_count": 2000
}
}Replace the existing set of rules with the ones provided.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
Array of objects |
{- "rules": [
- {
- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0
}
]
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "rules": [
- {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0,
- "last_updated": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
}Adds a single rule to the set of sequence rules.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| title required | string [ 1 .. 50 ] characters A short description of the rule |
| kind required | string Enum: "block" "allow" Describes if the sequence should be allowed or forbidden |
| action required | string Enum: "block" "log" The action that should be performed when the sequence rules is activated |
| sequence required | Array of strings <uuid> = 2 items unique [ items <uuid > = 36 characters ] References to operations from endpoint management which form a sequence. Operations must all have the same host. |
| priority required | integer Default: 0 An indicator which precedence this rules has over other rules. Rules with a higher priority number are executed before rules with a lower priority number. Rules with the same priority are executed in order that they were added. |
{- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0,
- "last_updated": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
}Change properties of an existing rule within the set of sequence rules.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| rule_id required | string <uuid> (uuid) = 36 characters Example: 0d9bf70c-92e1-4bb3-9411-34a3bcc59003 UUID identifier |
| title | string [ 1 .. 50 ] characters A short description of the rule |
| kind | string Enum: "block" "allow" Describes if the sequence should be allowed or forbidden |
| action | string Enum: "block" "log" The action that should be performed when the sequence rules is activated |
| sequence | Array of strings <uuid> = 2 items unique [ items <uuid > = 36 characters ] References to operations from endpoint management which form a sequence. Operations must all have the same host. |
| priority | integer Default: 0 An indicator which precedence this rules has over other rules. Rules with a higher priority number are executed before rules with a lower priority number. Rules with the same priority are executed in order that they were added. |
{- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0
}{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003",
- "title": "string",
- "kind": "block",
- "action": "block",
- "sequence": [
- [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
], - [
- "6d97d195-2e23-4498-8db8-ae028df8cdfd",
- "f6fb9e07-3c7d-40d7-a268-9b1693cf0905"
]
], - "priority": 0,
- "last_updated": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
}Removes a single rule from the set of sequence rules.
| zone_id required | string (identifier) <= 32 characters Example: 023e105f4ecef8ad9ca31a8372d0c353 Identifier |
| rule_id required | string <uuid> (uuid) = 36 characters Example: 0d9bf70c-92e1-4bb3-9411-34a3bcc59003 UUID identifier |
{- "success": true,
- "errors": [ ],
- "messages": [ ],
- "result": {
- "id": "0d9bf70c-92e1-4bb3-9411-34a3bcc59003"
}
}