|
1 | 1 | openapi: 3.0.1 |
2 | 2 | info: |
3 | | - version: 4.99.0 |
| 3 | + version: 4.100.1 |
4 | 4 |
|
5 | 5 | title: Linode API |
6 | 6 | description: | |
@@ -154,6 +154,7 @@ info: |
154 | 154 | | STATUS | DESCRIPTION | |
155 | 155 | |---------|-------------| |
156 | 156 | | 200 OK | The request was successful. | |
| 157 | + | 202 Accepted | The request was successful, but processing has not been completed. The response body includes a "warnings" array containing the details of incomplete processes. | |
157 | 158 | | 204 No Content | The server successfully fulfilled the request and there is no additional content to send. | |
158 | 159 | | 400 Bad Request | You submitted an invalid request (missing parameters, etc.). | |
159 | 160 | | 401 Unauthorized | You failed to authenticate for this resource. | |
@@ -534,9 +535,8 @@ paths: |
534 | 535 | source: > |
535 | 536 | curl -H "Content-Type: application/json" \ |
536 | 537 | -H "Authorization: Bearer $TOKEN" \ |
537 | | - -X PUT -d '{ |
538 | | - "comments": "I'm consolidating my accounts." |
539 | | - } |
| 538 | + -X POST -d '{ |
| 539 | + "comments": "I am consolidating my accounts." |
540 | 540 | }' \ |
541 | 541 | https://api.linode.com/v4/account/cancel |
542 | 542 | - lang: CLI |
@@ -1916,6 +1916,8 @@ paths: |
1916 | 1916 | application/json: |
1917 | 1917 | schema: |
1918 | 1918 | $ref: '#/components/schemas/Payment' |
| 1919 | + '202': |
| 1920 | + $ref: '#/components/responses/WarningResponse' |
1919 | 1921 | default: |
1920 | 1922 | $ref: '#/components/responses/ErrorResponse' |
1921 | 1923 | x-code-samples: |
@@ -2070,6 +2072,8 @@ paths: |
2070 | 2072 | application/json: |
2071 | 2073 | schema: |
2072 | 2074 | type: object |
| 2075 | + '202': |
| 2076 | + $ref: '#/components/responses/WarningResponse' |
2073 | 2077 | default: |
2074 | 2078 | $ref: '#/components/responses/ErrorResponse' |
2075 | 2079 | x-code-samples: |
@@ -2940,6 +2944,7 @@ paths: |
2940 | 2944 | "longview_subscription": true, |
2941 | 2945 | "add_images": true, |
2942 | 2946 | "add_volumes": true, |
| 2947 | + "add_firewalls": true, |
2943 | 2948 | "account_access": "read_only", |
2944 | 2949 | "cancel_account": false |
2945 | 2950 | }, |
@@ -10494,8 +10499,8 @@ paths: |
10494 | 10499 | source: > |
10495 | 10500 | linode-cli firewalls create \ |
10496 | 10501 | --label example-firewall \ |
10497 | | - --outbound_policy ACCEPT \ |
10498 | | - --inbound_policy DROP \ |
| 10502 | + --rules.outbound_policy ACCEPT \ |
| 10503 | + --rules.inbound_policy DROP \ |
10499 | 10504 | --rules.inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}, "action": "ACCEPT"}]' \ |
10500 | 10505 | --rules.outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.0/24"],"ipv6": ["2001:DB8::/32"]}, "action": "DROP", "label": "outbound-rule123", "description": "An example outbound rule description."}]' |
10501 | 10506 | /networking/firewalls/{firewallId}: |
@@ -15141,6 +15146,8 @@ paths: |
15141 | 15146 | application/json: |
15142 | 15147 | schema: |
15143 | 15148 | type: object |
| 15149 | + required: |
| 15150 | + - label |
15144 | 15151 | properties: |
15145 | 15152 | region: |
15146 | 15153 | type: string |
@@ -15662,6 +15669,20 @@ components: |
15662 | 15669 | type: array |
15663 | 15670 | items: |
15664 | 15671 | $ref: '#/components/schemas/ErrorObject' |
| 15672 | + WarningResponse: |
| 15673 | + description: | |
| 15674 | + Accepted with warning. |
| 15675 | + |
| 15676 | + A warning object is included with the standard 200 response. |
| 15677 | + content: |
| 15678 | + application/json: |
| 15679 | + schema: |
| 15680 | + type: object |
| 15681 | + properties: |
| 15682 | + warnings: |
| 15683 | + type: array |
| 15684 | + items: |
| 15685 | + $ref: '#/components/schemas/WarningObject' |
15665 | 15686 | parameters: |
15666 | 15687 | pageOffset: |
15667 | 15688 | name: page |
@@ -17426,6 +17447,10 @@ components: |
17426 | 17447 | type: boolean |
17427 | 17448 | description: If true, this User may add Volumes. |
17428 | 17449 | example: true |
| 17450 | + add_firewalls: |
| 17451 | + type: boolean |
| 17452 | + description: If true, this User may add Firewalls. |
| 17453 | + example: true |
17429 | 17454 | linode: |
17430 | 17455 | type: array |
17431 | 17456 | items: |
@@ -20825,6 +20850,7 @@ components: |
20825 | 20850 | type: string |
20826 | 20851 | enum: |
20827 | 20852 | - credit_card |
| 20853 | + - google_pay |
20828 | 20854 | description: The type of Payment Method. |
20829 | 20855 | example: 'credit_card' |
20830 | 20856 | x-linode-cli-display: 2 |
@@ -22230,6 +22256,21 @@ components: |
22230 | 22256 | example: |
22231 | 22257 | - example tag |
22232 | 22258 | - another example |
| 22259 | + WarningObject: |
| 22260 | + type: object |
| 22261 | + description: > |
| 22262 | + An object for describing a single warning for incomplete processing associated with an accepted request. |
| 22263 | + properties: |
| 22264 | + title: |
| 22265 | + type: string |
| 22266 | + description: > |
| 22267 | + The general warning message. |
| 22268 | + example: Unable to reboot Linode. |
| 22269 | + details: |
| 22270 | + type: string |
| 22271 | + description: > |
| 22272 | + Specific information related to the warning. |
| 22273 | + example: Linode 123 could not be rebooted. |
22233 | 22274 | tags: |
22234 | 22275 | - name: Account |
22235 | 22276 | description: Use the Account endpoints to manage user settings, billing, and payments. You can also initiate and maintain OAuth client application authentication, enable the Linode Managed service, and create new users on your account. |
|
0 commit comments