Sha256: 5ea5d2543f82f9a3809069e6e73a1cda4af27582e1dceca0034f2280aba6cef8

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
    body:
      encoding: UTF-8
      string: record[ttl]=600&record[prio]=&record[record_type]=A&record[name]=&record[content]=1.2.3.4
    headers:
      Accept:
      - application/json
      Authorization:
      - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
  response:
    status:
      code: 201
      message: Created
    headers:
      X-Ua-Compatible:
      - IE=Edge
      Access-Control-Allow-Headers:
      - Authorization,Accepts,Content-Type
      X-Dnsimple-Api-Version:
      - 1.0.0
      Location:
      - https://test.dnsimple.com/domains/example.com/records/70
      Access-Control-Allow-Methods:
      - OPTIONS
      Content-Type:
      - application/json; charset=utf-8
      Access-Control-Allow-Origin:
      - ! '*'
      Date:
      - Fri, 11 Nov 2011 20:22:26 GMT
      Server:
      - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
      X-Runtime:
      - '0.804759'
      Content-Length:
      - '245'
      Set-Cookie:
      - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOGZlNTcwZDdlNzdjZGRkZmZjMzIxZjYzNzQwZGM4YjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--436bfd6056d83bfaa12a0017bfaefa3eb2cd22ac;
        path=/; HttpOnly
      Cache-Control:
      - no-cache
    body:
      encoding: UTF-8
      string: ! '{"record":{"content":"1.2.3.4","created_at":"2011-11-11T20:22:26Z","domain_id":39,"domain_service_id":null,"id":70,"name":"","pdns_identifier":null,"prio":null,"record_type":"A","special_type":null,"ttl":600,"updated_at":"2011-11-11T20:22:26Z"}}'
    http_version: '1.1'
  recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
recorded_with: VCR 2.2.5

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dnsimple-ruby-1.4.1 fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml
dnsimple-ruby-1.4.0 fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml