CDN加速

删除Deployment

更新时间:2020-09-08 11:29:21

适用产品:通用功能

接口描述

错误码

错误代码(code)描述(message)HTTP状态码语义
31442001request format error400请求格式错误
31442002missing argument400缺少必要参数
31442003illegal argument400参数非法
31443100service not found400服务未找到

示例

JSON
示例说明
请求示例
复制
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://open.chinanetcenter.com/ecc/openapi /v1/namespace/test-openapi/workload/deployment/test-opensvc-005" \
-X "DELETE" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json"
返回示例
复制
{
  "code": "0",
  "message": "success",
  "data":null
}