Create a test profile
POST/v1/test-profiles
Sets up the isolated network a test runs in: its operator project, address ranges, outbound filtering, jump host, allowed health checks, canary addresses and maximum duration. A registration names the profile its tests run under, and a test can name one itself.
Operator only: needs a system-scoped token.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 413
- 415
- 422
- default
Created
Bad Request.
invalid_request: The body is not a single JSON object, names a field this operation does not take, or gives a value of the wrong type.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token is not a system-scoped admin token.
Conflict.
conflict: A test profile with this name already exists. Or project_id names no project here, or one that is disabled.
Request Entity Too Large.
body_too_large: The body is larger than the service accepts.
Unsupported Media Type.
unsupported_media_type: The body is not sent as application/json.
Unprocessable Entity.
validation_failed: A field is missing or not acceptable, and fields names each: name, project_id, network_cidrs, max_duration outside 10m to 168h, a permitted check, or an isolation canary, including any on a strict profile with no jump host.
An error, as an RFC 7807 problem document.