Add a resource to a workspace
Contributors
Suggest changes
POST /tenancy/resource/{resourceIdentifier}/add-to-workspace/{workspacePublicId}
Adds a resource to a specified workspace.
Token usage: BlueXP user token.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
resourceIdentifier |
string |
path |
True |
|
workspacePublicId |
string |
path |
True |
|
authorization |
string |
header |
True |
Authorization JWT access token |
X-User-Token |
string |
header |
False |
User JWT access token |
X-Service-Request-Id |
string |
header |
False |
Request identifier |
Response
Status: 200, Default response
Name | Type | Required | Description |
---|---|---|---|
accountPublicId |
string |
False |
|
resourcePublicId |
string |
False |
|
resourceIdentifier |
string |
False |
|
resourceType |
string |
False |
|
agentId |
string |
False |
|
resourceClass |
string |
False |
|
cloudId |
string |
False |
|
agentIds |
array[string] |
False |
Example response
{
"accountPublicId": "string",
"resourcePublicId": "string",
"resourceIdentifier": "string",
"resourceType": "string",
"agentId": "string",
"resourceClass": "string",
"cloudId": "string",
"agentIds": [
"string"
]
}