重置密钥
功能介绍
重置指定APP的密钥。
URI
HTTP/HTTPS请求方法以及URI如下表所示。
请求方法 | URI |
|---|---|
PUT | /v1.0/apigw/apps/secret/{id} |
URI中的参数说明如下表所示。
名称 | 是否必选 | 类型 | 说明 |
|---|---|---|---|
id | 是 | String | APP的编号,可通过查询APP列表获取。 |
请求消息
参数 | 是否必选 | 类型 | 说明 |
|---|---|---|---|
app_secret | 否 | String | 密钥 支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”,且只能以英文或数字开头,8 ~ 64个字符。 说明: 只支持部分region自定义密钥值。 |
请求消息样例:
{
"app_secret": "app_secret_sample"
} 响应消息
参数 | 类型 | 说明 |
|---|---|---|
id | String | 编号 |
name | String | 名称 |
status | Integer | 状态 |
app_key | String | APP的key |
app_secret | String | 密钥 |
creator | String | APP的创建者,取值如下:
|
register_time | Timestamp | 创建时间 |
remark | String | 描述 |
update_time | Timestamp | 更新时间 |
响应消息样例:
{
"id": "14b399****537e9",
"name": "app_001",
"status": 1,
"app_key": "d49b1cb****8e376eb",
"app_secret": "******",
"creator": "USER",
"remark": "第一个APP",
"register_time": "2017-12-28T12:26:54Z",
"update_time": "2017-12-28T12:29:35.571Z"
} 状态码
状态码 | 说明 |
|---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Server Internal Error |

