跳转到主要内容
资源中心/弹性裸金属管理(Plus)

获取访问路径列表

获取访问路径列表

GET/zstack/v1/block-volumes/access/path/

操作 ID

GetAccessPath

起始版本

4.7.11

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

查询参数

  • systemTags
    List

    系统标签

  • userTags
    List

    用户标签

  • primaryStorageUuid
    String必填

    主存储UUID

响应状态

200 OK
200 OK

该 API 成功时返回以下响应结构。

  • success
    boolean必填

    操作是否成功。

  • inventory
    VolumeInventory必填

    详情参考pathInfos

  • error
    ErrorCode必填

    错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error

    • code
      String必填

      错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001

    • description
      String必填

      错误的概要描述

    • details
      String必填

      错误的详细信息

    • elaboration
      String必填

      保留字段,默认为null

    • opaque
      LinkedHashMap必填

      保留字段,默认为null

    • cause
      ErrorCode必填

      根错误,引发当前错误的源错误,若无原错误,该字段为null

  • name
    String必填

    资源名称

  • accessPathId
    String必填

    访问路径id

  • accessPathIqn
    String必填

    访问路径iqn

  • targetCount
    Integer必填

    关联目标数量

  • gatewayIps
    List必填

    网关ip

  • 变更时间

    新增响应字段 accessPathId, accessPathIqn, gatewayIps...
    查看 API