Debian Codegraph @

fastly/fixtures/vcl_snippets/update.yaml

raw symbols SCIP
1 ---
2 version: 1
3 rwmutex: {}
4 interactions:
5 - request:
6 body: Name=testsnip0&Service=7i6HN3TK9wS159v2gPAZ8A&Version=48&content=%0A%09+%23+testing+EdgeACL5+and+EdgeDictionary5%0A%09+declare+local+var.number5+STRING%3B%0A%09+set+var.number5+%3D+table.lookup%28demoDICTtest%2C+client.as.number%29%3B%0A%0A%09+if+%28var.number5+%3D%3D+%22true%22%29+%7B%0A%09+set+req.http.securityruleid+%3D+%22num5-block%22%3B%0A%09+error+403+%22Access+Denied%22%3B%0A%09++%7D%0A++++&dynamic=0&name=newTestSnippetName&priority=50&type=none
7 form:
8 Name:
9 - testsnip0
10 Service:
11 - 7i6HN3TK9wS159v2gPAZ8A
12 Version:
13 - "48"
14 content:
15 - "\n\t # testing EdgeACL5 and EdgeDictionary5\n\t declare local var.number5
16 STRING;\n\t set var.number5 = table.lookup(demoDICTtest, client.as.number);\n\n\t
17 if (var.number5 == \"true\") {\n\t set req.http.securityruleid = \"num5-block\";\n\t
18 error 403 \"Access Denied\";\n\t }\n "
19 dynamic:
20 - "0"
21 name:
22 - newTestSnippetName
23 priority:
24 - "50"
25 type:
26 - none
27 headers:
28 Content-Type:
29 - application/x-www-form-urlencoded
30 Fastly-Key:
31 - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
32 User-Agent:
33 - FastlyGo/0.4.3.dev (+github.com/fastly/go-fastly; go1.12)
34 url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/48/snippet/testsnip0
35 method: PUT
36 response:
37 body: '{"updated_at":"2019-05-10T18:17:55Z","service_id":"7i6HN3TK9wS159v2gPAZ8A","content":"\n\t
38 # testing EdgeACL5 and EdgeDictionary5\n\t declare local var.number5 STRING;\n\t
39 set var.number5 = table.lookup(demoDICTtest, client.as.number);\n\n\t if (var.number5
40 == \"true\") {\n\t set req.http.securityruleid = \"num5-block\";\n\t error 403
41 \"Access Denied\";\n\t }\n ","deleted_at":null,"id":"0PJ48WhuJVqxpqIAldWQ4E","created_at":"2019-05-10T18:17:55Z","dynamic":"0","priority":"50","type":"none","version":"48","name":"newTestSnippetName"}'
42 headers:
43 Accept-Ranges:
44 - bytes
45 Cache-Control:
46 - no-cache
47 Content-Type:
48 - application/json
49 Date:
50 - Fri, 10 May 2019 18:17:58 GMT
51 Fastly-Ratelimit-Remaining:
52 - "994"
53 Fastly-Ratelimit-Reset:
54 - "1557514800"
55 Status:
56 - 200 OK
57 Strict-Transport-Security:
58 - max-age=31536000
59 Vary:
60 - Accept-Encoding
61 Via:
62 - 1.1 varnish
63 - 1.1 varnish
64 X-Cache:
65 - MISS, MISS
66 X-Cache-Hits:
67 - 0, 0
68 X-Served-By:
69 - cache-control-slwdc9037-CONTROL-SLWDC, cache-lax8628-LAX
70 X-Timer:
71 - S1557512278.185299,VS0,VE174
72 status: 200 OK
73 code: 200