Sha256: b4397b2ad186e1c78e247fc1f33c45f93b1d333d5d89085a4f031310c88513f2

Contents?: true

Size: 1.96 KB

Versions: 3

Compression:

Stored size: 1.96 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://my.datacentred.io/api/projects
    body:
      encoding: UTF-8
      string: '{"project":{"name":"test_new_project"}}'
    headers:
      Accept:
      - application/vnd.datacentred.api+json; version=1
      Authorization:
      - Token token=access_key:secret_key
      Content-Type:
      - application/json
      User-Agent:
      - Faraday v0.9.2
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 201
      message: Created
    headers:
      Server:
      - nginx/1.10.3
      Date:
      - Tue, 29 Aug 2017 15:30:20 GMT
      Content-Type:
      - application/vnd.datacentred.api+json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - keep-alive
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Etag:
      - W/"bcf2e37842911b0835ebdbd785272265"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 5771e02d-fa57-4e89-9798-7cd95bb0d318
      X-Runtime:
      - '1.274402'
      Strict-Transport-Security:
      - max-age=31536000; includeSubdomains; preload
    body:
      encoding: UTF-8
      string: '{"project":{"id":"37ebf1100ef64599bdfc3f19b913d82c","name":"test_new_project","created_at":"2017-08-29T15:30:20Z","updated_at":"2017-08-29T15:30:20Z","quota_set":{"compute":{"instances":5,"cores":5,"ram":10240},"volume":{"volumes":4,"snapshots":4,"gigabytes":40},"network":{"floatingip":1,"router":1,"security_group_rule":100,"security_group":10,"network":10,"port":10,"subnet":10,"pool":10,"vip":10}},"links":[{"href":"https://my.datacentred.io/api/projects/37ebf1100ef64599bdfc3f19b913d82c","rel":"self"},{"href":"https://my.datacentred.io/api/schemas/project","rel":"schema"}]}}'
    http_version:
  recorded_at: Tue, 29 Aug 2017 15:30:20 GMT
recorded_with: VCR 2.8.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datacentred-1.1.1 test/vcr_cassettes/create_project.yml
datacentred-0.1.1pre test/vcr_cassettes/create_project.yml
datacentred-0.1.0pre test/vcr_cassettes/create_project.yml