区块链服务 BCS-自定义策略授权项

时间:2023-11-01 16:16:44

自定义策略授权项

华为云 区块链 引擎支持自定义策略授权项如下所示

表1 华为云区块链引擎常用操作与系统权限关系

接口

对应的API接口

授权项

依赖授权项

IAM 项目

(Project)

企业项目

(Enterprise Project)

查询服务信息

GET /v2/{project_id}/huaweicloudchain/service-info

bcs:huaweiCloudChainService:getInfo

-

询价

POST /v2/{project_id}/huaweicloudchain/inquiry

bcs:huaweiCloudChainInstance:inquire

-

查询job详情

GET /v2/{project_id}/huaweicloudchain/jobs/{job_id}

bcs:huaweiCloudChainJob:get

-

查询job列表

GET /v2/{project_id}/huaweicloudchain/jobs

bcs:huaweiCloudChainJob:list

-

批量删除job

DELETE /v2/{project_id}/huaweicloudchain/jobs

bcs:huaweiCloudChainJob:delete

-

购买实例

POST /v2/{project_id}/huaweicloudchain/instances

bcs:huaweiCloudChainInstance:create

bss:order:update

查询实例列表

GET /v2/{project_id}/huaweicloudchain/instances

bcs:huaweiCloudChainInstance:list

-

查询实例详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}

bcs:huaweiCloudChainInstance:get

-

购买组织

POST /v2/{project_id}/huaweicloudchain/instances/{instance_id}/organizations

bcs:huaweiCloudChainOrganization:create

bss:order:update

查询组织列表

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/organizations

bcs:huaweiCloudChainOrganization:list

-

查询组织详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/organization

bcs:huaweiCloudChainOrganization:get

-

查询链详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain

bcs:huaweiCloudChainChain:getChain

-

查询区块列表

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/blocks

bcs:huaweiCloudChainChain:listBlocks

-

查询区块详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/blocks/{block_height}

bcs:huaweiCloudChainChain:getBlock

-

查询区块交易列表

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/transactions

bcs:huaweiCloudChainChain:listTransactions

-

查询交易详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/transactions/{transaction_id}

bcs:huaweiCloudChainChain:getTransaction

-

查询区块、

交易统计结果

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/trend

bcs:huaweiCloudChainChain:getTrend

-

下载SDK配置

POST /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/sdk-config

bcs:huaweiCloudChainChain:downloadSdkConfig

高性能通道模式:VPCEP Administrator

安装合约

POST /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/contract

bcs:huaweiCloudChainContract:install

-

查询合约详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/contract

bcs:huaweiCloudChainContract:get

-

查询合约列表

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/contracts

bcs:huaweiCloudChainContract:list

-

获取合约扫描报告

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/chain/contract/report

bcs:huaweiCloudChainContract:downloadReport

-

创建终端节点

POST /v2/{project_id}/huaweicloudchain/instances/{instance_id}/endpoints

bcs:huaweiCloudChainEndpoint:create

VPCEP Administrator、vpc:vpcs:list

vpc:vpcs:get

vpc:subnets:get

查询终端节点列表

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/endpoints

bcs:huaweiCloudChainEndpoint:list

VPCEP Administrator

查询终端节点服务详情

GET /v2/{project_id}/huaweicloudchain/instances/{instance_id}/endpoint-service

bcs:huaweiCloudChainEndpoint:get

VPCEP Administrator

创建资源标签

POST /v2/{project_id}/{resource_type}/{instance_id}/tags/create

bcs:huaweiCloudChainTag:create

-

删除资源标签

DELETE /v2/{project_id}/{resource_type}/{instance_id}/tags/delete

bcs:huaweiCloudChainTag:delete

-

查询资源标签

GET /v2/{project_id}/{resource_type}/{instance_id}/tags

bcs:huaweiCloudChainTag:get

-

support.huaweicloud.com/api01-bcs/hbs_api_0027.html