create_assignment
Assign a tag to a specified Contabo resource, such as an instance, image, or object storage bucket, to organize resources or restrict access.
Instructions
Create a new assignment for the tag [POST /v1/tags/{tagId}/assignments/{resourceType}/{resourceId}] Create a new tag assignment. This marks the specified resource with the specified tag for organizing purposes or to restrict access to that resource.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tagId": "<tagId>",
"resourceType": "<resourceType>",
"resourceId": "<resourceId>"
},
"name": "create_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagId | Yes | The identifier of the tag. | |
| resourceId | Yes | The identifier of the resource id | |
| x-trace-id | No | Identifier to trace group of requests. | |
| resourceType | Yes | The identifier of the resource type. Resource type is one of `instance|image|object-storage`. |