Cloud One Application Security API (1)
Download OpenAPI specification:Download
Get account's groups.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
List of groups
- 200
[- {
- "account_id": "string",
- "activated_on": "string",
- "group_id": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "name": "string",
- "settings": {
- "credential_stuffing": "disable",
- "file_access": "disable",
- "ip_protection": "disable",
- "malicious_file_upload": "disable",
- "malicious_payload": "disable",
- "rce": "disable",
- "redirect": "disable",
- "sqli": "disable"
}, - "status": "active"
}
]
Add new group.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
New group added
Account does not exist.
Unauthorized access.
Group name already exists.
Incorrect payload.
- Payload
{- "name": "string"
}
- 200
{- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "activated_on": "2019-08-24T14:15:22Z",
- "created_on": "2019-08-24T14:15:22Z",
- "credentials": {
- "key": "string",
- "secret": "string"
}, - "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f",
- "metadata": {
- "property1": null,
- "property2": null
}, - "name": "string",
- "settings": {
- "credential_stuffing": "disable",
- "file_access": "disable",
- "ip_protection": "disable",
- "malicious_file_upload": "disable",
- "malicious_payload": "disable",
- "rce": "disable",
- "redirect": "disable",
- "sqli": "disable"
}, - "status": "active",
- "updated_on": "2019-08-24T14:15:22Z"
}
Get a group's detail.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Group detail
- 200
{- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "activated_on": "2019-08-24T14:15:22Z",
- "created_on": "2019-08-24T14:15:22Z",
- "credentials": {
- "key": "string",
- "secret": "string"
}, - "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f",
- "metadata": {
- "property1": null,
- "property2": null
}, - "name": "string",
- "settings": {
- "credential_stuffing": "disable",
- "file_access": "disable",
- "ip_protection": "disable",
- "malicious_file_upload": "disable",
- "malicious_payload": "disable",
- "rce": "disable",
- "redirect": "disable",
- "sqli": "disable"
}, - "status": "active",
- "updated_on": "2019-08-24T14:15:22Z"
}
Update group information.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Group updated successfully
Unprocessable Entity
- Payload
{- "name": "string"
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Get settings for a group.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Group settings.
- 200
{- "credential_stuffing": "disable",
- "file_access": "disable",
- "ip_protection": "disable",
- "malicious_file_upload": "disable",
- "malicious_payload": "disable",
- "rce": "disable",
- "redirect": "disable",
- "sqli": "disable"
}
Update group settings.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Request Body schema: application/json
Group settings updated successfully
Unprocessable Entity
- Payload
{- "credential_stuffing": "disable",
- "file_access": "disable",
- "ip_protection": "disable",
- "malicious_file_upload": "disable",
- "malicious_payload": "disable",
- "rce": "disable",
- "redirect": "disable",
- "sqli": "disable"
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the Illegal File Access policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Retrieved the file access policy.
- 200
{- "read_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}, - "write_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}
}
Update the Illegal File Access policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully updated the file access policy.
Failure to validate the file access policy rules.
Unprocessable Entity
- Payload
{- "read_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}, - "write_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the IP Protection Policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully retrieved the IP Protection policy.
- 200
{- "ip_feeds": {
- "configuration": {
- "feeds": [
- {
- "action": "block",
- "feed": "tor-exit-nodes",
- "status": "enabled"
}
]
}, - "status": "enabled"
}, - "ip_filter": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
]
}, - "status": "enabled"
}, - "trusted_subnets": {
- "configuration": {
- "rules": [
- {
- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
]
}, - "status": "enabled"
}
}
Update the IP Protection policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully updated the IP Protection policy.
Unprocessable Entity
- Payload
{- "ip_feeds": {
- "configuration": {
- "feeds": [
- {
- "action": "block",
- "feed": "tor-exit-nodes",
- "status": "enabled"
}
]
}, - "status": "enabled"
}, - "ip_filter": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
]
}, - "status": "enabled"
}, - "trusted_subnets": {
- "configuration": {
- "rules": [
- {
- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
]
}, - "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Add a rule to the IP Filtering of the IP Protection Policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully added IP filter rule.
Unprocessable Entity
- Payload
{- "action": "block",
- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Remove a rule from the IP Filtering of the IP Protection Policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully deleted the IP filter rule
Add a rule to the Trusted IPs of the IP Protection Policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully added trusted subnets rule.
Unprocessable Entity
- Payload
{- "active_period": {
- "duration_mins": 1,
- "start": "2019-08-24T14:15:22Z"
}, - "match": "string"
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Remove a rule from the Trusted IPs of the IP Protection Policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully deleted the trusted subnets rule
Return the Malicious File Upload policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully retrieved the file upload policy.
- 200
{- "av_scanning": {
- "configuration": {
- "aggressive_level": 1,
- "buffered_scanning_max_bytes": 4294967295,
- "extract_compression_level_limit": 1,
- "extract_file_count_limit": 1,
- "extract_file_size_limit_bytes": 4294967295
}, - "status": "enabled"
}, - "size_check": {
- "configuration": {
- "max_bytes": 4294967295
}, - "status": "enabled"
}
}
Update the Malicious File Upload policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully updated the file upload policy.
Unprocessable Entity
- Payload
{- "av_scanning": {
- "configuration": {
- "aggressive_level": 1,
- "buffered_scanning_max_bytes": 4294967295,
- "extract_compression_level_limit": 1,
- "extract_file_count_limit": 1,
- "extract_file_size_limit_bytes": 4294967295
}, - "status": "enabled"
}, - "size_check": {
- "configuration": {
- "max_bytes": 4294967295
}, - "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the Malicious Payload policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Returns malicious payload policy.
Could not find specified group.
- 200
{- "malicious_pattern_match": {
- "configuration": {
- "patterns": [
- {
- "cves": [
- "string"
], - "cvss_score": "string",
- "description": "string",
- "id": 4294967295,
- "name": "string",
- "status": "enabled"
}
], - "report_payload": true
}, - "status": "enabled"
}
}
Update the Malicious Payload policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Malicious payload policy updated.
Could not find specified group.
Unprocessable Entity
- Payload
{- "malicious_pattern_match": {
- "configuration": {
- "patterns": [
- {
- "cves": [
- "string"
], - "cvss_score": "string",
- "description": "string",
- "id": 4294967295,
- "name": "string",
- "status": "enabled"
}
], - "report_payload": true
}, - "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the Remote Command Execution policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully retrieved the RCE policy.
- 200
{- "exec_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "command": "string"
}
]
}, - "status": "enabled"
}, - "http_params": {
- "configuration": { },
- "status": "enabled"
}
}
Update the Remote Command Execution policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully updated the Rce policy.
Failure to validate the Rce policy rules.
Unprocessable Entity
- Payload
{- "exec_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "command": "string"
}
]
}, - "status": "enabled"
}, - "http_params": {
- "configuration": { },
- "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the Open Redirect policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Retrieved the redirect policy.
- 200
{- "redirect_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}
}
Update the Open Redirect policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Successfully updated the redirect policy.
Failure to validate the redirect policy rules.
Unprocessable Entity
- Payload
{- "redirect_control": {
- "configuration": {
- "rules": [
- {
- "action": "block",
- "glob": "string"
}
]
}, - "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}
Return the SQL Injection policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Retrieved the SQLi policy.
- 200
{- "always_false": {
- "configuration": { },
- "status": "enabled"
}, - "always_true": {
- "configuration": { },
- "status": "enabled"
}, - "bad_function": {
- "configuration": { },
- "status": "enabled"
}, - "http_params": {
- "configuration": { },
- "status": "enabled"
}, - "stacking_queries": {
- "configuration": { },
- "status": "enabled"
}, - "syntax_error": {
- "configuration": { },
- "status": "enabled"
}, - "trailing_comment": {
- "configuration": { },
- "status": "enabled"
}, - "union_set": {
- "configuration": { },
- "status": "enabled"
}
}
Update the SQL Injection policy.
To freeze the version of this endpoint, please add the following header to your requests: - Accept: application/json; version=1.0
Request Body schema: application/json
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
required | object (SQLiAlgoSettings) |
Successfully updated the file access policy.
Invalid algorithm for SQLi policy.
Unprocessable Entity
- Payload
{- "always_false": {
- "configuration": { },
- "status": "enabled"
}, - "always_true": {
- "configuration": { },
- "status": "enabled"
}, - "bad_function": {
- "configuration": { },
- "status": "enabled"
}, - "http_params": {
- "configuration": { },
- "status": "enabled"
}, - "stacking_queries": {
- "configuration": { },
- "status": "enabled"
}, - "syntax_error": {
- "configuration": { },
- "status": "enabled"
}, - "trailing_comment": {
- "configuration": { },
- "status": "enabled"
}, - "union_set": {
- "configuration": { },
- "status": "enabled"
}
}
- 422
{- "code": 0,
- "errors": { },
- "message": "string",
- "status": "string"
}