会员接口
我的云服务
查询已开通的云服务实例、获取管理免登地址,以及续费。
获取我的云服务
GET
/_api/member/cloud/services会员接口分页获取当前会员的云服务实例。
Query 参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | integer | 否 | 页码。 |
| pageSize | integer | 否 | 每页条数。 |
响应示例
{
"items": [
{
"id": "e7f8a9b0-c1d2-3e4f-5a6b-7c8d9e0f1a2b",
"orderId": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
"orderNumber": "SO202601050001",
"productId": "3c4d5e6f-7081-92a3-b4c5-d6e7f8091a2b",
"productName": "云·企业官网 标准版",
"memberName": "zhangsan",
"provider": "yunmeng",
"status": "active",
"instanceId": "instance-10023",
"expiresAt": "2027-01-05T00:00:00Z",
"isExpired": false,
"allowRenew": true,
"renewPrice": 1980,
"frontEndUrl": "https://example.com",
"isTest": false,
"errorMessage": null,
"createdAt": "2026-01-05T06:30:00Z"
}
],
"page": 1,
"pageSize": 10,
"total": 1,
"totalPages": 1
}获取云服务详情
GET
/_api/member/cloud/services/{id}会员接口获取实例 IP、账号、到期时间等详情。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | uuid | 是 | 云服务实例 Id。 |
响应示例
{
"id": "e7f8a9b0-c1d2-3e4f-5a6b-7c8d9e0f1a2b",
"orderId": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
"orderNumber": "SO202601050001",
"productName": "云·企业官网 标准版",
"provider": "yunmeng",
"status": "active",
"hostIp": "1.2.3.4",
"hostUsername": "admin",
"hostTempDomain": "example.com",
"ftpUsername": "ftp001",
"adminUrl": "https://example.com/admin",
"expiresAt": "2027-01-05T00:00:00Z",
"allowRenew": true,
"renewPrice": 1980
}获取管理免登地址
GET
/_api/member/cloud/services/{id}/login-url会员接口获取云服务管理后台的一次性免登地址。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | uuid | 是 | 云服务实例 Id。 |
响应示例
{ "url": "https://example.com/admin?sso=xxxxxx" }- 免登地址含临时凭证,请勿公开分享,且通常有时效限制。
余额续费
POST
/_api/member/cloud/services/{id}/renew会员接口按续费价从会员余额扣款续费;余额不足时返回错误。逾期超过 7 天需先确认已联系客服。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | uuid | 是 | 云服务实例 Id。 |
请求体字段
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| quantity | integer | 是 | 续费周期数。 |
| couponCode | string | 否 | 优惠券编码。 |
| confirmed | boolean | 是 | 逾期超 7 天时必须为 true 表示已联系客服确认。 |
请求示例
{ "quantity": 1, "couponCode": null, "confirmed": false }响应示例
{ "id": "e7f8a9b0-c1d2-3e4f-5a6b-7c8d9e0f1a2b", "status": "active", "expiresAt": "2028-01-05T00:00:00Z" }创建续费待支付单
POST
/_api/member/cloud/services/{id}/renew-order会员接口创建续费订单并通过在线支付完成续费;支付成功后自动续期。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | uuid | 是 | 云服务实例 Id。 |
请求体字段
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| quantity | integer | 是 | 续费周期数。 |
| couponCode | string | 否 | 优惠券编码。 |
| confirmed | boolean | 是 | 逾期超 7 天时需为 true。 |
请求示例
{ "quantity": 1, "couponCode": null, "confirmed": false }响应示例
{
"orderId": "f8a9b0c1-d2e3-4f5a-6b7c-8d9e0f1a2b3c",
"orderNumber": "RO202601050001",
"amount": 1980,
"currency": "cny"
}