Required permission
Account > Tags > General > Create
Request body
- {object}
useSpotNodes
booleanSchedule workloads to spot nodesuseOnDemandNodes
booleanAlso allow workloads to schedule to on demand nodes. Only relevant if you want workloads to schedule across both spot and on demand nodesnodeAffinities
[array]- {object}
preference
booleanweight
numberThe node affinity weight. Required when `preference` is `true`.min1max100matchExpressions
[array] required- {object}
key
string requiredoperator
string requiredone ofIn, NotInvalues
[array] required- string
sandboxing
{object}builds
{object}Build sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for buildsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for buildsone ofnone, gvisor, kata-clh, kata-qemu
services
{object}Service sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for servicesruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for servicesone ofnone, gvisor, kata-clh, kata-qemu
addons
{object}Addon sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for addonsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for addonsone ofnone, gvisor, kata-clh, kata-qemu
jobs
{object}Job secure runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for jobsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for jobsone ofnone, gvisor, kata-clh, kata-qemu
color
stringpattern^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$
Response body
- {object}Response object.
data
{object} requiredResult data.useSpotNodes
booleanSchedule workloads to spot nodesuseOnDemandNodes
booleanAlso allow workloads to schedule to on demand nodes. Only relevant if you want workloads to schedule across both spot and on demand nodesnodeAffinities
[array]- {object}
preference
booleanweight
numberThe node affinity weight. Required when `preference` is `true`.min1max100matchExpressions
[array] required- {object}
key
string requiredoperator
string requiredone ofIn, NotInvalues
[array] required- string
sandboxing
{object}builds
{object}Build sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for buildsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for buildsone ofnone, gvisor, kata-clh, kata-qemu
services
{object}Service sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for servicesruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for servicesone ofnone, gvisor, kata-clh, kata-qemu
addons
{object}Addon sandboxing runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for addonsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for addonsone ofnone, gvisor, kata-clh, kata-qemu
jobs
{object}Job secure runtime configurationsenabled
boolean requiredEnables runtime scheduling constraints for jobsruntimeClass
(multiple options: oneOf)- stringDefines which runtime scheduling constraints apply for jobsone ofnone, gvisor, kata-clh, kata-qemu
color
stringpattern^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$id
string requiredmin length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$createdAt
stringtime of creation
POST /v1/tags
POST /v1/teams/{teamId}/tags
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"useSpotNodes":false,"useOnDemandNodes":false,"sandboxing":{"builds":{"enabled":false,"runtimeClass":"gvisor"},"services":{"enabled":false,"runtimeClass":"gvisor"},"addons":{"enabled":false,"runtimeClass":"gvisor"},"jobs":{"enabled":false,"runtimeClass":"gvisor"}},"color":"#57637A","name":"Example Tag"}' \
https://api.northflank.com/v1/tagsExample response
200 OK
JSON
{
"data": {
"useSpotNodes": false,
"useOnDemandNodes": false,
"sandboxing": {
"builds": {
"enabled": false,
"runtimeClass": "gvisor"
},
"services": {
"enabled": false,
"runtimeClass": "gvisor"
},
"addons": {
"enabled": false,
"runtimeClass": "gvisor"
},
"jobs": {
"enabled": false,
"runtimeClass": "gvisor"
}
},
"color": "#57637A",
"name": "Example Tag",
"id": "example-tag",
"createdAt": "2000-01-01T12:00:00.000Z"
}
}