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 @@ + + +
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.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
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: +
|
+
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. + |
+
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 + |
+
None
+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" + } ] +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+File system tags added. + |
+
See Error Codes.
+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.
+POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
change_security_group + |
+Yes + |
+ChangeSecurityGroup object + |
+Object of change_security_group + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID of the SFS Turbo file system + |
+
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" + } +}+
Status code: 202
+ID of the SFS Turbo file system
+{ + "id" : "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8" +}+
Status Code + |
+Description + |
+
---|---|
202 + |
+ID of the SFS Turbo file system + |
+
See Error Codes.
+This API is used to change the name of an SFS Turbo file system.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
change_name + |
+Yes + |
+ShareName object + |
+SFS Turbo file system to be modified + |
+
None
+Changing the name of an SFS Turbo file system to sfs-turbo-test1
+{ + "change_name" : { + "name" : "sfs-turbo-test1" + } +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+Request successful + |
+
400 + |
+Invalid parameter + |
+
409 + |
+The file system name already exists. + |
+
500 + |
+Internal error + |
+
See Error Codes.
+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/perm-rules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
rules + |
+Yes + |
+Array of OnePermRuleRequestInfo objects + |
+Permission rule details. A maximum of five rules can be created at a time. + |
+
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. +
|
+
user_type + |
+No + |
+String + |
+File system access permission granted to the user of the object to be authorized. Supported values are: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
rules + |
+Array of OnePermRuleResponseInfo objects + |
+Permission rule details + |
+
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. +
|
+
user_type + |
+String + |
+File system access permission granted to the user of the authorized object. Supported values are: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
{ + "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" + } ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+Successful creation + |
+
400 + |
+Error response + |
+
500 + |
+Error response + |
+
See Error Codes.
+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.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
tag + |
+Yes + |
+ResourceTag object + |
+Description of the resource_tag field + |
+
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 + |
+
None
+Creating a file system tag, with tag value set to key1 and tag key value1
+{ + "tag" : { + "key" : "key1", + "value" : "value1" + } +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+Tag adding request delivered. + |
+
See Error Codes.
+This API is used to delete a permission rule.
+DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
rule_id + |
+Yes + |
+String + |
+Permission rule ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
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+
Status code: 500
+Error response
+{ + "errCode" : "SFS.TURBO.0005", + "errMsg" : "Internal server error" +}+
Status Code + |
+Description + |
+
---|---|
204 + |
+Successful deletion + |
+
400 + |
+Error response + |
+
500 + |
+Error response + |
+
See Error Codes.
+This API is used to delete a file system.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
None
+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+
None
+Status Code + |
+Description + |
+
---|---|
202 + |
+File system deletion request delivered. + |
+
See Error Codes.
+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.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
None
+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+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+File system tag deleted. + |
+
See Error Codes.
+Name has existed
The file system name already exists.
+File system name already exists.
Use valid parameters and try again.
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 @@ + + +This API is used to query the permission rules of a file system.
+GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
rules + |
+Array of OnePermRuleResponseInfo objects + |
+Permission rule information + |
+
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. +
|
+
user_type + |
+String + |
+File system access permission granted to the user of the authorized object. Supported values are: +
|
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
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+
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 Code + |
+Description + |
+
---|---|
200 + |
+Successful query + |
+
500 + |
+Error response + |
+
See Error Codes.
+This API is used to query the tags of all file systems of a tenant.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
tags + |
+Array of Tag objects + |
+Tag list + |
+
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 + |
+
Query tags of all file systems in the project whose ID is e1e45b08f3ea4480ab4655ef9c7160ba
+GET HTTPS://{endpoint}/v1/e1e45b08f3ea4480ab4655ef9c7160ba/sfs-turbo/tags+
Status code: 200
+Response body for querying a file system
+{ + "tags" : [ { + "key" : "key1", + "values" : [ "value1", "" ] + }, { + "key" : "key2", + "values" : [ "value1", "value2" ] + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Response body for querying a file system + |
+
See Error Codes.
+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.
+GET /v1/{project_id}/sfs-turbo/jobs/{job_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
job_id + |
+Yes + |
+String + |
+job ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
X-request-id + |
+String + |
+Request ID + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
status + |
+String + |
+Task status, which can be success, running, failed, or waiting +Enumeration values: +
|
+
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 + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+Response body parameters + |
+
400 + |
+Client error + |
+
404 + |
+Resource not found + |
+
500 + |
+Internal error + |
+
See Error Codes.
+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}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
rule_id + |
+Yes + |
+String + |
+Permission rule ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 200
+ +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. +
|
+
user_type + |
+String + |
+File system access permission granted to the user of the authorized object. Supported values are: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
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+
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 Code + |
+Description + |
+
---|---|
200 + |
+Successful query + |
+
400 + |
+Error response + |
+
500 + |
+Error response + |
+
See Error Codes.
+This API is used to query all tags of a specified file system.
+Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
Status code: 200
+ +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. +
This field is not returned for users without the op_service permission. + |
+
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 + |
+
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+
Status code: 200
+Response body for query all tags of a specified file system
+{ + "tags" : [ { + "key" : "key1", + "value" : "value1" + }, { + "key" : "key2", + "value" : "value1" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Response body for query all tags of a specified file system + |
+
See Error Codes.
+This API is used to modify a permission rule.
+PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
share_id + |
+Yes + |
+String + |
+File system ID + |
+
rule_id + |
+Yes + |
+String + |
+Permission rule ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+Account token + |
+
Content-Type + |
+Yes + |
+String + |
+MIME type + |
+
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. +
|
+
user_type + |
+No + |
+String + |
+File system access permission granted to the user of the object to be authorized. Supported values are: +
|
+
Status code: 200
+ +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. +
|
+
user_type + |
+String + |
+File system access permission granted to the user of the authorized object. Supported values are: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errCode + |
+String + |
+Error code +Minimum: 8 +Maximum: 36 + |
+
errMsg + |
+String + |
+Error description +Minimum: 2 +Maximum: 512 + |
+
{ + "rw_type" : "rw", + "user_type" : "no_root_squash" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+Successful creation + |
+
400 + |
+Error response + |
+
500 + |
+Error response + |
+
See Error Codes.
+This API is used to change the name of a file system.
-POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the file system ID. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Specifies the account token. - |
-
Content-Type - |
-Yes - |
-String - |
-Specifies the MIME type. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
change_name - |
-Yes - |
-ShareName object - |
-Specifies the SFS Turbo file system you want to change the name. - |
-
None
-{ - "change_name" : { - "name" : "sfs-turbo-test1" - } -}-
None
-Status Code - |
-Description - |
-
---|---|
204 - |
-Request successful. - |
-
400 - |
-Invalid parameters. - |
-
500 - |
-Internal error. - |
-
409 - |
-File system name already exists. - |
-
This API is used to query the permission rules of a file system.
-GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Project ID - |
-
share_id - |
-Yes - |
-String - |
-File system ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Account token - |
-
Content-Type - |
-Yes - |
-String - |
-MIME type - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
---|---|---|
rules - |
-Array of Table 4 objects - |
-Permission rule information - |
-
count - |
-int - |
-Total rules - |
-
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
- -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 - |
-
None
-Status code: 200
-{ - "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 Code - |
-Description - |
-
---|---|
200 - |
-Successful query - |
-
500 - |
-Error response - |
-
This API is used to delete a permission rule.
-DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Project ID - |
-
share_id - |
-Yes - |
-String - |
-File system ID - |
-
rule_id - |
-Yes - |
-String - |
-Permission rule ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Account token - |
-
Content-Type - |
-Yes - |
-String - |
-MIME type - |
-
Status code: 400
- -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
- -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 - |
-
None
-Status code: 500
-Error response
-{ - "errCode" : "SFS.TURBO.0005", - "errMsg" : "Internal server error" -}-
Status Code - |
-Description - |
-
---|---|
204 - |
-Successful deletion - |
-
400 - |
-Error response - |
-
500 - |
-Error response - |
-
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}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Project ID - |
-
share_id - |
-Yes - |
-String - |
-File system ID - |
-
rule_id - |
-Yes - |
-String - |
-Permission rule ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Account token - |
-
Content-Type - |
-Yes - |
-String - |
-MIME type - |
-
Status code: 200
- -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
- -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
- -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 - |
-
None
-{ - "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 Code - |
-Description - |
-
---|---|
200 - |
-Successful query - |
-
400 - |
-Error response - |
-
500 - |
-Error response - |
-
This API is used to modify a permission rule.
-PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Project ID - |
-
share_id - |
-Yes - |
-String - |
-File system ID - |
-
rule_id - |
-Yes - |
-String - |
-Permission rule ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Account token - |
-
Content-Type - |
-Yes - |
-String - |
-MIME type - |
-
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. - |
-
Status code: 200
- -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
- -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
- -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 - |
-
{ - "rw_type" : "rw", - "user_type" : "no_root_squash" -}-
{ - "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 Code - |
-Description - |
-
---|---|
200 - |
-Successful modification - |
-
400 - |
-Error response - |
-
500 - |
-Error response - |
-
This API is used to create a permission rule.
-POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Project ID - |
-
share_id - |
-Yes - |
-String - |
-File system ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Account token - |
-
Content-Type - |
-Yes - |
-String - |
-MIME type - |
-
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. - |
-
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 - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
---|---|---|
rules - |
-Array of Table 6 objects - |
-Permission rule details - |
-
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
- -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
- -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 - |
-
{ - "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" - } ] -}-
{ - "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 Code - |
-Description - |
-
---|---|
200 - |
-Successful creation - |
-
400 - |
-Error response - |
-
500 - |
-Error response - |
-
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.
+ +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 + |
+
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.
+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.
+ +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.
+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 + |
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.
+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 + |
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.
+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.
+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.... + |
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.
+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.
+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.
+{ +
String
(Supported by API versions from v2.31 to v2.42) Specifies the ID of a consistency group. This parameter is reserved, because consistency groups are not supported currently.
+(Supported by API versions from v2.31 to v2.42.) Specifies the ID of a consistency group. This parameter is reserved, because consistency groups are not supported currently.
project_id
@@ -233,14 +234,14 @@Boolean
(Supported by API versions from v2.11 to v2.42) Specifies whether any replication exists. This parameter is reserved, because replication is not supported currently.
+(Supported by API versions from v2.11 to v2.42.) Specifies whether any replication exists. This parameter is reserved, because replication is not supported currently.
replication_type
String
(Supported by API versions from v2.11 to v2.42) Specifies the replication type. This parameter is reserved, because replication is not supported currently.
+(Supported by API versions from v2.11 to v2.42.) Specifies the replication type. This parameter is reserved, because replication is not supported currently.
description
@@ -324,7 +325,7 @@Boolean
(Supported by API versions from v2.8 to v2.42). Specifies whether a file system can be publicly seen. If it is set to true, the file system can be seen publicly. If it is set to false, the file system can be seen privately. The default value is false.
+(Supported by API versions from v2.8 to v2.42.) Specifies whether a file system can be publicly seen. If it is set to true, the file system can be seen publicly. If it is set to false, the file system can be seen privately. The default value is false.
source_share_group_snapshot_member_id
diff --git a/docs/sfs/api-ref/sfs_02_0029.html b/docs/sfs/api-ref/sfs_02_0029.html index 85b0e5dc..4af20124 100644 --- a/docs/sfs/api-ref/sfs_02_0029.html +++ b/docs/sfs/api-ref/sfs_02_0029.html @@ -132,7 +132,7 @@POST /v2/{project_id}/shares/{share_id}/action?vpc_ip_base_acl=enable
-NFS file system:
+Adding a file system access rule (value of the rule parameter 0560a527-0e77-40a6-aa3b-110beecad368#127.0.0.1#1#all_squash,root_squash):
{ "allow_access": { "access_to": "0560a527-0e77-40a6-aa3b-110beecad368#127.0.0.1#1#all_squash,root_squash", @@ -227,14 +227,14 @@
String
Specifies the time when the access rule was created. This parameter exists only when the value of X-Openstack-Manila-Api-Version in the request header is greater than or equal to 2.33.
+Specifies the time when the access rule was created. This parameter exists only when the value of X-Openstack-Manila-Api-Version in the request header is greater than or equal to 2.33.
updated_at
String
Specifies the time when the access rule was updated. This parameter exists only when the value of X-Openstack-Manila-Api-Version in the request header is greater than or equal to 2.33.
+Specifies the time when the access rule was updated. This parameter exists only when the value of X-Openstack-Manila-Api-Version in the request header is greater than or equal to 2.33.
{ +
{ +
{ +
This API is used to create an SFS Turbo file system.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
share - |
-Yes - |
-Object - |
-Specifies the SFS Turbo file system information. For details about the parameters, see the description of the share field. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
name - |
-Yes - |
-String - |
-Specifies the name of the SFS Turbo file system. The value contains 4 to 64 characters and must start with a letter. This value can contain letters (case insensitive), digits, hyphens (-), and underscores (_), and cannot contain other special characters. - |
-
share_proto - |
-Yes - |
-String - |
-Specifies the protocol of the file system. 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 - |
-Specifies the file system type. The valid values are STANDARD and PERFORMANCE -STANDARD: Standard file system, corresponding to the media of SAS disks. -PERFORMANCE: Performance file system, corresponding to the media of SSD disks. - |
-
size - |
-Yes - |
-Int - |
-For a common file system, the value of capacity ranges from 500 to 32768 (in the unit of GB). -For an enhanced file system where the expand_type field is specified for metadata, the capacity ranges from 10240 to 327680. For details about metadata, see Description of the metadata field. - |
-
availability_zone - |
-Yes - |
-String - |
-Specifies the code of the AZ where the file system is located. For details about the code, see Regions and Endpoints. - |
-
vpc_id - |
-Yes - |
-String - |
-Specifies the VPC ID of a tenant in a region. You can obtain the VPC ID from the console or by following the instructions provided in "Querying VPCs" in Virtual Private Cloud API Reference. - |
-
subnet_id - |
-Yes - |
-String - |
-Specifies the network ID of the subnet of a tenant in a VPC. You can obtain the network ID from the VPC console or by following the instructions provided in "Querying Subnets" in Virtual Private Cloud API Reference. - |
-
security_group_id - |
-Yes - |
-String - |
-Specifies the 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 "Querying Security Groups" in Virtual Private Cloud API Reference. - |
-
backup_id - |
-No - |
-String - |
-Specifies the backup ID. This parameter is mandatory when you create a file system from a backup. This is not supported by the current version. - |
-
description - |
-No - |
-String - |
-Specifies the file system description. The length is 0-255 characters. This is not supported by the current version. - |
-
metadata - |
-No - |
-Object - |
-Specifies the metadata information used to create the file system. The value consists of one or more key and value pairs organized as a dictionary of strings. For details about the parameters, see the description of field metadata. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
expand_type - |
-No - |
-String - |
-Specifies the extension type. The current valid value is bandwidth, indicating that an enhanced file system is created. For details about the differences between different types of SFS Turbo file systems, see "Recommended Configurations". - |
-
crypt_key_id - |
-No - |
-String - |
-Specifies the ID of a KMS professional key when an encrypted file system is created. The key ID can be obtained from the console of Data Encryption Workshop (DEW) or by referring to section "Querying the Information About a CMK" in the Data Encryption Workshop API Reference. - |
-
{ - "share": { - "name": "sfs-turbo-test", - "share_proto": "NFS", - "share_type": "STANDARD", - "size": 100, - "availability_zone": "az1", - "vpc_id": "d651ea2b-2b20-4c6d-8bbf-2adcec18dac9", - "subnet_id": "b8884abe-f47b-4917-9f6c-f64825c365db", - "security_group_id": "8c4ebbd0-6edf-4aae-8353-81ce6d06e1f4", - "metadata": { - "crypt_key_id": "015bf4b8-73cc-4235-8595-46931de7dfd0" - } - } -}-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
id - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
name - |
-String - |
-Specifies the name of the SFS Turbo file system. - |
-
status - |
-String - |
-Specifies the status of the SFS Turbo file system. For details, see SFS Turbo File System Statuses. - |
-
{ - "id": "708c017c-54b5-429a-a098-7692e23fa518", - "name": "sfs-turbo-test", - "status": "100" -}-
This API is used to delete an SFS Turbo file system.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
This API is used to query details about all SFS Turbo file systems.
-GET /v1/{project_id}/sfs-turbo/shares/detail?limit={limit}&offset={offset}
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
limit - |
-No (query parameter) - |
-Int - |
-Specifies the number of returned file systems. -This parameter takes effect when both limit and offset are used. - |
-
offset - |
-No (query parameter) - |
-Int - |
-Specifies the offset of the number of queried file systems. -This parameter takes effect when both limit and offset are used. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
shares - |
-Array of objects - |
-Specifies the list of SFS Turbo file systems. For details, see the description of the share field. - |
-
count - |
-Int - |
-Specifies the number of SFS Turbo file systems. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
id - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
name - |
-String - |
-Specifies the name of the SFS Turbo file system. - |
-
status - |
-String - |
-Specifies the status of the SFS Turbo file system. For details, see SFS Turbo File System Statuses. - |
-
sub_status - |
-String - |
-Specifies the sub-status of the SFS Turbo file system. For details, see SFS Turbo File System Substatuses. - |
-
version - |
-String - |
-Specifies the version ID of the SFS Turbo file system. - |
-
created_at - |
-String - |
-Specifies the creation time. UTC time, for example: 2018-11-19T04:02:03 - |
-
export_location - |
-String - |
-Specifies the mount point of the SFS Turbo file system. - |
-
action_progress - |
-Object - |
-Specifies the creation progress of the SFS Turbo file system. For details, see Description of field action_progress. - |
-
share_type - |
-String - |
-Specifies the type of the SFS Turbo file system. The value can be STANDARD or PERFORMANCE. - |
-
region - |
-String - |
-Specifies the region of the SFS Turbo file system. - |
-
availability_zone - |
-String - |
-Specifies the code of the AZ where the SFS Turbo file system is located. - |
-
az_name - |
-String - |
-Specifies the name of the AZ where the SFS Turbo file system is located. - |
-
vpc_id - |
-String - |
-Specifies the VPC ID specified by the user. - |
-
subnet_id - |
-String - |
-Specifies the network ID of the subnet specified by the user. - |
-
security_group_id - |
-String - |
-Specifies the ID of a security group specified by the user. - |
-
crypt_key_id - |
-String - |
-Specifies the ID of the encryption key specified by the user. This parameter is not returned for non-encrypted disks. - |
-
size - |
-String - |
-Specifies the total capacity of the SFS Turbo file system in the unit of GB. - |
-
pay_model - |
-String - |
-Billing mode of the SFS Turbo file system. - |
-
avail_capacity - |
-String - |
-Specifies the available capacity of the SFS Turbo file system in the unit of GB. - |
-
share_proto - |
-String - |
-Specifies the protocol type of the SFS Turbo file system. The current value is NFS. - |
-
expand_type - |
-String - |
-For an enhanced file system, bandwidth is returned for this field. Otherwise, bandwidth is not returned. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
CREATING - |
-String - |
-Specifies the file system creation progress. - |
-
{ - "shares": [ - { - "id": "8fba8253-c914-439d-ae8b-d5c89d0bf5e8", - "name": "sfs-turbo-8468", - "status": "200", - "version": "1.0.0", - "region": "north-1", - "created_at": "2018-11-19T04:02:03", - "export_location": "192.168.0.90:/", - "action_progress": {}, - "share_type": "STANDARD", - "sub_status": "230", - "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", - "actions": [], - "region": "north-1", - "created_at": "2018-11-15T02:32:10", - "export_location": "192.168.0.197:/", - "action_progress": {}, - "share_type": "STANDARD", - "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" - } - ] - "count": 2 -}-
This API is used to query details about an SFS Turbo file system.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
id - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
name - |
-String - |
-Specifies the name of the SFS Turbo file system. - |
-
status - |
-String - |
-Specifies the status of the SFS Turbo file system. For details, see SFS Turbo File System Statuses. - |
-
sub_status - |
-String - |
-Specifies the sub-status of the SFS Turbo file system. For details, see SFS Turbo File System Substatuses. - |
-
version - |
-String - |
-Specifies the version ID of the SFS Turbo file system. - |
-
created_at - |
-String - |
-Specifies the creation time. UTC time, for example: 2018-11-19T04:02:03 - |
-
export_location - |
-String - |
-Specifies the mount point of the SFS Turbo file system. - |
-
action_progress - |
-Object - |
-Specifies the creation progress of the SFS Turbo file system. For details, see Description of field action_progress. - |
-
share_type - |
-String - |
-Specifies the type of the SFS Turbo file system. The value can be STANDARD or PERFORMANCE. - |
-
region - |
-String - |
-Specifies the region of the SFS Turbo file system. - |
-
availability_zone - |
-String - |
-Specifies the code of the AZ where the SFS Turbo file system is located. - |
-
az_name - |
-String - |
-Specifies the name of the AZ where the SFS Turbo file system is located. - |
-
vpc_id - |
-String - |
-Specifies the VPC ID specified by the user. - |
-
subnet_id - |
-String - |
-Specifies the network ID of the subnet specified by the user. - |
-
security_group_id - |
-String - |
-Specifies the ID of a security group specified by the user. - |
-
crypt_key_id - |
-String - |
-Specifies the ID of the encryption key specified by the user. This parameter is not returned for non-encrypted disks. - |
-
size - |
-String - |
-Specifies the total capacity of the SFS Turbo file system in the unit of GB. - |
-
avail_capacity - |
-String - |
-Specifies the available capacity of the SFS Turbo file system in the unit of GB. - |
-
pay_model - |
-String - |
-Billing mode of the SFS Turbo file system. - |
-
share_proto - |
-String - |
-Specifies the protocol type of the SFS Turbo file system. The current value is NFS. - |
-
expand_type - |
-String - |
-For an enhanced file system, bandwidth is returned for this field. Otherwise, bandwidth is not returned. - |
-
{ - "id": "8fba8253-c914-439d-ae8b-d5c89d0bf5e8", - "name": "sfs-turbo-8468", - "status": "200", - "version": "1.0.0", - "region": "north-1", - "created_at": "2018-11-19T04:02:03", - "export_location": "192.168.0.90:/", - "action_progress": {}, - "share_type": "STANDARD", - "sub_status": "330", - "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", - "avail_capacity": "500.00", - - "share_proto": "NFS" -}-
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 checking field sub_status returned by Querying Details About a Single File System. If the value of the sub-status is 221, the expansion is successful.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
extend - |
-Yes - |
-Object - |
-Specifies the extend object. For details, see the parameter in the extend field. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
new_size - |
-Yes - |
-Int - |
-Specifies the new capacity (GB) of the shared file system. The capacity expansion step is greater than or equal to 100 GB. -For a common file system, the value of capacity ranges from 500 to 32768. -For an enhanced file system, the value of capacity ranges from 10240 to 327680. - |
-
{ - "extend": { - "new_size": 500 - } -}-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
id - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
name - |
-String - |
-Specifies the name of the SFS Turbo file system. - |
-
{ - "id": "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8", - "name": "sfs-turbo-cts" -}- -
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 be unique.
-This API is idempotent. If the key to be added has already been added to the shared file system, the tag is updated.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the shared file system. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
tag - |
-Yes - |
-Object - |
-Specifies the tag. For details, see Description of field resource_tag. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
key - |
-Yes - |
-String - |
-Specifies the tag key. The value can contain a maximum of 36 characters. This parameter cannot be left empty. It cannot contain the following characters: ASCII (0-31), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), equal signs (=), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_). - |
-
value - |
-Yes - |
-String - |
-Specifies the tag value. The value contains a maximum of 43 characters and can be an empty string. It cannot contain ASCII (0-31) or the following characters: =*<>\,|/ It can contain only letters, digits, hyphens (-), and underscores (_). - |
-
{ - "tag":{ - "key":"key1", - "value":"value1" - } -}-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
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.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the shared file system. - |
-
key - |
-Yes - |
-String - |
-Specifies the tag key. The value can contain a maximum of 36 characters. This parameter cannot be left empty. It cannot contain the following characters: ASCII (0-31), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), equal signs (=), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_). - NOTE:
-When calling this API to delete a tag, if the tag key contains special characters that are not directly resolved by the URL, the key needs to be escaped. - |
-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
This API is used to query all tags of an SFS Turbo file system.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the shared file system. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
tags - |
-List<resource_tag> - |
-Specifies the tag list. For details, see Description of field resource_tag. - |
-
sys_tags - |
-List<resource_tag> - |
-Only the op_service permission can obtain this field. -
This field cannot be returned in non-op_service scenarios. -For details, see Description of field resource_tag. - |
-
{ - "tags": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "" - } - ] - }-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
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 must be unique.
-This API is idempotent. If the key to be added has already been added to the shared file system, the tag is updated.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the shared file system. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
action - |
-Yes - |
-String - |
-Specifies the operation identifier. Possible values are create and delete. Use create to batch add tags to a specified shared file system. - |
-
tags - |
-No - |
-list<resource_tag> - |
-Specifies the tag list. -This parameter is mandatory when the tenant permission is used. For the op_service permission, choose either this field or sys_tags. For details, see Description of field resource_tag. - |
-
sys_tags - |
-No - |
-List<resource_tag> - |
-Specifies the system tag list. -This field is available only to 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. -The value is ID or 0. Value 0 indicates the default enterprise project. -For details, see Description of field resource_tag. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
key - |
-Yes - |
-String - |
-Specifies the tag key. The value can contain a maximum of 36 characters. This parameter cannot be left empty. It cannot contain the following characters: ASCII (0-31), asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), equal signs (=), commas (,), vertical bars (|), and slashes (/). It can contain only letters, digits, hyphens (-), and underscores (_). - |
-
value - |
-Yes - |
-String - |
-Specifies the tag value. The value contains a maximum of 43 characters and can be an empty string. It cannot contain ASCII (0-31) or the following characters: =*<>\,|/ It can contain only letters, digits, hyphens (-), and underscores (_). - |
-
{ - "action": "create", - "tags": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - }-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
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.
+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 section.
By default, new IAM users do not have permissions assigned. You need to add a user to one or more groups, and attach permissions policies or roles to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.
You can grant users permissions by using roles and policies. Roles are a type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. Policies define API-based permissions for operations on specific resources under certain conditions, allowing for more fine-grained, secure access control of cloud resources.
An account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully. For example, if an IAM user wants to query ECSs using an API, the user must have been granted permissions that allow the ecs:servers:list action.
+Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully. For example, if an IAM user wants to query ECSs using an API, the user must have been granted permissions that allow the ecs:servers:list action.
SFS provides system-defined policies that can be directly used in IAM. You can also create custom policies and use them to supplement system-defined policies, implementing more refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:
-The check mark (√) and cross symbol (x) indicate that an action takes effect or does not take effect for the corresponding type of projects.
+The check mark (√) and cross symbol (x) indicate that an action takes effect or does not take effect for the corresponding type of projects.
SFS supports the following actions that can be defined in custom policies:
diff --git a/docs/sfs/api-ref/sfs_02_0083.html b/docs/sfs/api-ref/sfs_02_0083.html index 5d69b991..592c33f7 100644 --- a/docs/sfs/api-ref/sfs_02_0083.html +++ b/docs/sfs/api-ref/sfs_02_0083.html @@ -10,8 +10,8 @@Dependent Permission
IAM
-Project
+IAM Project
+(Project)
Action
IAM
-Project
+IAM Project
+(Project)
Dependent Permission
IAM
-Project
+IAM Project
+(Project)
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:
+ +You can obtain the project ID by calling the IAM API used to query project information based on the specified criteria.
+The API used to obtain a project ID is GET https://{Endpoint}/v3/projects. {Endpoint} is the IAM endpoint and can be obtained from Regions and Endpoints.
+The following is an example response. The value of id is the project ID.
+{ + "projects": [ + { + "domain_id": "65ewtrgaggshhk1223245sghjlse684b", + "is_domain": false, + "parent_id": "65ewtrgaggshhk1223245sghjlse684b", + "name": "project_name", + "description": "", + "links": { + "next": null, + "previous": null, + "self": "https://www.example.com/v3/projects/a4adasfjljaaaakla12334jklga9sasfg" + }, + "id": "a4adasfjljaaaakla12334jklga9sasfg", + "enabled": true + } + ], + "links": { + "next": null, + "previous": null, + "self": "https://www.example.com/v3/projects" + } +}+
On the My Credentials page, view project IDs in the project list.
+In multi-project scenarios, expand the region, and obtain your sub-project ID from the Project ID column.
+2023-08-09
+2024-08-02
+Updated the following content:
+2023-08-09
Updated the following content:
Modified the maximum number of tags that can be added to a file system in SFS Turbo tag APIs.
@@ -17,7 +23,7 @@2023-07-28
Updated the following content:
-Added section Permissions Management.
+Added permissions management APIs.
2023-02-20
diff --git a/docs/sfs/api-ref/sfs_02_0094.html b/docs/sfs/api-ref/sfs_02_0094.html deleted file mode 100644 index 09e9a75c..00000000 --- a/docs/sfs/api-ref/sfs_02_0094.html +++ /dev/null @@ -1,137 +0,0 @@ - - -This API is used to query the tags of all file systems of a tenant.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
tags - |
-Array of tags - |
-Specifies the tag list. -For details, see Description of field tag. - |
-
{ - "tags" : [ { - "key" : "key1", - "values" : [ "value1", "" ] - }, { - "key" : "key2", - "values" : [ "value1", "value2" ] - } ] -}-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
This API is used to query SFS Turbo file systems by tag.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID of the operator. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
offset - |
-No - |
-String - |
-Specifies the index location. The value is a character string consisting of 0 and positive integers. The default value is 0. The first record in the query result is the offset+1 record that meets the query criteria. - |
-
limit - |
-No - |
-String - |
-Specifies the maximum number of query records. The value is a character string consisting of integers. The default value is 1000. The value ranges from 1 to 1000. -The number of returned records cannot exceed the value of limit. - |
-
action - |
-Yes - |
-String - |
-Specifies the operation identifier. Possible values are filter and count. -Use filter to query details of a shared file system using tags. - |
-
matches - |
-No - |
-Array of matches - |
-Specifies the file system query field. If this parameter is left null, all shared file systems of the tenant are searched by default. - |
-
tags - |
-No - |
-Array of tags - |
-Specifies the tag search field, which is a list of tags. Only shared file systems that contain all the listed tags can be returned. Tags in this search criteria are in the AND relationship. Specifically, a shared file system can be searched only when it meets all the tag search criteria. In the key-values structure of each tag search condition, tag values are in the OR relationship. If the value of tags is not specified, all shared file systems meet the requirement of this tag search field. This field contains a maximum of 20 tag keys and each tag key has a maximum of 10 tag values. The tag value corresponding to each tag key can be an empty array but the structure cannot be missing. Tag keys must be unique. Tag values in a key-values structure must be unique. - |
-
tags_any - |
-No - |
-Array of tags - |
-Specifies the tag search field, which is a list of tags. Shared file systems that contain any listed tag will be returned. Tags in this search criteria are in the OR relationship. Specifically, a shared file system can be searched as long as it meets one tag search condition. In the key-values structure of each tag search condition, tag values are in the OR relationship. If the value of tags_any is not specified, all shared file systems meet the requirement of this tag search field. This field contains a maximum of 20 tag keys and each tag key has a maximum of 10 tag values. The tag value corresponding to each tag key can be an empty array but the structure cannot be missing. Tag keys must be unique. Tag values in a key-values structure must be unique. - |
-
not_tags - |
-No - |
-Array of tags - |
-Specifies the tag search field, which is a list of tags. Only shared file systems that contain none of the listed tags will be returned. Tags in this search criteria are in the NOR relationship. Specifically, a shared file system can be searched only when it does not meet any tag search criteria. In the key-values structure of each tag search condition, tag values are in the OR relationship. If the value of not_tags is not specified, all shared file systems meet the requirement of this tag search field. This field contains a maximum of 20 tag keys and each tag key has a maximum of 10 tag values. The tag value corresponding to each tag key can be an empty array but the structure cannot be missing. Tag keys must be unique. Tag values in a key-values structure must be unique. - |
-
not_tags_any - |
-No - |
-Array of tags - |
-Specifies the tag search field, which is a list of tags. Shared file systems that do not contain any of the listed tags will be returned. Tags in this search criteria are in the NAND relationship. Specifically, a shared file system can be searched as long as it does not meet one tag search condition. In the key-values structure of each tag search condition, tag values are in the OR relationship. If the value of not_tags_any is not specified, all shared file systems meet the requirement of this tag search field. This field contains a maximum of 20 tag keys and each tag key has a maximum of 10 tag values. The tag value corresponding to each tag key can be an empty array but the structure cannot be missing. Tag keys must be unique. Tag values in a key-values structure must be unique. - |
-
sys_tags - |
-No - |
-Array of tags - |
-Only the op_service permission can use this field to filter resources. -
|
-
In the request parameters, tag search fields tags, tags_any, not_tags, and not_tags_any are optional and can be combined with each other. Such tag search fields are in the AND relationship.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
key - |
-Yes - |
-String - |
-Specifies the key. The value is fixed to resource_name. - |
-
value - |
-Yes - |
-String - |
-Specifies the value. value indicates the name of a shared file system. An empty string specifies an exact match and only shared file systems whose names are empty can be queried. A non-empty string specifies a fuzzy query (case insensitive). The value can contain a maximum of 255 characters. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
key - |
-Yes - |
-String - |
-Specifies the key of the tag. A tag key can contain a maximum of 127 characters. This parameter cannot be left blank. - |
-
values - |
-Yes - |
-Array of strings - |
-Lists the values. Each value can contain a maximum of 255 characters. If the value is left empty, any value is matched. The values are in the OR relationship. - |
-
{ - "offset": "0", - "limit": "100", - "action": "filter", - "matches": [{ - "key": "resource_name", - "value": "share_name" - }], - "tags": [{ - "key": "key1", - "values": ["value2"] - }, { - "key": "key2", - "values": [] - }], - "tags_any": [{ - "key": "key3", - "values": ["value3"] - }, { - "key": "key4", - "values": [] - }], - "not_tags": [{ - "key": "key5", - "values": ["value5"] - }, { - "key": "key6", - "values": [] - }], - "not_tags_any": [{ - "key": "key7", - "values": ["value7", "value8"] - }, { - "key": "key9", - "values": [] - }] -}-
{ - "offset": "0", - "limit": "100", - "action": "filter", - "tags": [{ - "key": "key1", - "values": ["value2"] - }, { - "key": "key2", - "values": [] - }] -}-
{ - "action": "filter", - "matches": [{ - "key": "resource_name", - "value": "share_name" - }], - "tags": [{ - "key": "key1", - "values": ["value2"] - }, { - "key": "key2", - "values": [] - }] -}-
{ - "offset": "0", - "limit": "100", - "action": "filter", - "matches": [{ - "key": "resource_name", - "value": "share_name" - }] -}-
{ - "action": "filter" -}-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
resources - |
-Array of resources - |
-Specifies the list of shared file systems that meet the query criteria. - |
-
total_count - |
-Integer - |
-Specifies the total number of shared file systems that meet the query criteria. - NOTE:
-total_count specifies the total number of shared file systems that meet the query criteria, instead of the number returned after you set offset and limit. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
resource_id - |
-String - |
-Specifies the ID of the shared file system. - |
-
resource_detail - |
-Object - |
-Specifies the resource details. The value is a resource object, used for extension. This value is left empty by default. - |
-
tags - |
-Array of resource_tags - |
-Specifies the list of tags. If no tags exist, the value is an empty array by default. - |
-
sys_tags - |
-Array of tags - |
-Only the op_service permission can obtain this field. -
This field cannot be returned in non-op_service scenarios. - |
-
resource_name - |
-String - |
-Specifies the resource name. - |
-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
key - |
-String - |
-Specifies the tag key. The value can contain a maximum of 36 characters. This parameter cannot be left blank. It can only contain letters, digits, hyphens (-), and underscores (_). - |
-
value - |
-String - |
-Specifies the tag value. The value contains a maximum of 43 characters and can be an empty string. It can only contain letters, digits, hyphens (-), and underscores (_). - |
-
{ - "resources":[ - { - "resource_detail":{}, - "resource_id":"b1f3f06f-344d-446b-a4bf-647a225debae", - "resource_name":"share_name", - "tags":[ - { - "key":"key1", - "value": "value1" - }, - { - "key":"key2", - "value": "value2" - } - ] - } - ], - "total_count":1 -}-
Status Code - |
-Description - |
-
---|---|
400 Bad Request - |
-Invalid value. - |
-
401 Unauthorized - |
-Authentication failed. - |
-
403 Forbidden - |
-Access to the requested page is forbidden. - |
-
404 Not Found - |
-The requested resource was not found. - |
-
500 Internal Server Error - |
-The request is not completed because of a service error. - |
-
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 group status is changed based on the sub_status field returned in Querying Details About a Single File System. If the sub_status field is 232, the security group has been successfully modified.
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
project_id - |
-Yes - |
-String - |
-Specifies the project ID. For details about how to obtain the project ID, see API Usage Guidelines. - |
-
share_id - |
-Yes - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
---|---|---|---|
change_security_group - |
-Yes - |
-Object - |
-Specifies the change_security_group object. For details, see the change_security_group parameter description. - |
-
{ - "change_security_group": { - "security_group_id": "26f6b565-240e-43c3-8867-03f0bd975433" - } -}-
Parameter - |
-Type - |
-Description - |
-
---|---|---|
id - |
-String - |
-Specifies the ID of the SFS Turbo file system. - |
-
{ - "id": "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8" -}- -
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 information leakage.
++
+
+
+
+
+