Modifying Lane Information Based on the Lane ID
Function
This API is used to modify lane information based on the lane ID.
The Associating a Component Based on the Lane ID operation has not been performed on the lane.
URI
PUT /v3/{project_id}/cas/swimlane-group/{lane_group_id}/swimlane/{lane_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
lane_group_id |
Yes |
String |
Lane group ID. See Obtaining All Lane Groups. |
lane_id |
Yes |
String |
Lane ID. See Obtaining All Lanes in a Lane Group. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Lane name. The value contains 2 to 64 characters consisting of letters, digits, hyphens (-), and underscores (_). It starts with a letter and ends with a letter or digit. |
tag |
Yes |
String |
Lane tag. |
type |
Yes |
String |
Lane type. If there is no lane in a lane group, you must create a baseline lane first. If a baseline lane has been created in a lane group, only dark launch lanes can be created.
|
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
X-Auth-Token |
Yes |
String |
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 a token, see Obtaining a User Token. |
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
Lane ID. |
name |
String |
Lane name. |
swimlane_group_id |
String |
Lane group ID. |
type |
String |
Lane type.
|
tag |
String |
Lane tag, which is used to control traffic routing. |
route_status |
String |
Route status.
|
rule_match_mode |
String |
Mode of matching routing rules. This parameter is valid when gray_release_type is set to CONTENT.
|
rules |
Array of objects |
Routing rules. This parameter is valid when gray_release_type is set to CONTENT. See Table 5. |
weight |
Integer |
Lane traffic weight. Value range: 0–100. This parameter is valid when gray_release_type is set to WEIGHT. |
project_id |
String |
Project ID. |
create_time |
Integer |
Creation time. |
update_time |
Integer |
Update time. |
creator |
String |
Creator. |
Example Request
Change the name of the dark launch lane whose ID is 9974a8b3-cbd7-4084-bac9-194f7d5ba3da to gray.
{ "name": "gray", "type": "GRAY", "tag": "base-lane" }
Example Response
{ "id": "9974a8b3-cbd7-4084-bac9-194f7d5ba3da", "name": "gray", "swimlane_group_id": "b76dad96-66cf-4ae7-aa55-11b6d630e777", "type": "GRAY", "tag": "gray", "weight": 0, "route_status": "DISABLED", "rule_match_mode": null, "project_id": "4008a952b3f44b5a919c9a48d90811f3", "rules": null, "creator": "test_user", "create_time": 1722928561358, "update_time": 1722928561358 }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
404 |
Not Found |
500 |
Internal Server Error |
Error Code
The error code format is SVCSTG.00100.[Error_ID], for example, SVCSTG.00100400. For details, see ServiceStage Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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