---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 105
    host: api.scaleway.com
    body: "{\"name\":\"test\",\"project\":\"fa1e3217-dc80-42ac-85c3-3f034b78b552\",\"volume_type\":\"l_ssd\",\"size\":20000000000}"
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) cli-e2e-test
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: 406
    body: "{\"volume\": {\"id\": \"c48f4759-5755-4a2a-9832-6877a4b2cd0c\", \"name\": \"test\", \"volume_type\": \"l_ssd\", \"organization\": \"fa1e3217-dc80-42ac-85c3-3f034b78b552\", \"project\": \"fa1e3217-dc80-42ac-85c3-3f034b78b552\", \"server\": null, \"size\": 20000000000, \"state\": \"available\", \"creation_date\": \"2025-11-04T10:25:47.200437+00:00\", \"modification_date\": \"2025-11-04T10:25:47.200437+00:00\", \"tags\": [], \"zone\": \"fr-par-1\"}}"
    headers:
      Content-Length:
      - "406"
      Content-Type:
      - application/json
      Date:
      - Tue, 04 Nov 2025 10:25:47 GMT
      Location:
      - https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/c48f4759-5755-4a2a-9832-6877a4b2cd0c
      Server:
      - Scaleway API Gateway (fr-par-3;edge02)
      X-Request-Id:
      - 64cd28b9-56d6-4cfc-aac3-8b2d399b645b
    status: 201 Created
    code: 201
    duration: 160.816013ms
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 0
    host: api.scaleway.com
    headers:
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.1; linux; amd64) cli-e2e-test
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/c48f4759-5755-4a2a-9832-6877a4b2cd0c
    method: DELETE
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: 0
    body: ""
    headers:
      Content-Type:
      - application/json
      Date:
      - Tue, 04 Nov 2025 10:25:47 GMT
      Server:
      - Scaleway API Gateway (fr-par-3;edge02)
      X-Request-Id:
      - 44b2402a-a707-432d-933a-a1105e3f9ea6
    status: 204 No Content
    code: 204
    duration: 105.012433ms
