Sha256: f696ee06a59a751a1bcf8a96d7e2fa035728d3d22ab2c2d9c3f2db3e3cc927a5

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

---
http_interactions:
- request:
    method: get
    uri: https://my.datacentred.io/api/roles
    body:
      encoding: US-ASCII
      string: ''
    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: 200
      message: OK
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Content-Type:
      - application/vnd.datacentred.api+json; charset=utf-8
      Etag:
      - W/"755f40d68d204c63a29d2ec6646fc8d0"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 8957b65f-8edd-4dd8-b0f6-339bb9e2ff09
      X-Runtime:
      - '0.111247'
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: '{"roles":[{"id":"f3ca469d-c491-4efc-baa2-753697dd6e5e","name":"Administrator","admin":true,"permissions":["roles.read","roles.modify","tickets.modify"],"created_at":"2017-07-20T13:06:19Z","updated_at":"2017-07-20T13:06:19Z","links":[{"href":"https://my.datacentred.io/api/roles/f3ca469d-c491-4efc-baa2-753697dd6e5e","rel":"self"},{"href":"https://my.datacentred.io/api/schemas/role","rel":"schema"}]},{"id":"880917ae-21ed-4202-b3a0-256eda42542f","name":"Foo","admin":false,"permissions":["cloud.read","storage.read","api.read","roles.read"],"created_at":"2017-08-08T08:43:32Z","updated_at":"2017-08-08T08:44:10Z","links":[{"href":"https://my.datacentred.io/api/roles/880917ae-21ed-4202-b3a0-256eda42542f","rel":"self"},{"href":"https://my.datacentred.io/api/schemas/role","rel":"schema"}]}]}'
    http_version:
  recorded_at: Mon, 04 Sep 2017 08:48:17 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/list_roles.yml
datacentred-0.1.1pre test/vcr_cassettes/list_roles.yml
datacentred-0.1.0pre test/vcr_cassettes/list_roles.yml