Publishes a service.
Operation description
Only approved services can be published.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:LaunchService |
update |
*Service
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ServiceId |
string |
Yes |
The service ID. |
service-0e6fca6a51a544xxxxxx |
| ServiceVersion |
string |
Yes |
The service version. |
1.0 |
| Categories |
array |
No |
The service categories. |
|
|
string |
No |
The name of the service category. |
DevOps |
|
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. Generate a unique value from your client for each request. The ClientToken parameter supports only ASCII characters. |
10CM943JP0EN9D51H |
| Recommend |
boolean |
No |
Specifies whether to recommend the service when publishing it to the Service Catalog. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4DB0F536-B3BE-4F0D-BD29-E83FB56D550C |
| Version |
string |
The service version. |
1.0 |
| ServiceLaunchResultType |
string |
The type of the service publishing action. Valid values:
|
PublishNewVersion |
Examples
Success response
JSON format
{
"RequestId": "4DB0F536-B3BE-4F0D-BD29-E83FB56D550C",
"Version": "1.0",
"ServiceLaunchResultType": "PublishNewVersion"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.