diff --git a/docs/sfs/api-ref/ALL_META.TXT.json b/docs/sfs/api-ref/ALL_META.TXT.json index 1f04642e..c0ba37f8 100644 --- a/docs/sfs/api-ref/ALL_META.TXT.json +++ b/docs/sfs/api-ref/ALL_META.TXT.json @@ -1,661 +1,1336 @@ [ + { + "dockw":"API Reference" + }, { "uri":"sfs_02_0001.html", + "node_id":"sfs_02_0001.xml", "product_code":"sfs", "code":"1", "des":"Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform ", "doc_type":"api", "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"API Usage Guidelines", "githuburl":"" }, { - "uri":"sfs_02_0016.html", + "uri":"sfs_02_0008.html", + "node_id":"sfs_02_0008.xml", "product_code":"sfs", "code":"2", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", + "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Calling APIs", + "githuburl":"" + }, + { + "uri":"sfs_02_0009.html", + "node_id":"sfs_02_0009.xml", + "product_code":"sfs", + "code":"3", + "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "doc_type":"api", + "kw":"Making an API Request,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Making an API Request", + "githuburl":"" + }, + { + "uri":"sfs_02_0011.html", + "node_id":"sfs_02_0011.xml", + "product_code":"sfs", + "code":"4", + "des":"Requests for calling an API can be authenticated using either of the following methods:AK/SK authentication: Requests are encrypted using AK/SK pairs. AK/SK authenticatio", + "doc_type":"api", + "kw":"Authentication,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Authentication", + "githuburl":"" + }, + { + "uri":"sfs_02_0012.html", + "node_id":"sfs_02_0012.xml", + "product_code":"sfs", + "code":"5", + "des":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "doc_type":"api", + "kw":"Response,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Response", + "githuburl":"" + }, + { + "uri":"sfs_02_0016.html", + "node_id":"sfs_02_0016.xml", + "product_code":"sfs", + "code":"6", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", "kw":"SFS Capacity-Oriented APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Capacity-Oriented APIs", "githuburl":"" }, { "uri":"sfs_02_0017.html", + "node_id":"sfs_02_0017.xml", "product_code":"sfs", - "code":"3", + "code":"7", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"API Version Queries", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"API Version Queries", "githuburl":"" }, { "uri":"sfs_02_0018.html", + "node_id":"sfs_02_0018.xml", "product_code":"sfs", - "code":"4", + "code":"8", "des":"This API is used to query all available versions of APIs provided by SFS.To support function extension, SFS APIs can be distinguished by version. SFS has two types API ve", "doc_type":"api", "kw":"Querying All API Versions,API Version Queries,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying All API Versions", "githuburl":"" }, { "uri":"sfs_02_0019.html", + "node_id":"sfs_02_0019.xml", "product_code":"sfs", - "code":"5", + "code":"9", "des":"This API is used for querying details about an API version.GET /{api_version}/Parameter descriptionParameterMandatoryTypeDescriptionapi_versionYesStringSpecifies the API ", "doc_type":"api", "kw":"Querying Details About an API Version,API Version Queries,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Details About an API Version", "githuburl":"" }, { "uri":"sfs_02_0020.html", + "node_id":"sfs_02_0020.xml", "product_code":"sfs", - "code":"6", + "code":"10", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"File Systems", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"File Systems", "githuburl":"" }, { "uri":"sfs_02_0021.html", + "node_id":"sfs_02_0021.xml", "product_code":"sfs", - "code":"7", + "code":"11", "des":"This API is used to create a shared file system. After the file system is created, you need to mount the file system to ECSs to achieve shared file storage.This API is an", "doc_type":"api", "kw":"Creating a Shared File System,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Creating a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0022.html", + "node_id":"sfs_02_0022.xml", "product_code":"sfs", - "code":"8", + "code":"12", "des":"This API is used to list the basic information of all shared file systems.GET /v2/{project_id}/shares?all_tenants={all_tenants}&status={status}&limit={limit}&offset={offs", "doc_type":"api", "kw":"Querying All Shared File Systems,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying All Shared File Systems", "githuburl":"" }, { "uri":"sfs_02_0023.html", + "node_id":"sfs_02_0023.xml", "product_code":"sfs", - "code":"9", + "code":"13", "des":"This API is used to query the details about all shared file systems.GET /v2/{project_id}/shares/detail?all_tenants={all_tenants}&project_id={project_id}&status={status}&l", "doc_type":"api", "kw":"Querying Details About All Shared File Systems,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Details About All Shared File Systems", "githuburl":"" }, { "uri":"sfs_02_0024.html", + "node_id":"sfs_02_0024.xml", "product_code":"sfs", - "code":"10", + "code":"14", "des":"This API is used to query the details about a shared file system.GET /v2/{project_id}/shares/{share_id}Parameter descriptionParameterMandatoryTypeDescriptionshare_idYesSt", "doc_type":"api", "kw":"Querying Details About a Shared File System,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Details About a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0025.html", + "node_id":"sfs_02_0025.xml", "product_code":"sfs", - "code":"11", + "code":"15", "des":"This API is used to query mount locations of a shared file system.This API exists only when X-Openstack-Manila-Api-Version in the request header is greater than or equal ", "doc_type":"api", "kw":"Querying Mount Locations of a Shared File System,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Mount Locations of a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0026.html", + "node_id":"sfs_02_0026.xml", "product_code":"sfs", - "code":"12", + "code":"16", "des":"This API is used to modify the name and description of a shared file system.PUT /v2/{project_id}/shares/{share_id}Parameter descriptionParameterMandatoryTypeDescriptionsh", "doc_type":"api", "kw":"Modifying a Shared File System,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Modifying a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0027.html", + "node_id":"sfs_02_0027.xml", "product_code":"sfs", - "code":"13", + "code":"17", "des":"This API is used to delete a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully delivered and receive", "doc_type":"api", "kw":"Deleting a Shared File System,File Systems,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Deleting a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0028.html", + "node_id":"sfs_02_0028.xml", "product_code":"sfs", - "code":"14", + "code":"18", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"File System Access Rules", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"File System Access Rules", "githuburl":"" }, { "uri":"sfs_02_0029.html", + "node_id":"sfs_02_0029.xml", "product_code":"sfs", - "code":"15", + "code":"19", "des":"This API is used to add a file system access rule.This API is an asynchronous API. If the returned status code is 200, the API request is successfully delivered and recei", "doc_type":"api", "kw":"Adding a File System Access Rule,File System Access Rules,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Adding a File System Access Rule", "githuburl":"" }, { "uri":"sfs_02_0030.html", + "node_id":"sfs_02_0030.xml", "product_code":"sfs", - "code":"16", + "code":"20", "des":"This API is used to delete a file system access rule.This API is an asynchronous API. If the returned status code is 202, the API request is successfully delivered and re", "doc_type":"api", "kw":"Deleting a File System Access Rule,File System Access Rules,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Deleting a File System Access Rule", "githuburl":"" }, { "uri":"sfs_02_0031.html", + "node_id":"sfs_02_0031.xml", "product_code":"sfs", - "code":"17", + "code":"21", "des":"This API is used to query the access rules of a shared file system.POST /v2/{project_id}/shares/{share_id}/actionParameter descriptionParameterMandatoryTypeDescriptionsha", "doc_type":"api", "kw":"Querying File System Access Rules,File System Access Rules,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying File System Access Rules", "githuburl":"" }, { "uri":"sfs_02_0032.html", + "node_id":"sfs_02_0032.xml", "product_code":"sfs", - "code":"18", + "code":"22", "des":"This API is used to query quota information.GET /v2/{project_id}/os-quota-sets/{project_id}Parameter descriptionParameterMandatoryTypeDescriptionproject_idYesStringSpecif", "doc_type":"api", "kw":"Quota Management,SFS Capacity-Oriented APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Quota Management", "githuburl":"" }, { "uri":"sfs_02_0033.html", + "node_id":"sfs_02_0033.xml", "product_code":"sfs", - "code":"19", + "code":"23", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Expansion and Shrinking", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Expansion and Shrinking", "githuburl":"" }, { "uri":"sfs_02_0034.html", + "node_id":"sfs_02_0034.xml", "product_code":"sfs", - "code":"20", + "code":"24", "des":"This API is used to expand the capacity of a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully deliv", "doc_type":"api", "kw":"Expanding a Shared File System,Expansion and Shrinking,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Expanding a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0035.html", + "node_id":"sfs_02_0035.xml", "product_code":"sfs", - "code":"21", + "code":"25", "des":"This API is used to shrink the capacity of a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully deliv", "doc_type":"api", "kw":"Shrinking a Shared File System,Expansion and Shrinking,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Shrinking a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0036.html", + "node_id":"sfs_02_0036.xml", "product_code":"sfs", - "code":"22", + "code":"26", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Tag Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Tag Management", "githuburl":"" }, { "uri":"sfs_02_0037.html", + "node_id":"sfs_02_0037.xml", "product_code":"sfs", - "code":"23", + "code":"27", "des":"This API is used to add a tag to a specified shared file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system", "doc_type":"api", "kw":"Adding a Tag to a Shared File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Adding a Tag to a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0038.html", + "node_id":"sfs_02_0038.xml", "product_code":"sfs", - "code":"24", + "code":"28", "des":"This API is used to delete a tag from a specified shared file system.If the key to be deleted does not exist in the shared file system, error 404 is returned after API ca", "doc_type":"api", "kw":"Deleting a Tag from a Shared File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Deleting a Tag from a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0039.html", + "node_id":"sfs_02_0039.xml", "product_code":"sfs", - "code":"25", + "code":"29", "des":"This API is used to query all tags of a specified shared file system.GET /v2/{project_id}/sfs/{share_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionproject", "doc_type":"api", "kw":"Querying Tags of a Shared File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Tags of a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0040.html", + "node_id":"sfs_02_0040.xml", "product_code":"sfs", - "code":"26", + "code":"30", "des":"This API is used to query the tags of all file systems of a tenant.GET /v2/{project_id}/sfs/tagsParameter descriptionParameterMandatoryTypeDescriptionproject_idYesStringS", "doc_type":"api", "kw":"Querying Tags of All File Systems of a Tenant,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Tags of All File Systems of a Tenant", "githuburl":"" }, { "uri":"sfs_02_0041.html", + "node_id":"sfs_02_0041.xml", "product_code":"sfs", - "code":"27", + "code":"31", "des":"This API is used to batch add tags to a shared file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system must", "doc_type":"api", "kw":"Batch Adding Tags to a Shared File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Batch Adding Tags to a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0042.html", + "node_id":"sfs_02_0042.xml", "product_code":"sfs", - "code":"28", + "code":"32", "des":"This API is used to batch delete tags from a specified shared file system.This API is idempotent. If the tags to be deleted do not exist on the shared file system, the de", "doc_type":"api", "kw":"Batch Deleting Tags from a Shared File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Batch Deleting Tags from a Shared File System", "githuburl":"" }, { "uri":"sfs_02_0043.html", + "node_id":"sfs_02_0043.xml", "product_code":"sfs", - "code":"29", + "code":"33", "des":"This API is used to query shared file systems by tag.POST /v2/{project_id}/sfs/resource_instances/actionParameter descriptionParameterMandatoryTypeDescriptionproject_idYe", "doc_type":"api", "kw":"Querying Shared File Systems by Tag,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying Shared File Systems by Tag", "githuburl":"" }, { "uri":"sfs_02_0044.html", + "node_id":"sfs_02_0044.xml", "product_code":"sfs", - "code":"30", + "code":"34", "des":"This API is used to query the number of shared file systems by tag.POST /v2/{project_id}/sfs/resource_instances/actionParameter descriptionParameterMandatoryTypeDescripti", "doc_type":"api", "kw":"Querying the Number of Shared File Systems by Tag,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Querying the Number of Shared File Systems by Tag", "githuburl":"" }, { "uri":"sfs_02_0049.html", + "node_id":"sfs_02_0049.xml", "product_code":"sfs", - "code":"31", + "code":"35", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"SFS Turbo APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Turbo APIs", "githuburl":"" }, { - "uri":"sfs_02_0050.html", + "uri":"topic_300000000.html", + "node_id":"topic_300000000.xml", "product_code":"sfs", - "code":"32", + "code":"36", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Lifecycle Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Lifecycle Management", "githuburl":"" }, { - "uri":"sfs_02_0051.html", + "uri":"CreateShare.html", + "node_id":"createshare.xml", "product_code":"sfs", - "code":"33", - "des":"This API is used to create an SFS Turbo file system.URI formatPOST /v1/{project_id}/sfs-turbo/sharesPOST /v1/{project_id}/sfs-turbo/sharesParameter descriptionParameterMa", + "code":"37", + "des":"This API is used to create a file system.POST /v1/{project_id}/sfs-turbo/sharesStatus code: 202Previous-generation SFS Turbo file system: This example creates an SFS Turb", "doc_type":"api", "kw":"Creating a File System,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateShare", + "prodname":"sfs" + } + ], "title":"Creating a File System", "githuburl":"" }, { - "uri":"sfs_02_0052.html", + "uri":"ShowShare.html", + "node_id":"showshare.xml", "product_code":"sfs", - "code":"34", - "des":"This API is used to delete an SFS Turbo file system.URI formatDELETE /v1/{project_id}/sfs-turbo/shares/{share_id}DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}Parame", + "code":"38", + "des":"This API is used to query details about an SFS Turbo file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}Status code: 200Querying the file system whose ID is 77ba", + "doc_type":"api", + "kw":"Querying Details About a File System,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowShare", + "prodname":"sfs" + } + ], + "title":"Querying Details About a File System", + "githuburl":"" + }, + { + "uri":"DeleteShare.html", + "node_id":"deleteshare.xml", + "product_code":"sfs", + "code":"39", + "des":"This API is used to delete a file system.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}NoneDeleting the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4ddeN", "doc_type":"api", "kw":"Deleting a File System,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteShare", + "prodname":"sfs" + } + ], "title":"Deleting a File System", "githuburl":"" }, { - "uri":"sfs_02_0053.html", + "uri":"ListShares.html", + "node_id":"listshares.xml", "product_code":"sfs", - "code":"35", - "des":"This API is used to query details about all SFS Turbo file systems.URI formatGET /v1/{project_id}/sfs-turbo/shares/detail?limit={limit}&offset={offset}GET /v1/{project_id", + "code":"40", + "des":"This API is used to obtain the file system list.GET /v1/{project_id}/sfs-turbo/shares/detailStatus code: 200Querying file systems in the project whose ID e1e45b08f3ea4480", "doc_type":"api", - "kw":"Querying Details About All File Systems,Lifecycle Management,API Reference", - "title":"Querying Details About All File Systems", + "kw":"Obtaining the File System List,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListShares", + "prodname":"sfs" + } + ], + "title":"Obtaining the File System List", "githuburl":"" }, { - "uri":"sfs_02_0054.html", + "uri":"ExpandShare.html", + "node_id":"expandshare.xml", "product_code":"sfs", - "code":"36", - "des":"This API is used to query details about an SFS Turbo file system.URI formatGET /v1/{project_id}/sfs-turbo/shares/{share_id}GET /v1/{project_id}/sfs-turbo/shares/{share_id", + "code":"41", + "des":"This API is used to expand the capacity of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 202Expanding the capacity of a file system t", "doc_type":"api", - "kw":"Querying Details About a Single File System,Lifecycle Management,API Reference", - "title":"Querying Details About a Single File System", - "githuburl":"" - }, - { - "uri":"sfs_02_0055.html", - "product_code":"sfs", - "code":"37", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Storage Capacity Management", - "title":"Storage Capacity Management", - "githuburl":"" - }, - { - "uri":"sfs_02_0056.html", - "product_code":"sfs", - "code":"38", - "des":"This API is used to expand the capacity of an SFS Turbo file system. Capacity expansion is an asynchronous operation. You can check whether the expansion is successful by", - "doc_type":"api", - "kw":"Expanding the Capacity of a File System,Storage Capacity Management,API Reference", + "kw":"Expanding the Capacity of a File System,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ExpandShare", + "prodname":"sfs" + } + ], "title":"Expanding the Capacity of a File System", "githuburl":"" }, { - "uri":"sfs_02_0096.html", + "uri":"topic_300000001.html", + "node_id":"topic_300000001.xml", "product_code":"sfs", - "code":"39", + "code":"42", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Connection Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Connection Management", "githuburl":"" }, { - "uri":"sfs_02_0097.html", + "uri":"ChangeSecurityGroup.html", + "node_id":"changesecuritygroup.xml", "product_code":"sfs", - "code":"40", - "des":"This API is used to change the security group bound to an SFS Turbo file system. Security group change is an asynchronous task. You can determine whether the security gro", + "code":"43", + "des":"This API is used to change the security group associated with an SFS Turbo file system. Security group change is an asynchronous task. You can check whether the security ", "doc_type":"api", - "kw":"Changing a Security Group,Connection Management,API Reference", - "title":"Changing a Security Group", + "kw":"Changing the Security Group Associated with a File System,Connection Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ChangeSecurityGroup", + "prodname":"sfs" + } + ], + "title":"Changing the Security Group Associated with a File System", "githuburl":"" }, { - "uri":"sfs_02_0074.html", + "uri":"topic_300000002.html", + "node_id":"topic_300000002.xml", "product_code":"sfs", - "code":"41", + "code":"44", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Tag Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Tag Management", "githuburl":"" }, { - "uri":"sfs_02_0075.html", + "uri":"CreateSharedTag.html", + "node_id":"createsharedtag.xml", "product_code":"sfs", - "code":"42", - "des":"This API is used to add a tag to an SFS Turbo file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system must ", + "code":"45", + "des":"This API is used to add a tag to a specified file system. A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. This ", "doc_type":"api", - "kw":"Adding a Tag to a File System,Tag Management,API Reference", - "title":"Adding a Tag to a File System", + "kw":"Adding a Tag for a File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateSharedTag", + "prodname":"sfs" + } + ], + "title":"Adding a Tag for a File System", "githuburl":"" }, { - "uri":"sfs_02_0076.html", + "uri":"ShowSharedTags.html", + "node_id":"showsharedtags.xml", "product_code":"sfs", - "code":"43", - "des":"This API is used to delete a tag from an SFS Turbo file system.If the key to be deleted does not exist in the shared file system, error 404 is returned after API calling.", - "doc_type":"api", - "kw":"Deleting a Tag from a File System,Tag Management,API Reference", - "title":"Deleting a Tag from a File System", - "githuburl":"" - }, - { - "uri":"sfs_02_0077.html", - "product_code":"sfs", - "code":"44", - "des":"This API is used to query all tags of an SFS Turbo file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionproject", + "code":"46", + "des":"This API is used to query all tags of a specified file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsStatus code: 200Querying tags of the file system whose ID is 7", "doc_type":"api", "kw":"Querying Tags of a File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowSharedTags", + "prodname":"sfs" + } + ], "title":"Querying Tags of a File System", "githuburl":"" }, { - "uri":"sfs_02_0078.html", + "uri":"DeleteSharedTag.html", + "node_id":"deletesharedtag.xml", "product_code":"sfs", - "code":"45", - "des":"This API is used to batch add tags to an SFS Turbo file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system ", + "code":"47", + "des":"This API is used to delete a tag of a specified file system. If the key to be deleted does not exist, error 404 will be returned.DELETE /v1/{project_id}/sfs-turbo/{share_", + "doc_type":"api", + "kw":"Deleting a Tag of a File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteSharedTag", + "prodname":"sfs" + } + ], + "title":"Deleting a Tag of a File System", + "githuburl":"" + }, + { + "uri":"BatchAddSharedTags.html", + "node_id":"batchaddsharedtags.xml", + "product_code":"sfs", + "code":"48", + "des":"This API is used to batch add tags for a specified file system.A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. ", "doc_type":"api", "kw":"Batch Adding Tags to a File System,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"BatchAddSharedTags", + "prodname":"sfs" + } + ], "title":"Batch Adding Tags to a File System", "githuburl":"" }, { - "uri":"sfs_02_0094.html", + "uri":"ListSharedTags.html", + "node_id":"listsharedtags.xml", "product_code":"sfs", - "code":"46", - "des":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsParameter descriptionParameterMandatoryTypeDescriptionproject_idYesS", + "code":"49", + "des":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsStatus code: 200Query tags of all file systems in the project whose ", "doc_type":"api", "kw":"Querying Tags of All File Systems of a Tenant,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListSharedTags", + "prodname":"sfs" + } + ], "title":"Querying Tags of All File Systems of a Tenant", "githuburl":"" }, { - "uri":"sfs_02_0095.html", - "product_code":"sfs", - "code":"47", - "des":"This API is used to query SFS Turbo file systems by tag.POST /v1/{project_id}/sfs-turbo/resource_instances/actionParameter descriptionParameterMandatoryTypeDescriptionpro", - "doc_type":"api", - "kw":"Querying File Systems by Tag,Tag Management,API Reference", - "title":"Querying File Systems by Tag", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000001537230113.html", - "product_code":"sfs", - "code":"48", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Name Management", - "title":"Name Management", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000001537629949.html", - "product_code":"sfs", - "code":"49", - "des":"This API is used to change the name of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionNoneNone", - "doc_type":"api", - "kw":"Changing the Name of a File System,Name Management,API Reference", - "title":"Changing the Name of a File System", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000001663116961.html", + "uri":"topic_300000003.html", + "node_id":"topic_300000003.xml", "product_code":"sfs", "code":"50", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", + "kw":"Name Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Name Management", + "githuburl":"" + }, + { + "uri":"ChangeShareName.html", + "node_id":"changesharename.xml", + "product_code":"sfs", + "code":"51", + "des":"This API is used to change the name of an SFS Turbo file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionNoneChanging the name of an SFS Turbo file system ", + "doc_type":"api", + "kw":"Changing the Name of a File System,Name Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ChangeShareName", + "prodname":"sfs" + } + ], + "title":"Changing the Name of a File System", + "githuburl":"" + }, + { + "uri":"topic_300000007.html", + "node_id":"topic_300000007.xml", + "product_code":"sfs", + "code":"52", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", "kw":"Permissions Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Permissions Management", "githuburl":"" }, { - "uri":"en-us_topic_0000001663156945.html", + "uri":"CreatePermRule.html", + "node_id":"createpermrule.xml", "product_code":"sfs", - "code":"51", - "des":"This API is used to create a permission rule.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 400Status code: 500Status code: 2", + "code":"53", + "des":"This API is used to create a permission rule.A maximum of 64 permissions rules can be configured for a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/pe", "doc_type":"api", "kw":"Creating a Permission Rule,Permissions Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreatePermRule", + "prodname":"sfs" + } + ], "title":"Creating a Permission Rule", "githuburl":"" }, { - "uri":"en-us_topic_0000001614397248.html", + "uri":"ListPermRules.html", + "node_id":"listpermrules.xml", "product_code":"sfs", - "code":"52", - "des":"This API is used to query the permission rules of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 500NoneStatus c", + "code":"54", + "des":"This API is used to query the permission rules of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 500Querying the", "doc_type":"api", "kw":"Querying Permission Rules of a File System,Permissions Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListPermRules", + "prodname":"sfs" + } + ], "title":"Querying Permission Rules of a File System", "githuburl":"" }, { - "uri":"en-us_topic_0000001662877113.html", + "uri":"ShowPermRule.html", + "node_id":"showpermrule.xml", "product_code":"sfs", - "code":"53", + "code":"55", "des":"This API is used to query a specific permission rule of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code:", "doc_type":"api", "kw":"Querying a Permission Rule by ID,Permissions Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowPermRule", + "prodname":"sfs" + } + ], "title":"Querying a Permission Rule by ID", "githuburl":"" }, { - "uri":"en-us_topic_0000001662997101.html", + "uri":"UpdatePermRule.html", + "node_id":"updatepermrule.xml", "product_code":"sfs", - "code":"54", + "code":"56", "des":"This API is used to modify a permission rule.PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code: 400Status code: 500Statu", "doc_type":"api", "kw":"Modifying a Permission Rule,Permissions Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdatePermRule", + "prodname":"sfs" + } + ], "title":"Modifying a Permission Rule", "githuburl":"" }, { - "uri":"en-us_topic_0000001614557076.html", + "uri":"DeletePermRule.html", + "node_id":"deletepermrule.xml", "product_code":"sfs", - "code":"55", - "des":"This API is used to delete a permission rule.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 400Status code: 500NoneStatus code: 5", + "code":"57", + "des":"This API is used to delete a permission rule.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 400Status code: 500Deleting the permi", "doc_type":"api", "kw":"Deleting a Permissions Rule,Permissions Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeletePermRule", + "prodname":"sfs" + } + ], "title":"Deleting a Permissions Rule", "githuburl":"" }, { - "uri":"sfs_02_0079.html", + "uri":"topic_300000008.html", + "node_id":"topic_300000008.xml", "product_code":"sfs", - "code":"56", + "code":"58", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Task Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Task Management", + "githuburl":"" + }, + { + "uri":"ShowJobDetail.html", + "node_id":"showjobdetail.xml", + "product_code":"sfs", + "code":"59", + "des":"This API is used to query the execution status of an SFS Turbo asynchronous task. For example, you can query the task execution status using the jobId returned after you ", + "doc_type":"api", + "kw":"Querying Details About a Task,Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowJobDetail", + "prodname":"sfs" + } + ], + "title":"Querying Details About a Task", + "githuburl":"" + }, + { + "uri":"sfs_02_0079.html", + "node_id":"sfs_02_0079.xml", + "product_code":"sfs", + "code":"60", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Permissions Policies and Supported Actions", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Permissions Policies and Supported Actions", "githuburl":"" }, { "uri":"sfs_02_0080.html", + "node_id":"sfs_02_0080.xml", "product_code":"sfs", - "code":"57", - "des":"This section describes fine-grained permissions management for your SFS. If your cloud account does not need individual IAM users, then you may skip over this section.By ", + "code":"61", + "des":"This section describes fine-grained permissions management for your SFS resources. If your cloud account does not need individual IAM users, then you may skip over this s", "doc_type":"api", "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Introduction", "githuburl":"" }, { "uri":"sfs_02_0081.html", + "node_id":"sfs_02_0081.xml", "product_code":"sfs", - "code":"58", + "code":"62", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Supported Actions", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Supported Actions", "githuburl":"" }, { "uri":"sfs_02_0083.html", + "node_id":"sfs_02_0083.xml", "product_code":"sfs", - "code":"59", + "code":"63", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"SFS Turbo Actions,Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Turbo Actions", "githuburl":"" }, { "uri":"sfs_02_0084.html", + "node_id":"sfs_02_0084.xml", "product_code":"sfs", - "code":"60", + "code":"64", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Common Parameters", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Common Parameters", "githuburl":"" }, { "uri":"sfs_02_0085.html", + "node_id":"sfs_02_0085.xml", "product_code":"sfs", - "code":"61", + "code":"65", "des":"SFS Turbo file system status elementsReturned ValueDescription100CREATING: The file system is being created.200ACTIVE: The file system is active. An SFS Turbo file system", "doc_type":"api", "kw":"SFS Turbo File System Statuses,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Turbo File System Statuses", "githuburl":"" }, { "uri":"sfs_02_0086.html", + "node_id":"sfs_02_0086.xml", "product_code":"sfs", - "code":"62", + "code":"66", "des":"SFS Turbo file system substatus elementsReturned ValueDescription121Expanding the capacity online.221Online capacity expansion succeeded.321Failed to perform online capac", "doc_type":"api", "kw":"SFS Turbo File System Substatuses,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Turbo File System Substatuses", "githuburl":"" }, { "uri":"sfs_02_0088.html", + "node_id":"sfs_02_0088.xml", "product_code":"sfs", - "code":"63", + "code":"67", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Appendix", "githuburl":"" }, { "uri":"sfs_02_0089.html", + "node_id":"sfs_02_0089.xml", "product_code":"sfs", - "code":"64", + "code":"68", "des":"NormalReturned ValueDescription200 OKSpecifies the normal response for the GET and PUT operations.201 CreatedSpecifies the normal response for the POST operation.202 Acce", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Status Codes", "githuburl":"" }, { "uri":"ErrorCode.html", + "node_id":"errorcode.xml", "product_code":"sfs", - "code":"65", + "code":"69", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"SFS Turbo Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"SFS Turbo Error Codes", "githuburl":"" }, { - "uri":"sfs_02_0092.html", + "uri":"sfs_02_0120.html", + "node_id":"sfs_02_0120.xml", "product_code":"sfs", - "code":"66", + "code":"70", + "des":"When calling an API, you need to use the AK/SK to verify the signature. To obtain the AK/SK, perform the following steps:Keep the AK/SK file properly to prevent informati", + "doc_type":"api", + "kw":"Obtaining Access Keys (AK/SK),Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Obtaining Access Keys (AK/SK)", + "githuburl":"" + }, + { + "uri":"sfs_02_0090.html", + "node_id":"sfs_02_0090.xml", + "product_code":"sfs", + "code":"71", + "des":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Obtain the Project ID by Ca", + "doc_type":"api", + "kw":"Obtaining a Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Obtaining a Project ID", + "githuburl":"" + }, + { + "uri":"sfs_02_0092.html", + "node_id":"sfs_02_0092.xml", + "product_code":"sfs", + "code":"72", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/sfs/api-ref/BatchAddSharedTags.html b/docs/sfs/api-ref/BatchAddSharedTags.html new file mode 100644 index 00000000..5f2ce5bc --- /dev/null +++ b/docs/sfs/api-ref/BatchAddSharedTags.html @@ -0,0 +1,198 @@ + + +

Batch Adding Tags to a File System

+

Function

This API is used to batch add tags for a specified file system.

+

A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. This API is idempotent. If the file system already has the key you want to add, the tag will be updated.

+
+

URI

POST /v1/{project_id}/sfs-turbo/{share_id}/tags/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Operation identifier. The value is create. Use create if you want to batch add tags to a file system.

+

Enumeration values:

+
  • create

    +
+

tags

+

No

+

Array of ResourceTag objects

+

Tag list. This field is mandatory for users. For users with the op_service permission, choose either this field or sys_tags.

+

sys_tags

+

No

+

Array of ResourceTag objects

+

System tag list. This field is available only to users with the op_service permission. Choose either this field or tags. Only one resource_tag structure key, _sys_enterprise_project_id, is used in TMS calls.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 ResourceTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

Yes

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Response Parameters

None

+
+

Example Requests

Batch adding tags for a file system, with tag key of the first tag set to key1, tag value of the first tag value1, tag key of the second tag key2, and tag value of the second tag value1

+
{
+  "action" : "create",
+  "tags" : [ {
+    "key" : "key1",
+    "value" : "value1"
+  }, {
+    "key" : "key2",
+    "value" : "value1"
+  } ]
+}
+
+

Example Responses

None

+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

204

+

File system tags added.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/CLASS.TXT.json b/docs/sfs/api-ref/CLASS.TXT.json index 1a0ce1be..e193029a 100644 --- a/docs/sfs/api-ref/CLASS.TXT.json +++ b/docs/sfs/api-ref/CLASS.TXT.json @@ -8,6 +8,42 @@ "p_code":"", "code":"1" }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"Calling APIs", + "uri":"sfs_02_0008.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "product_code":"sfs", + "title":"Making an API Request", + "uri":"sfs_02_0009.html", + "doc_type":"api", + "p_code":"2", + "code":"3" + }, + { + "desc":"Requests for calling an API can be authenticated using either of the following methods:AK/SK authentication: Requests are encrypted using AK/SK pairs. AK/SK authenticatio", + "product_code":"sfs", + "title":"Authentication", + "uri":"sfs_02_0011.html", + "doc_type":"api", + "p_code":"2", + "code":"4" + }, + { + "desc":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "product_code":"sfs", + "title":"Response", + "uri":"sfs_02_0012.html", + "doc_type":"api", + "p_code":"2", + "code":"5" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", @@ -15,7 +51,7 @@ "uri":"sfs_02_0016.html", "doc_type":"api", "p_code":"", - "code":"2" + "code":"6" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -23,8 +59,8 @@ "title":"API Version Queries", "uri":"sfs_02_0017.html", "doc_type":"api", - "p_code":"2", - "code":"3" + "p_code":"6", + "code":"7" }, { "desc":"This API is used to query all available versions of APIs provided by SFS.To support function extension, SFS APIs can be distinguished by version. SFS has two types API ve", @@ -32,8 +68,8 @@ "title":"Querying All API Versions", "uri":"sfs_02_0018.html", "doc_type":"api", - "p_code":"3", - "code":"4" + "p_code":"7", + "code":"8" }, { "desc":"This API is used for querying details about an API version.GET /{api_version}/Parameter descriptionParameterMandatoryTypeDescriptionapi_versionYesStringSpecifies the API ", @@ -41,8 +77,8 @@ "title":"Querying Details About an API Version", "uri":"sfs_02_0019.html", "doc_type":"api", - "p_code":"3", - "code":"5" + "p_code":"7", + "code":"9" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -50,8 +86,8 @@ "title":"File Systems", "uri":"sfs_02_0020.html", "doc_type":"api", - "p_code":"2", - "code":"6" + "p_code":"6", + "code":"10" }, { "desc":"This API is used to create a shared file system. After the file system is created, you need to mount the file system to ECSs to achieve shared file storage.This API is an", @@ -59,8 +95,8 @@ "title":"Creating a Shared File System", "uri":"sfs_02_0021.html", "doc_type":"api", - "p_code":"6", - "code":"7" + "p_code":"10", + "code":"11" }, { "desc":"This API is used to list the basic information of all shared file systems.GET /v2/{project_id}/shares?all_tenants={all_tenants}&status={status}&limit={limit}&offset={offs", @@ -68,8 +104,8 @@ "title":"Querying All Shared File Systems", "uri":"sfs_02_0022.html", "doc_type":"api", - "p_code":"6", - "code":"8" + "p_code":"10", + "code":"12" }, { "desc":"This API is used to query the details about all shared file systems.GET /v2/{project_id}/shares/detail?all_tenants={all_tenants}&project_id={project_id}&status={status}&l", @@ -77,8 +113,8 @@ "title":"Querying Details About All Shared File Systems", "uri":"sfs_02_0023.html", "doc_type":"api", - "p_code":"6", - "code":"9" + "p_code":"10", + "code":"13" }, { "desc":"This API is used to query the details about a shared file system.GET /v2/{project_id}/shares/{share_id}Parameter descriptionParameterMandatoryTypeDescriptionshare_idYesSt", @@ -86,8 +122,8 @@ "title":"Querying Details About a Shared File System", "uri":"sfs_02_0024.html", "doc_type":"api", - "p_code":"6", - "code":"10" + "p_code":"10", + "code":"14" }, { "desc":"This API is used to query mount locations of a shared file system.This API exists only when X-Openstack-Manila-Api-Version in the request header is greater than or equal ", @@ -95,8 +131,8 @@ "title":"Querying Mount Locations of a Shared File System", "uri":"sfs_02_0025.html", "doc_type":"api", - "p_code":"6", - "code":"11" + "p_code":"10", + "code":"15" }, { "desc":"This API is used to modify the name and description of a shared file system.PUT /v2/{project_id}/shares/{share_id}Parameter descriptionParameterMandatoryTypeDescriptionsh", @@ -104,8 +140,8 @@ "title":"Modifying a Shared File System", "uri":"sfs_02_0026.html", "doc_type":"api", - "p_code":"6", - "code":"12" + "p_code":"10", + "code":"16" }, { "desc":"This API is used to delete a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully delivered and receive", @@ -113,8 +149,8 @@ "title":"Deleting a Shared File System", "uri":"sfs_02_0027.html", "doc_type":"api", - "p_code":"6", - "code":"13" + "p_code":"10", + "code":"17" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -122,8 +158,8 @@ "title":"File System Access Rules", "uri":"sfs_02_0028.html", "doc_type":"api", - "p_code":"2", - "code":"14" + "p_code":"6", + "code":"18" }, { "desc":"This API is used to add a file system access rule.This API is an asynchronous API. If the returned status code is 200, the API request is successfully delivered and recei", @@ -131,8 +167,8 @@ "title":"Adding a File System Access Rule", "uri":"sfs_02_0029.html", "doc_type":"api", - "p_code":"14", - "code":"15" + "p_code":"18", + "code":"19" }, { "desc":"This API is used to delete a file system access rule.This API is an asynchronous API. If the returned status code is 202, the API request is successfully delivered and re", @@ -140,8 +176,8 @@ "title":"Deleting a File System Access Rule", "uri":"sfs_02_0030.html", "doc_type":"api", - "p_code":"14", - "code":"16" + "p_code":"18", + "code":"20" }, { "desc":"This API is used to query the access rules of a shared file system.POST /v2/{project_id}/shares/{share_id}/actionParameter descriptionParameterMandatoryTypeDescriptionsha", @@ -149,8 +185,8 @@ "title":"Querying File System Access Rules", "uri":"sfs_02_0031.html", "doc_type":"api", - "p_code":"14", - "code":"17" + "p_code":"18", + "code":"21" }, { "desc":"This API is used to query quota information.GET /v2/{project_id}/os-quota-sets/{project_id}Parameter descriptionParameterMandatoryTypeDescriptionproject_idYesStringSpecif", @@ -158,8 +194,8 @@ "title":"Quota Management", "uri":"sfs_02_0032.html", "doc_type":"api", - "p_code":"2", - "code":"18" + "p_code":"6", + "code":"22" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -167,8 +203,8 @@ "title":"Expansion and Shrinking", "uri":"sfs_02_0033.html", "doc_type":"api", - "p_code":"2", - "code":"19" + "p_code":"6", + "code":"23" }, { "desc":"This API is used to expand the capacity of a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully deliv", @@ -176,8 +212,8 @@ "title":"Expanding a Shared File System", "uri":"sfs_02_0034.html", "doc_type":"api", - "p_code":"19", - "code":"20" + "p_code":"23", + "code":"24" }, { "desc":"This API is used to shrink the capacity of a shared file system.This API is an asynchronous API. If the returned status code is 202, the API request is successfully deliv", @@ -185,8 +221,8 @@ "title":"Shrinking a Shared File System", "uri":"sfs_02_0035.html", "doc_type":"api", - "p_code":"19", - "code":"21" + "p_code":"23", + "code":"25" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -194,8 +230,8 @@ "title":"Tag Management", "uri":"sfs_02_0036.html", "doc_type":"api", - "p_code":"2", - "code":"22" + "p_code":"6", + "code":"26" }, { "desc":"This API is used to add a tag to a specified shared file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system", @@ -203,8 +239,8 @@ "title":"Adding a Tag to a Shared File System", "uri":"sfs_02_0037.html", "doc_type":"api", - "p_code":"22", - "code":"23" + "p_code":"26", + "code":"27" }, { "desc":"This API is used to delete a tag from a specified shared file system.If the key to be deleted does not exist in the shared file system, error 404 is returned after API ca", @@ -212,8 +248,8 @@ "title":"Deleting a Tag from a Shared File System", "uri":"sfs_02_0038.html", "doc_type":"api", - "p_code":"22", - "code":"24" + "p_code":"26", + "code":"28" }, { "desc":"This API is used to query all tags of a specified shared file system.GET /v2/{project_id}/sfs/{share_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionproject", @@ -221,8 +257,8 @@ "title":"Querying Tags of a Shared File System", "uri":"sfs_02_0039.html", "doc_type":"api", - "p_code":"22", - "code":"25" + "p_code":"26", + "code":"29" }, { "desc":"This API is used to query the tags of all file systems of a tenant.GET /v2/{project_id}/sfs/tagsParameter descriptionParameterMandatoryTypeDescriptionproject_idYesStringS", @@ -230,8 +266,8 @@ "title":"Querying Tags of All File Systems of a Tenant", "uri":"sfs_02_0040.html", "doc_type":"api", - "p_code":"22", - "code":"26" + "p_code":"26", + "code":"30" }, { "desc":"This API is used to batch add tags to a shared file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system must", @@ -239,8 +275,8 @@ "title":"Batch Adding Tags to a Shared File System", "uri":"sfs_02_0041.html", "doc_type":"api", - "p_code":"22", - "code":"27" + "p_code":"26", + "code":"31" }, { "desc":"This API is used to batch delete tags from a specified shared file system.This API is idempotent. If the tags to be deleted do not exist on the shared file system, the de", @@ -248,8 +284,8 @@ "title":"Batch Deleting Tags from a Shared File System", "uri":"sfs_02_0042.html", "doc_type":"api", - "p_code":"22", - "code":"28" + "p_code":"26", + "code":"32" }, { "desc":"This API is used to query shared file systems by tag.POST /v2/{project_id}/sfs/resource_instances/actionParameter descriptionParameterMandatoryTypeDescriptionproject_idYe", @@ -257,8 +293,8 @@ "title":"Querying Shared File Systems by Tag", "uri":"sfs_02_0043.html", "doc_type":"api", - "p_code":"22", - "code":"29" + "p_code":"26", + "code":"33" }, { "desc":"This API is used to query the number of shared file systems by tag.POST /v2/{project_id}/sfs/resource_instances/actionParameter descriptionParameterMandatoryTypeDescripti", @@ -266,8 +302,8 @@ "title":"Querying the Number of Shared File Systems by Tag", "uri":"sfs_02_0044.html", "doc_type":"api", - "p_code":"22", - "code":"30" + "p_code":"26", + "code":"34" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -276,223 +312,223 @@ "uri":"sfs_02_0049.html", "doc_type":"api", "p_code":"", - "code":"31" + "code":"35" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", "title":"Lifecycle Management", - "uri":"sfs_02_0050.html", + "uri":"topic_300000000.html", "doc_type":"api", - "p_code":"31", - "code":"32" - }, - { - "desc":"This API is used to create an SFS Turbo file system.URI formatPOST /v1/{project_id}/sfs-turbo/sharesPOST /v1/{project_id}/sfs-turbo/sharesParameter descriptionParameterMa", - "product_code":"sfs", - "title":"Creating a File System", - "uri":"sfs_02_0051.html", - "doc_type":"api", - "p_code":"32", - "code":"33" - }, - { - "desc":"This API is used to delete an SFS Turbo file system.URI formatDELETE /v1/{project_id}/sfs-turbo/shares/{share_id}DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}Parame", - "product_code":"sfs", - "title":"Deleting a File System", - "uri":"sfs_02_0052.html", - "doc_type":"api", - "p_code":"32", - "code":"34" - }, - { - "desc":"This API is used to query details about all SFS Turbo file systems.URI formatGET /v1/{project_id}/sfs-turbo/shares/detail?limit={limit}&offset={offset}GET /v1/{project_id", - "product_code":"sfs", - "title":"Querying Details About All File Systems", - "uri":"sfs_02_0053.html", - "doc_type":"api", - "p_code":"32", - "code":"35" - }, - { - "desc":"This API is used to query details about an SFS Turbo file system.URI formatGET /v1/{project_id}/sfs-turbo/shares/{share_id}GET /v1/{project_id}/sfs-turbo/shares/{share_id", - "product_code":"sfs", - "title":"Querying Details About a Single File System", - "uri":"sfs_02_0054.html", - "doc_type":"api", - "p_code":"32", + "p_code":"35", "code":"36" }, { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "desc":"This API is used to create a file system.POST /v1/{project_id}/sfs-turbo/sharesStatus code: 202Previous-generation SFS Turbo file system: This example creates an SFS Turb", "product_code":"sfs", - "title":"Storage Capacity Management", - "uri":"sfs_02_0055.html", + "title":"Creating a File System", + "uri":"CreateShare.html", "doc_type":"api", - "p_code":"31", + "p_code":"36", "code":"37" }, { - "desc":"This API is used to expand the capacity of an SFS Turbo file system. Capacity expansion is an asynchronous operation. You can check whether the expansion is successful by", + "desc":"This API is used to query details about an SFS Turbo file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}Status code: 200Querying the file system whose ID is 77ba", + "product_code":"sfs", + "title":"Querying Details About a File System", + "uri":"ShowShare.html", + "doc_type":"api", + "p_code":"36", + "code":"38" + }, + { + "desc":"This API is used to delete a file system.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}NoneDeleting the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4ddeN", + "product_code":"sfs", + "title":"Deleting a File System", + "uri":"DeleteShare.html", + "doc_type":"api", + "p_code":"36", + "code":"39" + }, + { + "desc":"This API is used to obtain the file system list.GET /v1/{project_id}/sfs-turbo/shares/detailStatus code: 200Querying file systems in the project whose ID e1e45b08f3ea4480", + "product_code":"sfs", + "title":"Obtaining the File System List", + "uri":"ListShares.html", + "doc_type":"api", + "p_code":"36", + "code":"40" + }, + { + "desc":"This API is used to expand the capacity of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 202Expanding the capacity of a file system t", "product_code":"sfs", "title":"Expanding the Capacity of a File System", - "uri":"sfs_02_0056.html", + "uri":"ExpandShare.html", "doc_type":"api", - "p_code":"37", - "code":"38" + "p_code":"36", + "code":"41" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", "title":"Connection Management", - "uri":"sfs_02_0096.html", + "uri":"topic_300000001.html", "doc_type":"api", - "p_code":"31", - "code":"39" + "p_code":"35", + "code":"42" }, { - "desc":"This API is used to change the security group bound to an SFS Turbo file system. Security group change is an asynchronous task. You can determine whether the security gro", + "desc":"This API is used to change the security group associated with an SFS Turbo file system. Security group change is an asynchronous task. You can check whether the security ", "product_code":"sfs", - "title":"Changing a Security Group", - "uri":"sfs_02_0097.html", + "title":"Changing the Security Group Associated with a File System", + "uri":"ChangeSecurityGroup.html", "doc_type":"api", - "p_code":"39", - "code":"40" + "p_code":"42", + "code":"43" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", "title":"Tag Management", - "uri":"sfs_02_0074.html", + "uri":"topic_300000002.html", "doc_type":"api", - "p_code":"31", - "code":"41" - }, - { - "desc":"This API is used to add a tag to an SFS Turbo file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system must ", - "product_code":"sfs", - "title":"Adding a Tag to a File System", - "uri":"sfs_02_0075.html", - "doc_type":"api", - "p_code":"41", - "code":"42" - }, - { - "desc":"This API is used to delete a tag from an SFS Turbo file system.If the key to be deleted does not exist in the shared file system, error 404 is returned after API calling.", - "product_code":"sfs", - "title":"Deleting a Tag from a File System", - "uri":"sfs_02_0076.html", - "doc_type":"api", - "p_code":"41", - "code":"43" - }, - { - "desc":"This API is used to query all tags of an SFS Turbo file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionproject", - "product_code":"sfs", - "title":"Querying Tags of a File System", - "uri":"sfs_02_0077.html", - "doc_type":"api", - "p_code":"41", + "p_code":"35", "code":"44" }, { - "desc":"This API is used to batch add tags to an SFS Turbo file system.A shared file system can have a maximum of 20 tags.The keys of multiple tags added to a shared file system ", + "desc":"This API is used to add a tag to a specified file system. A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. This ", "product_code":"sfs", - "title":"Batch Adding Tags to a File System", - "uri":"sfs_02_0078.html", + "title":"Adding a Tag for a File System", + "uri":"CreateSharedTag.html", "doc_type":"api", - "p_code":"41", + "p_code":"44", "code":"45" }, { - "desc":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsParameter descriptionParameterMandatoryTypeDescriptionproject_idYesS", + "desc":"This API is used to query all tags of a specified file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsStatus code: 200Querying tags of the file system whose ID is 7", "product_code":"sfs", - "title":"Querying Tags of All File Systems of a Tenant", - "uri":"sfs_02_0094.html", + "title":"Querying Tags of a File System", + "uri":"ShowSharedTags.html", "doc_type":"api", - "p_code":"41", + "p_code":"44", "code":"46" }, { - "desc":"This API is used to query SFS Turbo file systems by tag.POST /v1/{project_id}/sfs-turbo/resource_instances/actionParameter descriptionParameterMandatoryTypeDescriptionpro", + "desc":"This API is used to delete a tag of a specified file system. If the key to be deleted does not exist, error 404 will be returned.DELETE /v1/{project_id}/sfs-turbo/{share_", "product_code":"sfs", - "title":"Querying File Systems by Tag", - "uri":"sfs_02_0095.html", + "title":"Deleting a Tag of a File System", + "uri":"DeleteSharedTag.html", "doc_type":"api", - "p_code":"41", + "p_code":"44", "code":"47" }, { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "desc":"This API is used to batch add tags for a specified file system.A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. ", "product_code":"sfs", - "title":"Name Management", - "uri":"en-us_topic_0000001537230113.html", + "title":"Batch Adding Tags to a File System", + "uri":"BatchAddSharedTags.html", "doc_type":"api", - "p_code":"31", + "p_code":"44", "code":"48" }, { - "desc":"This API is used to change the name of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionNoneNone", + "desc":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsStatus code: 200Query tags of all file systems in the project whose ", "product_code":"sfs", - "title":"Changing the Name of a File System", - "uri":"en-us_topic_0000001537629949.html", + "title":"Querying Tags of All File Systems of a Tenant", + "uri":"ListSharedTags.html", "doc_type":"api", - "p_code":"48", + "p_code":"44", "code":"49" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", - "title":"Permissions Management", - "uri":"en-us_topic_0000001663116961.html", + "title":"Name Management", + "uri":"topic_300000003.html", "doc_type":"api", - "p_code":"31", + "p_code":"35", "code":"50" }, { - "desc":"This API is used to create a permission rule.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 400Status code: 500Status code: 2", + "desc":"This API is used to change the name of an SFS Turbo file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionNoneChanging the name of an SFS Turbo file system ", "product_code":"sfs", - "title":"Creating a Permission Rule", - "uri":"en-us_topic_0000001663156945.html", + "title":"Changing the Name of a File System", + "uri":"ChangeShareName.html", "doc_type":"api", "p_code":"50", "code":"51" }, { - "desc":"This API is used to query the permission rules of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 500NoneStatus c", + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"Permissions Management", + "uri":"topic_300000007.html", + "doc_type":"api", + "p_code":"35", + "code":"52" + }, + { + "desc":"This API is used to create a permission rule.A maximum of 64 permissions rules can be configured for a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/pe", + "product_code":"sfs", + "title":"Creating a Permission Rule", + "uri":"CreatePermRule.html", + "doc_type":"api", + "p_code":"52", + "code":"53" + }, + { + "desc":"This API is used to query the permission rules of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 500Querying the", "product_code":"sfs", "title":"Querying Permission Rules of a File System", - "uri":"en-us_topic_0000001614397248.html", + "uri":"ListPermRules.html", "doc_type":"api", - "p_code":"50", - "code":"52" + "p_code":"52", + "code":"54" }, { "desc":"This API is used to query a specific permission rule of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code:", "product_code":"sfs", "title":"Querying a Permission Rule by ID", - "uri":"en-us_topic_0000001662877113.html", + "uri":"ShowPermRule.html", "doc_type":"api", - "p_code":"50", - "code":"53" + "p_code":"52", + "code":"55" }, { "desc":"This API is used to modify a permission rule.PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code: 400Status code: 500Statu", "product_code":"sfs", "title":"Modifying a Permission Rule", - "uri":"en-us_topic_0000001662997101.html", + "uri":"UpdatePermRule.html", "doc_type":"api", - "p_code":"50", - "code":"54" + "p_code":"52", + "code":"56" }, { - "desc":"This API is used to delete a permission rule.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 400Status code: 500NoneStatus code: 5", + "desc":"This API is used to delete a permission rule.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 400Status code: 500Deleting the permi", "product_code":"sfs", "title":"Deleting a Permissions Rule", - "uri":"en-us_topic_0000001614557076.html", + "uri":"DeletePermRule.html", "doc_type":"api", - "p_code":"50", - "code":"55" + "p_code":"52", + "code":"57" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"Task Management", + "uri":"topic_300000008.html", + "doc_type":"api", + "p_code":"35", + "code":"58" + }, + { + "desc":"This API is used to query the execution status of an SFS Turbo asynchronous task. For example, you can query the task execution status using the jobId returned after you ", + "product_code":"sfs", + "title":"Querying Details About a Task", + "uri":"ShowJobDetail.html", + "doc_type":"api", + "p_code":"58", + "code":"59" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -501,16 +537,16 @@ "uri":"sfs_02_0079.html", "doc_type":"api", "p_code":"", - "code":"56" + "code":"60" }, { - "desc":"This section describes fine-grained permissions management for your SFS. If your cloud account does not need individual IAM users, then you may skip over this section.By ", + "desc":"This section describes fine-grained permissions management for your SFS resources. If your cloud account does not need individual IAM users, then you may skip over this s", "product_code":"sfs", "title":"Introduction", "uri":"sfs_02_0080.html", "doc_type":"api", - "p_code":"56", - "code":"57" + "p_code":"60", + "code":"61" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -518,8 +554,8 @@ "title":"Supported Actions", "uri":"sfs_02_0081.html", "doc_type":"api", - "p_code":"56", - "code":"58" + "p_code":"60", + "code":"62" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -527,8 +563,8 @@ "title":"SFS Turbo Actions", "uri":"sfs_02_0083.html", "doc_type":"api", - "p_code":"58", - "code":"59" + "p_code":"62", + "code":"63" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -537,7 +573,7 @@ "uri":"sfs_02_0084.html", "doc_type":"api", "p_code":"", - "code":"60" + "code":"64" }, { "desc":"SFS Turbo file system status elementsReturned ValueDescription100CREATING: The file system is being created.200ACTIVE: The file system is active. An SFS Turbo file system", @@ -545,8 +581,8 @@ "title":"SFS Turbo File System Statuses", "uri":"sfs_02_0085.html", "doc_type":"api", - "p_code":"60", - "code":"61" + "p_code":"64", + "code":"65" }, { "desc":"SFS Turbo file system substatus elementsReturned ValueDescription121Expanding the capacity online.221Online capacity expansion succeeded.321Failed to perform online capac", @@ -554,8 +590,8 @@ "title":"SFS Turbo File System Substatuses", "uri":"sfs_02_0086.html", "doc_type":"api", - "p_code":"60", - "code":"62" + "p_code":"64", + "code":"66" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -564,7 +600,7 @@ "uri":"sfs_02_0088.html", "doc_type":"api", "p_code":"", - "code":"63" + "code":"67" }, { "desc":"NormalReturned ValueDescription200 OKSpecifies the normal response for the GET and PUT operations.201 CreatedSpecifies the normal response for the POST operation.202 Acce", @@ -572,8 +608,8 @@ "title":"Status Codes", "uri":"sfs_02_0089.html", "doc_type":"api", - "p_code":"63", - "code":"64" + "p_code":"67", + "code":"68" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -581,8 +617,26 @@ "title":"SFS Turbo Error Codes", "uri":"ErrorCode.html", "doc_type":"api", - "p_code":"63", - "code":"65" + "p_code":"67", + "code":"69" + }, + { + "desc":"When calling an API, you need to use the AK/SK to verify the signature. To obtain the AK/SK, perform the following steps:Keep the AK/SK file properly to prevent informati", + "product_code":"sfs", + "title":"Obtaining Access Keys (AK/SK)", + "uri":"sfs_02_0120.html", + "doc_type":"api", + "p_code":"67", + "code":"70" + }, + { + "desc":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Obtain the Project ID by Ca", + "product_code":"sfs", + "title":"Obtaining a Project ID", + "uri":"sfs_02_0090.html", + "doc_type":"api", + "p_code":"67", + "code":"71" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -591,6 +645,6 @@ "uri":"sfs_02_0092.html", "doc_type":"api", "p_code":"", - "code":"66" + "code":"72" } ] \ No newline at end of file diff --git a/docs/sfs/api-ref/ChangeSecurityGroup.html b/docs/sfs/api-ref/ChangeSecurityGroup.html new file mode 100644 index 00000000..f863d3f9 --- /dev/null +++ b/docs/sfs/api-ref/ChangeSecurityGroup.html @@ -0,0 +1,177 @@ + + +

Changing the Security Group Associated with a File System

+

Function

This API is used to change the security group associated with an SFS Turbo file system. Security group change is an asynchronous task. You can check whether the security group is changed based on the value of sub_status returned after calling the API to query details of a file system. If value 232 is returned, the security group has been changed.

+
+

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

change_security_group

+

Yes

+

ChangeSecurityGroup object

+

Object of change_security_group

+
+
+ +
+ + + + + + + + + + + +
Table 4 ChangeSecurityGroup

Parameter

+

Mandatory

+

Type

+

Description

+

security_group_id

+

Yes

+

String

+

ID of the security group to be changed

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID of the SFS Turbo file system

+
+
+
+

Example Requests

Changing the security group of a file system (target security group ID 26f6b565-240e-43c3-8867-03f0bd975433)

+
{
+  "change_security_group" : {
+    "security_group_id" : "26f6b565-240e-43c3-8867-03f0bd975433"
+  }
+}
+
+

Example Responses

Status code: 202

+

ID of the SFS Turbo file system

+
{
+  "id" : "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

202

+

ID of the SFS Turbo file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ChangeShareName.html b/docs/sfs/api-ref/ChangeShareName.html new file mode 100644 index 00000000..d6a2a2b5 --- /dev/null +++ b/docs/sfs/api-ref/ChangeShareName.html @@ -0,0 +1,169 @@ + + +

Changing the Name of a File System

+

Function

This API is used to change the name of an SFS Turbo file system.

+
+

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

change_name

+

Yes

+

ShareName object

+

SFS Turbo file system to be modified

+
+
+ +
+ + + + + + + + + + + +
Table 4 ShareName

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Name of the SFS Turbo file system to be modified

+
+
+
+

Response Parameters

None

+
+

Example Requests

Changing the name of an SFS Turbo file system to sfs-turbo-test1

+
{
+  "change_name" : {
+    "name" : "sfs-turbo-test1"
+  }
+}
+
+

Example Responses

None

+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

Request successful

+

400

+

Invalid parameter

+

409

+

The file system name already exists.

+

500

+

Internal error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/CreatePermRule.html b/docs/sfs/api-ref/CreatePermRule.html new file mode 100644 index 00000000..8b38f2b8 --- /dev/null +++ b/docs/sfs/api-ref/CreatePermRule.html @@ -0,0 +1,352 @@ + + +

Creating a Permission Rule

+

Function

This API is used to create a permission rule.

+
+

Constraints

A maximum of 64 permissions rules can be configured for a file system.

+
+

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

rules

+

Yes

+

Array of OnePermRuleRequestInfo objects

+

Permission rule details. A maximum of five rules can be created at a time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 OnePermRuleRequestInfo

Parameter

+

Mandatory

+

Type

+

Description

+

ip_cidr

+

No

+

String

+

IP address or IP address range of the object to be authorized. Once configured, this parameter cannot be modified.

+

rw_type

+

No

+

String

+

Read/write permission of the object to be authorized.

+
  • rw: read and write permission, which is the default option

    +
  • ro: read-only permission

    +
  • none: no permission

    +
+

user_type

+

No

+

String

+

File system access permission granted to the user of the object to be authorized. Supported values are:

+
  • no_root_squash: allows any user including the root user on the client to access the file system as who they are, instead of mapping them to another user.

    +
  • root_squash: allows the root user on the client to access the file system as nfsnobody.

    +
  • all_squash: allows any user on the client to access the file system as nfsnobody.

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

rules

+

Array of OnePermRuleResponseInfo objects

+

Permission rule details

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 OnePermRuleResponseInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Permission rule ID

+

ip_cidr

+

String

+

IP address or IP address range of the authorized object

+

rw_type

+

String

+

Read/write permission of the authorized object.

+
  • rw: read and write permission, which is the default option

    +
  • ro: read-only permission

    +
  • none: no permission

    +
+

user_type

+

String

+

File system access permission granted to the user of the authorized object. Supported values are:

+
  • no_root_squash: allows the root user on the client to access the file system as root.

    +
  • root_squash: allows the root user on the client to access the file system as nfsnobody.

    +
  • all_squash: allows any user on the client to access the file system as nfsnobody. It is the default value.

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

{
+  "rules" : [ {
+    "ip_cidr" : "192.168.0.0/16",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  }, {
+    "ip_cidr" : "192.32.0.0/16",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

Successful creation

+
{
+  "rules" : [ {
+    "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
+    "ip_cidr" : "192.32.0.0/16",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  }, {
+    "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
+    "ip_cidr" : "192.32.0.1",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  } ]
+}
+

Status code: 400

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0001",
+  "errMsg" : "Rules not allowed empty"
+}
+

Status code: 500

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Successful creation

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/CreateShare.html b/docs/sfs/api-ref/CreateShare.html new file mode 100644 index 00000000..f9bf607e --- /dev/null +++ b/docs/sfs/api-ref/CreateShare.html @@ -0,0 +1,405 @@ + + +

Creating a File System

+

Function

This API is used to create a file system.

+
+

URI

POST /v1/{project_id}/sfs-turbo/shares

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

share

+

Yes

+

Share object

+

Request body for creating a file system

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Share

Parameter

+

Mandatory

+

Type

+

Description

+

availability_zone

+

Yes

+

String

+

Code of the AZ where the file system is located. For details about the code, see section "Regions and Endpoints."

+

description

+

No

+

String

+

Description of the file system, which can contain 0 to 255 characters. This parameter is not supported by the current version.

+

Minimum: 0

+

Maximum: 255

+

metadata

+

No

+

Metadata object

+

Metadata of the file system. The value consists of key and value pairs as a directory of strings.

+

name

+

Yes

+

String

+

Name of the SFS Turbo file system. The name contains 4 to 64 characters and must start with a letter. It can contain letters (case insensitive), digits, hyphens (-), and underscores (_), and cannot contain other special characters.

+

Minimum: 4

+

Maximum: 64

+

security_group_id

+

Yes

+

String

+

Security group ID of a tenant in a region. You can obtain the security group ID from the console or by following the instructions provided in section "Querying Security Groups" in Virtual Private Cloud API Reference.

+

share_proto

+

Yes

+

String

+

File sharing protocol. The valid value is NFS. Network File System (NFS) is a distributed file system protocol that allows different computers and operating systems to share data over a network.

+

share_type

+

Yes

+

String

+

File system type. Valid values are STANDARD and PERFORMANCE. This field is not returned when the file system is being created.

+
  • For a previous-generation SFS Turbo file system, specify STANDARD for a Standard or Standard - Enhanced file system, and PERFORMANCE for a Performance or Performance - Enhanced file system.
  • For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, this field is not verified. Specify either STANDARD or PERFORMANCE.
+

+

size

+

Yes

+

Integer

+
  • For a previous-generation SFS Turbo file system, the capacity ranges from 500 to 32768, in GiB.
  • For a previous-generation SFS Turbo file system with expand_type="bandwidth" configured under metadata, the capacity ranges from 10240 to 3276800, in GiB.
  • For a 20 MB/s/TiB file system with expand_type="hpc" and hpc_bw="20M" configured under metadata, the capacity ranges from 3686 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for a 8.4 TiB file system.
  • For a 40 MB/s/TiB file system with expand_type="hpc" and hpc_bw="40M" configured under metadata, the capacity ranges from 1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for a 8.4 TiB file system.
  • For a 125 MB/s/TiB file system with expand_type="hpc" and hpc_bw="125M" configured under metadata, the capacity ranges from 1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for a 8.4 TiB file system.
  • For a 250 MB/s/TiB file system with expand_type="hpc" and hpc_bw="250M" configured under metadata, the capacity ranges from 1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for a 8.4 TiB file system.
+

+

+

+

subnet_id

+

Yes

+

String

+

Subnet ID of a tenant in a VPC. You can obtain the ID from the VPC console or by following the instructions provided in section "Querying Subnets" in Virtual Private Cloud API Reference.

+

vpc_id

+

Yes

+

String

+

VPC ID of a tenant in a region. You can obtain the VPC ID from the console or by following the instructions provided in section "Querying VPCs" in Virtual Private Cloud API Reference.

+

backup_id

+

No

+

String

+

Backup ID. This parameter is mandatory if you create a file system from a backup.

+

tags

+

No

+

Array of ResourceTag objects

+

Tag list

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 Metadata

Parameter

+

Mandatory

+

Type

+

Description

+

crypt_key_id

+

No

+

String

+

ID of a KMS professional key. This parameter is used if you want to create an encrypted file system.

+

expand_type

+

No

+

String

+

Extension type. This parameter is not returned when the file system is being created.

+

This parameter is mandatory when you are creating an SFS Turbo 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, 20 MB/s/TiB, or Enhanced file system.

+
  • Specify bandwidth when you are creating a Standard - Enhanced or Performance - Enhanced file system.
  • Specify hpc when you are creating a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system.
+

+

hpc_bw

+

No

+

String

+

File system bandwidth.

+

This parameter is mandatory when you are creating an SFS Turbo 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system.

+

Specify 20M for a 20 MB/s/TiB file system, 40M for a 40 MB/s/TiB file system, 125M for a 125 MB/s/TiB file system, and 250M for a 250 MB/s/TiB file system.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 6 ResourceTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

Yes

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID of the created SFS Turbo file system

+

name

+

String

+

Name of the created SFS Turbo file system

+

status

+

String

+

Status of the SFS Turbo file system

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 202

+

Response body for creating a file system

+
{
+  "id" : "708c017c-54b5-429a-a098-7692e23fa518",
+  "name" : "sfs-turbo-test",
+  "status" : "100"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

202

+

Response body for creating a file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/CreateSharedTag.html b/docs/sfs/api-ref/CreateSharedTag.html new file mode 100644 index 00000000..73191bc5 --- /dev/null +++ b/docs/sfs/api-ref/CreateSharedTag.html @@ -0,0 +1,172 @@ + + +

Adding a Tag for a File System

+

Function

This API is used to add a tag to a specified file system. A maximum of 20 tags can be added to a file system. Tag keys added to the same file system must be unique. This API is idempotent. If the file system already has the key you want to add, the tag will be updated.

+
+

URI

POST /v1/{project_id}/sfs-turbo/{share_id}/tags

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

tag

+

Yes

+

ResourceTag object

+

Description of the resource_tag field

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 ResourceTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

Yes

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Response Parameters

None

+
+

Example Requests

Creating a file system tag, with tag value set to key1 and tag key value1

+
{
+  "tag" : {
+    "key" : "key1",
+    "value" : "value1"
+  }
+}
+
+

Example Responses

None

+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

204

+

Tag adding request delivered.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/DeletePermRule.html b/docs/sfs/api-ref/DeletePermRule.html new file mode 100644 index 00000000..3b9ea438 --- /dev/null +++ b/docs/sfs/api-ref/DeletePermRule.html @@ -0,0 +1,189 @@ + + +

Deleting a Permissions Rule

+

Function

This API is used to delete a permission rule.

+
+

URI

DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+

rule_id

+

Yes

+

String

+

Permission rule ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Deleting the permission rule whose ID is 11abef677ac40f46644d1d5cfc2424a4 for the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
DELETE HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares/77ba6f4b-6365-4895-8dda-bc7142af4dde/fs/perm-rules/11abef677ac40f46644d1d5cfc2424a4
+
+

Example Responses

Status code: 500

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

Successful deletion

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/DeleteShare.html b/docs/sfs/api-ref/DeleteShare.html new file mode 100644 index 00000000..89c3e2d2 --- /dev/null +++ b/docs/sfs/api-ref/DeleteShare.html @@ -0,0 +1,104 @@ + + +

Deleting a File System

+

Function

This API is used to delete a file system.

+
+

URI

DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

None

+
+

Example Requests

Deleting the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
DELETE HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares/77ba6f4b-6365-4895-8dda-bc7142af4dde
+
+

Example Responses

None

+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

202

+

File system deletion request delivered.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/DeleteSharedTag.html b/docs/sfs/api-ref/DeleteSharedTag.html new file mode 100644 index 00000000..4cf9bf7d --- /dev/null +++ b/docs/sfs/api-ref/DeleteSharedTag.html @@ -0,0 +1,114 @@ + + +

Deleting a Tag of a File System

+

Function

This API is used to delete a tag of a specified file system. If the key to be deleted does not exist, error 404 will be returned.

+
+

URI

DELETE /v1/{project_id}/sfs-turbo/{share_id}/tags/{key}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+

key

+

Yes

+

String

+

Tag key, which can contain a maximum of 128 characters. It cannot be left blank and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

When this API is called to delete a tag, if the tag key contains special characters that cannot be directly resolved by the URL, the key needs to be escaped.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

None

+
+

Example Requests

Deleting tags whose key is test for the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
DELETE HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/77ba6f4b-6365-4895-8dda-bc7142af4dde/tags/test
+
+

Example Responses

None

+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

204

+

File system tag deleted.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ErrorCode.html b/docs/sfs/api-ref/ErrorCode.html index 53b123d0..a2c287b8 100644 --- a/docs/sfs/api-ref/ErrorCode.html +++ b/docs/sfs/api-ref/ErrorCode.html @@ -108,7 +108,7 @@

Name has existed

-

The file system name already exists.

+

File system name already exists.

Use valid parameters and try again.

@@ -421,6 +421,28 @@

Apply for a higher quota.

+

400

+ +

SFS.TURBO.0041

+ +

Operation is not allowed

+ +

File system version too early.

+ +

Contact technical support.

+ + +

404

+ +

SFS.TURBO.0042

+ +

Invalid NIC ID

+ +

The specified NIC ID is not found or is empty.

+ +

Use valid parameters and try again.

+ +

400

SFS.TURBO.0100

diff --git a/docs/sfs/api-ref/ExpandShare.html b/docs/sfs/api-ref/ExpandShare.html new file mode 100644 index 00000000..89f6e3af --- /dev/null +++ b/docs/sfs/api-ref/ExpandShare.html @@ -0,0 +1,193 @@ + + +

Expanding the Capacity of a File System

+

Function

This API is used to expand the capacity of a file system.

+
+

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

extend

+

Yes

+

Extend object

+

Object of extend

+
+
+ +
+ + + + + + + + + + + +
Table 4 Extend

Parameter

+

Mandatory

+

Type

+

Description

+

new_size

+

Yes

+

Integer

+

New capacity of the file system, in GiB

+

For a previous-generation Standard or Performance file system, the capacity ranges from 500 to 32768 (in GiB), and the expansion increment is 100 GiB.

+

For a previous-generation Standard - Enhanced or Performance Enhanced file system, the capacity ranges from 10240 to 327680 (in GiB), and the expansion increment is 100 GiB.

+

For a 20 MB/s/TiB file system, the capacity ranges from 3686 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, use 4915 GiB for a 4.8 TiB file system and 8601 GiB for a 8.4 TiB file system. The expansion increment is 1.2 TiB.

+

For a 40 MB/s/TiB file system, the capacity ranges from 1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, use 4915 GiB for a 4.8 TiB file system and 8601 GiB for a 8.4 TiB file system. The expansion increment is 1.2 TiB.

+

The capacity range and expansion increment of 250 MB/s/TiB and 125 MB/s/TiB file systems are the same as those of 40 MB/s/TiB file systems.

+

+

Minimum: 500

+

Maximum: 1048576

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID of the SFS Turbo file system

+

name

+

String

+

Name of the SFS Turbo file system

+
+
+
+

Example Requests

Expanding the capacity of a file system to 1,000 GB

+
{
+  "extend" : {
+    "new_size" : 1000
+  }
+}
+
+

Example Responses

Status code: 202

+

Response body for expanding the capacity of a file system

+
{
+  "id" : "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8",
+  "name" : "sfs-turbo-test"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

202

+

Response body for expanding the capacity of a file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ListPermRules.html b/docs/sfs/api-ref/ListPermRules.html new file mode 100644 index 00000000..b5db4c14 --- /dev/null +++ b/docs/sfs/api-ref/ListPermRules.html @@ -0,0 +1,227 @@ + + +

Querying Permission Rules of a File System

+

Function

This API is used to query the permission rules of a file system.

+
+

URI

GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

rules

+

Array of OnePermRuleResponseInfo objects

+

Permission rule information

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 OnePermRuleResponseInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Permission rule ID

+

ip_cidr

+

String

+

IP address or IP address range of the authorized object

+

rw_type

+

String

+

Read/write permission of the authorized object.

+
  • rw: read and write permission, which is the default option

    +
  • ro: read-only permission

    +
  • none: no permission

    +
+

user_type

+

String

+

File system access permission granted to the user of the authorized object. Supported values are:

+
  • no_root_squash: allows the root user on the client to access the file system as root.

    +
  • root_squash: allows the root user on the client to access the file system as nfsnobody.

    +
  • all_squash: allows any user on the client to access the file system as nfsnobody. It is the default value.

    +
+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Querying the permission rules of the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
GET HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares/77ba6f4b-6365-4895-8dda-bc7142af4dde/fs/perm-rules
+
+

Example Responses

Status code: 200

+

Successful query

+
{
+  "rules" : [ {
+    "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
+    "ip_cidr" : "192.168.0.0/16",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  }, {
+    "id" : "1231ed520xxxxxxebedb6e57xxxxxxxx",
+    "ip_cidr" : "192.32.0.0/16",
+    "rw_type" : "rw",
+    "user_type" : "no_root_squash"
+  } ]
+}
+

Status code: 500

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + +

Status Code

+

Description

+

200

+

Successful query

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ListSharedTags.html b/docs/sfs/api-ref/ListSharedTags.html new file mode 100644 index 00000000..5e45e30e --- /dev/null +++ b/docs/sfs/api-ref/ListSharedTags.html @@ -0,0 +1,155 @@ + + +

Querying Tags of All File Systems of a Tenant

+

Function

This API is used to query the tags of all file systems of a tenant.

+
+

URI

GET /v1/{project_id}/sfs-turbo/tags

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

tags

+

Array of Tag objects

+

Tag list

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 Tag

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

A key can contain a maximum of 128 characters and cannot be left blank.

+

Minimum: 1

+

Maximum: 128

+

values

+

Array of strings

+

Tag values. Each value can contain a maximum of 255 characters. An empty list of values can match with any value. All values of a tag key are in the OR relationship.

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Example Requests

Query tags of all file systems in the project whose ID is e1e45b08f3ea4480ab4655ef9c7160ba

+
GET HTTPS://{endpoint}/v1/e1e45b08f3ea4480ab4655ef9c7160ba/sfs-turbo/tags
+
+

Example Responses

Status code: 200

+

Response body for querying a file system

+
{
+  "tags" : [ {
+    "key" : "key1",
+    "values" : [ "value1", "" ]
+  }, {
+    "key" : "key2",
+    "values" : [ "value1", "value2" ]
+  } ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Response body for querying a file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ListShares.html b/docs/sfs/api-ref/ListShares.html new file mode 100644 index 00000000..4d42ec61 --- /dev/null +++ b/docs/sfs/api-ref/ListShares.html @@ -0,0 +1,464 @@ + + +

Obtaining the File System List

+

Function

This API is used to obtain the file system list.

+
+

URI

GET /v1/{project_id}/sfs-turbo/shares/detail

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

limit

+

No

+

Long

+

Maximum number of the file systems returned is 200. If not specified, 1000 is used by default.

+

offset

+

No

+

Long

+

Offset where the file system listing starts.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

shares

+

Array of ShareInfo objects

+

List of SFS Turbo file systems

+

count

+

Integer

+

Number of SFS Turbo file systems

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ShareInfo

Parameter

+

Type

+

Description

+

action_progress

+

ActionProgress object

+

Creation progress of the SFS Turbo file system. This field is only returned when the file system is being created.

+

version

+

String

+

Version of the SFS Turbo file system

+

avail_capacity

+

String

+

Available capacity of the SFS Turbo file system, in GB

+

availability_zone

+

String

+

Code of the AZ where the SFS Turbo file system resides

+

az_name

+

String

+

Name of the AZ where the SFS Turbo file system resides

+

created_at

+

String

+

Time when the file system was created. UTC time, for example: 2018-11-19T04:02:03

+

crypt_key_id

+

String

+

ID of the encryption key specified by the user. This parameter is not returned for non-encrypted file systems.

+

expand_type

+

String

+

For an Enhanced file system, bandwidth is returned. For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, hpc is returned. For other types of file systems, this field is not returned.

+

export_location

+

String

+

Location of the SFS Turbo file system. For a previous-generation file system, an IP address is returned, for example, 192.168.0.90:/. For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, a domain name is returned, for example, 2c568e3b-da13-4041-b5f8-fb77f611914e.sfsturbo.internal:/. If the file system is being created, this field is not returned.

+

id

+

String

+

ID of the SFS Turbo file system

+

name

+

String

+

Name of the SFS Turbo file system specified during creation

+

pay_model

+

String

+

Billing mode of the SFS Turbo file system. Value 0 indicates pay-per-use. If the file system is being created, this field is not returned.

+

Enumeration values:

+
  • 0
  • 1
+

region

+

String

+

Region where the SFS Turbo file system resides

+

security_group_id

+

String

+

ID of the security group specified by the user

+

share_proto

+

String

+

Protocol used by the SFS Turbo file system. The valid value is NFS.

+

share_type

+

String

+

Storage class of the SFS Turbo file system. Valid values are STANDARD and PERFORMANCE.

+

size

+

String

+

Total capacity of the SFS Turbo file system, in GB

+

status

+

String

+

SFS Turbo file system status. The value can be as follows: 100 (creating), 200 (available), 303 (creation failed), and 800 (frozen)

+

sub_status

+

String

+

Sub-status of the SFS Turbo file system. The value can be as follows: This field is not returned if no modification is made to the file system. 121 (expanding capacity), 132 (changing security group), 137 (adding authorized VPC), 138 (removing authorized VPC) 221 (expansion succeeded), 232 (security group changed), 237 (authorized VPC added), 238 (authorized VPC removed) 321 (expansion failed), 332 (changing security group failed), 337 (adding authorized VPC failed), 338 (removing authorized VPC failed)

+

subnet_id

+

String

+

ID of the subnet specified by the user

+

vpc_id

+

String

+

ID of the VPC specified by the user

+

tags

+

Array of ResourceTag objects

+

Tag list

+

optional_endpoint

+

String

+

Alternative IP addresses that can be used for mounting. This field is not returned for previous-generation file systems.

+

hpc_bw

+

String

+

File system bandwidth.

+
  • "20M": 20 MB/s/TiB
  • "40M": 40 MB/s/TiB
  • "125M": 125 MB/s/TiB
  • "250M": 250 MB/s/TiB
+

instanceId

+

String

+

Node ID of the file system type. This is a reserved field.

+

instanceType

+

String

+

Node type of the file system type. This is a reserved field.

+

statusDetail

+

String

+

Request ID of the file system. This is a reserved field.

+

features

+

String

+

Whether backup is supported for SFS turbo file systems.

+
+
+ +
+ + + + + + + + + +
Table 6 ActionProgress

Parameter

+

Type

+

Description

+

CREATING

+

String

+

File system creation progress

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ResourceTag

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Example Requests

Querying file systems in the project whose ID e1e45b08f3ea4480ab4655ef9c7160ba

+
GET HTTPS://{endpoint}/v1/e1e45b08f3ea4480ab4655ef9c7160ba/sfs-turbo/shares/detail
+
+

Example Responses

Status code: 200

+

Response body for querying the file system list

+
{
+  "shares" : [ {
+    "id" : "8fba8253-c914-439d-ae8b-d5c89d0bf5e8",
+    "name" : "sfs-turbo-8468",
+    "status" : "100",
+    "version" : "1.0.0",
+    "region" : "north-1",
+    "created_at" : "2018-11-19T04:02:03",
+    "export_location" : "192.168.0.90:/",
+    "action_progress" : {
+      "CREATING" : "22%"
+    },
+    "share_type" : "STANDARD",
+    "sub_status" : "",
+    "availability_zone" : "az1.dc1",
+    "az_name" : "az1",
+    "vpc_id" : "b24e39e1-bc0c-475b-ae0c-aef9cf240af3",
+    "subnet_id" : "86fc01ea-8ec8-409d-ba7a-e0ea16d4fd97",
+    "security_group_id" : "50586458-aec9-442c-bb13-e08ddc6f1b7a",
+    "size" : "500.00",
+    "pay_model" : "0",
+    "avail_capacity" : "500.00",
+    "share_proto" : "NFS"
+  }, {
+    "id" : "65f2d30b-7b4e-4786-9608-4324faef6646",
+    "name" : "sfs-turbo-df12",
+    "status" : "200",
+    "version" : "1.0.0",
+    "region" : "north-1",
+    "created_at" : "2018-11-15T02:32:10",
+    "export_location" : "65f2d30b-7b4e-4786-9608-4324faef6646.sfsturbo.internal:/",
+    "optional_endpoint" : "192.168.0.90 192.168.0.89",
+    "share_type" : "HPC_PERFORMANCE_250M",
+    "expand_type" : "hpc",
+    "sub_status" : "",
+    "availability_zone" : "az1.dc1",
+    "az_name" : "az1",
+    "vpc_id" : "b24e39e1-bc0c-475b-ae0c-aef9cf240af3",
+    "subnet_id" : "86fc01ea-8ec8-409d-ba7a-e0ea16d4fd97",
+    "security_group_id" : "50586458-aec9-442c-bb13-e08ddc6f1b7a",
+    "size" : "3686.00",
+    "pay_model" : "0",
+    "avail_capacity" : "3686.00",
+    "share_proto" : "NFS"
+  } ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Response body for querying the file system list

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowJobDetail.html b/docs/sfs/api-ref/ShowJobDetail.html new file mode 100644 index 00000000..083c3743 --- /dev/null +++ b/docs/sfs/api-ref/ShowJobDetail.html @@ -0,0 +1,391 @@ + + +

Querying Details About a Task

+

Function

This API is used to query the execution status of an SFS Turbo asynchronous task. For example, you can query the task execution status using the jobId returned after you call the API for creating and binding the LDAP configuration.

+
+

URI

GET /v1/{project_id}/sfs-turbo/jobs/{job_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

job_id

+

Yes

+

String

+

job ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

Request ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

status

+

String

+

Task status, which can be success, running, failed, or waiting

+

Enumeration values:

+
  • success

    +
  • failed

    +
  • waiting

    +
  • running

    +
+

job_id

+

String

+

Task ID

+

job_type

+

String

+

Task type

+

begin_time

+

String

+

Task start time in UTC format, for example, '2016-01-02 15:04:05

+

end_time

+

String

+

Task end time in UTC format, for example, '2016-01-02 15:04:05

+

error_code

+

String

+

Error code returned if the task execution fails

+

fail_reason

+

String

+

Cause of the task execution failure

+

sub_jobs

+

Array of GetSubJobDetail objects

+

List of subtasks

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 GetSubJobDetail

Parameter

+

Type

+

Description

+

status

+

String

+

Subtask status, which can be success, running, failed, or waiting

+

job_id

+

String

+

Task ID

+

job_type

+

String

+

Subtask type

+

begin_time

+

String

+

Task start time in UTC format, for example, '2016-01-02 15:04:05

+

end_time

+

String

+

Task end time in UTC format, for example, '2016-01-02 15:04:05

+

error_code

+

String

+

Error code returned if the task execution fails

+

fail_reason

+

String

+

Cause of the task execution failure

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

Response body parameters

+
{
+  "job_id" : "26f6b565-xxxx-XXXX-xxxx-03f0bd975433",
+  "status" : "success",
+  "job_type" : "bind_ldap",
+  "begin_time" : "2023-07-26 09:33:58",
+  "end_time" : "2023-07-26 09:33:58"
+}
+

Status code: 400

+

Client error

+
{
+  "errCode" : "SFS.TURBO.0001",
+  "errMsg" : "parameter error"
+}
+

Status code: 404

+

Resource not found

+
{
+  "errCode" : "SFS.TURBO.0001",
+  "errMsg" : "parameter error"
+}
+

Status code: 500

+

Internal error

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Response body parameters

+

400

+

Client error

+

404

+

Resource not found

+

500

+

Internal error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowPermRule.html b/docs/sfs/api-ref/ShowPermRule.html new file mode 100644 index 00000000..15dcca6c --- /dev/null +++ b/docs/sfs/api-ref/ShowPermRule.html @@ -0,0 +1,246 @@ + + +

Querying a Permission Rule by ID

+

Function

This API is used to query a specific permission rule of a file system.

+
+

URI

GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+

rule_id

+

Yes

+

String

+

Permission rule ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Permission rule ID

+

ip_cidr

+

String

+

IP address or IP address range of the authorized object

+

rw_type

+

String

+

Read/write permission of the authorized object.

+
  • rw: read and write permission, which is the default option
  • ro: read-only permission
  • none: no permission
+

user_type

+

String

+

File system access permission granted to the user of the authorized object. Supported values are:

+
  • no_root_squash: allows the root user on the client to access the file system as root.
  • root_squash: allows the root user on the client to access the file system as nfsnobody.
  • all_squash: allows any user on the client to access the file system as nfsnobody. It is the default value.
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

Querying details about the permission rule whose ID is 11abef677ac40f46644d1d5cfc2424a4 for the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
GET HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares/77ba6f4b-6365-4895-8dda-bc7142af4dde/fs/perm-rules/11abef677ac40f46644d1d5cfc2424a4
+
+

Example Responses

Status code: 200

+

Successful query

+
{
+  "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
+  "ip_cidr" : "192.168.0.0/16",
+  "rw_type" : "rw",
+  "user_type" : "no_root_squash"
+}
+

Status code: 400

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0001",
+  "errMsg" : "Invalid rule id"
+}
+

Status code: 500

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Successful query

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowShare.html b/docs/sfs/api-ref/ShowShare.html new file mode 100644 index 00000000..5236108f --- /dev/null +++ b/docs/sfs/api-ref/ShowShare.html @@ -0,0 +1,390 @@ + + +

Querying Details About a File System

+

Function

This API is used to query details about an SFS Turbo file system.

+
+

URI

GET /v1/{project_id}/sfs-turbo/shares/{share_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

action_progress

+

ActionProgress object

+

Creation progress of the SFS Turbo file system. This field is only returned when the file system is being created.

+

version

+

String

+

Version of the SFS Turbo file system

+

avail_capacity

+

String

+

Available capacity of the SFS Turbo file system, in GB

+

availability_zone

+

String

+

Code of the AZ where the SFS Turbo file system resides

+

az_name

+

String

+

Name of the AZ where the SFS Turbo file system resides

+

created_at

+

String

+

Time when the file system was created. UTC time, for example: 2018-11-19T04:02:03

+

crypt_key_id

+

String

+

ID of the encryption key specified by the user. This parameter is not returned for non-encrypted file systems.

+

expand_type

+

String

+

For an Enhanced file system, bandwidth is returned. For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, hpc is returned. For other types of file systems, this field is not returned.

+

export_location

+

String

+

Location of the SFS Turbo file system. For a previous-generation file system, an IP address is returned, for example, 192.168.0.90:/. For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, a domain name is returned, for example, 2c568e3b-da13-4041-b5f8-fb77f611914e.sfsturbo.internal:/. If the file system is being created, this field is not returned.

+

id

+

String

+

ID of the SFS Turbo file system

+

name

+

String

+

Name of the SFS Turbo file system specified during creation

+

pay_model

+

String

+

Billing mode of the SFS Turbo file system. Value 0 indicates pay-per-use. If the file system is being created, this field is not returned.

+

Enumeration values:

+
  • 0
  • 1
+

region

+

String

+

Region where the SFS Turbo file system resides

+

security_group_id

+

String

+

ID of the security group specified by the user

+

share_proto

+

String

+

Protocol used by the SFS Turbo file system. The valid value is NFS.

+

share_type

+

String

+

Storage class of the SFS Turbo file system. Valid values are STANDARD and PERFORMANCE.

+

size

+

String

+

Total capacity of the SFS Turbo file system, in GB

+

status

+

String

+

SFS Turbo file system status. The value can be as follows: 100 (creating), 200 (available), 303 (creation failed), and 800 (frozen)

+

sub_status

+

String

+

Sub-status of the SFS Turbo file system. The value can be as follows: This field is not returned if no modification is made to the file system. 121 (expanding capacity), 132 (changing security group), 137 (adding authorized VPC), 138 (removing authorized VPC) 221 (expansion succeeded), 232 (security group changed), 237 (authorized VPC added), 238 (authorized VPC removed) 321 (expansion failed), 332 (changing security group failed), 337 (adding authorized VPC failed), 338 (removing authorized VPC failed)

+

subnet_id

+

String

+

ID of the subnet specified by the user

+

vpc_id

+

String

+

ID of the VPC specified by the user

+

tags

+

Array of ResourceTag objects

+

Tag list

+

optional_endpoint

+

String

+

Alternative IP addresses that can be used for mounting. This field is not returned for previous-generation file systems.

+

hpc_bw

+

String

+

File system bandwidth.

+
  • "20M": 20 MB/s/TiB
  • "40M": 40 MB/s/TiB
  • "125M": 125 MB/s/TiB
  • "250M": 250 MB/s/TiB
+

instanceId

+

String

+

Node ID of the file system type. This is a reserved field.

+

instanceType

+

String

+

Node type of the file system type. This is a reserved field.

+

statusDetail

+

String

+

Request ID of the file system. This is a reserved field.

+

features

+

String

+

Whether backup is supported for SFS turbo file systems.

+
+
+ +
+ + + + + + + + + +
Table 4 ActionProgress

Parameter

+

Type

+

Description

+

CREATING

+

String

+

File system creation progress

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ResourceTag

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Example Requests

Querying the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
GET HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares/77ba6f4b-6365-4895-8dda-bc7142af4dde
+
+

Example Responses

Status code: 200

+

Response body for querying a file system

+
{
+  "id" : "8fba8253-c914-439d-ae8b-d5c89d0bf5e8",
+  "name" : "sfs-turbo-8468",
+  "status" : "200",
+  "version" : "1.0.0",
+  "region" : "region",
+  "availability_zone" : "example",
+  "az_name" : "example",
+  "created_at" : "2018-11-19T04:02:03",
+  "export_location" : "192.168.0.90:/",
+  "action_progress" : { },
+  "share_type" : "STANDARD",
+  "sub_status" : "221",
+  "vpc_id" : "b24e39e1-bc0c-475b-ae0c-aef9cf240af3",
+  "subnet_id" : "86fc01ea-8ec8-409d-ba7a-e0ea16d4fd97",
+  "security_group_id" : "50586458-aec9-442c-bb13-e08ddc6f1b7a",
+  "size" : "600.00",
+  "avail_capacity" : "600.00",
+  "pay_model" : "0",
+  "share_proto" : "NFS"
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Response body for querying a file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowSharedTags.html b/docs/sfs/api-ref/ShowSharedTags.html new file mode 100644 index 00000000..e7c0952d --- /dev/null +++ b/docs/sfs/api-ref/ShowSharedTags.html @@ -0,0 +1,178 @@ + + +

Querying Tags of a File System

+

Function

This API is used to query all tags of a specified file system.

+
+

URI

GET /v1/{project_id}/sfs-turbo/{share_id}/tags

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

tags

+

Array of ResourceTag objects

+

Tag list

+

sys_tags

+

Array of ResourceTag objects

+

Only users with the op_service permission can obtain this field.

+
  1. This field currently contains only one resource_tag structure key, _sys_enterprise_project_id.

    +
  2. The key contains only value 0 currently, which indicates the default enterprise project.

    +
+

This field is not returned for users without the op_service permission.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 ResourceTag

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

It can contain a maximum of 128 characters.

+

It cannot be left empty and cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 1

+

Maximum: 128

+

value

+

String

+

Tag value.

+

Each tag value can contain a maximum of 255 characters and can be an empty string.

+

It cannot contain the following characters: ASCII (0-31), equal signs (=), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_).

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Example Requests

Querying tags of the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

+
GET HTTPS://{endpoint}/v1/v1/{project_id}/sfs-turbo/77ba6f4b-6365-4895-8dda-bc7142af4dde/tags
+
+

Example Responses

Status code: 200

+

Response body for query all tags of a specified file system

+
{
+  "tags" : [ {
+    "key" : "key1",
+    "value" : "value1"
+  }, {
+    "key" : "key2",
+    "value" : "value1"
+  } ]
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

Response body for query all tags of a specified file system

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/UpdatePermRule.html b/docs/sfs/api-ref/UpdatePermRule.html new file mode 100644 index 00000000..1edb3ab7 --- /dev/null +++ b/docs/sfs/api-ref/UpdatePermRule.html @@ -0,0 +1,303 @@ + + +

Modifying a Permission Rule

+

Function

This API is used to modify a permission rule.

+
+

URI

PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+

share_id

+

Yes

+

String

+

File system ID

+

rule_id

+

Yes

+

String

+

Permission rule ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Account token

+

Content-Type

+

Yes

+

String

+

MIME type

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

ip_cidr

+

No

+

String

+

IP address or IP address range of the object to be authorized. Once configured, this parameter cannot be modified.

+

rw_type

+

No

+

String

+

Read/write permission of the object to be authorized.

+
  • rw: read and write permission, which is the default option

    +
  • ro: read-only permission

    +
  • none: no permission

    +
+

user_type

+

No

+

String

+

File system access permission granted to the user of the object to be authorized. Supported values are:

+
  • no_root_squash: allows any user including the root user on the client to access the file system as who they are, instead of mapping them to another user.

    +
  • root_squash: allows the root user on the client to access the file system as nfsnobody.

    +
  • all_squash: allows any user on the client to access the file system as nfsnobody.

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Permission rule ID

+

ip_cidr

+

String

+

IP address or IP address range of the authorized object

+

rw_type

+

String

+

Read/write permission of the authorized object.

+
  • rw: read and write permission, which is the default option

    +
  • ro: read-only permission

    +
  • none: no permission

    +
+

user_type

+

String

+

File system access permission granted to the user of the authorized object. Supported values are:

+
  • no_root_squash: allows the root user on the client to access the file system as root.

    +
  • root_squash: allows the root user on the client to access the file system as nfsnobody.

    +
  • all_squash: allows any user on the client to access the file system as nfsnobody. It is the default value.

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

Error code

+

Minimum: 8

+

Maximum: 36

+

errMsg

+

String

+

Error description

+

Minimum: 2

+

Maximum: 512

+
+
+
+

Example Requests

{
+  "rw_type" : "rw",
+  "user_type" : "no_root_squash"
+}
+
+

Example Responses

Status code: 200

+

Successful creation

+
{
+  "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
+  "ip_cidr" : "192.32.0.0/16",
+  "rw_type" : "rw",
+  "user_type" : "no_root_squash"
+}
+

Status code: 400

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0001",
+  "errMsg" : "Invalid rule id"
+}
+

Status code: 500

+

Error response

+
{
+  "errCode" : "SFS.TURBO.0005",
+  "errMsg" : "Internal server error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Successful creation

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/en-us_image_0000001508295281.png b/docs/sfs/api-ref/en-us_image_0000001508295281.png new file mode 100644 index 00000000..ec3abb85 Binary files /dev/null and b/docs/sfs/api-ref/en-us_image_0000001508295281.png differ diff --git a/docs/sfs/api-ref/en-us_image_0000001773129352.png b/docs/sfs/api-ref/en-us_image_0000001773129352.png new file mode 100644 index 00000000..ff862c91 Binary files /dev/null and b/docs/sfs/api-ref/en-us_image_0000001773129352.png differ diff --git a/docs/sfs/api-ref/en-us_topic_0000001537230113.html b/docs/sfs/api-ref/en-us_topic_0000001537230113.html deleted file mode 100644 index f4ea59a3..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001537230113.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

Name Management

- -

-
- -
- - - -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001537629949.html b/docs/sfs/api-ref/en-us_topic_0000001537629949.html deleted file mode 100644 index 455facba..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001537629949.html +++ /dev/null @@ -1,167 +0,0 @@ - - -

Changing the Name of a File System

-

Function

This API is used to change the name of a file system.

-
-

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action

-
- -
- - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Specifies the project ID.

-

share_id

-

Yes

-

String

-

Specifies the file system ID.

-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Specifies the account token.

-

Content-Type

-

Yes

-

String

-

Specifies the MIME type.

-
-
- -
- - - - - - - - - - - -
Table 3 Request body parameter

Parameter

-

Mandatory

-

Type

-

Description

-

change_name

-

Yes

-

ShareName object

-

Specifies the SFS Turbo file system you want to change the name.

-
-
- -
- - - - - - - - - - - -
Table 4 ShareName

Parameter

-

Mandatory

-

Type

-

Description

-

name

-

Yes

-

String

-

Specifies the name of the SFS Turbo file system you want to change the name.

-
-
-
-

Response Parameters

None

-
-

Example Request

{
-  "change_name" : {
-    "name" : "sfs-turbo-test1"
-  }
-}
-
-

Example Response

None

-
-

Status Codes

-
- - - - - - - - - - - - - - - - -

Status Code

-

Description

-

204

-

Request successful.

-

400

-

Invalid parameters.

-

500

-

Internal error.

-

409

-

File system name already exists.

-
-
-
-

-
-
- -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001614397248.html b/docs/sfs/api-ref/en-us_topic_0000001614397248.html deleted file mode 100644 index 2cbb0f01..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001614397248.html +++ /dev/null @@ -1,227 +0,0 @@ - - -

Querying Permission Rules of a File System

-

Function

This API is used to query the permission rules of a file system.

-
-

URI

GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

- -
- - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-
-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
-
-

Response Parameters

Status code: 200

- -
- - - - - - - - - - - - - -
Table 3 Response body parameter

Parameter

-

Type

-

Description

-

rules

-

Array of Table 4 objects

-

Permission rule information

-

count

-

int

-

Total rules

-
-
- -
- - - - - - - - - - - - - - - - - - - - - -
Table 4 OnePermRuleResponseInfo

Parameter

-

Type

-

Description

-

id

-

String

-

Permission rule ID

-

ip_cidr

-

String

-

IP address or IP address range of the authorized object

-

rw_type

-

String

-

Read/write permission of the authorized object. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

String

-

File system access permission granted to the user of the authorized object. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-
-
-

Status code: 500

- -
- - - - - - - - - - - - - -
Table 5 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-
-

Example Request

None

-
-

Example Response

Status code: 200

-
Successful query
{
-    "rules": [
-        {
-            "id": "2be0cc3d-cf1e-49d5-bce3-83e91e32ff42",
-            "ip_cidr": "*",
-            "rw_type": "rw",
-            "user_type": "no_root_squash"
-        },
-        {
-            "id": "d56a5130-6744-4a64-866b-9dc259f5a64c",
-            "ip_cidr": "188.88.88.88",
-            "rw_type": "ro",
-            "user_type": "no_root_squash"
-        }
-    ],
-    "count": 2
-}
-
-

Status code: 500

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0005", 
-  "errMsg" : "Internal server error" 
-}
-
-

Status Codes

-
- - - - - - - - - - -

Status Code

-

Description

-

200

-

Successful query

-

500

-

Error response

-
-
-
-
-
- -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001614557076.html b/docs/sfs/api-ref/en-us_topic_0000001614557076.html deleted file mode 100644 index 5a758716..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001614557076.html +++ /dev/null @@ -1,186 +0,0 @@ - - -

Deleting a Permissions Rule

-

Function

This API is used to delete a permission rule.

-
-

URI

DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

- -
- - - - - - - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-

rule_id

-

Yes

-

String

-

Permission rule ID

-
-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
-
-

Response Parameters

Status code: 400

- -
- - - - - - - - - - - - - -
Table 3 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-

Status code: 500

- -
- - - - - - - - - - - - - -
Table 4 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-
-

Example Request

None

-
-

Example Response

Status code: 500

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0005", 
-  "errMsg" : "Internal server error" 
-}
-
-

Status Codes

-
- - - - - - - - - - - - - -

Status Code

-

Description

-

204

-

Successful deletion

-

400

-

Error response

-

500

-

Error response

-
-
-
-
-
- -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001662877113.html b/docs/sfs/api-ref/en-us_topic_0000001662877113.html deleted file mode 100644 index eca335ae..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001662877113.html +++ /dev/null @@ -1,240 +0,0 @@ - - -

Querying a Permission Rule by ID

-

Function

This API is used to query a specific permission rule of a file system.

-
-

URI

GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

- -
- - - - - - - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-

rule_id

-

Yes

-

String

-

Permission rule ID

-
-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
-
-

Response Parameters

Status code: 200

- -
- - - - - - - - - - - - - - - - - - - - - -
Table 3 Response body parameters

Parameter

-

Type

-

Description

-

id

-

String

-

Permission rule ID

-

ip_cidr

-

String

-

IP address or IP address range of the authorized object

-

rw_type

-

String

-

Read/write permission of the authorized object. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

String

-

File system access permission granted to the user of the authorized object. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-
-
-

Status code: 400

- -
- - - - - - - - - - - - - -
Table 4 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-

Status code: 500

- -
- - - - - - - - - - - - - -
Table 5 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-
-

Example Request

None

-
-

Example Response

{  
-  "ip_cidr":"188.88.88.88",
-  "rw_type":"ro",
-  "user_type":"no_root_squash"
-}
-

Status code: 200

-

Successful query

-

Status code: 400

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0001", 
-  "errMsg" : "Invalid rule id" 
-}
-

Status code: 500

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0005", 
-  "errMsg" : "Internal server error" 
-}
-
-

Status Codes

-
- - - - - - - - - - - - - -

Status Code

-

Description

-

200

-

Successful query

-

400

-

Error response

-

500

-

Error response

-
-
-
-
-
- -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001662997101.html b/docs/sfs/api-ref/en-us_topic_0000001662997101.html deleted file mode 100644 index 9b6a6dc8..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001662997101.html +++ /dev/null @@ -1,269 +0,0 @@ - - -

Modifying a Permission Rule

-

Function

This API is used to modify a permission rule.

-
-

URI

PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

- -
- - - - - - - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-

rule_id

-

Yes

-

String

-

Permission rule ID

-
-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
- -
- - - - - - - - - - - - - - - - -
Table 3 Request body parameters

Parameter

-

Mandatory

-

Type

-

Description

-

rw_type

-

No

-

String

-

Read/write permission of the object to be authorized. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

No

-

String

-

File system access permission granted to the user of the object to be authorized. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-
-
-
-

Response Parameters

Status code: 200

- -
- - - - - - - - - - - - - - - - - -
Table 4 Response body parameters

Parameter

-

Type

-

Description

-

ip_cidr

-

String

-

IP address or IP address range of the authorized object

-

rw_type

-

String

-

Read/write permission of the authorized object. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

String

-

File system access permission granted to the user of the authorized object. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-
-
-

Status code: 400

- -
- - - - - - - - - - - - - -
Table 5 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-

Status code: 500

- -
- - - - - - - - - - - - - -
Table 6 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-
-

Example Request

{ 
-  "rw_type" : "rw", 
-  "user_type" : "no_root_squash" 
-}
-
-

Example Response

{
-  "ip_cidr":"188.88.88.88",
-  "rw_type":"ro",
-  "user_type":"no_root_squash"
-}
- 
-

Status code: 200

-

Successful modification

-

Status code: 400

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0001", 
-  "errMsg" : "Invalid rule id" 
-}
-

Status code: 500

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0005", 
-  "errMsg" : "Internal server error" 
-}
-
-

Status Codes

-
- - - - - - - - - - - - - -

Status Code

-

Description

-

200

-

Successful modification

-

400

-

Error response

-

500

-

Error response

-
-
-
-
-
- -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001663116961.html b/docs/sfs/api-ref/en-us_topic_0000001663116961.html deleted file mode 100644 index 2f2fd29d..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001663116961.html +++ /dev/null @@ -1,23 +0,0 @@ - - -

Permissions Management

-
-
- - - -
- diff --git a/docs/sfs/api-ref/en-us_topic_0000001663156945.html b/docs/sfs/api-ref/en-us_topic_0000001663156945.html deleted file mode 100644 index 49cb6bd9..00000000 --- a/docs/sfs/api-ref/en-us_topic_0000001663156945.html +++ /dev/null @@ -1,336 +0,0 @@ - - -

Creating a Permission Rule

-

Function

This API is used to create a permission rule.

-
-

URI

POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

- -
- - - - - - - - - - - - - - - - -
Table 1 Path parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-
-
-
-

Request Parameters

-
- - - - - - - - - - - - - - - - -
Table 2 Request header parameters

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
- -
- - - - - - - - - - - -
Table 3 Request body parameter

Parameter

-

Mandatory

-

Type

-

Description

-

rules

-

Yes

-

Array of Table 4 objects

-

Permission rule details. A maximum of five rules can be created at a time.

-
-
- -
- - - - - - - - - - - - - - - - - - - - - -
Table 4 OnePermRuleRequestInfo

Parameter

-

Mandatory

-

Type

-

Description

-

rw_type

-

Yes

-

String

-

Read/write permission of the object to be authorized. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

Yes

-

String

-

File system access permission granted to the user of the object to be authorized. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-

ip_cidr

-

Yes

-

String

-

IP address or IP address range of the object to be authorized

-
-
-
-

Response Parameters

Status code: 200

- -
- - - - - - - - - -
Table 5 Response body parameter

Parameter

-

Type

-

Description

-

rules

-

Array of Table 6 objects

-

Permission rule details

-
-
- -
- - - - - - - - - - - - - - - - - - - - - -
Table 6 OnePermRuleResponseInfo

Parameter

-

Type

-

Description

-

id

-

String

-

Permission rule ID

-

ip_cidr

-

String

-

IP address or IP address range of the authorized object

-

rw_type

-

String

-

Read/write permission of the authorized object. The value can be rw (read and write permission), ro (read only permission), or none (no access permission). The default value is rw.

-

user_type

-

String

-

File system access permission granted to the user of the authorized object. The value can be no_root_squash, root_squash, or all_squash. Value no_root_squash allows the root user on the client to access the file system as root. Value root_squash allows the root user on the client to access the file system as nfsnobody. Value all_squash allows any user on the client to access the file system as nfsnobody.

-
-
-

Status code: 400

- -
- - - - - - - - - - - - - -
Table 7 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-

Status code: 500

- -
- - - - - - - - - - - - - -
Table 8 Response body parameters

Parameter

-

Type

-

Description

-

errCode

-

String

-

Error code

-

Minimum length: 8 characters

-

Maximum length: 36 characters

-

errMsg

-

String

-

Error message

-

Minimum length: 2 characters

-

Maximum length: 512 characters

-
-
-
-

Example Request

{ 
-  "rules" : [ { 
-    "ip_cidr" : "192.168.0.0/16", 
-    "rw_type" : "rw", 
-    "user_type" : "no_root_squash" 
-  }, { 
-    "ip_cidr" : "192.32.0.0/16", 
-    "rw_type" : "rw", 
-    "user_type" : "no_root_squash" 
-  } ] 
-}
-
-

Example Response

{
-    "rules": [
-        {
-            "id": "2be0cc3d-cf1e-49d5-bce3-83e91e32ff42",
-            "ip_cidr": "*",
-            "rw_type": "rw",
-            "user_type": "no_root_squash"
-        },
-        {
-            "id": "d56a5130-6744-4a64-866b-9dc259f5a64c",
-            "ip_cidr": "192.32.0.0/16",
-            "rw_type": "ro",
-            "user_type": "no_root_squash"
-        }
-    ],
-    "count": 2
-}
-

Status code: 200

-

Successful creation

-

Status code: 400

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0001", 
-  "errMsg" : "Rules not allowed empty" 
-}
-

Status code: 500

-

Error response

-
{ 
-  "errCode" : "SFS.TURBO.0005", 
-  "errMsg" : "Internal server error" 
-}
-
-

Status Codes

-
- - - - - - - - - - - - - -

Status Code

-

Description

-

200

-

Successful creation

-

400

-

Error response

-

500

-

Error response

-
-
-
-
-
- -
- diff --git a/docs/sfs/api-ref/public_sys-resources/imageclose.gif b/docs/sfs/api-ref/public_sys-resources/imageclose.gif new file mode 100644 index 00000000..3a3344af Binary files /dev/null and b/docs/sfs/api-ref/public_sys-resources/imageclose.gif differ diff --git a/docs/sfs/api-ref/public_sys-resources/imageclosehover.gif b/docs/sfs/api-ref/public_sys-resources/imageclosehover.gif new file mode 100644 index 00000000..8699d5e3 Binary files /dev/null and b/docs/sfs/api-ref/public_sys-resources/imageclosehover.gif differ diff --git a/docs/sfs/api-ref/public_sys-resources/imagemax.gif b/docs/sfs/api-ref/public_sys-resources/imagemax.gif new file mode 100644 index 00000000..99c07dc2 Binary files /dev/null and b/docs/sfs/api-ref/public_sys-resources/imagemax.gif differ diff --git a/docs/sfs/api-ref/public_sys-resources/imagemaxhover.gif b/docs/sfs/api-ref/public_sys-resources/imagemaxhover.gif new file mode 100644 index 00000000..d01d77d6 Binary files /dev/null and b/docs/sfs/api-ref/public_sys-resources/imagemaxhover.gif differ diff --git a/docs/sfs/api-ref/public_sys-resources/macFFBgHack.png b/docs/sfs/api-ref/public_sys-resources/macFFBgHack.png new file mode 100644 index 00000000..ec811470 Binary files /dev/null and b/docs/sfs/api-ref/public_sys-resources/macFFBgHack.png differ diff --git a/docs/sfs/api-ref/sfs_02_0001.html b/docs/sfs/api-ref/sfs_02_0001.html index e6a60b66..f0d162d2 100644 --- a/docs/sfs/api-ref/sfs_02_0001.html +++ b/docs/sfs/api-ref/sfs_02_0001.html @@ -4,5 +4,54 @@

Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

For details about how to use APIs, see API Usage Guidelines.

+

An endpoint is the request address for calling an API. Endpoints vary depending on services and regions.

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 SFS endpoint information

Service Name

+

Region

+

URL

+

Protocol

+

Scalable File Service Turbo

+

eu-de

+

sfs-turbo.eu-de.otc.t-systems.com

+

HTTPS

+

eu-nl

+

sfs-turbo.eu-nl.otc.t-systems.com

+

HTTPS

+

Scalable File Service

+

eu-de

+

sfs.eu-de.otc.t-systems.com

+

HTTPS

+

SFS 3.0 Capacity-Oriented

+

eu-de

+

sfs3.eu-de.otc.t-systems.com

+

HTTPS

+
+
diff --git a/docs/sfs/api-ref/sfs_02_0008.html b/docs/sfs/api-ref/sfs_02_0008.html new file mode 100644 index 00000000..bf7a6bbd --- /dev/null +++ b/docs/sfs/api-ref/sfs_02_0008.html @@ -0,0 +1,15 @@ + + +

Calling APIs

+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_02_0009.html b/docs/sfs/api-ref/sfs_02_0009.html new file mode 100644 index 00000000..c049fc08 --- /dev/null +++ b/docs/sfs/api-ref/sfs_02_0009.html @@ -0,0 +1,232 @@ + + +

Making an API Request

+

This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained token can then be used to authenticate the calling of other APIs.

+

Request URI

A request URI is in the following format:

+

{URI-scheme}://{Endpoint}/{resource-path}?{query-string}

+

Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.

+ +
+ + + + + + + + + + + + + + + + +
Table 1 URI parameter description

Parameter

+

Description

+

URI-scheme

+

Protocol used to transmit requests. All APIs use HTTPS.

+

Endpoint

+

Domain name or IP address of the server bearing the REST service. The endpoint varies between services in different regions. It can be obtained from Regions and Endpoints.

+

resource-path

+

Access path of an API for performing a specified operation. Obtain the path from the URI of an API. For example, the resource-path of the API used to obtain a user token is /v3/auth/tokens.

+

query-string

+

Query parameter, which is optional. Ensure that a question mark (?) is included before each query parameter that is in the format of Parameter name=Parameter value. For example, ? limit=10 indicates that a maximum of 10 data records will be displayed.

+
+
+

To simplify the URI display in this document, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.

+
+
+

Request Methods

The HTTP protocol defines the following request methods that can be used to send a request to the server. +
+ + + + + + + + + + + + + + + + + + + + + + +
Table 2 HTTP methods

Method

+

Description

+

GET

+

Requests the server to return specified resources.

+

PUT

+

Requests the server to update specified resources.

+

POST

+

Requests the server to add resources or perform special operations.

+

DELETE

+

Requests the server to delete specified resources, for example, an object.

+

HEAD

+

Same as GET except that the server must return only the response header.

+

PATCH

+

Requests the server to update partial content of a specified resource.

+

If the resource does not exist, a new resource will be created.

+
+
+
+

For example, in the case of the API used to obtain a user token, the request method is POST. The request is as follows:

+
1
POST https://{{endpoint}}/v3/auth/tokens
+
+
+
+

Request Header

You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.

+
Common request header fields are as follows. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Common request header fields

Parameter

+

Description

+

Mandatory

+

Example Value

+

Host

+

Specifies the server domain name and port number of the resources being requested. The value can be obtained from the URL of the service API. The value is in the format of Hostname:Port number. If the port number is not specified, the default port is used. The default port number for https is 443.

+

No

+

This field is mandatory for AK/SK authentication.

+

code.test.com

+

or

+

code.test.com:443

+

Content-Type

+

Specifies the type (or format) of the message body. The default value application/json is recommended. Other values of this field will be provided for specific APIs if any.

+

Yes

+

application/json

+

Content-Length

+

Specifies the length of the request body. The unit is byte.

+

No

+

3495

+

X-Project-Id

+

Specifies the project ID. Obtain the project ID by following the instructions in Obtaining a Project ID.

+

No

+

e9993fc787d94b6c886cbaa340f9c0f4

+

X-Auth-Token

+

Specifies the user token.

+

It is a response to the API for obtaining a user token (This is the only API that does not require authentication).

+

After the request is processed, the value of X-Subject-Token in the response header is the token value.

+

No

+

This field is mandatory for token authentication.

+

The following is part of an example token:

+

MIIPAgYJKoZIhvcNAQcCo...ggg1BBIINPXsidG9rZ

+
+
+
+

In addition to supporting authentication using tokens, APIs support authentication using AK/SK, which uses SDKs to sign a request. During the signature, the Authorization (signature authentication) and X-Sdk-Date (time when a request is sent) headers are automatically added in the request.

+

For more details, see "Authentication Using AK/SK" in Authentication.

+
+

The API used to obtain a user token does not require authentication. Therefore, only the Content-Type field needs to be added to requests for calling the API. An example of such requests is as follows:

+
1
+2
POST https://{{endpoint}}/v3/auth/tokens
+Content-Type: application/json
+
+
+
+

(Optional) Request Body

This part is optional. The body of a request is often sent in a structured format (for example, JSON or XML) as specified in the Content-Type header field. The request body transfers content except the request header.

+

The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

+

In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname, $ADMIN_PASS (login password), and xxxxxxxxxxxxxxxxxx (project name) with the actual values. Obtain a project name from Regions and Endpoints.

+

The scope parameter specifies where a token takes effect. You can set scope to an account or a project under an account. In the following example, the token takes effect only for the resources in a specified project. For more information about this API, see Obtaining a User Token.

+
+
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
POST https://{{endpoint}}/v3/auth/tokens
+Content-Type: application/json
+
+{
+    "auth": {
+        "identity": {
+            "methods": [
+                "password"
+            ],
+            "password": {
+                "user": {
+                    "name": "username",
+                    "password": "$ADMIN_PASS",     //You are advised to store it in ciphertext in the configuration file or an environment variable and decrypt it when needed to ensure security.
+                    "domain": {
+                        "name": "domainname"
+                    }
+                }
+            }
+        },
+        "scope": {
+            "project": {
+                "name": "xxxxxxxxxxxxxxxxxx"
+            }
+        }
+    }
+}
+
+
+

If all data required for the API request is available, you can send the request to call the API through curl, Postman, or coding. In the response to the API used to obtain a user token, X-Subject-Token is the desired user token. This token can then be used to authenticate the calling of other APIs.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_02_0011.html b/docs/sfs/api-ref/sfs_02_0011.html new file mode 100644 index 00000000..a322468e --- /dev/null +++ b/docs/sfs/api-ref/sfs_02_0011.html @@ -0,0 +1,57 @@ + + +

Authentication

+
Requests for calling an API can be authenticated using either of the following methods: +
+

AK/SK Authentication

AK/SK authentication supports API requests with a body not larger than 12 MB. For API requests with a larger body, token authentication is recommended.

+
+

In AK/SK authentication, AK/SK is used to sign requests and the signature is then added to the requests for authentication.

+ +

In AK/SK authentication, you can use an AK/SK to sign requests based on the signature algorithm or using the signing SDK.

+

The signing SDK is only used for signing requests and is different from the SDKs provided by services.

+
+
+

Token Authentication

The validity period of a token is 24 hours. When using a token for authentication, cache it to prevent frequently calling the IAM API used to obtain a user token.

+
+

A token specifies temporary permissions in a computer system. During API authentication using a token, the token is added to requests to get permissions for calling the API. You can obtain a token by calling the Obtaining User Token API.

+

IMS is a project-level service. When you call the API, set auth.scope in the request body to project.

+

+
{
+    "auth": {
+        "identity": {
+            "methods": [
+                "password"
+            ],
+            "password": {
+                "user": {
+                    "name": "username",   // IAM user name
+                    "password": $ADMIN_PASS,  //IAM user password. You are advised to store it in ciphertext in the configuration file or an environment variable and decrypt it when needed to ensure security.
+                    "domain": {
+                        "name": "domainname"  // Name of the domain to which the IAM user belongs
+                    }
+                }
+            }
+        },
+        "scope": {
+            "project": {
+                "name": "xxxxxxxx"    // Project name
+            }
+        }
+    }
+}
+

After a token is obtained, the X-Auth-Token header field must be added to requests to specify the token when calling other APIs. For example, if the token is ABCDEFJ...., X-Auth-Token: ABCDEFJ.... can be added to a request as follows:

+
1
+2
+3
POST https://{{endpoint}}/v3/auth/projects
+Content-Type: application/json
+X-Auth-Token: ABCDEFJ....
+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_02_0012.html b/docs/sfs/api-ref/sfs_02_0012.html new file mode 100644 index 00000000..78e33480 --- /dev/null +++ b/docs/sfs/api-ref/sfs_02_0012.html @@ -0,0 +1,41 @@ + + +

Response

+

Status Code

After sending a request, you will receive a response, including a status code, response header, and response body.

+

A status code is a group of digits, ranging from 1xx to 5xx. It indicates the status of a request. For more information, see Status Codes.

+

For example, if status code 201 is returned for calling the API used to , the request is successful.

+
+

Response Header

Similar to a request, a response also has a header, for example, Content-Type.

+

Figure 1 shows the response header fields for the API used to . The X-Subject-Token header field is the desired user token. This token can then be used to authenticate the calling of other APIs.

+

For security purposes, you are advised to set the token in ciphertext in configuration files or environment variables and decrypt it when using it.

+
+
Figure 1 Header fields of the response to the request for obtaining a user token
+
+

(Optional) Response Body

The body of a response is often returned in a structured format (for example, JSON or XML) as specified in the Content-Type header field. The response body transfers content except the response header.

+
+

The following is part of the response body for the API used to .

+

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

+
1
+2
+3
+4
{
+    "error_msg": "The request message format is invalid.",
+    "error_code": "IMG.0001"
+}
+
+
+

In the response body, error_code is an error code, and error_msg provides information about the error.

+
+
+ +
+ + + \ No newline at end of file diff --git a/docs/sfs/api-ref/sfs_02_0016.html b/docs/sfs/api-ref/sfs_02_0016.html index f7764778..89635777 100644 --- a/docs/sfs/api-ref/sfs_02_0016.html +++ b/docs/sfs/api-ref/sfs_02_0016.html @@ -1,7 +1,8 @@

SFS Capacity-Oriented APIs

-
+

+
-