You need to enable JavaScript to run this app.
导航

CreateHealthCheckLogProject

最近更新时间2024.03.27 10:32:43

首次发布时间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 已存在。