File: security-group-test.yaml

package info (click to toggle)
golang-github-scaleway-scaleway-sdk-go 1.0.0~beta12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,000 kB
  • sloc: javascript: 160; sh: 70; makefile: 3
file content (151 lines) | stat: -rw-r--r-- 5,890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
version: 1
interactions:
- request:
    body: '{"name":"name","description":"description","project":"951df375-e094-4d26-97c1-ba548eeb9c42","stateful":true,"inbound_default_policy":"accept","outbound_default_policy":"drop"}'
    form: {}
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.8; darwin; amd64)
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/security_groups
    method: POST
  response:
    body: '{"security_group": {"id": "d912ba75-6d04-4b89-96f9-fcee0918d2f3", "creation_date":
      "2022-03-04T12:05:10.228601+00:00", "modification_date": "2022-03-04T12:05:10.228601+00:00",
      "name": "name", "description": "description", "organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
      "project": "951df375-e094-4d26-97c1-ba548eeb9c42", "servers": [], "stateful":
      true, "inbound_default_policy": "accept", "outbound_default_policy": "drop",
      "organization_default": false, "project_default": false, "enable_default_security":
      true, "state": "syncing", "tags": [], "zone": "fr-par-1"}}'
    headers:
      Content-Length:
      - "575"
      Content-Security-Policy:
      - default-src 'none'; frame-ancestors 'none'
      Content-Type:
      - application/json
      Date:
      - Fri, 04 Mar 2022 12:05:10 GMT
      Location:
      - https://api.scaleway.com/instance/v1/zones/fr-par-1/security_groups/d912ba75-6d04-4b89-96f9-fcee0918d2f3
      Server:
      - Scaleway API-Gateway
      Strict-Transport-Security:
      - max-age=63072000
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Request-Id:
      - e86c7d46-fc3e-458c-af3d-71f18f695fa1
    status: 201 Created
    code: 201
    duration: ""
- request:
    body: ""
    form: {}
    headers:
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.8; darwin; amd64)
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/security_groups/d912ba75-6d04-4b89-96f9-fcee0918d2f3
    method: GET
  response:
    body: '{"security_group": {"id": "d912ba75-6d04-4b89-96f9-fcee0918d2f3", "creation_date":
      "2022-03-04T12:05:10.228601+00:00", "modification_date": "2022-03-04T12:05:10.660112+00:00",
      "name": "name", "description": "description", "organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
      "project": "951df375-e094-4d26-97c1-ba548eeb9c42", "servers": [], "stateful":
      true, "inbound_default_policy": "accept", "outbound_default_policy": "drop",
      "organization_default": false, "project_default": false, "enable_default_security":
      true, "state": "available", "tags": [], "zone": "fr-par-1"}}'
    headers:
      Content-Length:
      - "577"
      Content-Security-Policy:
      - default-src 'none'; frame-ancestors 'none'
      Content-Type:
      - application/json
      Date:
      - Fri, 04 Mar 2022 12:05:10 GMT
      Server:
      - Scaleway API-Gateway
      Strict-Transport-Security:
      - max-age=63072000
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Request-Id:
      - c2ffff9a-2b1e-4ae6-a047-a165a4bda5fd
    status: 200 OK
    code: 200
    duration: ""
- request:
    body: '{"name":"new_name","tags":["foo","bar"],"creation_date":"2022-03-04T12:05:10.228601Z","modification_date":"2022-03-04T12:05:10.660112Z","description":"new_description","enable_default_security":true,"inbound_default_policy":"drop","outbound_default_policy":"accept","organization":"951df375-e094-4d26-97c1-ba548eeb9c42","project":"951df375-e094-4d26-97c1-ba548eeb9c42","organization_default":false,"project_default":false,"servers":[],"stateful":false}'
    form: {}
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.8; darwin; amd64)
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/security_groups/d912ba75-6d04-4b89-96f9-fcee0918d2f3
    method: PUT
  response:
    body: '{"security_group": {"id": "d912ba75-6d04-4b89-96f9-fcee0918d2f3", "creation_date":
      "2022-03-04T12:05:10.228601+00:00", "modification_date": "2022-03-04T12:05:10.806733+00:00",
      "name": "new_name", "description": "new_description", "organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
      "project": "951df375-e094-4d26-97c1-ba548eeb9c42", "servers": [], "stateful":
      false, "inbound_default_policy": "drop", "outbound_default_policy": "accept",
      "organization_default": false, "project_default": false, "enable_default_security":
      true, "state": "syncing", "tags": ["foo", "bar"], "zone": "fr-par-1"}}'
    headers:
      Content-Length:
      - "596"
      Content-Security-Policy:
      - default-src 'none'; frame-ancestors 'none'
      Content-Type:
      - application/json
      Date:
      - Fri, 04 Mar 2022 12:05:11 GMT
      Server:
      - Scaleway API-Gateway
      Strict-Transport-Security:
      - max-age=63072000
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Request-Id:
      - 4a2904bd-618e-4040-8172-c264b417b643
    status: 200 OK
    code: 200
    duration: ""
- request:
    body: ""
    form: {}
    headers:
      User-Agent:
      - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.8; darwin; amd64)
    url: https://api.scaleway.com/instance/v1/zones/fr-par-1/security_groups/d912ba75-6d04-4b89-96f9-fcee0918d2f3
    method: DELETE
  response:
    body: ""
    headers:
      Content-Security-Policy:
      - default-src 'none'; frame-ancestors 'none'
      Date:
      - Fri, 04 Mar 2022 12:05:11 GMT
      Server:
      - Scaleway API-Gateway
      Strict-Transport-Security:
      - max-age=63072000
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Request-Id:
      - 4f833689-9c6b-4c64-93df-dd1b8ef8bb50
    status: 204 No Content
    code: 204
    duration: ""