cURL
curl --request POST \ --url https://api.gcore.com/cloud/v1/ddos/profiles/{project_id}/{region_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "bm_instance_id": null, "fields": [ { "base_field": 10, "field_value": [ 45046, 45047 ] } ], "ip_address": "11.111.111.1", "profile_template": 123, "resource_id": null, "resource_type": "instance" }'
{ "tasks": [ "d478ae29-dedc-4869-82f0-96104425f565" ] }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
Region ID
List of created tasks
The response is of type object.
object
Was this page helpful?