OBS Storage Mounting
Function
An OBS parallel file system can be mounted to a specified file directory of a running notebook instance. After the mounting, objects in the OBS parallel file system can be read and written in the container as a file system.
Constraints
None
URI
POST /v1/{project_id}/notebooks/{instance_id}/storage
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        instance_id  | 
      
        Yes  | 
      
        String  | 
      
        Notebook instance ID.  | 
     
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Project ID. For details, see Obtaining a Project ID and Name.  | 
     
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        category  | 
      
        No  | 
      
        String  | 
      
        Storage type The value can be OBS.  | 
     
| 
        mount_path  | 
      
        No  | 
      
        String  | 
      
        Path mounted to the notebook instance. The path must be in the /data/ subdirectory of the notebook instance.  | 
     
| 
        uri  | 
      
        No  | 
      
        String  | 
      
        OBS object path, for example, obs://modelarts/notebook/  | 
     
Response Parameters
Status code: 200
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        category  | 
      
        String  | 
      
        Storage type The value can be OBS.  | 
     
| 
        id  | 
      
        String  | 
      
        ID of the instance with OBS storage mounted.  | 
     
| 
        mount_path  | 
      
        String  | 
      
        Path where OBS storage is mounted to a notebook instance.  | 
     
| 
        status  | 
      
        String  | 
      
        Status of OBS storage to be mounted. Options: 
  | 
     
| 
        uri  | 
      
        String  | 
      
        OBS object path  | 
     
Status code: 201
Created
Example Requests
The following is an example of how to dynamically mount an OBS parallel file system to the /data/wang/ directory in the instance.
{
  "category" : "OBS",
  "mount_path" : "/data/wang/",
  "uri" : "obs://authoring-test/wang/"
}
 Example Responses
Status code: 200
OK
{
  "id" : "91dd2d3f-2d92-475f-a375-04636af26cc9",
  "category" : "OBSFS",
  "mount_path" : "/data/wang/",
  "uri" : "obs://authoring-test/wang/",
  "status" : "MOUNTING"
}
 Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        OK  | 
     
| 
        201  | 
      
        Created  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
| 
        403  | 
      
        Forbidden  | 
     
| 
        404  | 
      
        Not Found  | 
     
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.