File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -12072,6 +12072,25 @@ paths:
12072
12072
$ref: '#/components/schemas/Tag'
12073
12073
default:
12074
12074
$ref: '#/components/responses/ErrorResponse'
12075
+ x-code-samples:
12076
+ - lang: Shell
12077
+ source: >
12078
+ curl -H "Content-Type: application/json" \
12079
+ -H "Authorization: Bearer $TOKEN" \
12080
+ -X POST -d '{
12081
+ "label": "example tag",
12082
+ "linodes": [123,456],
12083
+ "volumes": [9082,10003]
12084
+ }' \
12085
+ https://api.linode.com/v4/tags
12086
+ - lang: CLI
12087
+ source: >
12088
+ linode-cli tags create \
12089
+ --label 'example tag' \
12090
+ --linodes 123 \
12091
+ --linodes 456 \
12092
+ --volumes 9082 \
12093
+ --volumes 10003
12075
12094
/tags/{label}:
12076
12095
x-linode-cli-command: tags
12077
12096
parameters:
@@ -12134,6 +12153,11 @@ paths:
12134
12153
$ref: '#/components/schemas/PaginationEnvelope/properties/results'
12135
12154
default:
12136
12155
$ref: '#/components/responses/ErrorResponse'
12156
+ x-code-samples:
12157
+ - lang: Shell
12158
+ source: >
12159
+ curl -H "Authorization: Bearer $TOKEN" \
12160
+ "https://api.linode.com/v4/tags/example tag"
12137
12161
delete:
12138
12162
summary: Delete a Tag
12139
12163
description: >
You can’t perform that action at this time.
0 commit comments