权限和授权项
如果您需要对您所拥有的IEF进行精细的权限管理,您可以使用统一身份认证服务(Identity and Access Management,简称IAM),如果华为云账号已经能满足您的要求,不需要创建独立的IAM用户,您可以跳过本章节,不影响您使用IEF服务的其它功能。
默认情况下,新建的IAM用户没有任何权限,您需要将其加入用户组,并给用户组授予策略或角色,才能使用户组中的用户获得相应的权限,这一过程称为授权。授权后,用户就可以基于已有权限对云服务进行操作。
权限根据授权的精细程度,分为角色和策略。角色以服务为粒度,是IAM最初提供的一种根据用户的工作职能定义权限的粗粒度授权机制。策略以API接口为粒度进行权限拆分,授权更加精细,可以精确到某个操作、资源和条件,能够满足企业对权限最小化的安全管控要求。
如果您要允许或是禁止某个接口的操作权限,请使用策略。
账号具备所有接口的调用权限,如果使用账号下的IAM用户发起API请求时,该IAM用户必须具备调用该接口所需的权限,否则,API请求将调用失败。每个接口所需要的权限,与各个接口所对应的授权项相对应,只有发起请求的用户被授予授权项所对应的策略,该用户才能成功调用该接口。例如,用户要调用接口来创建IEF实例,那么这个IAM用户被授予的策略中必须包含允许“ief:iefInstance:create”的授权项,该接口才能调用成功。
支持的授权项
策略包含系统策略和自定义策略,如果系统策略不满足授权要求,管理员可以创建自定义策略,并通过给用户组授予自定义策略来进行精细的访问控制。策略支持的操作与API相对应,授权项列表说明如下:
- 权限:允许或拒绝某项操作。
- 对应API接口:自定义策略实际调用的API接口。
- 授权项:自定义策略中支持的Action,在自定义策略中的Action中写入授权项,可以实现授权项对应的权限功能。
- 依赖的授权项:部分Action存在对其他Action的依赖,需要将依赖的Action同时写入授权项,才能实现对应的权限功能。
- IAM项目(Project):自定义策略的授权范围。授权范围仅支持IAM项目,不支持企业项目,表示仅能在IAM中给用户组授权并生效,如果在企业管理中授权,则该自定义策略不生效。
权限 |
对应API接口 |
授权项(Action) |
---|---|---|
创建IEF实例 |
POST /v2/{project_id}/edgemgr/ief_instances |
ief:iefInstance:create |
删除IEF实例 |
DELETE /v2/{project_id}/edgemgr/ief_instances/{ief_instance_id} |
ief:iefInstance:delete |
查询IEF实例信息 |
GET /v2/{project_id}/edgemgr/ief_instances/{ief_instance_id} |
ief:iefInstance:get |
查询IEF实例列表信息 |
GET /v2/{project_id}/edgemgr/ief_instances |
ief:iefInstance:list |
创建边缘节点 |
POST /v2/{project_id}/edgemgr/nodes |
ief:node:create |
创建边缘节点证书 |
POST /v2/{project_id}/edgemgr/nodes/{node_id}/certs |
ief:node:createNodeCert |
删除边缘节点 |
DELETE /v2/{project_id}/edgemgr/nodes/{node_id} |
ief:node:delete |
删除边缘节点证书 |
DELETE /v2/{project_id}/edgemgr/nodes/{node_id}/certs/{cert_id} |
ief:node:deleteNodeCert |
查询边缘节点信息 |
GET /v2/{project_id}/edgemgr/nodes/{node_id} |
ief:node:get |
查询边缘节点列表信息 |
GET /v2/{project_id}/edgemgr/nodes |
ief:node:list |
查询边缘节点证书 |
GET /v2/{project_id}/edgemgr/nodes/{node_id}/certs |
ief:node:listNodeCert |
启动或停用边缘节点 |
POST /v2/{project_id}/edgemgr/nodes/{node_id}/action |
ief:node:action |
维护边缘节点 |
POST /v2/{project_id}/edgemgr/nodes/{node_id}/maintain |
ief:node:maintain |
更新边缘节点 |
PUT /v2/{project_id}/edgemgr/groups/{group_id}/nodes |
ief:node:update |
升级边缘节点 |
POST /v2/{project_id}/edgemgr/nodes/{node_id}/upgrade |
ief:node:upgrade |
创建边缘节点组 |
POST /v2/{project_id}/edgemgr/groups |
ief:group:create |
删除边缘节点组 |
DELETE /v2/{project_id}/edgemgr/groups/{group_id} |
ief:group:delete |
绑定设备到边缘节点组 |
PUT /v2/{project_id}/edgemgr/groups/{group_id}/devices |
ief:group:deviceBinding |
查询边缘节点组信息 |
GET /v2/{project_id}/edgemgr/groups/{group_id} |
ief:group:get |
查询边缘节点组列表信息 |
GET /v2/{project_id}/edgemgr/groups |
ief:group:list |
查询节点组实例状态 |
POST /v2/{project_id}/edgemgr/groups/instancestate |
ief:group:listInstanceState |
绑定边缘节点到边缘节点组 |
PUT /v2/{project_id}/edgemgr/groups/{group_id}/nodes |
ief:group:bindNode |
更新边缘节点组 |
PUT /v2/{project_id}/edgemgr/groups/{group_id} |
ief:group:update |
创建设备 |
POST /v2/{project_id}/edgemgr/devices |
ief:device:create |
删除设备 |
DELETE /v2/{project_id}/edgemgr/devices/{device_id} |
ief:device:delete |
查询设备 |
GET /v2/{project_id}/edgemgr/devices/{device_id} |
ief:device:get |
查询设备列表 |
GET /v2/{project_id}/edgemgr/devices |
ief:device:list |
更新设备 |
PUT /v2/{project_id}/edgemgr/devices/{device_id} |
ief:device:update |
绑定设备 |
PUT /v2/{project_id}/edgemgr/nodes/{node_id}/devices |
ief:node:bindDevices |
创建应用部署 |
POST /v3/{project_id}/edgemgr/deployments |
ief:deployment:create |
删除应用部署 |
DELETE /v3/{project_id}/edgemgr/deployments/{deployment_id} |
ief:deployment:delete |
查询应用部署信息 |
GET /v3/{project_id}/edgemgr/deployments/{deployment_id} |
ief:deployment:get |
查询应用部署列表信息 |
GET /v3/{project_id}/edgemgr/deployments |
ief:deployment:list |
更新应用部署 |
PUT /v3/{project_id}/edgemgr/deployments/{deployment_id} |
ief:deployment:update |
创建应用模板 |
POST /v2/{project_id}/edgemgr/apps |
ief:application:create |
删除应用模板 |
DELETE /v2/{project_id}/edgemgr/apps/{app_id} |
ief:application:delete |
查询应用模板信息 |
GET /v2/{project_id}/edgemgr/apps/{app_id} |
ief:application:get |
查询应用模板列表信息 |
GET /v2/{project_id}/edgemgr/apps |
ief:application:list |
更新应用模板 |
PUT /v2/{project_id}/edgemgr/apps/{app_id} |
ief:application:update |
创建应用模板版本 |
POST /v2/{project_id}/edgemgr/apps/{app_id}/versions |
ief:appVersion:create |
删除应用模板版本 |
DELETE /v2/{project_id}/edgemgr/apps/{app_id}/versions/{version_id} |
ief:appVersion:delete |
查询应用模板版本信息 |
GET /v2/{project_id}/edgemgr/apps/{app_id}/versions/{version_id} |
ief:appVersion:get |
查询应用模板版本列表信息 |
GET /v2/{project_id}/edgemgr/apps/{app_id}/versions |
ief:appVersion:list |
更新应用模板版本 |
PUT /v2/{project_id}/edgemgr/apps/{app_id}/versions/{version_id} |
ief:appVersion:update |
创建消息端点 |
POST /v2/{project_id}/routermgr/endpoints |
ief:endpoint:create |
删除消息端点 |
DELETE /v2/{project_id}/routermgr/endpoints/{endpoint_id} |
ief:endpoint:delete |
查询消息端点 |
GET /v2/{project_id}/routermgr/endpoints/{endpoint_id} |
ief:endpoint:get |
查询消息端点列表 |
GET /v2/{project_id}/routermgr/endpoints |
ief:endpoint:list |
更新消息端点 |
PUT /v2/{project_id}/routermgr/endpoints/{endpoint_id} |
ief:endpoint:update |
创建消息路由 |
POST /v2/{project_id}/routermgr/rules |
ief:rule:create |
删除消息路由 |
DELETE /v2/{project_id}/routermgr/rules/{rule_id} |
ief:rule:delete |
查询消息路由 |
GET /v2/{project_id}/routermgr/rules/{rule_id} |
ief:rule:get |
查询消息路由列表 |
GET /v2/{project_id}/routermgr/rules |
ief:rule:list |
更新消息路由 |
POST /v2/{project_id}/routemgr/rules/{rule_id}/start |
ief:rule:update |
创建批量作业 |
POST /v2/{project_id}/productmgr/jobs |
ief:batchjob:create |
删除批量作业 |
DELETE /v2/{project_id}/productmgr/jobs/{job_id} |
ief:batchjob:delete |
查询批量作业 |
GET /v2/{project_id}/productmgr/jobs/{job_id} |
ief:batchjob:get |
查询批量作业列表信息 |
GET /v2/{project_id}/productmgr/jobs |
ief:batchjob:list |
暂停批量作业 |
POST /v2/{project_id}/productmgr/jobs/{job_id}/pause |
ief:batchjob:pause |
恢复批量作业 |
POST /v2/{project_id}/productmgr/jobs/{job_id}/restore |
ief:batchjob:restore |
重试批量作业 |
POST /v2/{project_id}/productmgr/jobs/{job_id}/retry |
ief:batchjob:retry |
创建配置项 |
POST /v2/{project_id}/edgemgr/configmaps |
ief:configmap:create |
删除配置项 |
DELETE /v2/{project_id}/edgemgr/configmaps/{configmap_id} |
ief:configmap:delete |
查询配置项 |
GET /v2/{project_id}/edgemgr/configmaps/{configmap_id} |
ief:configmap:get |
查询配置项列表 |
GET /v2/{project_id}/edgemgr/configmaps |
ief:configmap:list |
更新配置项 |
PUT /v2/{project_id}/edgemgr/configmaps/{configmap_id} |
ief:configmap:update |
创建密钥 |
POST /v2/{project_id}/edgemgr/secrets |
ief:secret:create |
删除密钥 |
DELETE /v2/{project_id}/edgemgr/secrets/{secret_id} |
ief:secret:delete |
查询密钥 |
GET /v2/{project_id}/edgemgr/secrets/{secret_id} |
ief:secret:get |
查询密钥列表 |
GET /v2/{project_id}/edgemgr/secrets |
ief:secret:list |
更新密钥 |
PUT /v2/{project_id}/edgemgr/secrets/{secret_id} |
ief:secret:update |
创建加密数据 |
POST /v2/{project_id}/edm/encryptdatas/encrypt |
ief:secureSecret:create |
删除加密数据 |
DELETE /v2/{project_id}/edm/encryptdatas/{encryptdata_id} |
ief:secureSecret:delete |
查询加密数据 |
GET /v2/{project_id}/edm/encryptdatas/{encryptdata_id} |
ief:secureSecret:get |
查询加密数据列表 |
GET /v2/{project_id}/edm/encryptdatas |
ief:secureSecret:list |
更新加密数据 |
PUT /v2/{project_id}/edm/encryptdatas/{encryptdata_id} |
ief:secureSecret:update |
创建产品 |
POST /v2/{project_id}/productmgr/products |
ief:product:create |
删除产品 |
DELETE /v2/{project_id}/productmgr/products/{product_id} |
ief:product:delete |
查询产品信息 |
GET /v2/{project_id}/productmgr/products/{product_id} |
ief:product:get |
查询产品列表信息 |
GET /v2{project_id}/productmgr/products |
ief:product:list |
产品注册边缘节点 |
POST /v2/productmgr/nodes/register |
ief:product:nodeRegister |
创建系统订阅 |
POST /v2/{project_id}/routemgr/exchanger/systemevents |
ief:systemEvent:create |
删除系统订阅 |
DELETE /v2/{project_id}/routemgr/exchanger/systemevents/{event-id} |
ief:systemEvent:delete |
查询系统订阅 |
GET /v2/{project_id}/routemgr/exchanger/systemevents/{event-id} |
ief:systemEvent:get |
查询系统订阅列表 |
GET /v2/{project_id}/routemgr/exchanger/systemevents |
ief:systemEvent:list |
更新系统订阅 |
POST /v2/{project_id}/routemgr/exchanger/systemevents/{event-id}/start |
ief:systemEvent:update |
安装插件 |
POST /v3/{project_id}/edgemgr/plugins |
ief:plugin:create |
卸载插件 |
DELETE /v3/{project_id}/edgemgr/plugins/{plugin_instance_name} |
ief:plugin:delete |
查询插件 |
GET /v3/{project_id}/edgemgr/plugins/{plugin_instance_name} |
ief:plugin:get |
查询插件列表 |
GET /v3/{project_id}/edgemgr/plugins |
ief:plugin:list |
升级插件 |
PUT /v3/{project_id}/edgemgr/plugins/{plugin_instance_name} |
ief:plugin:update |
查询配额 |
GET /v2/{project_id}/edgemgr/quotas |
ief:quota:get |