Creating a Technology Stack
Function
This API is used to create a custom technology stack.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
servicestage::createRuntimeStack
write
-
-
servicestage:runtimestack:create
-
URI
POST /v3/{project_id}/cas/runtimestacks
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Tenant's project ID. See Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Definition Message body type (or format). Constraints N/A Range application/json;charset=utf8 Default Value N/A |
| X-Auth-Token | Yes | String | Definition API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Authentication. Constraints N/A Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Definition Technology stack name. Range N/A Default Value N/A |
| deploy_mode | Yes | String | Definition Deployment mode. Range
Default Value N/A |
| type | Yes | String | Definition Technology stack type. Range
Default Value N/A |
| version | Yes | String | Definition Version number. Range N/A Default Value N/A |
| spec | No | Object | Definition Technology stack parameters. See Table 4. |
| description | No | String | Definition Technology stack description. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| sdk | No | String | Definition Tool package of the technology stack. Range N/A Default Value N/A |
| os | No | String | Definition OS of the technology stack. Range N/A Default Value N/A |
| parameters | No | Map<String, String> | Definition Parameters of the image related to the technology stack. Range Key and value description:
Default Value N/A |
Response
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Technology stack ID. Range N/A |
| name | String | Definition Runtime system name. Range N/A |
| project_id | String | Definition Tenant's project ID. Range N/A |
| deploy_mode | String | Definition Deployment mode. Range
|
| version | String | Definition Version number. Range N/A |
| type | String | Definition Technology stack type. Range
|
| version | String | Definition Technology stack version. Range N/A |
| spec | Object | Definition Technology stack parameters. See Table 6. |
| description | String | Definition Technology stack description. Range N/A |
| system | Integer | Definition Whether the stack is a system technology stack. Range
|
| status | String | Definition Technology stack status. Range
|
| creator | String | Definition Creator. Range N/A |
| create_time | Integer | Definition Creation time. Range N/A |
| update_time | Integer | Definition Update time. Range N/A |
| component_count | Integer | Definition Number of components associated with the technology stack. Range N/A |
Example Request
Create a custom Java technology stack version of the VM-based deployment type.
{
"name": "test",
"deploy_mode": "virtualmachine",
"type": "Java",
"version": "1.0.0",
"description": "1234",
"spec": {
"parameters": {
"jdk_url": "obs://example/bisheng-jdk-8u412-linux-aarch64.tar.gz"
}
}
} Example Response
{
"id": "cf4727f0-0d6f-43d5-b1b8-f2c1f09d1611",
"name": "test",
"project_id": "578ac30b81034b89a7255b3af26db9c9",
"deploy_mode": "virtualmachine",
"type": "Java",
"version": "1.0.0",
"description": null,
"spec": {
"os": null,
"sdk": null,
"parameters": {
"jdk_url": "obs://example/bisheng-jdk-8u412-linux-aarch64.tar.gz"
}
},
"system": 0,
"status": "Disable",
"creator": "example",
"create_time": 1722934506431,
"update_time": 1722934506431
} Status Code
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 404 | Not Found |
| 409 | Conflict |
| 500 | Internal Server Error |
Error Code
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot