- Home
- API Enriched
- Shape
- shape
- Custom Replace Bot allowlist Policy.
Custom Replace Bot allowlist Policy.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/shape/bot/custom/namespaces/example/bot_allowlist_policys/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"name":"example","namespace":"example","spec":{"allowlist_policy_content":{"ip_allowlist":[{"ip_detail":{"ip_description":"example","ip_value":"example"},"ip_prefix_detail":{"ip_description":"example","ip_value":"example"}}],"ip_range_allowlist":[{"end_with":"example","ip_description":"example","start_with":"example"}]}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/shape/bot/custom/namespaces/example/bot_allowlist_policys/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "namespace": "example", "spec": { "allowlist_policy_content": { "ip_allowlist": [ { "ip_detail": { "ip_description": "example", "ip_value": "example" }, "ip_prefix_detail": { "ip_description": "example", "ip_value": "example" } } ], "ip_range_allowlist": [ { "end_with": "example", "ip_description": "example", "start_with": "example" } ] } } }'Customreplace CustomAPI.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Namespace.
Name Name of the policy.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Name of the policy.
Namespace.
object
object
Allowlist or permitted items
IP Allowlist value.
object
object
The description for IP address.
A single IP address
Required: YES.
object
The description for IP prefix.
IP prefix e.g. 10.0.0.0/10
Required: YES.
Allowlist or permitted items
IP Range Allowlist value.
object
IP range end with
Required: YES.
The description for IP range.
IP range start with
Required: YES.
Examplegenerated
{ "name": "example", "namespace": "example", "spec": { "allowlist_policy_content": { "ip_allowlist": [ { "ip_detail": { "ip_description": "example", "ip_value": "example" }, "ip_prefix_detail": { "ip_description": "example", "ip_value": "example" } } ], "ip_range_allowlist": [ { "end_with": "example", "ip_description": "example", "start_with": "example" } ] } }}Responses
Section titled “Responses”A successful response.
object
Examplegenerated
{}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example