调用UpdateFolder修改资源夹名称。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用全部资源表示。
 
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
|---|---|---|---|---|
| resourcemanager:UpdateFolder | update | *Folder acs:resourcemanager::{#accountId}:folder/{#ResourceDirectoryPath} | 
 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| FolderId | string | 是 | 资源夹 ID。 | fd-u8B321**** | 
| NewFolderName | string | 是 | 新资源夹名称。 长度为 1~24 个字符或汉字,可包含汉字、英文字母、数字、下划线(_)、点号(.)和短横线(-)。 | rdFolder | 
返回参数
示例
正常返回示例
JSON格式
{
  "RequestId": "C2CBCA30-C8DD-423E-B4AD-4FB694C9180C",
  "Folder": {
    "FolderId": "fd-u8B321****",
    "CreateTime": "2019-02-19T09:34:50.757Z",
    "ParentFolderId": "r-b1****",
    "FolderName": "rdFolder"
  }
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | MissingParameter.Folder.Name | You must specify the resource folder name. | 资源夹名称缺失,请指定资源夹名称。 | 
| 400 | InvalidParameter.Folder.Name | The Name of folder is invalid. | 资源夹名称无效。请输入字符或汉字,可包含英文字母、“_”、“.”、“-”或数字。 | 
| 400 | InvalidParameter.Folder.Name.Length | The Name of folder exceeds the length limit. | 资源夹名称长度超出限制,长度为1~24个字符或汉字。 | 
| 400 | MissingParameter.FolderId | You must specify FolderId. | 资源夹ID缺失,请指定目标ID。 | 
| 400 | InvalidParameter.FolderId | The FolderId is invalid. | 资源夹ID无效,资源夹ID应以“r-”开头+6位数字或英文字母或以“fd-”开头+10位数字或英文字母。 | 
| 400 | InvalidParameter.Folder.Name.AlreadyUsed | The name already exists under the same parent. Please change to another name. | 相同父级下已存在该名称,请更换。 | 
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 | 
| 404 | EntityNotExists.Folder | The resource directory folder does not exist. | 资源夹不存在,请先创建资源夹。 | 
| 409 | LimitExceeded.Folder.Depth | The folder depth exceeds the limit of 5. | 资源夹层级超出限制,除了根资源夹最多只能创建5个层级。 | 
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
