最近更新时间:2022-05-26 19:16:09
POST /CreateProject HTTP/1.1
Authorization: <AuthorizationString>
x-klog-api-version: 0.6.0
Host: klog.api.ksyun.com
x-klog-signature-method: hmac-sha1
Date: <GMT Date>
Content-Type: application/json
Content-MD5: <Content-MD5>
Content-Length: <ContentLength>
Connection: Keep-Alive
{
"ProjectName": <ProjectName>,
"Description": <Description>
"Region": <Region>
"IamProjectId": <IamProjectId>
"IamProjectName": <IamProjectName>
}
CreateProject接口无特有请求头。获取更多信息,请参见公共请求头
参数详情具体如下表。
参数名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
ProjectName | String | 是 | 工程名称 |
Description | String | 否 | 工程描述 |
Region | String | 是 | 所属地域 |
IamProjectId | Int | 否 | 项目id,不填则默认为默认项目id |
IamProjectName | String | 否 | 项目名称,不填则为默认项目名称,以IamProjectId为准 |
POST /CreateProject HTTP/1.1
Authorization: KLOG <yourAccessKeyId>:<yourSignature>
x-klog-api-version: 0.1.0
Host: klog.api.ksyun.com
x-klog-signature-method: hmac-sha1
Date: Sun, 27 May 2018 07:43:26 GMT
Content-Type: application/json
Content-MD5: A7967D81EFF5E3CD447FB6D8DF294E20
Content-Length: 80
Connection: Keep-Alive
{
"ProjectName": "my-project-test",
"Description": "Description of my-project-test",
"IamProjectId": 12345,
"IamProjectName": "工程"
}
HTTP/1.1 200
Server: nginx
Content-Length: 0
Connection: close
Access-Control-Allow-Origin: *
Date: Sun, 27 May 2018 07:43:27 GMT
x-klog-requestid: 5B0A619F205DC3F30EDA9322
纯净模式