tags
PUT
https://hermeticor.com /v1/tags/resources/{resourceType}/{resourceId} Replace the resource tag set
Parameters
resourceTypestringpathrequiredresourceIdstringpathrequiredRequest body
application/json
tagsstring[]required{
"tags": [
"string"
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/tags/resources/{resourceType}/{resourceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"tags": [
"string"
]
}Schema
tagsstring[]required4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/tags/resources/{resourceType}/{resourceId} Add tags to a resource without touching its other tags
Parameters
resourceTypestringpathrequiredresourceIdstringpathrequiredRequest body
application/json
tagsstring[]required{
"tags": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/tags/resources/{resourceType}/{resourceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/tags/by-tag/{resourceType}/{name} Parameters
resourceTypestringpathrequirednamestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/tags/by-tag/{resourceType}/{name}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ids": [
"string"
]
}Schema
idsstring[]requiredDELETE
https://hermeticor.com /v1/tags/resources/{resourceType}/{resourceId}/{name} Remove one tag from a resource
Parameters
resourceTypestringpathrequiredresourceIdstringpathrequirednamestringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/tags/resources/{resourceType}/{resourceId}/{name}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/tags/{name}/relationships/{resourceType} Ids of the resources of one type that carry the tag
Parameters
namestringpathrequiredresourceTypestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/tags/{name}/relationships/{resourceType}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/tags/{name}/relationships/{resourceType} Tag many resources with this tag (profiles use their own tag store)
Parameters
namestringpathrequiredresourceTypestringpathrequiredRequest body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/tags/{name}/relationships/{resourceType}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/tags/{name}/relationships/{resourceType} Remove this tag from many resources
Parameters
namestringpathrequiredresourceTypestringpathrequiredRequest body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X DELETE "https://hermeticor.com/v1/tags/{name}/relationships/{resourceType}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated