Documentation
¶
Overview ¶
Package api provides all kinds of oceanstor storages restful urls definition
Package api provides all kinds of oceanstor storages restful urls definition ¶
Package api provides all kinds of oceanstor storages restful urls definition
Index ¶
Constants ¶
View Source
const ( // ManageFileSystemPath is the path for managing filesystem. ManageFileSystemPath = "/filesystem" // ManageDTreePath is the path for creating, querying, and deleting DTree by name. ManageDTreePath = "/QUOTATREE" // GetDTreeByIDPath is the path for getting, modifying, and deleting DTree by ID. GetDTreeByIDPath = "/QUOTATREE/%s" // ManageFileSystemQuotaPath is the path for creating and querying DTree quota (POST/GET /FS_QUOTA). ManageFileSystemQuotaPath = "/FS_QUOTA" // UpdateOrDeleteFileSystemQuotaPath is the path for modifying/deleting DTree quota (PUT/DELETE /FS_QUOTA/{id}). UpdateOrDeleteFileSystemQuotaPath = "/FS_QUOTA/%s" ManageDataTurboShare = "/DATATURBO_SHARE" DeleteDataTurboShare = "/DATATURBO_SHARE/%s" ManageDataTurboShareUser = "/DATATURBO_SHARE_AUTH" RemoveDataTurboShareUser = "/DATATURBO_SHARE_AUTH/%s" // QueryKVCachePath is the path for querying KVCaches. QueryKVCachePath = "/kv_cache_store/batch" // ManageKVCachePath is the path for managing KVCaches. ManageKVCachePath = "/kv_cache_store" )
ASeries storage interface urls
View Source
const ( // GetRoCENVMeInitiatorByID get roce-nvme initiator filter by initiator id GetRoCENVMeInitiatorByID = "/NVMe_over_RoCE_initiator/%s" // GetTcpNVMeInitiatorByID get tcp-nvme initiator filter by initiator id GetTcpNVMeInitiatorByID = "/nvme_over_tcp_initiator/%s" // CreateRoCENVMeInitiator create roce-nvme initiator CreateRoCENVMeInitiator = "/NVMe_over_RoCE_initiator" // CreateTcpNVMeInitiator create tcp-nvme initiator CreateTcpNVMeInitiator = "/nvme_over_tcp_initiator" // AddRoCENVMeInitiatorToHost add roce-nvme initiator to host AddRoCENVMeInitiatorToHost = "/host/create_associate" // AddTcpNVMeInitiatorToHost add tcp-nvme initiator to host AddTcpNVMeInitiatorToHost = "/nvme_over_tcp_initiator/create_associate" // GetIPV4Lif get logical ports of ipv4 GetIPV4Lif = "/lif?filter=IPV4ADDR::%s" // GetIPV6Lif get logical ports of ipv6 GetIPV6Lif = "/lif?filter=IPV6ADDR::%s" )
NVMe interface urls
View Source
const ( // QueryAssociateNamespaceGroup is the query path for associating a namespace group. QueryAssociateNamespaceGroup = "/namespacegroup/associate?ASSOCIATEOBJTYPE=%d&ASSOCIATEOBJID=%s" // GetNamespaceByName is the query path for getting a namespace by its name. GetNamespaceByName = "/namespace?filter=NAME::%s&range=[0-100]" // GetNamespaceByID is the query path for getting a namespace by its ID. GetNamespaceByID = "/namespace/%s" // AddNamespaceToGroup is the path for adding a namespace to a group. AddNamespaceToGroup = "/namespacegroup/associate" // RemoveNamespaceFromGroup is the path for removing a namespace from a group. RemoveNamespaceFromGroup = "/namespacegroup/associate" // GetNamespaceGroupByName is the query path for getting a namespace group by its name. GetNamespaceGroupByName = "/namespacegroup?filter=NAME::%s" // CreateNamespaceGroup is the path for creating a namespace group. CreateNamespaceGroup = "/namespacegroup" // DeleteNamespaceGroup is the path for deleting a namespace group. DeleteNamespaceGroup = "/namespacegroup/%s" // CreateNamespace is the path for creating a namespace. CreateNamespace = "/namespace" // DeleteNamespace is the path for deleting a namespace. DeleteNamespace = "/namespace/%s" // ExtendNamespace is the path for expanding a namespace. ExtendNamespace = "/namespace/expand" // GetNamespaceCountOfMapping is the query path for getting the number of namespaces in a mapping relationship. GetNamespaceCountOfMapping = "/namespace/count?ASSOCIATEOBJTYPE=245&ASSOCIATEOBJID=%s" // GetNamespaceCountOfHost is the query path for getting the number of namespaces on a host. GetNamespaceCountOfHost = "/namespace/count?ASSOCIATEOBJTYPE=21&ASSOCIATEOBJID=%s" // GetHostNamespaceId is the query path for getting the ID of a host namespace. GetHostNamespaceId = "/namespace/associate?TYPE=11&ASSOCIATEOBJTYPE=21&ASSOCIATEOBJID=%s" // UpdateNamespace is the path for updating a namespace. UpdateNamespace = "/namespace/%s" )
Oceandisk storage interface urls
View Source
const (
// GetAllQos is the query path for getting all qos
GetAllQos = "/ioclass"
)
Base interface urls
View Source
const (
// ManageHost manage single host
ManageHost = "/host/%s"
)
host interface urls
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.