akamai_api 0.4.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -6
- data/Gemfile +1 -0
- data/README.md +6 -11
- data/akamai_api.gemspec +1 -0
- data/cassettes/akamai_api_ccu_arl_invalidate/invalid_credentials.yml +32 -21
- data/cassettes/akamai_api_ccu_arl_invalidate/invalid_item.yml +2 -2
- data/cassettes/akamai_api_ccu_arl_invalidate/multiple_items.yml +4 -5
- data/cassettes/akamai_api_ccu_arl_invalidate/single_item.yml +4 -5
- data/cassettes/akamai_api_ccu_arl_remove/invalid_credentials.yml +30 -19
- data/cassettes/akamai_api_ccu_arl_remove/invalid_item.yml +1 -1
- data/cassettes/akamai_api_ccu_arl_remove/multiple_items.yml +1 -1
- data/cassettes/akamai_api_ccu_arl_remove/single_item.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_credentials.yml +31 -20
- data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_item.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_invalidate/multiple_items.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_invalidate/single_item.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_remove/invalid_credentials.yml +31 -20
- data/cassettes/akamai_api_ccu_cpcode_remove/invalid_item.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_remove/multiple_items.yml +1 -1
- data/cassettes/akamai_api_ccu_cpcode_remove/single_item.yml +1 -1
- data/cassettes/akamai_api_ccu_purge_status/completed_request.yml +4 -1
- data/cassettes/akamai_api_ccu_purge_status/enqueued_request.yml +1 -1
- data/cassettes/akamai_api_ccu_purge_status/invalid_credentials.yml +4 -1
- data/cassettes/akamai_api_ccu_purge_status/not_found_request.yml +4 -1
- data/cassettes/akamai_api_ccu_status/invalid_credentials.yml +1 -1
- data/cassettes/akamai_api_ccu_status/valid_credentials.yml +1 -1
- data/cassettes/akamai_api_eccu_all_ids/invalid_credentials.yml +3 -1
- data/cassettes/akamai_api_eccu_all_ids/successful.yml +3 -1
- data/cassettes/akamai_api_eccu_destroy/invalid_credentials.yml +10 -8
- data/cassettes/akamai_api_eccu_destroy/not_found_request.yml +3 -1
- data/cassettes/akamai_api_eccu_destroy/successful.yml +4 -2
- data/cassettes/akamai_api_eccu_find/invalid_credentials.yml +9 -7
- data/cassettes/akamai_api_eccu_find/not_found_request.yml +3 -1
- data/cassettes/akamai_api_eccu_find/successful.yml +4 -2
- data/cassettes/akamai_api_eccu_find/successful_without_content.yml +4 -2
- data/cassettes/akamai_api_eccu_last_request/invalid_credentials.yml +1 -1
- data/cassettes/akamai_api_eccu_last_request/valid_credentials.yml +6 -2
- data/cassettes/akamai_api_eccu_publish/invalid_credentials.yml +12 -10
- data/cassettes/akamai_api_eccu_publish/invalid_domain.yml +4 -2
- data/cassettes/akamai_api_eccu_publish/successful.yml +7 -3
- data/cassettes/akamai_api_eccu_requests/invalid_credentials.yml +3 -1
- data/cassettes/akamai_api_eccu_requests/valid_credentials.yml +15 -5
- data/cassettes/akamai_api_eccu_update_email/invalid_credentials.yml +11 -9
- data/cassettes/akamai_api_eccu_update_email/not_found_request.yml +3 -1
- data/cassettes/akamai_api_eccu_update_email/successful.yml +4 -2
- data/cassettes/akamai_api_eccu_update_notes/invalid_credentials.yml +11 -9
- data/cassettes/akamai_api_eccu_update_notes/not_found_request.yml +3 -1
- data/cassettes/akamai_api_eccu_update_notes/successful.yml +4 -2
- data/features/ccu_arl_invalidate.feature +1 -25
- data/features/support/env.rb +7 -2
- data/lib/akamai_api.rb +8 -2
- data/lib/akamai_api/ccu/purge/request.rb +52 -12
- data/lib/akamai_api/cli/ccu/arl.rb +8 -23
- data/lib/akamai_api/cli/ccu/purge_renderer.rb +5 -8
- data/lib/akamai_api/cli/command.rb +14 -29
- data/lib/akamai_api/version.rb +1 -1
- data/spec/features/ccu/purge_request_spec.rb +5 -2
- data/spec/lib/akamai_api/ccu/purge/request_spec.rb +29 -46
- data/spec/lib/akamai_api/ccu_spec.rb +0 -18
- data/spec/spec_helper.rb +8 -2
- metadata +17 -10
- data/spec/features/ccu/purge_status_request_spec.rb +0 -31
- data/spec/features/ccu/status_request_spec.rb +0 -17
- data/spec/lib/akamai_api/cli/ccu/arl_spec.rb +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75194dd603008485e124ac375a0d0f282682025b
|
4
|
+
data.tar.gz: 7111cb9b184f8c714313b212c99ac969c6add61d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74a18d318badae846ff0b212dd3ce5839d97797bd32805e8fd035fe77470f2d381a835b3937dc88764b656fa2cc65e6a8d5afa88202a392168c46ac9f61d46c5
|
7
|
+
data.tar.gz: b1c4e77d2f00b95c1aa3f5044a508d128184ce35e61c765f9b7c338d24f436393ccb3663021310c34c737d9a088f786a0ac72584011e9c5596475e41908d8396
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,13 +1,9 @@
|
|
1
1
|
bundler_args: --without development
|
2
2
|
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 1.9.3
|
5
|
-
- 2.0.0
|
6
|
-
- 2.1.1
|
7
|
-
- jruby-19mode
|
3
|
+
rvm: 2.2.5
|
8
4
|
matrix:
|
9
5
|
fast_finish: true
|
10
6
|
script:
|
11
7
|
- bundle exec thor spec
|
12
8
|
- bundle exec thor features
|
13
|
-
after_script: bundle exec thor coveralls
|
9
|
+
after_script: bundle exec thor coveralls
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -9,14 +9,18 @@ AkamaiApi is a ruby library and command line utility to interact with Akamai CCU
|
|
9
9
|
|
10
10
|
After gem installation you will have a CLI utility to execute operations on Akamai. Each method requires authentication. You can provide auth info using one of the following methods:
|
11
11
|
|
12
|
-
- Passing --username (-u) and --password (-p) arguments at each invocation
|
13
|
-
- Set ENV variables: `AKAMAI_USERNAME` and `AKAMAI_PASSWORD`
|
12
|
+
- Passing --username (-u) and --password (-p) arguments at each invocation (for ECCU/old CCU Rest Api)
|
14
13
|
- Creating a config file in your HOME directory named `.akamai_api.yml` with the following format:
|
15
14
|
|
16
15
|
```yaml
|
17
16
|
auth:
|
18
17
|
- user
|
19
18
|
- pass
|
19
|
+
openapi: # openapi credentials
|
20
|
+
base_url: https://akab-abcdefghi-jklmnopq.purge.akamaiapis.net
|
21
|
+
client_token: akab-abcdefghijklmnopqrstuv12345
|
22
|
+
client_secret: abcedfhijklmnopqrstuv12345
|
23
|
+
access_token: akab-12345abcedfghijklmnopqrstuv
|
20
24
|
log: true # optional for enabling logging in ECCU requests. false by default
|
21
25
|
```
|
22
26
|
|
@@ -297,13 +301,4 @@ You can specify the following optional arguments in args: file_name, notes, vers
|
|
297
301
|
|
298
302
|
- Clone this repository
|
299
303
|
- Run 'bundle install'
|
300
|
-
- To run the specs, create the file spec/auth.rb with the following content:
|
301
|
-
|
302
|
-
```ruby
|
303
|
-
# Fill the following with your akamai login before running your spec
|
304
|
-
AkamaiApi.config.merge!({
|
305
|
-
:auth => ['user', 'pass']
|
306
|
-
})
|
307
|
-
```
|
308
|
-
|
309
304
|
- Run specs using `guard`. Alternatively you can execute the specs with `thor spec` and cucumber features with `cucumber`
|
data/akamai_api.gemspec
CHANGED
@@ -2,36 +2,47 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v3/invalidate/url/production
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
8
|
+
string: '{"objects":["http://www.foo.bar/t.txt"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
12
18
|
response:
|
13
19
|
status:
|
14
|
-
code:
|
15
|
-
message:
|
20
|
+
code: 400
|
21
|
+
message: Bad Request
|
16
22
|
headers:
|
17
|
-
Date:
|
18
|
-
- Tue, 13 May 2014 14:31:21 GMT
|
19
|
-
Server:
|
20
|
-
- Apache
|
21
23
|
Content-Length:
|
22
|
-
- '
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
Vary:
|
28
|
-
- Authorization
|
24
|
+
- '428'
|
25
|
+
Date:
|
26
|
+
- Thu, 16 Mar 2017 07:11:10 GMT
|
27
|
+
Connection:
|
28
|
+
- close
|
29
29
|
Content-Type:
|
30
|
-
-
|
30
|
+
- application/problem+json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
string: |
|
34
|
+
{
|
35
|
+
"type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
|
36
|
+
"title": "Bad request",
|
37
|
+
"status": 400,
|
38
|
+
"detail": "Invalid client token",
|
39
|
+
"instance": "https://some-subdomain.purge.akamaiapis.net/ccu/v3/invalidate/url/production",
|
40
|
+
"method": "POST",
|
41
|
+
"serverIp": "x.x.x.x",
|
42
|
+
"clientIp": "y.y.y.y",
|
43
|
+
"requestId": "1234567",
|
44
|
+
"requestTime": "2017-03-16T07:11:10Z"
|
45
|
+
}
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 16 Mar 2017 07:11:10 GMT
|
48
|
+
recorded_with: VCR 3.0.3
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v3/invalidate/url/production
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
8
|
+
string: '{"objects":["http://www.foo.bar/t.txt"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v3/invalidate/url/production
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
8
|
+
string: '{"objects":["http://www.foo.bar/t.txt","http://www.foo.com/baz.txt"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -30,9 +30,8 @@ http_interactions:
|
|
30
30
|
- application/json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string: '{"
|
34
|
-
"
|
35
|
-
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
33
|
+
string: '{"purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
34
|
+
"httpStatus": 201, "detail": "Request accepted."}'
|
36
35
|
http_version:
|
37
36
|
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
37
|
recorded_with: VCR 2.9.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v3/invalidate/url/production
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
8
|
+
string: '{"objects":["http://www.foo.bar/t.txt"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -30,9 +30,8 @@ http_interactions:
|
|
30
30
|
- application/json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string: '{"estimatedSeconds":
|
34
|
-
"
|
35
|
-
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
33
|
+
string: '{"estimatedSeconds": 5, "purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
34
|
+
"httpStatus": 201, "detail": "Request accepted."}'
|
36
35
|
http_version:
|
37
36
|
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
37
|
recorded_with: VCR 2.9.0
|
@@ -2,36 +2,47 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"arl","action":"remove","domain":"production","objects":["http://www.foo.bar/t.txt"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
12
18
|
response:
|
13
19
|
status:
|
14
|
-
code:
|
15
|
-
message:
|
20
|
+
code: 400
|
21
|
+
message: Bad Request
|
16
22
|
headers:
|
17
|
-
Date:
|
18
|
-
- Tue, 13 May 2014 14:31:21 GMT
|
19
|
-
Server:
|
20
|
-
- Apache
|
21
23
|
Content-Length:
|
22
|
-
- '
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
Vary:
|
28
|
-
- Authorization
|
24
|
+
- '413'
|
25
|
+
Date:
|
26
|
+
- Tue, 14 Mar 2017 04:47:01 GMT
|
27
|
+
Connection:
|
28
|
+
- close
|
29
29
|
Content-Type:
|
30
|
-
-
|
30
|
+
- application/problem+json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string:
|
34
|
-
|
33
|
+
string: |
|
34
|
+
{
|
35
|
+
"type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
|
36
|
+
"title": "Bad request",
|
37
|
+
"status": 400,
|
38
|
+
"detail": "Invalid client token",
|
39
|
+
"instance": "https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default",
|
40
|
+
"method": "POST",
|
41
|
+
"serverIp": "y.y.y.y",
|
42
|
+
"clientIp": "x.x.x.x",
|
43
|
+
"requestId": "1234567",
|
44
|
+
"requestTime": "2017-03-14T04:47:01Z"
|
45
|
+
}
|
35
46
|
http_version:
|
36
|
-
recorded_at: Tue,
|
37
|
-
recorded_with: VCR
|
47
|
+
recorded_at: Tue, 14 Mar 2017 04:47:00 GMT
|
48
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"arl","action":"remove","domain":"production","objects":["http://www.foo.bar/t.txt"]}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"arl","action":"remove","domain":"production","objects":["http://www.foo.com/bar.txt","http://www.foo.com/baz.txt"]}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"arl","action":"remove","domain":"production","objects":["http://www.foo.bar/t.txt"]}'
|
@@ -2,36 +2,47 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"cpcode","action":"invalidate","domain":"production","objects":["12345"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
12
18
|
response:
|
13
19
|
status:
|
14
|
-
code:
|
15
|
-
message:
|
20
|
+
code: 400
|
21
|
+
message: Bad Request
|
16
22
|
headers:
|
17
|
-
Date:
|
18
|
-
- Tue, 13 May 2014 14:31:21 GMT
|
19
|
-
Server:
|
20
|
-
- Apache
|
21
23
|
Content-Length:
|
22
|
-
- '
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
Vary:
|
28
|
-
- Authorization
|
24
|
+
- '414'
|
25
|
+
Date:
|
26
|
+
- Thu, 16 Mar 2017 22:43:27 GMT
|
27
|
+
Connection:
|
28
|
+
- close
|
29
29
|
Content-Type:
|
30
|
-
-
|
30
|
+
- application/problem+json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
string: |
|
34
|
+
{
|
35
|
+
"type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
|
36
|
+
"title": "Bad request",
|
37
|
+
"status": 400,
|
38
|
+
"detail": "Invalid client token",
|
39
|
+
"instance": "https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default",
|
40
|
+
"method": "POST",
|
41
|
+
"serverIp": "x.x.x.x",
|
42
|
+
"clientIp": "y.y.y.y",
|
43
|
+
"requestId": "1234567",
|
44
|
+
"requestTime": "2017-03-16T22:43:27Z"
|
45
|
+
}
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 16 Mar 2017 22:43:27 GMT
|
48
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"cpcode","action":"invalidate","domain":"production","objects":["12345"]}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"cpcode","action":"invalidate","domain":"production","objects":["12345","12346"]}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"cpcode","action":"invalidate","domain":"production","objects":["12345"]}'
|
@@ -2,36 +2,47 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"cpcode","action":"remove","domain":"production","objects":["12345"]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
12
18
|
response:
|
13
19
|
status:
|
14
|
-
code:
|
15
|
-
message:
|
20
|
+
code: 400
|
21
|
+
message: Bad Request
|
16
22
|
headers:
|
17
|
-
Date:
|
18
|
-
- Tue, 13 May 2014 14:31:21 GMT
|
19
|
-
Server:
|
20
|
-
- Apache
|
21
23
|
Content-Length:
|
22
|
-
- '
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
Vary:
|
28
|
-
- Authorization
|
24
|
+
- '417'
|
25
|
+
Date:
|
26
|
+
- Sat, 11 Mar 2017 10:14:57 GMT
|
27
|
+
Connection:
|
28
|
+
- close
|
29
29
|
Content-Type:
|
30
|
-
-
|
30
|
+
- application/problem+json
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
|
-
string:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
string: |
|
34
|
+
{
|
35
|
+
"type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
|
36
|
+
"title": "Bad request",
|
37
|
+
"status": 400,
|
38
|
+
"detail": "Invalid client token",
|
39
|
+
"instance": "https://some-subdomain.purge.akamaiapis.net/ccu/v2/queues/default",
|
40
|
+
"method": "POST",
|
41
|
+
"serverIp": "x.x.x.x.",
|
42
|
+
"clientIp": "y.y.y.y",
|
43
|
+
"requestId": "1c1d405c",
|
44
|
+
"requestTime": "2017-03-11T10:14:57Z"
|
45
|
+
}
|
46
|
+
http_version:
|
47
|
+
recorded_at: Sat, 11 Mar 2017 10:14:57 GMT
|
48
|
+
recorded_with: VCR 3.0.3
|