You can call the GenerateDefaultServiceTestConfig operation to modify the service test configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:GenerateDefaultServiceTestConfig |
get |
*Service
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceId |
string |
Yes |
The service ID. |
service-41ad58439b4b4bf8ae73 |
| ServiceVersion |
string |
Yes |
The service version. |
draft |
| TemplateName |
string |
No |
The template name. |
test-1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| TestConfig |
string |
The service test config. |
--- parameters: PayType: "PostPaid" EcsInstanceType: "$[iact3-auto]" InstancePassword: "$[iact3-auto]" |
| RequestId |
string |
The request ID. |
51945B04-6AA6-410D-93BA-236E0248B104 |
Examples
Success response
JSON format
{
"TestConfig": "---\nparameters:\n PayType: \"PostPaid\"\n EcsInstanceType: \"$[iact3-auto]\"\n InstancePassword: \"$[iact3-auto]\"",
"RequestId": "51945B04-6AA6-410D-93BA-236E0248B104"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.