You need to enable JavaScript to run this app.
导航
CreateProject - 创建项目
最近更新时间:2023.11.03 11:34:29首次发布时间:2023.08.24 21:41:32

创建项目

请求参数

名称
类型
是否必填
示例值
描述
Action
String

CreateProject

要执行的操作,取值:CreateProject

Version
String

2021-08-01

API的版本,取值:2021-08-01

DisplayName
String

display

项目展示名

ProjectName
String

project

项目名称

Description
String

项目备注信息

项目备注

ParentProjectName
String

parentproject

父级项目

响应数据

名称
类型
示例值
描述
Project
Project2

"AccountID": 2000000000,
"ProjectName": "project",
"ParentProjectName": "parentproject",
"Path": "/project/",
"DisplayName": "display",
"Description": "",
"CreateDate": "00010101T000000Z",
"UpdateDate": "00010101T000000Z",
"Status": "active"

项目信息

示例

请求

http://iam.volcengineapi.com/?Action=CreateProject
&Version=2021-08-01
&ProjectName=project-name
&DisplayName=display-name
&Description=demo
&ParentProjectName=parent

响应

{
    "ResponseMetadata": {
        "RequestId": "20230131175928475B979E47A3C53110AD",
        "Action": "CreateProject",
        "Version": "2021-08-01",
        "Service": "iam",
        "Region": "cn-north-1"
    },
    "Result": {
        "Project": {
            "Id": 252296,
            "CreateDate": "00010101T000000Z",
            "UpdateDate": "00010101T000000Z",
            "Status": "active",
            "ProjectName": "project-name",
            "Description": "demo"
        }
    }
}

错误码

下表提供了该接口业务逻辑相关的错误码。公共错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400
DuplicateEntry
The '%s' of '%v' already exist.

创建失败,已存在同名项目