Files
neon-api-python/tests/cassettes/test_integration/test_api_keys.yaml
T

115 lines
2.9 KiB
YAML

interactions:
- request:
body: '{"key_name": "pytest-3250"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '27'
Content-Type:
- application/json
User-Agent:
- neon-client/python version=(0.1.0)
method: POST
uri: https://console.neon.tech/api/v2/api_keys
response:
body:
string: '{"id":774518,"key":"6v5eet41f506cs580ux7alreysh6kmg5ww4vbs2glpivzouojx8dy7xiy7r33skp","name":"pytest-3250","created_at":"2024-01-25T14:27:03Z"}'
headers:
Connection:
- keep-alive
Content-Length:
- '143'
Content-Type:
- application/json
Date:
- Thu, 25 Jan 2024 14:27:03 GMT
Strict-Transport-Security:
- max-age=15724800; includeSubDomains
Vary:
- Origin
X-Neon-Ret-Request-Id:
- 4ecb3c3d7a1e0e1159d86f1edf6998a0
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Type:
- application/json
User-Agent:
- neon-client/python version=(0.1.0)
method: GET
uri: https://console.neon.tech/api/v2/api_keys
response:
body:
string: '[{"id":774518,"name":"pytest-3250","created_at":"2024-01-25T14:27:03Z","last_used_at":null,"last_used_from_addr":""},{"id":768620,"name":"neon_client","created_at":"2024-01-23T21:56:07Z","last_used_at":"2024-01-25T14:27:03Z","last_used_from_addr":"204.111.161.156"}]'
headers:
Connection:
- keep-alive
Content-Length:
- '266'
Content-Type:
- application/json
Date:
- Thu, 25 Jan 2024 14:27:03 GMT
Strict-Transport-Security:
- max-age=15724800; includeSubDomains
Vary:
- Origin
X-Neon-Ret-Request-Id:
- 5dbdfe85862caed42a9987300f9f3eeb
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
Content-Type:
- application/json
User-Agent:
- neon-client/python version=(0.1.0)
method: DELETE
uri: https://console.neon.tech/api/v2/api_keys/774518
response:
body:
string: '{"id":774518,"name":"pytest-3250","revoked":true,"last_used_at":null,"last_used_from_addr":""}'
headers:
Connection:
- keep-alive
Content-Length:
- '94'
Content-Type:
- application/json
Date:
- Thu, 25 Jan 2024 14:27:03 GMT
Strict-Transport-Security:
- max-age=15724800; includeSubDomains
Vary:
- Origin
X-Neon-Ret-Request-Id:
- d372a070f6dcf9a61eacb0ae7bc8b302
status:
code: 200
message: OK
version: 1