You need to enable JavaScript to run this app.
导航
CreateHealthCheckLogProject
最近更新时间:2024.06.04 19:14:41首次发布时间:2022.07.05 09:47:58

调用CreateHealthCheckLogProject接口,为负载均衡健康检查创建日志项目。

使用说明

日志服务每账号每地域可创建的日志项目数量为20个。

调试

请求参数

名称
类型
是否必选
示例值
描述
ActionStringCreateHealthCheckLogProject要执行的操作,取值为CreateHealthCheckLogProject。
VersionString2020-04-01API版本信息,当前版本为:2020-04-01。

返回参数

名称
类型
示例值
描述
RequestIdString20210811152539010225146063030****请求ID。
LogProjectIdStringfc6953c1-fe50-43aa-9d26-c1e0a207****日志项目ID。

请求示例

GET /?Action=CreateHealthCheckLogProject&Version=2020-04-01 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: clb

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20210811152539010225146063030****",
        "Action": "CreateHealthCheckLogProject",
        "Version": "2020-04-01",
        "Service": "clb",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20210811152539010225146063030****",
        "LogProjectId": "fc6953c1-fe50-43aa-9d26-c1e0a207****"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode
错误码
错误信息
描述

400

MissingParameter

The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.

该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX

说明

其中,XXX表示缺少的参数名称。

400LimitExceeded.ProjectNumberYou've reached the limit on the number of Projects that you can create.已达到可创建的日志项目的数量上限。
400UnSupportedOperation.TlsServiceThe request is denied due to the tls service unavailability.因 tls 服务未开通,该请求被拒绝。
400InvalidTls.UnSupportActionThe specified tls service does not support this action.指定的 tls 服务不支持当前操作。
403ForbiddenYou are not authorized to perform operations on the tls.无权限对指定 tls 进行操作。
409InvalidProject.ConflictThe specified Project already exists.指定的 Project 已存在。