获取服务详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
pairec:GetService |
*全部资源
|
无 | 无 |
请求语法
GET /api/v1/services/{ServiceId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ServiceId |
string |
否 |
服务 ID。 |
1 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
否 |
实例 ID,可通过接口 ListInstances 获取。 |
pairec-test-xxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
D75C43DC-3D3A-5CC8-9AAC-8C77306C433B |
| Name |
string |
服务名称。 |
test_rec |
| Description |
string |
服务描述。 |
this is a test rec engine |
| Region |
string |
服务部署的 Region。 |
cn-beijing |
| EngineConfigId |
string |
引擎配置 ID。 |
3 |
| CrInstanceId |
string |
cri-xxx |
|
| RepositoryId |
string |
crr-xxx |
|
| ImageName |
string |
镜像名称。 |
registry-vpc.cn-beijing.aliyuncs.com/***/*** |
| ImageAuth |
string |
镜像密钥。 |
******** |
| ServiceResourceUri |
string |
发布服务所使用的资源地址(如 EAS 的资源组名)。 |
eas-resource-xxx |
| ServiceConfig |
string |
发布服务所用的配置(如 EAS 的服务配置)。 |
{"Port":8080} |
| GmtReleasedTime |
string |
最近一次(生产)发布时间。 |
2021-12-15T23:24:33.132+08:00 |
| LatestProdReleaseOrder |
object |
最近一次生产发布记录。 |
|
| ReleaseOrderId |
string |
发布单 ID。 |
3 |
| Topic |
string |
发布标题。 |
update version |
| Content |
string |
发布内容。 |
update golang version to 1.22 |
| ImageVersion |
string |
镜像版本。 |
2.0.0 |
| Releaser |
string |
发布人(包含 RAM 账号的名称、uid)。 |
E-xxx.xxx-@xxx.onaliyun.com |
| ReleaseInfo |
string |
发布信息。 |
{ "Pre": { "Status": "Released", "GmtReleasedTime" : "2021-12-15T23:24:33.132+08:00", }, "Prod": { "Status": "Released", "GmtReleasedTime" : "2021-12-15T23:24:33.132+08:00", } } |
示例
正常返回示例
JSON格式
{
"RequestId": "D75C43DC-3D3A-5CC8-9AAC-8C77306C433B",
"Name": "test_rec",
"Description": "this is a test rec engine",
"Region": "cn-beijing",
"EngineConfigId": "3",
"CrInstanceId": "cri-xxx",
"RepositoryId": "crr-xxx",
"ImageName": "registry-vpc.cn-beijing.aliyuncs.com/***/***",
"ImageAuth": "********",
"ServiceResourceUri": "eas-resource-xxx",
"ServiceConfig": "{\"Port\":8080}",
"GmtReleasedTime": "2021-12-15T23:24:33.132+08:00",
"LatestProdReleaseOrder": {
"ReleaseOrderId": "3",
"Topic": "update version",
"Content": "update golang version to 1.22",
"ImageVersion": "2.0.0",
"Releaser": "E-xxx.xxx-@xxx.onaliyun.com",
"ReleaseInfo": "{\n\t\"Pre\": {\n \"Status\": \"Released\",\n \"GmtReleasedTime\" : \"2021-12-15T23:24:33.132+08:00\",\n },\n \"Prod\": {\n \"Status\": \"Released\",\n \"GmtReleasedTime\" : \"2021-12-15T23:24:33.132+08:00\",\n }\n}"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。