Operations Management/Tenant Management (Plus)/Project Operations
POSTProject OperationsSince 4.4.0SynchronousAuth Required
AddResourceToIAM2Project
AddResourceToIAM2Project
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
projectUuidStringRequiredThe project UUID.
resourceTemplatesListRequiredThe resource template.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/iam2/projects/add/resource/
/zstack/v1/iam2/projects/add/resource/
Request Example
curl -X POST 'http://{host}/zstack/v1/iam2/projects/add/resource/' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"projectUuid":"<projectUuid>","resourceTemplates":["<resourceTemplates>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
