检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
API概览 类型 子类型 说明 Console 实例管理 实例管理接口,包括LakeFormation实例的创建、删除、编辑、查询等接口。 通过这些接口,您可以创建实例、获取已创建实例的信息等。 任务管理 任务管理接口,包括创建任务、列举任务信息等接口。 通过这些可口,您可以创建并管理任务
响应消息头 对应请求消息头,响应同样也有消息头,如“Content-type”。 对于获取用户Token接口,返回如图1所示的消息头,其中“x-subject-token”就是需要获取的用户Token。有了Token之后,您就可以使用Token认证调用其他API。
/v1/{project_id}/instances/{instance_id}/access 响应示例 状态码: 200 OK { "total" : 1, "access_infos" : [ { "vpcep_service_name" : "xxxxxx.apig
如何调用API 构造请求 认证鉴权 返回结果
请求消息体通常以结构化格式发出,与请求消息头中Content-type对应,传递除请求消息头之外的内容。若请求消息体中参数支持中文,则中文字符必须为UTF-8编码。
API Console LakeCat
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed
Token认证就是在调用API的时候将Token加到请求消息头,从而通过身份认证,获得操作API的权限。
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
错误码说明 当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。 关于LakeFormation相关错误码如下。 表1 LakeFormation错误码 状态码 错误码 错误信息 处理措施 500 00000001 服务异常,请稍候。
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
Request { "error_code" : "common.01000001", "error_msg" : "response status exception, code: 404" } 状态码: 401 Unauthorized { "error_code": 'APIG
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed
cause: TypeMismatchException" } 状态码: 401 Unauthorized { "error_code": 'APIG.1002', "error_msg": 'Incorrect token or token resolution failed