Create shutdown attack
POST {{gremlin_api}}/attacks/new
Create a new attack.
Review Gremlin API docs about creating, halting, and listing attacks, examples of creating attacks, and attack parameters that can be included.
Under the request Body tab, we will configure our attack and include the containerId
environment variable initialized in the previous request. Additionally we will pass a parameter so there is zero delay in shutting down this container.
Under the Tests tab, we will initialize a new environment variable called guid
to identify the attack, in order to pass this info to any subsequent requests.
Request Body
{"command"=>{"type"=>"shutdown", "args"=>["-d", "0"]}, "target"=>{"type"=>"Exact", "containers"=>{"ids"=>["{{containerId}}"]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | Use a team-level Gremlin API key | |
Content-Type | string |
RESPONSES
status: Created
"47d23fd7-bd2d-11e9-a377-02421dbb6307"