diff --git a/docs/sfs/api-ref/ALL_META.TXT.json b/docs/sfs/api-ref/ALL_META.TXT.json index 42d41812a..399b01f45 100644 --- a/docs/sfs/api-ref/ALL_META.TXT.json +++ b/docs/sfs/api-ref/ALL_META.TXT.json @@ -853,7 +853,7 @@ "node_id":"createshare.xml", "product_code":"sfs", "code":"48", - "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 Turbo", + "des":"This API is used to create a file system.POST /v1/{project_id}/sfs-turbo/sharesStatus code: 202Previous-generation SFS Turbo file system type:POST HTTPS://{endpoint}/v1/{", "doc_type":"api", "kw":"Creating a File System,Lifecycle Management,API Reference", "search_title":"", @@ -893,7 +893,7 @@ "node_id":"deleteshare.xml", "product_code":"sfs", "code":"50", - "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", + "des":"This API is used to delete a file system.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}Status code: 202File system deletion request deliveredNoneDeleting the file sy", "doc_type":"api", "kw":"Deleting a File System,Lifecycle Management,API Reference", "search_title":"", @@ -913,9 +913,9 @@ "node_id":"listshares.xml", "product_code":"sfs", "code":"51", - "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", + "des":"This API is used to list file systems.GET /v1/{project_id}/sfs-turbo/shares/detailStatus code: 200Listing file systems in the project whose ID is e1e45b08f3ea4480ab4655ef", "doc_type":"api", - "kw":"Obtaining the File System List,Lifecycle Management,API Reference", + "kw":"Listing File Systems,Lifecycle Management,API Reference", "search_title":"", "metedata":[ { @@ -925,7 +925,7 @@ "prodname":"sfs" } ], - "title":"Obtaining the File System List", + "title":"Listing File Systems", "githuburl":"" }, { @@ -971,7 +971,7 @@ "node_id":"changesecuritygroup.xml", "product_code":"sfs", "code":"54", - "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 ", + "des":"This API is used to change the security group associated with an SFS Turbo file system. Changing the security group is an asynchronous task. You can call the API for quer", "doc_type":"api", "kw":"Changing the Security Group Associated with a File System,Connection Management,API Reference", "search_title":"", @@ -1009,9 +1009,9 @@ "node_id":"createsharedtag.xml", "product_code":"sfs", "code":"56", - "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 API", + "des":"This API is used to add a tag to a 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 idempo", "doc_type":"api", - "kw":"Adding a Tag for a File System,Tag Management,API Reference", + "kw":"Adding a Tag to a File System,Tag Management,API Reference", "search_title":"", "metedata":[ { @@ -1021,7 +1021,7 @@ "prodname":"sfs" } ], - "title":"Adding a Tag for a File System", + "title":"Adding a Tag to a File System", "githuburl":"" }, { @@ -1029,9 +1029,9 @@ "node_id":"showsharedtags.xml", "product_code":"sfs", "code":"57", - "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", + "des":"This API is used to query all tags of a file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsStatus code: 200Querying tags of the file system whose ID is 77ba6f4b-63", "doc_type":"api", - "kw":"Querying Tags of a File System,Tag Management,API Reference", + "kw":"Querying All Tags of a File System,Tag Management,API Reference", "search_title":"", "metedata":[ { @@ -1041,7 +1041,7 @@ "prodname":"sfs" } ], - "title":"Querying Tags of a File System", + "title":"Querying All Tags of a File System", "githuburl":"" }, { @@ -1049,9 +1049,9 @@ "node_id":"deletesharedtag.xml", "product_code":"sfs", "code":"58", - "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_", + "des":"This API is used to delete a tag from a file system. If the specified key is not found, error 404 will be returned.DELETE /v1/{project_id}/sfs-turbo/{share_id}/tags/{key}", "doc_type":"api", - "kw":"Deleting a Tag of a File System,Tag Management,API Reference", + "kw":"Deleting a Tag from a File System,Tag Management,API Reference", "search_title":"", "metedata":[ { @@ -1061,7 +1061,7 @@ "prodname":"sfs" } ], - "title":"Deleting a Tag of a File System", + "title":"Deleting a Tag from a File System", "githuburl":"" }, { @@ -1069,7 +1069,7 @@ "node_id":"batchaddsharedtags.xml", "product_code":"sfs", "code":"59", - "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.Th", + "des":"This API is used to batch add tags to a 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 i", "doc_type":"api", "kw":"Batch Adding Tags to a File System,Tag Management,API Reference", "search_title":"", @@ -1089,7 +1089,7 @@ "node_id":"listsharedtags.xml", "product_code":"sfs", "code":"60", - "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 ", + "des":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsStatus code: 200Querying tags of all file systems in the project who", "doc_type":"api", "kw":"Querying Tags of All File Systems of a Tenant,Tag Management,API Reference", "search_title":"", @@ -1104,11 +1104,31 @@ "title":"Querying Tags of All File Systems of a Tenant", "githuburl":"" }, + { + "uri":"ListSharesByTag.html", + "node_id":"listsharesbytag.xml", + "product_code":"sfs", + "code":"61", + "des":"This API is used to query file systems by tag.POST /v1/{project_id}/sfs-turbo/resource_instances/actionStatus code: 200Status code: 400Status code: 500Filtering file syst", + "doc_type":"api", + "kw":"Querying File Systems by Tag,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListSharesByTag", + "prodname":"sfs" + } + ], + "title":"Querying File Systems by Tag", + "githuburl":"" + }, { "uri":"topic_300000003.html", "node_id":"topic_300000003.xml", "product_code":"sfs", - "code":"61", + "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":"Name Management", @@ -1126,8 +1146,8 @@ "uri":"ChangeShareName.html", "node_id":"changesharename.xml", "product_code":"sfs", - "code":"62", - "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 ", + "code":"63", + "des":"This API is used to change the name of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 204Successful requestNoneChanging the name of an", "doc_type":"api", "kw":"Changing the Name of a File System,Name Management,API Reference", "search_title":"", @@ -1142,11 +1162,49 @@ "title":"Changing the Name of a File System", "githuburl":"" }, + { + "uri":"topic_300000004.html", + "node_id":"topic_300000004.xml", + "product_code":"sfs", + "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":"File System Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"File System Management", + "githuburl":"" + }, + { + "uri":"ShowClientIpInfo.html", + "node_id":"showclientipinfo.xml", + "product_code":"sfs", + "code":"65", + "des":"This API is used to obtain the IP addresses of the clients who have mounted the file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 200Status", + "doc_type":"api", + "kw":"Obtaining IP Addresses of the Clients Who Have Mounted the File System,File System Management,API Re", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowClientIpInfo", + "prodname":"sfs" + } + ], + "title":"Obtaining IP Addresses of the Clients Who Have Mounted the File System", + "githuburl":"" + }, { "uri":"topic_300000007.html", "node_id":"topic_300000007.xml", "product_code":"sfs", - "code":"63", + "code":"66", "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", @@ -1164,8 +1222,8 @@ "uri":"CreatePermRule.html", "node_id":"createpermrule.xml", "product_code":"sfs", - "code":"64", - "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", + "code":"67", + "des":"This API is used to create a permission rule.A maximum of 64 permission rules can be added for a file system.This API is only supported for NFS file systems.POST /v1/{pro", "doc_type":"api", "kw":"Creating a Permission Rule,Permissions Management,API Reference", "search_title":"", @@ -1184,8 +1242,8 @@ "uri":"ListPermRules.html", "node_id":"listpermrules.xml", "product_code":"sfs", - "code":"65", - "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", + "code":"68", + "des":"This API is used to query permission rules of a file system.A maximum of 64 permission rules can be added for a file system.This API is only supported for NFS file system", "doc_type":"api", "kw":"Querying Permission Rules of a File System,Permissions Management,API Reference", "search_title":"", @@ -1204,10 +1262,10 @@ "uri":"ShowPermRule.html", "node_id":"showpermrule.xml", "product_code":"sfs", - "code":"66", - "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:", + "code":"69", + "des":"This API is used to query a permission rule of a file system.This API is only supported for NFS file systems.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rule", "doc_type":"api", - "kw":"Querying a Permission Rule by ID,Permissions Management,API Reference", + "kw":"Querying a Permission Rule of a File System,Permissions Management,API Reference", "search_title":"", "metedata":[ { @@ -1217,15 +1275,15 @@ "prodname":"sfs" } ], - "title":"Querying a Permission Rule by ID", + "title":"Querying a Permission Rule of a File System", "githuburl":"" }, { "uri":"UpdatePermRule.html", "node_id":"updatepermrule.xml", "product_code":"sfs", - "code":"67", - "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", + "code":"70", + "des":"This API is used to modify a permission rule.This API is only supported for NFS file systems.PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Statu", "doc_type":"api", "kw":"Modifying a Permission Rule,Permissions Management,API Reference", "search_title":"", @@ -1244,10 +1302,10 @@ "uri":"DeletePermRule.html", "node_id":"deletepermrule.xml", "product_code":"sfs", - "code":"68", - "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", + "code":"71", + "des":"This API is used to delete a permission rule.This API is only supported for NFS file systems.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}St", "doc_type":"api", - "kw":"Deleting a Permissions Rule,Permissions Management,API Reference", + "kw":"Deleting a Permission Rule,Permissions Management,API Reference", "search_title":"", "metedata":[ { @@ -1257,14 +1315,14 @@ "prodname":"sfs" } ], - "title":"Deleting a Permissions Rule", + "title":"Deleting a Permission Rule", "githuburl":"" }, { "uri":"topic_300000008.html", "node_id":"topic_300000008.xml", "product_code":"sfs", - "code":"69", + "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":"Task Management", @@ -1282,10 +1340,10 @@ "uri":"ShowJobDetail.html", "node_id":"showjobdetail.xml", "product_code":"sfs", - "code":"70", - "des":"This API is used to query the execution status of an SFS Turbo asynchronous task.GET /v1/{project_id}/sfs-turbo/jobs/{job_id}Status code: 200Status code: 400Status code: ", + "code":"73", + "des":"This API is used to query the execution status of the SFS Turbo asynchronous API.GET /v1/{project_id}/sfs-turbo/jobs/{job_id}Status code: 200Status code: 400Status code: ", "doc_type":"api", - "kw":"Querying Details About a Task,Task Management,API Reference", + "kw":"Querying the Status of a Task,Task Management,API Reference", "search_title":"", "metedata":[ { @@ -1295,14 +1353,52 @@ "prodname":"sfs" } ], - "title":"Querying Details About a Task", + "title":"Querying the Status of a Task", + "githuburl":"" + }, + { + "uri":"topic_300000011.html", + "node_id":"topic_300000011.xml", + "product_code":"sfs", + "code":"74", + "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":"Tenant Quota Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Tenant Quota Management", + "githuburl":"" + }, + { + "uri":"ShowQuota.html", + "node_id":"showquota.xml", + "product_code":"sfs", + "code":"75", + "des":"Querying tenant quotasGET /v1/{project_id}/sfs-turbo/quotasStatus code: 200Status code: 400Status code: 500NoneStatus code: 200SuccessStatus code: 400Error responseStatus", + "doc_type":"api", + "kw":"Querying Tenant Quotas,Tenant Quota Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowQuota", + "prodname":"sfs" + } + ], + "title":"Querying Tenant Quotas", "githuburl":"" }, { "uri":"sfs_02_0110.html", "node_id":"sfs_02_0110.xml", "product_code":"sfs", - "code":"71", + "code":"76", "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":"General Purpose File System APIs (BETA)", @@ -1320,7 +1416,7 @@ "uri":"sfs_02_0111.html", "node_id":"sfs_02_0111.xml", "product_code":"sfs", - "code":"72", + "code":"77", "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", @@ -1338,7 +1434,7 @@ "uri":"sfs_02_0112.html", "node_id":"sfs_02_0112.xml", "product_code":"sfs", - "code":"73", + "code":"78", "des":"This API is used to create a file system with a specified name.A file system name must be unique in SFS. If a user repeatedly creates a file system with the same name as ", "doc_type":"api", "kw":"Creating a File System,File Systems,API Reference", @@ -1356,7 +1452,7 @@ "uri":"sfs_02_0113.html", "node_id":"sfs_02_0113.xml", "product_code":"sfs", - "code":"74", + "code":"79", "des":"This API is used to delete a file system.DELETE /This response uses common headers. For details, see Table 1.See General Purpose File System Error Codes.", "doc_type":"api", "kw":"Deleting a File System,File Systems,API Reference", @@ -1374,7 +1470,7 @@ "uri":"sfs_02_0114.html", "node_id":"sfs_02_0114.xml", "product_code":"sfs", - "code":"75", + "code":"80", "des":"This API is used to list file systems.GET /Status code: 200See General Purpose File System Error Codes.", "doc_type":"api", "kw":"Listing File Systems,File Systems,API Reference", @@ -1392,7 +1488,7 @@ "uri":"sfs_02_0115.html", "node_id":"sfs_02_0115.xml", "product_code":"sfs", - "code":"76", + "code":"81", "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", @@ -1410,7 +1506,7 @@ "uri":"sfs_02_0116.html", "node_id":"sfs_02_0116.xml", "product_code":"sfs", - "code":"77", + "code":"82", "des":"This API is used to configure a file system ACL.After the ACL is configured, the configuration takes about 30 second to take effect.PUT /This response uses common headers", "doc_type":"api", "kw":"Configuring a File System ACL,File System Access Rules,API Reference", @@ -1428,7 +1524,7 @@ "uri":"sfs_02_0117.html", "node_id":"sfs_02_0117.xml", "product_code":"sfs", - "code":"78", + "code":"83", "des":"This API is used to obtain the ACL information of a file system.GET /Status code: 200See General Purpose File System Error Codes.", "doc_type":"api", "kw":"Obtaining File System ACL Information,File System Access Rules,API Reference", @@ -1446,7 +1542,7 @@ "uri":"sfs_02_0118.html", "node_id":"sfs_02_0118.xml", "product_code":"sfs", - "code":"79", + "code":"84", "des":"This API is used to delete a file system ACL.DELETE /This response uses common headers. For details, see Table 1.See General Purpose File System Error Codes.", "doc_type":"api", "kw":"Deleting a File System ACL,File System Access Rules,API Reference", @@ -1460,11 +1556,137 @@ "title":"Deleting a File System ACL", "githuburl":"" }, + { + "uri":"sfs_03_0001.html", + "node_id":"sfs_03_0001.xml", + "product_code":"sfs", + "code":"85", + "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":"Tags", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Tags", + "githuburl":"" + }, + { + "uri":"sfs_03_0002.html", + "node_id":"sfs_03_0002.xml", + "product_code":"sfs", + "code":"86", + "des":"This API is used to batch add tags for a general purpose file system. You can add up to 20 tags to a resource.POST /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tag", + "doc_type":"api", + "kw":"Batch Adding Tags to a Resource,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Batch Adding Tags to a Resource", + "githuburl":"" + }, + { + "uri":"sfs_03_0003.html", + "node_id":"sfs_03_0003.xml", + "product_code":"sfs", + "code":"87", + "des":"This API is used to batch delete tags from a specified resource. System tags cannot be deleted. If any tag to be deleted is not found, a successful result is returned.POS", + "doc_type":"api", + "kw":"Batch Deleting Tags from a Resource,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Batch Deleting Tags from a Resource", + "githuburl":"" + }, + { + "uri":"sfs_03_0004.html", + "node_id":"sfs_03_0004.xml", + "product_code":"sfs", + "code":"88", + "des":"This API is used to query tags of a specified resource.GET /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionp", + "doc_type":"api", + "kw":"Querying Tags of a Resource,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Querying Tags of a Resource", + "githuburl":"" + }, + { + "uri":"sfs_03_0005.html", + "node_id":"sfs_03_0005.xml", + "product_code":"sfs", + "code":"89", + "des":"This API is used to list resources by tag. Resources are sorted by the time when they are created, in descending order.POST /v3/sfs/tms/{project_id}/file-systems/resource", + "doc_type":"api", + "kw":"Querying Resources by Tag,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Querying Resources by Tag", + "githuburl":"" + }, + { + "uri":"sfs_03_0006.html", + "node_id":"sfs_03_0006.xml", + "product_code":"sfs", + "code":"90", + "des":"This API is used to query the number of resources.POST /v3/sfs/tms/{project_id}/file-systems/resource-instances/countParameter descriptionParameterMandatoryTypeDescriptio", + "doc_type":"api", + "kw":"Querying the Number of Resources by Tag,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Querying the Number of Resources by Tag", + "githuburl":"" + }, + { + "uri":"sfs_03_0007.html", + "node_id":"sfs_03_0007.xml", + "product_code":"sfs", + "code":"91", + "des":"This API is used to query tags of all resources owned by a tenant in a specified project.GET /v3/sfs/tms/{project_id}/file-systems/tagsParameter descriptionParameterManda", + "doc_type":"api", + "kw":"Querying Tags in a Project,Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"sfs" + } + ], + "title":"Querying Tags in a Project", + "githuburl":"" + }, { "uri":"sfs_02_0079.html", "node_id":"sfs_02_0079.xml", "product_code":"sfs", - "code":"80", + "code":"92", "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", @@ -1482,7 +1704,7 @@ "uri":"sfs_02_0080.html", "node_id":"sfs_02_0080.xml", "product_code":"sfs", - "code":"81", + "code":"93", "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", @@ -1500,7 +1722,7 @@ "uri":"sfs_02_0081.html", "node_id":"sfs_02_0081.xml", "product_code":"sfs", - "code":"82", + "code":"94", "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", @@ -1518,7 +1740,7 @@ "uri":"sfs_02_0083.html", "node_id":"sfs_02_0083.xml", "product_code":"sfs", - "code":"83", + "code":"95", "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", @@ -1536,7 +1758,7 @@ "uri":"sfs_02_0084.html", "node_id":"sfs_02_0084.xml", "product_code":"sfs", - "code":"84", + "code":"96", "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", @@ -1554,7 +1776,7 @@ "uri":"sfs_02_0085.html", "node_id":"sfs_02_0085.xml", "product_code":"sfs", - "code":"85", + "code":"97", "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", @@ -1572,7 +1794,7 @@ "uri":"sfs_02_0086.html", "node_id":"sfs_02_0086.xml", "product_code":"sfs", - "code":"86", + "code":"98", "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", @@ -1590,7 +1812,7 @@ "uri":"sfs_02_0088.html", "node_id":"sfs_02_0088.xml", "product_code":"sfs", - "code":"87", + "code":"99", "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", @@ -1608,7 +1830,7 @@ "uri":"sfs_02_0089.html", "node_id":"sfs_02_0089.xml", "product_code":"sfs", - "code":"88", + "code":"100", "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", @@ -1626,7 +1848,7 @@ "uri":"ErrorCode.html", "node_id":"errorcode.xml", "product_code":"sfs", - "code":"89", + "code":"101", "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", @@ -1644,7 +1866,7 @@ "uri":"sfs_02_0119.html", "node_id":"sfs_02_0119.xml", "product_code":"sfs", - "code":"90", + "code":"102", "des":"If an API calling fails, no result data is returned. You can locate the cause of the error according to the error code of each API. If an API calling fails, HTTP status c", "doc_type":"api", "kw":"General Purpose File System Error Codes,Appendix,API Reference", @@ -1662,7 +1884,7 @@ "uri":"sfs_02_0120.html", "node_id":"sfs_02_0120.xml", "product_code":"sfs", - "code":"91", + "code":"103", "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", @@ -1680,7 +1902,7 @@ "uri":"sfs_02_0090.html", "node_id":"sfs_02_0090.xml", "product_code":"sfs", - "code":"92", + "code":"104", "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", @@ -1698,7 +1920,7 @@ "uri":"sfs_02_0092.html", "node_id":"sfs_02_0092.xml", "product_code":"sfs", - "code":"93", + "code":"105", "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", diff --git a/docs/sfs/api-ref/BatchAddSharedTags.html b/docs/sfs/api-ref/BatchAddSharedTags.html index 357322fac..0e4aa0afd 100644 --- a/docs/sfs/api-ref/BatchAddSharedTags.html +++ b/docs/sfs/api-ref/BatchAddSharedTags.html @@ -1,7 +1,7 @@

Batch Adding Tags to a File System

-

Function

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

+

Function

This API is used to batch add tags to a 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.

@@ -24,7 +24,7 @@

String

-

Project ID

+

The project ID.

share_id

@@ -33,7 +33,7 @@

String

-

File system ID

+

The file system ID.

@@ -57,7 +57,7 @@

String

-

Account token

+

The account token.

Content-Type

@@ -66,7 +66,7 @@

String

-

MIME type

+

The MIME type.

@@ -89,27 +89,19 @@

String

-

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

+

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

+

Enumeration values:

+
  • create

    +

tags

-

No

+

Yes

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.

+

The list of tags.

@@ -132,7 +124,7 @@

String

-

Tag key.

+

The 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 (_).

@@ -143,7 +135,7 @@

String

-

Tag value.

+

The 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 (_).

@@ -152,9 +144,11 @@
-

Response Parameters

None

+

Response Parameters

Status code: 204

+

Batch adding tags succeeded

+

None

-

Example Requests

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

+

Example Requests

Batch adding tags to 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" : [ {
@@ -177,7 +171,7 @@
 
 

204

-

File system tags added.

+

Batch adding tags succeeded

diff --git a/docs/sfs/api-ref/CLASS.TXT.json b/docs/sfs/api-ref/CLASS.TXT.json index 8319f43f4..a6bf4fecc 100644 --- a/docs/sfs/api-ref/CLASS.TXT.json +++ b/docs/sfs/api-ref/CLASS.TXT.json @@ -423,7 +423,7 @@ "code":"47" }, { - "desc":"This API is used to create a file system.POST /v1/{project_id}/sfs-turbo/sharesStatus code: 202Previous-generation SFS Turbo file system:This example creates an SFS Turbo", + "desc":"This API is used to create a file system.POST /v1/{project_id}/sfs-turbo/sharesStatus code: 202Previous-generation SFS Turbo file system type:POST HTTPS://{endpoint}/v1/{", "product_code":"sfs", "title":"Creating a File System", "uri":"CreateShare.html", @@ -441,7 +441,7 @@ "code":"49" }, { - "desc":"This API is used to delete a file system.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}NoneDeleting the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4ddeN", + "desc":"This API is used to delete a file system.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}Status code: 202File system deletion request deliveredNoneDeleting the file sy", "product_code":"sfs", "title":"Deleting a File System", "uri":"DeleteShare.html", @@ -450,9 +450,9 @@ "code":"50" }, { - "desc":"This API is used to obtain the file system list.GET /v1/{project_id}/sfs-turbo/shares/detailStatus code: 200Querying file systems in the project whose ID e1e45b08f3ea4480", + "desc":"This API is used to list file systems.GET /v1/{project_id}/sfs-turbo/shares/detailStatus code: 200Listing file systems in the project whose ID is e1e45b08f3ea4480ab4655ef", "product_code":"sfs", - "title":"Obtaining the File System List", + "title":"Listing File Systems", "uri":"ListShares.html", "doc_type":"api", "p_code":"47", @@ -477,7 +477,7 @@ "code":"53" }, { - "desc":"This API is used to change the security group associated with an SFS Turbo file system. Security group change is an asynchronous task. You can check whether the security ", + "desc":"This API is used to change the security group associated with an SFS Turbo file system. Changing the security group is an asynchronous task. You can call the API for quer", "product_code":"sfs", "title":"Changing the Security Group Associated with a File System", "uri":"ChangeSecurityGroup.html", @@ -495,34 +495,34 @@ "code":"55" }, { - "desc":"This API is used to add a tag to a specified file system.A maximum of 20 tags can be added to a file system.Tag keys added to the same file system must be unique.This API", + "desc":"This API is used to add a tag to a 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 idempo", "product_code":"sfs", - "title":"Adding a Tag for a File System", + "title":"Adding a Tag to a File System", "uri":"CreateSharedTag.html", "doc_type":"api", "p_code":"55", "code":"56" }, { - "desc":"This API is used to query all tags of a specified file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsStatus code: 200Querying tags of the file system whose ID is 7", + "desc":"This API is used to query all tags of a file system.GET /v1/{project_id}/sfs-turbo/{share_id}/tagsStatus code: 200Querying tags of the file system whose ID is 77ba6f4b-63", "product_code":"sfs", - "title":"Querying Tags of a File System", + "title":"Querying All Tags of a File System", "uri":"ShowSharedTags.html", "doc_type":"api", "p_code":"55", "code":"57" }, { - "desc":"This API is used to delete a tag of a specified file system. If the key to be deleted does not exist, error 404 will be returned.DELETE /v1/{project_id}/sfs-turbo/{share_", + "desc":"This API is used to delete a tag from a file system. If the specified key is not found, error 404 will be returned.DELETE /v1/{project_id}/sfs-turbo/{share_id}/tags/{key}", "product_code":"sfs", - "title":"Deleting a Tag of a File System", + "title":"Deleting a Tag from a File System", "uri":"DeleteSharedTag.html", "doc_type":"api", "p_code":"55", "code":"58" }, { - "desc":"This API is used to batch add tags for a specified file system.A maximum of 20 tags can be added to a file system.Tag keys added to the same file system must be unique.Th", + "desc":"This API is used to batch add tags to a 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 i", "product_code":"sfs", "title":"Batch Adding Tags to a File System", "uri":"BatchAddSharedTags.html", @@ -531,7 +531,7 @@ "code":"59" }, { - "desc":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsStatus code: 200Query tags of all file systems in the project whose ", + "desc":"This API is used to query the tags of all file systems of a tenant.GET /v1/{project_id}/sfs-turbo/tagsStatus code: 200Querying tags of all file systems in the project who", "product_code":"sfs", "title":"Querying Tags of All File Systems of a Tenant", "uri":"ListSharedTags.html", @@ -539,6 +539,15 @@ "p_code":"55", "code":"60" }, + { + "desc":"This API is used to query file systems by tag.POST /v1/{project_id}/sfs-turbo/resource_instances/actionStatus code: 200Status code: 400Status code: 500Filtering file syst", + "product_code":"sfs", + "title":"Querying File Systems by Tag", + "uri":"ListSharesByTag.html", + "doc_type":"api", + "p_code":"55", + "code":"61" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"sfs", @@ -546,16 +555,34 @@ "uri":"topic_300000003.html", "doc_type":"api", "p_code":"46", - "code":"61" + "code":"62" }, { - "desc":"This API is used to change the name of an SFS Turbo file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionNoneChanging the name of an SFS Turbo file system ", + "desc":"This API is used to change the name of a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 204Successful requestNoneChanging the name of an", "product_code":"sfs", "title":"Changing the Name of a File System", "uri":"ChangeShareName.html", "doc_type":"api", - "p_code":"61", - "code":"62" + "p_code":"62", + "code":"63" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"File System Management", + "uri":"topic_300000004.html", + "doc_type":"api", + "p_code":"46", + "code":"64" + }, + { + "desc":"This API is used to obtain the IP addresses of the clients who have mounted the file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/actionStatus code: 200Status", + "product_code":"sfs", + "title":"Obtaining IP Addresses of the Clients Who Have Mounted the File System", + "uri":"ShowClientIpInfo.html", + "doc_type":"api", + "p_code":"64", + "code":"65" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -564,52 +591,52 @@ "uri":"topic_300000007.html", "doc_type":"api", "p_code":"46", - "code":"63" + "code":"66" }, { - "desc":"This API is used to create a permission rule.A maximum of 64 permissions rules can be configured for a file system.POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/pe", + "desc":"This API is used to create a permission rule.A maximum of 64 permission rules can be added for a file system.This API is only supported for NFS file systems.POST /v1/{pro", "product_code":"sfs", "title":"Creating a Permission Rule", "uri":"CreatePermRule.html", "doc_type":"api", - "p_code":"63", - "code":"64" + "p_code":"66", + "code":"67" }, { - "desc":"This API is used to query the permission rules of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rulesStatus code: 200Status code: 500Querying the", + "desc":"This API is used to query permission rules of a file system.A maximum of 64 permission rules can be added for a file system.This API is only supported for NFS file system", "product_code":"sfs", "title":"Querying Permission Rules of a File System", "uri":"ListPermRules.html", "doc_type":"api", - "p_code":"63", - "code":"65" + "p_code":"66", + "code":"68" }, { - "desc":"This API is used to query a specific permission rule of a file system.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code:", + "desc":"This API is used to query a permission rule of a file system.This API is only supported for NFS file systems.GET /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rule", "product_code":"sfs", - "title":"Querying a Permission Rule by ID", + "title":"Querying a Permission Rule of a File System", "uri":"ShowPermRule.html", "doc_type":"api", - "p_code":"63", - "code":"66" + "p_code":"66", + "code":"69" }, { - "desc":"This API is used to modify a permission rule.PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 200Status code: 400Status code: 500Statu", + "desc":"This API is used to modify a permission rule.This API is only supported for NFS file systems.PUT /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Statu", "product_code":"sfs", "title":"Modifying a Permission Rule", "uri":"UpdatePermRule.html", "doc_type":"api", - "p_code":"63", - "code":"67" + "p_code":"66", + "code":"70" }, { - "desc":"This API is used to delete a permission rule.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}Status code: 400Status code: 500Deleting the permi", + "desc":"This API is used to delete a permission rule.This API is only supported for NFS file systems.DELETE /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}St", "product_code":"sfs", - "title":"Deleting a Permissions Rule", + "title":"Deleting a Permission Rule", "uri":"DeletePermRule.html", "doc_type":"api", - "p_code":"63", - "code":"68" + "p_code":"66", + "code":"71" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -618,16 +645,34 @@ "uri":"topic_300000008.html", "doc_type":"api", "p_code":"46", - "code":"69" + "code":"72" }, { - "desc":"This API is used to query the execution status of an SFS Turbo asynchronous task.GET /v1/{project_id}/sfs-turbo/jobs/{job_id}Status code: 200Status code: 400Status code: ", + "desc":"This API is used to query the execution status of the SFS Turbo asynchronous API.GET /v1/{project_id}/sfs-turbo/jobs/{job_id}Status code: 200Status code: 400Status code: ", "product_code":"sfs", - "title":"Querying Details About a Task", + "title":"Querying the Status of a Task", "uri":"ShowJobDetail.html", "doc_type":"api", - "p_code":"69", - "code":"70" + "p_code":"72", + "code":"73" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"Tenant Quota Management", + "uri":"topic_300000011.html", + "doc_type":"api", + "p_code":"46", + "code":"74" + }, + { + "desc":"Querying tenant quotasGET /v1/{project_id}/sfs-turbo/quotasStatus code: 200Status code: 400Status code: 500NoneStatus code: 200SuccessStatus code: 400Error responseStatus", + "product_code":"sfs", + "title":"Querying Tenant Quotas", + "uri":"ShowQuota.html", + "doc_type":"api", + "p_code":"74", + "code":"75" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -636,7 +681,7 @@ "uri":"sfs_02_0110.html", "doc_type":"api", "p_code":"", - "code":"71" + "code":"76" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -644,8 +689,8 @@ "title":"File Systems", "uri":"sfs_02_0111.html", "doc_type":"api", - "p_code":"71", - "code":"72" + "p_code":"76", + "code":"77" }, { "desc":"This API is used to create a file system with a specified name.A file system name must be unique in SFS. If a user repeatedly creates a file system with the same name as ", @@ -653,8 +698,8 @@ "title":"Creating a File System", "uri":"sfs_02_0112.html", "doc_type":"api", - "p_code":"72", - "code":"73" + "p_code":"77", + "code":"78" }, { "desc":"This API is used to delete a file system.DELETE /This response uses common headers. For details, see Table 1.See General Purpose File System Error Codes.", @@ -662,8 +707,8 @@ "title":"Deleting a File System", "uri":"sfs_02_0113.html", "doc_type":"api", - "p_code":"72", - "code":"74" + "p_code":"77", + "code":"79" }, { "desc":"This API is used to list file systems.GET /Status code: 200See General Purpose File System Error Codes.", @@ -671,8 +716,8 @@ "title":"Listing File Systems", "uri":"sfs_02_0114.html", "doc_type":"api", - "p_code":"72", - "code":"75" + "p_code":"77", + "code":"80" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -680,8 +725,8 @@ "title":"File System Access Rules", "uri":"sfs_02_0115.html", "doc_type":"api", - "p_code":"71", - "code":"76" + "p_code":"76", + "code":"81" }, { "desc":"This API is used to configure a file system ACL.After the ACL is configured, the configuration takes about 30 second to take effect.PUT /This response uses common headers", @@ -689,8 +734,8 @@ "title":"Configuring a File System ACL", "uri":"sfs_02_0116.html", "doc_type":"api", - "p_code":"76", - "code":"77" + "p_code":"81", + "code":"82" }, { "desc":"This API is used to obtain the ACL information of a file system.GET /Status code: 200See General Purpose File System Error Codes.", @@ -698,8 +743,8 @@ "title":"Obtaining File System ACL Information", "uri":"sfs_02_0117.html", "doc_type":"api", - "p_code":"76", - "code":"78" + "p_code":"81", + "code":"83" }, { "desc":"This API is used to delete a file system ACL.DELETE /This response uses common headers. For details, see Table 1.See General Purpose File System Error Codes.", @@ -707,8 +752,71 @@ "title":"Deleting a File System ACL", "uri":"sfs_02_0118.html", "doc_type":"api", + "p_code":"81", + "code":"84" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"sfs", + "title":"Tags", + "uri":"sfs_03_0001.html", + "doc_type":"api", "p_code":"76", - "code":"79" + "code":"85" + }, + { + "desc":"This API is used to batch add tags for a general purpose file system. You can add up to 20 tags to a resource.POST /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tag", + "product_code":"sfs", + "title":"Batch Adding Tags to a Resource", + "uri":"sfs_03_0002.html", + "doc_type":"api", + "p_code":"85", + "code":"86" + }, + { + "desc":"This API is used to batch delete tags from a specified resource. System tags cannot be deleted. If any tag to be deleted is not found, a successful result is returned.POS", + "product_code":"sfs", + "title":"Batch Deleting Tags from a Resource", + "uri":"sfs_03_0003.html", + "doc_type":"api", + "p_code":"85", + "code":"87" + }, + { + "desc":"This API is used to query tags of a specified resource.GET /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tagsParameter descriptionParameterMandatoryTypeDescriptionp", + "product_code":"sfs", + "title":"Querying Tags of a Resource", + "uri":"sfs_03_0004.html", + "doc_type":"api", + "p_code":"85", + "code":"88" + }, + { + "desc":"This API is used to list resources by tag. Resources are sorted by the time when they are created, in descending order.POST /v3/sfs/tms/{project_id}/file-systems/resource", + "product_code":"sfs", + "title":"Querying Resources by Tag", + "uri":"sfs_03_0005.html", + "doc_type":"api", + "p_code":"85", + "code":"89" + }, + { + "desc":"This API is used to query the number of resources.POST /v3/sfs/tms/{project_id}/file-systems/resource-instances/countParameter descriptionParameterMandatoryTypeDescriptio", + "product_code":"sfs", + "title":"Querying the Number of Resources by Tag", + "uri":"sfs_03_0006.html", + "doc_type":"api", + "p_code":"85", + "code":"90" + }, + { + "desc":"This API is used to query tags of all resources owned by a tenant in a specified project.GET /v3/sfs/tms/{project_id}/file-systems/tagsParameter descriptionParameterManda", + "product_code":"sfs", + "title":"Querying Tags in a Project", + "uri":"sfs_03_0007.html", + "doc_type":"api", + "p_code":"85", + "code":"91" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -717,7 +825,7 @@ "uri":"sfs_02_0079.html", "doc_type":"api", "p_code":"", - "code":"80" + "code":"92" }, { "desc":"This section describes fine-grained permissions management for your SFS resources. If your cloud account does not need individual IAM users, then you may skip over this s", @@ -725,8 +833,8 @@ "title":"Introduction", "uri":"sfs_02_0080.html", "doc_type":"api", - "p_code":"80", - "code":"81" + "p_code":"92", + "code":"93" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -734,8 +842,8 @@ "title":"Supported Actions", "uri":"sfs_02_0081.html", "doc_type":"api", - "p_code":"80", - "code":"82" + "p_code":"92", + "code":"94" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -743,8 +851,8 @@ "title":"SFS Turbo Actions", "uri":"sfs_02_0083.html", "doc_type":"api", - "p_code":"82", - "code":"83" + "p_code":"94", + "code":"95" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -753,7 +861,7 @@ "uri":"sfs_02_0084.html", "doc_type":"api", "p_code":"", - "code":"84" + "code":"96" }, { "desc":"SFS Turbo file system status elementsReturned ValueDescription100CREATING: The file system is being created.200ACTIVE: The file system is active. An SFS Turbo file system", @@ -761,8 +869,8 @@ "title":"SFS Turbo File System Statuses", "uri":"sfs_02_0085.html", "doc_type":"api", - "p_code":"84", - "code":"85" + "p_code":"96", + "code":"97" }, { "desc":"SFS Turbo file system substatus elementsReturned ValueDescription121Expanding the capacity online.221Online capacity expansion succeeded.321Failed to perform online capac", @@ -770,8 +878,8 @@ "title":"SFS Turbo File System Substatuses", "uri":"sfs_02_0086.html", "doc_type":"api", - "p_code":"84", - "code":"86" + "p_code":"96", + "code":"98" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -780,7 +888,7 @@ "uri":"sfs_02_0088.html", "doc_type":"api", "p_code":"", - "code":"87" + "code":"99" }, { "desc":"NormalReturned ValueDescription200 OKSpecifies the normal response for the GET and PUT operations.201 CreatedSpecifies the normal response for the POST operation.202 Acce", @@ -788,8 +896,8 @@ "title":"Status Codes", "uri":"sfs_02_0089.html", "doc_type":"api", - "p_code":"87", - "code":"88" + "p_code":"99", + "code":"100" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -797,8 +905,8 @@ "title":"SFS Turbo Error Codes", "uri":"ErrorCode.html", "doc_type":"api", - "p_code":"87", - "code":"89" + "p_code":"99", + "code":"101" }, { "desc":"If an API calling fails, no result data is returned. You can locate the cause of the error according to the error code of each API. If an API calling fails, HTTP status c", @@ -806,8 +914,8 @@ "title":"General Purpose File System Error Codes", "uri":"sfs_02_0119.html", "doc_type":"api", - "p_code":"87", - "code":"90" + "p_code":"99", + "code":"102" }, { "desc":"When calling an API, you need to use the AK/SK to verify the signature. To obtain the AK/SK, perform the following steps:Keep the AK/SK file properly to prevent informati", @@ -815,8 +923,8 @@ "title":"Obtaining Access Keys (AK/SK)", "uri":"sfs_02_0120.html", "doc_type":"api", - "p_code":"87", - "code":"91" + "p_code":"99", + "code":"103" }, { "desc":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Obtain the Project ID by Ca", @@ -824,8 +932,8 @@ "title":"Obtaining a Project ID", "uri":"sfs_02_0090.html", "doc_type":"api", - "p_code":"87", - "code":"92" + "p_code":"99", + "code":"104" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -834,6 +942,6 @@ "uri":"sfs_02_0092.html", "doc_type":"api", "p_code":"", - "code":"93" + "code":"105" } ] \ No newline at end of file diff --git a/docs/sfs/api-ref/ChangeSecurityGroup.html b/docs/sfs/api-ref/ChangeSecurityGroup.html index 13d07ec6c..e14213ccc 100644 --- a/docs/sfs/api-ref/ChangeSecurityGroup.html +++ b/docs/sfs/api-ref/ChangeSecurityGroup.html @@ -1,7 +1,7 @@

Changing the Security Group Associated with a File System

-

Function

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

+

Function

This API is used to change the security group associated with an SFS Turbo file system. Changing the security group is an asynchronous task. You can call the API for querying details of a file system and view the value of sub_status returned to check whether the security group change is successful. If value 232 is returned, the security group has been changed.

URI

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

@@ -21,7 +21,7 @@

String

-

Project ID

+

The project ID.

share_id

@@ -30,7 +30,7 @@

String

-

File system ID

+

The file system ID.

@@ -54,7 +54,7 @@

String

-

Account token

+

The account token.

Content-Type

@@ -63,7 +63,7 @@

String

-

MIME type

+

The MIME type.

@@ -86,7 +86,7 @@

ChangeSecurityGroup object

-

Object of change_security_group

+

The change_security_group object.

@@ -109,7 +109,7 @@

String

-

ID of the security group to be changed

+

The ID of the new security group.

@@ -130,14 +130,14 @@

String

-

ID of the SFS Turbo file system

+

The SFS Turbo file system ID.

-

Example Requests

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

+

Example Requests

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

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

Example Responses

Status code: 202

-

ID of the SFS Turbo file system

+

The SFS Turbo file system ID.

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

202

-

ID of the SFS Turbo file system

+

The SFS Turbo file system ID.

diff --git a/docs/sfs/api-ref/ChangeShareName.html b/docs/sfs/api-ref/ChangeShareName.html index 4a8d10d71..cac7f3dc7 100644 --- a/docs/sfs/api-ref/ChangeShareName.html +++ b/docs/sfs/api-ref/ChangeShareName.html @@ -1,7 +1,7 @@

Changing the Name of a File System

-

Function

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

+

Function

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

URI

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

@@ -21,7 +21,7 @@

String

-

Project ID

+

The project ID.

share_id

@@ -30,7 +30,7 @@

String

-

File system ID

+

The file system ID.

@@ -54,7 +54,7 @@

String

-

Account token

+

The account token.

Content-Type

@@ -63,7 +63,7 @@

String

-

MIME type

+

The MIME type.

@@ -86,7 +86,7 @@

ShareName object

-

SFS Turbo file system to be modified

+

The file system to be modified.

@@ -109,14 +109,16 @@

String

-

Name of the SFS Turbo file system to be modified

+

The name of the file system to be modified.

-

Response Parameters

None

+

Response Parameters

Status code: 204

+

Successful request

+

None

Example Requests

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

{
@@ -136,17 +138,17 @@
 
 

204

-

Request successful

+

Successful request

400

-

Invalid parameter

+

Incorrect parameter

409

-

The file system name already exists.

+

File system name already exists

500

diff --git a/docs/sfs/api-ref/CreatePermRule.html b/docs/sfs/api-ref/CreatePermRule.html index 090b6899d..be6cb4d74 100644 --- a/docs/sfs/api-ref/CreatePermRule.html +++ b/docs/sfs/api-ref/CreatePermRule.html @@ -3,7 +3,8 @@

Creating a Permission Rule

Function

This API is used to create a permission rule.

-

Constraints

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

+

Constraints

A maximum of 64 permission rules can be added for a file system.

+

This API is only supported for NFS file systems.

URI

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

@@ -23,7 +24,7 @@

String

-

Project ID

+

The project ID.

share_id

@@ -32,7 +33,7 @@

String

-

File system ID

+

The file system ID.

@@ -56,7 +57,7 @@

String

-

Account token

+

The account token.

Content-Type

@@ -65,7 +66,7 @@

String

-

MIME type

+

The MIME type.

@@ -88,7 +89,7 @@

Array of OnePermRuleRequestInfo objects

-

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

+

The permission rule details. You can add a maximum of five rules at a time.

@@ -107,20 +108,20 @@

ip_cidr

-

No

+

Yes

String

-

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

+

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

rw_type

-

No

+

Yes

String

-

Read/write permission of the object to be authorized.

+

The read/write permission of the object to be authorized.

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

  • ro: read-only permission

  • none: no permission

    @@ -129,14 +130,14 @@

    user_type

    -

    No

    +

    Yes

    String

    -

    System user's permission to access the file system. The value can be any of the following:

    -
    • no_root_squash: default option. The client uses any user, including the root user. The NFS server retains the user used by the client and does not map the user.

      -
    • root_squash: When the client uses the root user, the user mapped to the NFS server is the NFS anonymous user (nfsnobody). If the client uses a non-root user, the NFS server retains the user used by the client and does not map the user.

      -
    • all_squash: All users of clients that access the NFS server are mapped as anonymous users.

      +

      The file system access permission granted to the user of the object to be authorized. The value can be:

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

        +
      • root_squash: allows root on the client to access the file system as nfsnobody. Client access using a non-root user will be retained as who they are, instead of being mapped to another user.

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

      @@ -158,7 +159,7 @@

      Array of OnePermRuleResponseInfo objects

      -

      Permission rule details

      +

      The permission rule information.

      @@ -177,21 +178,21 @@

      String

      -

      Permission rule ID

      +

      The permission rule ID.

      ip_cidr

      String

      -

      IP address or IP address range of the authorized object

      +

      The IP address or IP address range of the authorized object. It cannot be modified after configuration.

      rw_type

      String

      -

      Read/write permission of the authorized object.

      +

      The read/write permission of the authorized object.

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

      • ro: read-only permission

      • none: no permission

        @@ -202,10 +203,10 @@

        String

        -

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

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

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

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

          +

          The file system access permission granted to the user of the authorized object. The value can be:

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

            +
          • root_squash: allows root on the client to access the file system as nfsnobody and allows a non-root user on the client to access as who they are, instead of being mapped to another user.

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

          @@ -226,14 +227,14 @@

          String

          -

          Error code

          +

          The error code.

          errMsg

          String

          -

          Error description

          +

          The error message.

          @@ -253,21 +254,22 @@

          String

          -

          Error code

          +

          The error code.

          errMsg

          String

          -

          Error description

          +

          The error message.

-

Example Requests

{
+

Example Requests

  • Request example for creating permission rules

    +
    {
       "rules" : [ {
         "ip_cidr" : "192.168.xx.xx/16",
         "rw_type" : "rw",
    @@ -278,9 +280,11 @@
         "user_type" : "no_root_squash"
       } ]
     }
    +

Example Responses

Status code: 200

Successful creation

+
  • Response example for creating permission rules

    {
       "rules" : [ {
         "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
    @@ -294,6 +298,7 @@
         "user_type" : "no_root_squash"
       } ]
     }
    +

Status code: 400

Error response

{
diff --git a/docs/sfs/api-ref/CreateShare.html b/docs/sfs/api-ref/CreateShare.html
index 0cea9e665..765910f5a 100644
--- a/docs/sfs/api-ref/CreateShare.html
+++ b/docs/sfs/api-ref/CreateShare.html
@@ -1,332 +1,348 @@
 
 
 

Creating a File System

-

Function

This API is used to create a file system.

+

Function

This API is used to create a file system.

-

URI

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

+

URI

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

-
Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

-

Request Parameters

-
Table 2 Request header parameters

Parameter

+

Request Parameters

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-
Table 3 Request body parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

share

+

share

Yes

+

Yes

Share object

+

Share object

Request body for creating a file system

+

The parameters for creating a file system.

-
Table 4 Share

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

availability_zone

+

availability_zone

Yes

+

Yes

String

+

String

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

+

The code of the AZ where the file system resides.

description

+

description

No

+

No

String

+

String

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

+

The file system description. It can contain 0 to 255 characters.

metadata

+

metadata

No

+

No

Metadata object

+

Metadata object

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

+

The file system metadata. The value consists of one or multiple key-value pairs organized as a directory of strings.

name

+

name

Yes

+

Yes

String

+

String

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

+

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

security_group_id

+

security_group_id

Yes

+

Yes

String

+

String

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

+

The security group ID of a tenant in a region.

share_proto

+

share_proto

Yes

+

Yes

String

+

String

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

+
  • Network File System (NFS) is a distributed file system protocol that allows different computers and OSs to share data over a network. You are advised to use NFS file systems with Linux servers.

    +

share_type

+

share_type

Yes

+

Yes

String

+

String

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

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

+

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

+
  • For a previous-generation SFS Turbo file system, specify STANDARD for a Standard or Standard-Enhanced file system, and PERFORMANCE for a Performance or Performance-Enhanced file system.

    +
  • For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, this field is not verified. Specify either STANDARD or PERFORMANCE.

    +

size

+

size

Yes

+

Yes

Integer

+

Integer

  • SFS Turbo previous-generation file system specifications-file system capacity: The value ranges from 500 to 32768, in GiB.
  • For an SFS Turbo Enhanced file system, if expand_type is set to bandwidth in the metadata field, the capacity ranges from 10240 to 327680, in GiB.
  • 20MB/s/TiB: If expand_type is set to hpc and hpc_bw is set to 20M in the metadata field, the capacity ranges from 3686 to 1048576, in GiB. The capacity must be a multiple of 1.2 TiB. The value must be rounded down after being converted to GiB. For example, 3.6TiB->3686GiB, 4.8TiB->4915GiB, 8.4TiB->8601GiB.
  • 40MB/s/TiB: If expand_type is set to hpc and hpc_bw is set to 40M in the metadata field, the capacity ranges from 1228 to 1048576, in GiB. The capacity must be a multiple of 1.2 TiB. The value must be rounded down after being converted to GiB. For example, 3.6TiB->3686GiB, 4.8TiB->4915GiB, 8.4TiB->8601GiB.
  • 125MB/s/TiB: If expand_type is set to hpc and hpc_bw is set to 125M in the metadata field, the capacity ranges from 1228 to 1048576, in GiB. The capacity must be a multiple of 1.2 TiB. The value must be rounded down after being converted to GiB. For example, 3.6TiB->3686GiB, 4.8TiB->4915GiB, 8.4TiB->8601GiB.
  • 250MB/s/TiB: If expand_type is set to hpc and hpc_bw is set to 250M in the metadata field, the capacity ranges from 1228 to 1048576, in GiB. The capacity must be a multiple of 1.2 TiB. The value must be rounded down after being converted to GiB. For example, 3.6TiB->3686GiB, 4.8TiB->4915GiB, 8.4TiB->8601GiB.
+
  • For a previous-generation SFS Turbo file system, the capacity ranges from 500 to 32768, in GiB.

    +
  • For a previous-generation SFS Turbo file system with expand_type="bandwidth" configured under metadata, the capacity ranges from 10240 to 327680, in GiB.

    +
  • For a 20 MB/s/TiB file system with expand_type="hpc" and hpc_bw="20M" configured under metadata, the capacity ranges from *3686 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for an 8.4 TiB file system.

    +
  • For a 40 MB/s/TiB file system with expand_type="hpc" and hpc_bw="40M" configured under metadata, the capacity ranges from *1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for an 8.4 TiB file system.

    +
  • For a 125 MB/s/TiB file system with expand_type="hpc" and hpc_bw="125M" configured under metadata, the capacity ranges from *1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for an 8.4 TiB file system.

    +
  • For a 250 MB/s/TiB file system with expand_type="hpc" and hpc_bw="250M" configured under metadata, the capacity ranges from *1228 to 1048576 (in GiB) and must be a multiple of 1.2 TiB. The desired capacity must be converted to GiB and rounded down to the nearest integer. For example, specify 3686 GiB for a 3.6 TiB file system, 4915 GiB for a 4.8 TiB file system, and 8601 GiB for an 8.4 TiB file system.

    +

subnet_id

+

subnet_id

Yes

+

Yes

String

+

String

Subnet ID of a tenant in a VPC

+

The subnet ID of a tenant in a VPC.

vpc_id

+

vpc_id

Yes

+

Yes

String

+

String

VPC ID of a tenant in a region

+

The VPC ID of a tenant in a region.

backup_id

+

backup_id

No

+

No

String

+

String

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

+

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

tags

+

tags

No

+

No

Array of ResourceTag objects

+

Array of ResourceTag objects

Tag list

+

The tag list.

-
Table 5 Metadata

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

crypt_key_id

+

crypt_key_id

No

+

No

String

+

String

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

+

The ID of a KMS professional key, which is used to create an encrypted file system.

expand_type

+

expand_type

No

+

No

String

+

String

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

-

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

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

+

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

+

Enumerated values:

+
  • bandwidth: Specify bandwidth when you are creating a Standard-Enhanced or Performance-Enhanced file system.

    +
  • hpc: Specify hpc when you are creating a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system.

    +

hpc_bw

+

hpc_bw

No

+

No

String

+

String

File system bandwidth.

-

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

-

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

+

The file system bandwidth.

+

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

+

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

-
Table 6 ResourceTag

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

key

+

key

Yes

+

Yes

String

+

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 (_).

+

The 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 (_).

value

+

value

Yes

+

Yes

String

+

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 (_).

+

The 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 (_).

-

Response Parameters

Status code: 202

+

Response Parameters

Status code: 202

-
- diff --git a/docs/sfs/api-ref/DeletePermRule.html b/docs/sfs/api-ref/DeletePermRule.html index 483db03e9..05786e9d7 100644 --- a/docs/sfs/api-ref/DeletePermRule.html +++ b/docs/sfs/api-ref/DeletePermRule.html @@ -1,45 +1,47 @@ -

Deleting a Permissions Rule

+

Deleting a Permission Rule

Function

This API is used to delete a permission rule.

+

Constraints

This API is only supported for NFS file systems.

+

URI

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

-
Table 7 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

id

+

id

String

+

String

ID of the created SFS Turbo file system

+

The ID of the created SFS Turbo file system.

name

+

name

String

+

String

Name of the created SFS Turbo file system

+

The name of the created SFS Turbo file system.

status

+

status

String

+

String

Status of the SFS Turbo file system

+

The file system status.

+

Enumerated values:

+
  • 100: creating

    +
  • 200: available

    +
  • 303: creation failed

    +
  • 400: deleted

    +
  • 800: frozen

    +
-

Example Requests

  • Previous-generation SFS Turbo file system:

    This example creates an SFS Turbo Standard file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, capacity to 500 GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    -
    POST HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares
    +

    Example Requests

    • Previous-generation SFS Turbo file system type:

      +
      POST HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares
       
       {
         "share" : {
      @@ -340,8 +356,8 @@
           "vpc_id" : "d651ea2b-2b20-4c6d-8bbf-xxx"
         }
       }
      -
    • 125 MB/s/TiB:

      This example creates an SFS Turbo 125 MB/s/TiB file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, capacity to 3686 GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

      -
      POST HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares
      +
    • 125 MB/s/TiB:

      +
      POST HTTPS://{endpoint}/v1/{project_id}/sfs-turbo/shares
       
       {
         "share" : {
      @@ -360,32 +376,38 @@
         }
       }
    +

    This example creates an SFS Turbo Standard file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, capacity to 500 GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    +

    This example creates an SFS Turbo Standard file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-dedicated-test, protocol type to NFS, capacity to 500 GB. The dedicated storage pool ID is 198f0704-xxx-4d85-xxx-c25caa4d3264, the dedicated ECS flavor is c6.xlarge.2, the security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    +

    This example creates a 125 MB/s/TiB file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, and capacity to 3686GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    +

    This example creates a 125 MB/s/TiB file system in the AZ whose AZ code is example, with secure transmission enabled, the file system name set to sfs-turbo-test, protocol type to NFS, and capacity to 3686GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    +

    This example creates a 125 MB/s/TiB for Intelligent Compute file system in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, and capacity to 61440GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    +

    This example creates an SFS Turbo file system with cross-AZ DR deployment in the AZ whose AZ code is example, with the file system name set to sfs-turbo-test, protocol type to NFS, and capacity to 61440GB. The security group ID is 8c4ebbd0-6edf-4aae-8353-xxx, the subnet ID is b8884abe-f47b-4917-9f6c-xxx, and the VPC ID is d651ea2b-2b20-4c6d-8bbf-xxx.

    -

    Example Responses

    Status code: 202

    -

    Response body for creating a file system

    -
    {
    +

    Example Responses

    Status code: 202

    +

    Successful file system creation

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

    Status Codes

    -
    - - @@ -57,7 +57,7 @@ - - @@ -89,7 +89,7 @@ - @@ -112,7 +112,7 @@ - @@ -123,7 +123,7 @@ - @@ -132,7 +132,9 @@

    Status Code

    +

    Status Codes

    +
    - - -

    Status Code

    Description

    +

    Description

    202

    +

    202

    Response body for creating a file system

    +

    Successful file system creation

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/sfs/api-ref/CreateSharedTag.html b/docs/sfs/api-ref/CreateSharedTag.html index 9c47b2820..d5a5646fa 100644 --- a/docs/sfs/api-ref/CreateSharedTag.html +++ b/docs/sfs/api-ref/CreateSharedTag.html @@ -1,7 +1,7 @@ -

    Adding a Tag for a File System

    -

    Function

    This API is used to add a tag to a specified file system.

    +

    Adding a Tag to a File System

    +

    Function

    This API is used to add a tag to a 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.

    @@ -24,7 +24,7 @@

    String

    Project ID

    +

    The project ID.

    share_id

    @@ -33,7 +33,7 @@

    String

    File system ID

    +

    The file system ID.

    String

    Account token

    +

    The account token.

    Content-Type

    @@ -66,7 +66,7 @@

    String

    MIME type

    +

    The MIME type.

    ResourceTag object

    Description of the resource_tag field

    +

    The resource_tag field description.

    String

    Tag key.

    +

    The 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 (_).

    String

    Tag value.

    +

    The 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 (_).

    -

    Response Parameters

    None

    +

    Response Parameters

    Status code: 204

    +

    Tag adding request delivered

    +

    None

    Example Requests

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

    {
    @@ -153,7 +155,7 @@
     

204

Tag adding request delivered.

+

Tag adding request delivered

Table 1 Path Parameters

Parameter

+
- - - - - - - - - - - - - - - @@ -47,60 +49,62 @@

Request Parameters

-
Table 1 Path Parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

share_id

+

share_id

Yes

+

Yes

String

+

String

File system ID

+

The file system ID.

rule_id

+

rule_id

Yes

+

Yes

String

+

String

Permission rule ID

+

The permission rule ID.

Table 2 Request header parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-

Response Parameters

Status code: 400

+

Response Parameters

Status code: 204

+

Successful deletion

+

Status code: 400

-
Table 3 Response body parameters

Parameter

+
- - - - - - - - @@ -108,26 +112,26 @@

Status code: 500

-
Table 3 Response body parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

- diff --git a/docs/sfs/api-ref/ExpandShare.html b/docs/sfs/api-ref/ExpandShare.html index aae0114c0..71734c760 100644 --- a/docs/sfs/api-ref/ExpandShare.html +++ b/docs/sfs/api-ref/ExpandShare.html @@ -1,186 +1,188 @@

Expanding the Capacity of a File System

-

Function

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

+

Function

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

-

URI

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

+

URI

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

-
Table 4 Response body parameters

Parameter

+
- - - - - - - - @@ -145,25 +149,25 @@ }

Status Codes

-
Table 4 Response body parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

- diff --git a/docs/sfs/api-ref/DeleteSharedTag.html b/docs/sfs/api-ref/DeleteSharedTag.html index 15ec82ff7..b5b36a97f 100644 --- a/docs/sfs/api-ref/DeleteSharedTag.html +++ b/docs/sfs/api-ref/DeleteSharedTag.html @@ -1,7 +1,7 @@ -

Deleting a Tag of a File System

-

Function

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

+

Deleting a Tag from a File System

+

Function

This API is used to delete a tag from a file system. If the specified key is not found, error 404 will be returned.

URI

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

@@ -21,7 +21,7 @@
- - - @@ -65,7 +65,7 @@ - -

Status Code

+
- - - - - - - diff --git a/docs/sfs/api-ref/DeleteShare.html b/docs/sfs/api-ref/DeleteShare.html index 19e7e7711..b5c5f4dd4 100644 --- a/docs/sfs/api-ref/DeleteShare.html +++ b/docs/sfs/api-ref/DeleteShare.html @@ -21,7 +21,7 @@ - - @@ -54,7 +54,7 @@ - -

Status Code

Description

+

Description

204

+

204

Successful deletion

+

Successful deletion

400

+

400

Error response

+

Error response

500

+

500

Error response

+

Error response

String

Project ID

+

The project ID.

share_id

@@ -30,7 +30,7 @@

String

File system ID

+

The file system ID.

String

Account token

+

The account token.

Content-Type

@@ -63,14 +63,16 @@

String

MIME type

+

The MIME type.

-

Response Parameters

None

+

Response Parameters

Status code: 202

+

File system deletion request delivered

+

None

Example Requests

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

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

202

File system deletion request delivered.

+

File system deletion request delivered

String

Project ID

+

The project ID.

share_id

@@ -30,7 +30,7 @@

String

File system ID

+

The file system ID.

key

@@ -39,8 +39,8 @@

String

Tag key, which can contain a maximum of 128 characters.

-

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

+

The tag key, which 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 (_).

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

String

Account token

+

The account token.

Content-Type

@@ -74,16 +74,18 @@

String

MIME type

+

The MIME type.

-

Response Parameters

None

+

Response Parameters

Status code: 204

+

Tag deleted

+

None

-

Example Requests

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

+

Example Requests

Deleting a tag (tag key is test) from the file system whose ID is 77ba6f4b-6365-4895-8dda-bc7142af4dde

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

Example Responses

None

@@ -97,7 +99,7 @@

204

File system tag deleted.

+

Tag deleted

Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

share_id

+

share_id

Yes

+

Yes

String

+

String

File system ID

+

The file system ID.

-

Request Parameters

-
Table 2 Request header parameters

Parameter

+

Request Parameters

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-
Table 3 Request body parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

extend

+

extend

Yes

+

Yes

Extend object

+

Extend object

Object of extend

+

The extend object.

-
Table 4 Extend

Parameter

+
- - - - - - -
Table 4 Extend

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

new_size

+

new_size

Yes

+

Yes

Integer

+

Integer

New capacity of the file system after expansion, in GiB.

-

The value ranges from 500 GiB to 32768 GiB, and the capacity expansion step is greater than or equal to 100 GiB.

-

Specifications of the previous-generation SFS Turbo file system: Standard Enhanced and Performance Enhanced. The capacity ranges from 10240 GiB to 327680 GiB. The capacity expansion step is greater than or equal to 100 GiB.

-

20 MB/s/TiB. The capacity ranges from 3686 GiB to 1048576 GiB. The capacity must be a multiple of 1.2 TiB, and the capacity expansion step must be greater than or equal to 1.2 TiB. The target capacity must be converted to GiB and then rounded down. For example, 4.8 TiB->4915 GiB, 8.4 TiB->8601 GiB.

-

40 MB/s/TiB. The capacity ranges from 1228 GiB to 1048576 GiB. The capacity must be a multiple of 1.2 TiB, and the capacity expansion step must be greater than or equal to 1.2 TiB. The target capacity must be converted to GiB and then rounded down. For example, 4.8 TiB->4915 GiB, 8.4 TiB->8601 GiB.

-

125 MB/s/TiB, 250 MB/s/TiB and 40 MB/s/TiB, the expansion steps are the same.

-

+

The new capacity of the file system, in GiB.

+

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

+

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

+

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

+

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

+

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

+

+

+

-

Response Parameters

Status code: 202

+

Response Parameters

Status code: 202

-
Table 5 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

id

+

id

String

+

String

ID of the SFS Turbo file system

+

The SFS Turbo file system ID.

name

+

name

String

+

String

Name of the SFS Turbo file system

+

The SFS Turbo file system name.

-

Example Requests

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

-
{
+

Example Requests

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

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

Example Responses

Status code: 202

-

Response body for expanding the capacity of a file system

-
{
+

Example Responses

Status code: 202

+

Response body for expanding the capacity of a file system

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

Status Codes

-

Status Code

+

Status Codes

+
- - -

Status Code

Description

+

Description

202

+

202

Response body for expanding the capacity of a file system

+

Response body for expanding the capacity of a file system

-

Error Codes

See Error Codes.

+

Error Codes

See Error Codes.

diff --git a/docs/sfs/api-ref/ListPermRules.html b/docs/sfs/api-ref/ListPermRules.html index 5ad1868ae..0f778798b 100644 --- a/docs/sfs/api-ref/ListPermRules.html +++ b/docs/sfs/api-ref/ListPermRules.html @@ -1,68 +1,71 @@

Querying Permission Rules of a File System

-

Function

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

+

Function

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

+
+

Constraints

A maximum of 64 permission rules can be added for a file system.

+

This API is only supported for NFS file systems.

URI

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

-
Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

share_id

+

share_id

Yes

+

Yes

String

+

String

File system ID

+

The file system ID.

-
Table 2 Query Parameters

Parameter

+
- - - - - - - - - - - @@ -70,32 +73,32 @@

Request Parameters

-
Table 2 Query Parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

limit

+

limit

No

+

No

Long

+

Long

Number of returned permission rules.

+

The maximum number of permission rules that can be returned.

offset

+

offset

No

+

No

Long

+

Long

Offset of the returned permission rule.

+

The offset of the returned permission rules.

Table 3 Request header parameters

Parameter

+
- - - - - - - - - - - @@ -104,66 +107,66 @@

Response Parameters

Status code: 200

-
Table 3 Request header parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

Table 4 Response body parameters

Parameter

+
- - - - -
Table 4 Response body parameters

Parameter

Type

+

Type

Description

+

Description

rules

+

rules

Array of OnePermRuleResponseInfo objects

+

Array of OnePermRuleResponseInfo objects

Permission rule information

+

The permission information.

-
Table 5 OnePermRuleResponseInfo

Parameter

+
- - - - - - - - - - - - - - @@ -172,26 +175,26 @@

Status code: 500

-
Table 5 OnePermRuleResponseInfo

Parameter

Type

+

Type

Description

+

Description

id

+

id

String

+

String

Permission rule ID

+

The permission rule ID.

ip_cidr

+

ip_cidr

String

+

String

IP address or IP address range of the authorized object

+

The IP address or IP address range of the authorized object. It cannot be modified after configuration.

rw_type

+

rw_type

String

+

String

Read/write permission of the authorized object.

+

The read/write permission of the authorized object.

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

  • ro: read-only permission

  • none: no permission

user_type

+

user_type

String

+

String

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

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

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

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

    +

The file system access permission granted to the user of the authorized object. The value can be:

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

    +
  • root_squash: allows root on the client to access the file system as nfsnobody and allows a non-root user on the client to access as who they are, instead of being mapped to another user.

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

Table 6 Response body parameters

Parameter

+
- - - - - - - - @@ -203,6 +206,7 @@

Example Responses

Status code: 200

Successful query

+
  • Response example of querying the permission rules of a file system

    {
       "rules" : [ {
         "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
    @@ -216,6 +220,7 @@
         "user_type" : "no_root_squash"
       } ]
     }
    +

Status code: 500

Error response

{
@@ -224,20 +229,20 @@
 }

Status Codes

-
Table 6 Response body parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

- diff --git a/docs/sfs/api-ref/ListShares.html b/docs/sfs/api-ref/ListShares.html index 2bdb18bbd..a6f1bdac4 100644 --- a/docs/sfs/api-ref/ListShares.html +++ b/docs/sfs/api-ref/ListShares.html @@ -1,444 +1,476 @@ -

Obtaining the File System List

-

Function

This API is used to obtain the file system list.

+

Listing File Systems

+

Function

This API is used to list file systems.

-

URI

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

+

URI

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

-

Status Code

+
- - - - - diff --git a/docs/sfs/api-ref/ListSharedTags.html b/docs/sfs/api-ref/ListSharedTags.html index dcb28fa07..6abe16273 100644 --- a/docs/sfs/api-ref/ListSharedTags.html +++ b/docs/sfs/api-ref/ListSharedTags.html @@ -21,7 +21,7 @@ - @@ -44,7 +44,7 @@ - - @@ -77,7 +77,7 @@ - - @@ -107,7 +107,7 @@ - @@ -126,7 +126,7 @@ - @@ -134,18 +134,18 @@ -

Status Code

Description

+

Description

200

+

200

Successful query

+

Successful query

500

+

500

Error response

+

Error response

String

Project ID

+

The project ID.

Integer

Number of returned tags

+

The maximum number of tags that can be returned.

offset

@@ -53,7 +53,7 @@

Integer

Tag query offset

+

The tag query offset.

String

Account token

+

The account token.

Content-Type

@@ -86,7 +86,7 @@

String

MIME type

+

The MIME type.

Array of Tag objects

Tag list

+

The tag list.

String

Tag key.

+

The tag key.

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

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.

+

The list the tag values. Each value can contain a maximum of 255 characters. An empty list for values indicates any value. The values are in the OR relationship.

-

Example Requests

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

+

Example Requests

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

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

Example Responses

Status code: 200

-

Response body for querying a file system

+

Query response body

{
   "tags" : [ {
     "key" : "key1",
@@ -165,7 +165,7 @@
 

200

Response body for querying a file system

+

Query response body

Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

-
Table 2 Query Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

limit

+

limit

No

+

No

Long

+

Integer

Specifies the maximum number of returned file systems. If this parameter is not specified, the default value 1000 is used.

+

The maximum number of returned file systems. If not specified, 1000 is used by default.

offset

+

offset

No

+

No

Long

+

Integer

Sets the offset of the returned file system.

+

The offset of the returned file systems.

-

Request Parameters

-
Table 3 Request header parameters

Parameter

+

Request Parameters

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-

Response Parameters

Status code: 200

+

Response Parameters

Status code: 200

-
Table 4 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

shares

+

shares

Array of ShareInfo objects

+

Array of ShareInfo objects

List of SFS Turbo file systems

+

The list of SFS Turbo file systems.

count

+

count

Integer

+

Integer

Number of SFS Turbo file systems

+

The number of SFS Turbo file systems.

-
Table 5 ShareInfo

Parameter

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

Parameter

Type

+

Type

Description

+

Description

action_progress

+

action_progress

ActionProgress object

+

ActionProgress object

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

+

The file system creation progress. This field is only returned when the file system is being created.

version

+

version

String

+

String

Version of the SFS Turbo file system

+

The file system version.

avail_capacity

+

avail_capacity

String

+

String

Available capacity of the SFS Turbo file system, in GB

+

The available capacity of the file system, in GB.

availability_zone

+

availability_zone

String

+

String

Code of the AZ where the SFS Turbo file system resides

+

The code of the AZ where the file system resides.

az_name

+

az_name

String

+

String

Name of the AZ where the SFS Turbo file system resides

+

The name of the AZ where the file system resides.

created_at

+

created_at

String

+

String

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

+

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

crypt_key_id

+

crypt_key_id

String

+

String

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

+

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

expand_type

+

expand_type

String

+

String

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

-

export_location

-

String

-

Location where the SFS Turbo file system is mounted For example, 192.168.0.90:/. If the file system is being created, this parameter is not returned.

-

id

-

String

-

ID of the SFS Turbo file system

-

name

-

String

-

Name of the SFS Turbo file system specified during creation

-

pay_model

-

String

-

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

-

region

-

String

-

Region where the SFS Turbo file system resides

-

security_group_id

-

String

-

ID of the security group specified by the user

-

share_proto

-

String

-

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

-

share_type

-

String

-

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

-

size

-

String

-

Total capacity of the SFS Turbo file system, in GB

-

status

-

String

-

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

-

sub_status

-

String

-

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

-

subnet_id

-

String

-

ID of the subnet specified by the user

-

vpc_id

-

String

-

ID of the VPC specified by the user

-

tags

-

Array of ResourceTag objects

-

Tag list

-

optional_endpoint

-

String

-

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

-

hpc_bw

-

String

-

File system bandwidth.

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

    -

    -

    +

The extension type.

+

bandwidth is returned if the requested file system is an Enhanced file system.

+

For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, hpc is returned.

+

+

+

The value can be:

+
  • bandwidth

    +
  • hpc

instanceId

+

export_location

String

+

String

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

+

The file system location, for example, 192.168.0.90:/. This field is not returned when the file system is being created.

instanceType

+

id

String

+

String

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

+

The file system ID.

statusDetail

+

name

String

+

String

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

+

The file system name specified during creation.

features

+

pay_model

ShareInfoFeatures object

+

String

Whether backup is supported for SFS turbo file systems.

+

The file system billing mode. Value 0 indicates pay-per-use. This field is not returned when the file system is being created.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

region

+

String

+

The region where the file system resides.

+

security_group_id

+

String

+

The ID of the specified security group.

+

share_proto

+

String

+

The protocol used by the SFS Turbo file system. The value can be NFS.

+

share_type

+

String

+

The file system performance type. Valid values are STANDARD and PERFORMANCE.

+

size

+

String

+

The file system total capacity, in GB.

+

status

+

String

+

The file system status.

+

Enumerated values:

+
  • 100: creating

    +
  • 200: available

    +
  • 303: creation failed

    +
  • 400: deleted

    +
  • 800: frozen

    +
+

sub_status

+

String

+

The file system sub-status. This field is not returned if no modification is made to the file system.

+

121 (expanding capacity), 132 (changing security group), 150* (adding storage backend), 151 (removing storage backend)

+

221 (expansion succeeded), 232 (security group changed), 250 (storage backend added), 251* (storage backend removed)

+

321 (expansion failed), 332 (changing security group failed), 350 (adding storage backend failed), 351 (removing storage backend failed)

+

subnet_id

+

String

+

The ID of the specified subnet.

+

vpc_id

+

String

+

The ID of the specified VPC.

+

enterprise_project_id

+

String

+

The ID of the enterprise project that file system is added to.

+

tags

+

Array of ResourceTag objects

+

The tag list.

+

optional_endpoint

+

String

+

The alternative IP addresses that can be used for mount. This field is not returned for previous-generation file systems.

+

hpc_bw

+

String

+

The file system bandwidth.

+
  • "20M": 20 MB/s/TiB

    +
  • "40M": 40 MB/s/TiB

    +
  • "125M": 125 MB/s/TiB

    +
  • "250M": 250 MB/s/TiB

    +
+

instanceId

+

String

+

The node ID of the file system type, which has no meaning. This is a reserved field.

+

instanceType

+

String

+

The node type of the file system type, which has no meaning. This is a reserved field.

+

statusDetail

+

String

+

The file system request ID, which has no meaning. This is a reserved field.

+

features

+

ShareInfoFeatures object

+

The file system feature settings.

-
Table 6 ActionProgress

Parameter

+
- - - - -
Table 6 ActionProgress

Parameter

Type

+

Type

Description

+

Description

CREATING

+

CREATING

String

+

String

File system creation progress

+

The file system creation progress.

-
Table 7 ResourceTag

Parameter

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

Parameter

Type

+

Type

Description

+

Description

key

+

key

String

+

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 (_).

+

The 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 (_).

value

+

value

String

+

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 (_).

+

The 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 (_).

-
Table 8 ShareInfoFeatures

Parameter

+
- - - - -
Table 8 ShareInfoFeatures

Parameter

Type

+

Type

Description

+

Description

backup

+

backup

ShareInfoFeature object

+

ShareInfoFeature object

Whether the SFS Turbo file system supports backup.

+

Whether the file system supports backup.

-
Table 9 ShareInfoFeature

Parameter

+
- - - - - - - - - - -
Table 9 ShareInfoFeature

Parameter

Type

+

Type

Description

+

Description

is_support

+

is_support

Boolean

+

Boolean

Whether the file system supports this feature.

+

Whether the file system supports this feature.

message

+

message

String

+

String

Message about whether the file system supports this feature.

+

The message.

msg_code

+

msg_code

String

+

String

Code of the message about whether the file system supports this feature.

+

The message code.

-

Example Requests

Querying file systems in the project whose ID e1e45b08f3ea4480ab4655ef9c7160ba

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

Example Requests

Listing file systems in the project whose ID is e1e45b08f3ea4480ab4655ef9c7160ba

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

Example Responses

Status code: 200

-
Response body for querying the file system list
{
+

Example Responses

Status code: 200

+

Success response body

+
  • Listing file systems in the project whose ID is e1e45b08f3ea4480ab4655ef9c7160ba

    +
    {
       "shares" : [ {
         "id" : "8fba8253-c914-439d-ae8b-d5c89d0bf5e8",
         "name" : "sfs-turbo-8468",
    @@ -446,9 +478,6 @@
         "version" : "1.0.0",
         "region" : "example",
         "created_at" : "2018-11-19T04:02:03",
    -    "action_progress" : {
    -      "CREATING" : "22%"
    -    },
         "share_type" : "STANDARD",
         "sub_status" : "",
         "availability_zone" : "az1.dc1",
    @@ -459,28 +488,76 @@
         "size" : "500.00",
         "pay_model" : "0",
         "avail_capacity" : "500.00",
    -    "share_proto" : "NFS"
    -  } ]
    +    "share_proto" : "NFS",
    +    "export_location" : "192.168.1.102:/",
    +    "optional_endpoint" : "192.168.1.102 192.168.1.232",
    +    "instanceId" : "34d65df8-342f-49fb-ac1a-60f686ca437c",
    +    "statusDetail" : "d120c389861619e7580a12cab74f6a22",
    +    "instanceType" : "efs-ha",
    +    "enterprise_project_id" : "0",
    +    "features" : {
    +      "backup" : {
    +        "is_support" : true
    +      }
    +    }
    +  } ],
    +  "count" : 1
     }
    +
  • Listing file systems in the project whose ID is 5694xxx8f3e0000xxxx655exxxxx60b7

    +
    {
    +  "shares" : [ {
    +    "id" : "65f2d30b-7b4e-4786-9608-4324faef6646",
    +    "name" : "sfs-turbo-df12",
    +    "status" : "200",
    +    "version" : "1.0.0",
    +    "region" : "example",
    +    "created_at" : "2018-11-15T02:32:10",
    +    "export_location" : "65f2d30b-7b4e-4786-9608-4324faef6646.sfsturbo.internal:/",
    +    "optional_endpoint" : "192.168.1.195 192.168.1.45 192.168.1.201 192.168.1.119 192.168.1.115 192.168.1.150 192.168.1.107 192.168.1.35 192.168.1.123 192.168.1.153 192.168.1.252 192.168.1.7 192.168.1.40 192.168.1.62 192.168.1.23 192.168.1.76 192.168.1.204 192.168.1.178 192.168.1.28 192.168.1.145",
    +    "share_type" : "HPC_PERFORMANCE_250M",
    +    "expand_type" : "hpc",
    +    "sub_status" : "",
    +    "availability_zone" : "az1.dc1",
    +    "az_name" : "az1",
    +    "vpc_id" : "b24e39e1-bc0c-475b-ae0c-aef9cf240af3",
    +    "subnet_id" : "86fc01ea-8ec8-409d-ba7a-e0ea16d4fd97",
    +    "security_group_id" : "50586458-aec9-442c-bb13-e08ddc6f1b7a",
    +    "size" : "3686.00",
    +    "pay_model" : "0",
    +    "avail_capacity" : "3686.00",
    +    "share_proto" : "NFS",
    +    "instanceId" : "897e198d-6ba0-44c6-9104-dc5f915c1fbd",
    +    "statusDetail" : "c4935f83562f49129faf4455b83bfb34",
    +    "instanceType" : "sfs-turbo-hpc",
    +    "enterprise_project_id" : "0",
    +    "hpc_bw" : "125M",
    +    "features" : {
    +      "backup" : {
    +        "is_support" : true
    +      }
    +    }
    +  } ],
    +  "count" : 1
    +}
    +
-
-

Status Codes

-
- - - @@ -84,7 +84,7 @@ - @@ -103,56 +103,71 @@ - - - - - - - - @@ -171,49 +186,64 @@ - - - - - - - @@ -221,7 +251,7 @@

Status code: 400

-

Status Code

+

Status Codes

+
- - -

Status Code

Description

+

Description

200

+

200

Response body for querying the file system list

+

Success response body

-

Error Codes

See Error Codes.

+

Error Codes

See Error Codes.

diff --git a/docs/sfs/api-ref/ListSharesByTag.html b/docs/sfs/api-ref/ListSharesByTag.html new file mode 100644 index 000000000..428e9a1fd --- /dev/null +++ b/docs/sfs/api-ref/ListSharesByTag.html @@ -0,0 +1,484 @@ + + +

Querying File Systems by Tag

+

Function

This API is used to query file systems by tag.

+
+

URI

POST /v1/{project_id}/sfs-turbo/resource_instances/action

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

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

The project ID.

+
+
+
+

Request Parameters

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

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

The account token.

+

Content-Type

+

Yes

+

String

+

The MIME type.

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

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

The operation type of listing file systems by tag. The value can be filter or count.

+

Enumeration values:

+
  • filter

    +
  • count

    +
+

limit

+

No

+

String

+

The maximum number of file systems returned.

+

offset

+

No

+

String

+

The offset of the returned file systems.

+

without_any_tag

+

No

+

Boolean

+

The resources to be queried contain no tags. If this parameter is set to true, all resources without specified tags are queried. In this case, the tags field is ignored. If this parameter is set to false or not specified, it does not take effect, meaning that all resources are returned or resources are filtered by tags or matches.

+

tags

+

No

+

Array of Tag objects

+

The resources to be queried contain tags specified in this field. Each resource can contain a maximum of 20 keys. Each tag key can have a maximum of 20 tag values. The tag value corresponding to each tag key can be an empty array but the structure cannot be missing. Each tag key must be unique, and tag values of the same tag must be unique. The response returns resources containing all tags in this list. Keys in this list are in the AND relationship and values in each key-value structure are in the OR relationship. If no tag filtering criteria is specified, all data is returned.

+

matches

+

No

+

Array of ResourceTag objects

+

The search criteria. key is the field to match. Only resource_name is supported. value is the matched value. If the value ends with *, prefix search will be performed. For example, if the value is sfsturbo*, all resources whose names start with sfsturbo will be returned.

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

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

The tag key.

+

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

+

values

+

Yes

+

Array of strings

+

The list the tag values. Each value can contain a maximum of 255 characters. An empty list for values indicates any value. The values are in the OR relationship.

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

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

The 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 (_).

+

value

+

Yes

+

String

+

The 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 (_).

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 6 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

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

Parameter

+

Type

+

Description

+

resources

+

Array of ListSharesByTagResource objects

+

The list of file systems queried by tag.

+

total_count

+

Integer

+

The total number of file systems returned.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 ListSharesByTagResource

Parameter

+

Type

+

Description

+

resource_id

+

String

+

The resource ID.

+

resource_name

+

String

+

The resource name.

+

resource_detail

+

String

+

The resource details.

+

tags

+

Array of ResourceTag objects

+

The resource tag list.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 ResourceTag

Parameter

+

Type

+

Description

+

key

+

String

+

The 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 (_).

+

value

+

String

+

The 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 (_).

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 10 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 12 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+
+

Example Requests

  • Filtering file systems by file system tag

    +
    {
    +  "action" : "filter",
    +  "limit" : 10,
    +  "offset" : 10,
    +  "tags" : [ {
    +    "key" : "key1",
    +    "values" : [ "value1", "value2" ]
    +  }, {
    +    "key" : "key2",
    +    "values" : [ "value1", "value2" ]
    +  } ]
    +}
    +
  • Filtering file systems by file system name

    +
    {
    +  "action" : "filter",
    +  "matches" : [ {
    +    "key" : "resource_name",
    +    "value" : "sfsturbo*"
    +  } ]
    +}
    +
+
+

Example Responses

Status code: 400

+

Error response

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

Status code: 500

+

The error response.

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

Status Codes

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

Status Code

+

Description

+

200

+

Success

+

400

+

Error response

+

500

+

The error response.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowClientIpInfo.html b/docs/sfs/api-ref/ShowClientIpInfo.html new file mode 100644 index 000000000..9b701dd43 --- /dev/null +++ b/docs/sfs/api-ref/ShowClientIpInfo.html @@ -0,0 +1,307 @@ + + +

Obtaining IP Addresses of the Clients Who Have Mounted the File System

+

Function

This API is used to obtain the IP addresses of the clients who have mounted the file system.

+
+

URI

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

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

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

The project ID.

+

share_id

+

Yes

+

String

+

The file system ID.

+
+
+
+

Request Parameters

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

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

The account token.

+

Content-Type

+

Yes

+

String

+

The MIME type.

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

Parameter

+

Mandatory

+

Type

+

Description

+

get_client_ips

+

Yes

+

ClientIpInfo object

+

Obtaining IP addresses of the clients who have mounted the file system

+
+
+ +
+ + + + + + + + + + + +
Table 4 ClientIpInfo

Parameter

+

Mandatory

+

Type

+

Description

+

ips

+

No

+

String

+

The IP addresses of the clients who have mounted the file system.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

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

Parameter

+

Type

+

Description

+

id

+

String

+

The file system ID.

+

ips

+

Array of strings

+

The IP addresses of the clients who have mounted the file system.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 7 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

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

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 9 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Error response

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

Status code: 500

+

Error response

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

Status Codes

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

Status Code

+

Description

+

200

+

Success

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowJobDetail.html b/docs/sfs/api-ref/ShowJobDetail.html index 4b733c397..c186285de 100644 --- a/docs/sfs/api-ref/ShowJobDetail.html +++ b/docs/sfs/api-ref/ShowJobDetail.html @@ -1,7 +1,7 @@ -

Querying Details About a Task

-

Function

This API is used to query the execution status of an SFS Turbo asynchronous task.

+

Querying the Status of a Task

+

Function

This API is used to query the execution status of the SFS Turbo asynchronous API.

URI

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

@@ -21,7 +21,7 @@

String

Project ID

+

The project ID.

job_id

@@ -54,7 +54,7 @@

String

Account token

+

The account token.

Content-Type

@@ -63,7 +63,7 @@

String

MIME type

+

The MIME type.

String

Request ID

+

The request ID.

String

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

+

The task status.

+

Enumerated values:

+
  • success: successful

    +
  • failed: failed

    +
  • waiting: waiting for execution

    +
  • running: running

    +

job_id

String

Task ID

+

The task ID.

job_type

String

Task type

+

The task type.

+

Enumerated values:

+
  • create_share: creating a file system

    +
  • hpc_create_share: creating a file system

    +
  • delete_share: deleting a file system

    +
  • extend_share: expanding the capacity of a file system

    +
  • change_security_group: changing the security group associated with a file system

    +
  • create_obs_target: adding a storage backend

    +
  • delete_obs_target: removing a storage backend

    +

begin_time

String

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

+

The 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

+

The 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

+

The error code returned if the task execution fails.

fail_reason

String

Cause of the task execution failure

+

The cause of the task execution failure.

sub_jobs

Array of GetSubJobDetail objects

List of subtasks

+

The subtask list.

String

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

+

The task status.

+

Enumerated values:

+
  • success: successful

    +
  • failed: failed

    +
  • waiting: waiting for execution

    +
  • running: running

    +

job_id

String

Task ID

+

The subtask ID.

job_type

String

Subtask type

+

The subtask type.

+

Enumerated values:

+
  • create_share: creating a file system

    +
  • hpc_create_share: creating a file system

    +
  • delete_share: deleting a file system

    +
  • extend_share: expanding the capacity of a file system

    +
  • change_security_group: changing the security group associated with a file system

    +
  • create_obs_target: adding a storage backend

    +
  • delete_obs_target: removing a storage backend

    +

begin_time

String

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

+

The subtask 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

+

The subtask end time in UTC format, for example, 2016-01-02 15:04:05.

error_code

String

Error code returned if the task execution fails

+

The error code returned if the subtask execution fails.

fail_reason

String

Cause of the task execution failure

+

The cause of the subtask execution failure.

Table 6 Response body parameters

Parameter

+
@@ -229,18 +259,37 @@ - - - +
Table 6 Response header parameters

Parameter

Type

errCode

+

X-request-id

String

Error code

+

The request ID.

errMsg

+
+
+ +
+ + + + + - - + + + + @@ -248,34 +297,26 @@

Status code: 404

-
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

errCode

String

+

String

Error description

+

The error code.

+

errMsg

+

String

+

The error message.

Table 7 Response body parameters

Parameter

+
- - - - - - - - -
Table 8 Response header parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

X-request-id

String

+

String

Error code

-

errMsg

-

String

-

Error description

+

The request ID.

-

Status code: 500

-
Table 8 Response body parameters

Parameter

+
@@ -287,14 +328,60 @@ - - + + +
Table 9 Response body parameters

Parameter

Type

String

Error code

+

The error code.

errMsg

String

Error description

+

The error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 10 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

+
+
+ +
+ + + + + + + + + + + @@ -304,7 +391,7 @@

Example Requests

None

Example Responses

Status code: 200

-

Response body parameters

+

Response body parameter

{
   "job_id" : "26f6b565-xxxx-XXXX-xxxx-03f0bd975433",
   "status" : "success",
@@ -340,7 +427,7 @@
 
 
-
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

200

Response body parameters

+

Response body parameter

400

diff --git a/docs/sfs/api-ref/ShowPermRule.html b/docs/sfs/api-ref/ShowPermRule.html index a815555dd..e9b0a56d6 100644 --- a/docs/sfs/api-ref/ShowPermRule.html +++ b/docs/sfs/api-ref/ShowPermRule.html @@ -1,233 +1,243 @@ -

Querying a Permission Rule by ID

-

Function

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

+

Querying a Permission Rule of a File System

+

Function

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

-

URI

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

+

Constraints

This API is only supported for NFS file systems.

+
+

URI

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

-
Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

share_id

+

share_id

Yes

+

Yes

String

+

String

File system ID

+

The file system ID.

rule_id

+

rule_id

Yes

+

Yes

String

+

String

Permission rule ID

+

The permission rule ID.

-

Request Parameters

-
Table 2 Request header parameters

Parameter

+

Request Parameters

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-

Response Parameters

Status code: 200

+

Response Parameters

Status code: 200

-
Table 3 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

id

+

id

String

+

String

Permission rule ID

+

The permission rule ID.

ip_cidr

+

ip_cidr

String

+

String

IP address or IP address range of the authorized object

+

The IP address or IP address range of the authorized object. It cannot be modified after configuration.

rw_type

+

rw_type

String

+

String

Read/write permission of the authorized object.

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

The read/write permission of the authorized object.

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

    +
  • ro: read-only permission

    +
  • none: no permission

    +

user_type

+

user_type

String

+

String

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

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

The file system access permission granted to the user of the authorized object. The value can be:

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

    +
  • root_squash: allows root on the client to access the file system as nfsnobody and allows a non-root user on the client to access as who they are, instead of being mapped to another user.

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

    +
-

Status code: 400

+

Status code: 400

-
Table 4 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

-

Status code: 500

+

Status code: 500

-
Table 5 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

-

Example Requests

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

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

Example Requests

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

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

Example Responses

Status code: 200

-

Successful query

-
{
+

Example Responses

Status code: 200

+

Successful query

+
  • Response example of querying a specific permission rule of a file system

    +
    {
       "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
       "ip_cidr" : "192.168.xx.xx/16",
       "rw_type" : "rw",
       "user_type" : "no_root_squash"
     }
    -

    Status code: 400

    -

    Error response

    -
    {
    +
+

Status code: 400

+

Error response

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

Status code: 500

-

Error response

-
{
+

Status code: 500

+

Error response

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

Status Codes

-

Status Code

+

Status Codes

+
- - - - - - -

Status Code

Description

+

Description

200

+

200

Successful query

+

Successful query

400

+

400

Error response

+

Error response

500

+

500

Error response

+

Error response

-

Error Codes

See Error Codes.

+

Error Codes

See Error Codes.

diff --git a/docs/sfs/api-ref/ShowQuota.html b/docs/sfs/api-ref/ShowQuota.html new file mode 100644 index 000000000..b902f1126 --- /dev/null +++ b/docs/sfs/api-ref/ShowQuota.html @@ -0,0 +1,324 @@ + + +

Querying Tenant Quotas

+

Function

Querying tenant quotas

+
+

URI

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

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

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

The project ID.

+
+
+
+

Request Parameters

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

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

The account token.

+

Content-Type

+

Yes

+

String

+

The MIME type.

+
+
+
+

Response Parameters

Status code: 200

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

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

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

Parameter

+

Type

+

Description

+

quotas

+

ShowQuotaResource object

+

Querying tenant quotas

+
+
+ +
+ + + + + + + + + +
Table 5 ShowQuotaResource

Parameter

+

Type

+

Description

+

resources

+

Array of QuotaResource objects

+

The tenant resource quota.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 QuotaResource

Parameter

+

Type

+

Description

+

type

+

String

+

The tenant's resource type. shares indicates the file system quantity, and capacity indicates the file system capacity.

+

Enumeration values:

+
  • shares

    +
  • capacity

    +
+

used

+

Integer

+

The used quota.

+

quota

+

Integer

+

The total quota.

+

unit

+

String

+

The quota unit.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 7 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

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

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 9 Response header parameters

Parameter

+

Type

+

Description

+

X-request-id

+

String

+

The request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

errCode

+

String

+

The error code.

+

errMsg

+

String

+

The error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

Success

+
{
+  "quotas" : {
+    "resources" : [ {
+      "type" : "shares",
+      "used" : 5,
+      "quota" : 400
+    }, {
+      "type" : "capacity",
+      "used" : 0,
+      "quota" : 20,
+      "unit" : "GB"
+    } ]
+  }
+}
+

Status code: 400

+

Error response

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

Status code: 500

+

Error response

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

Status Codes

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

Status Code

+

Description

+

200

+

Success

+

400

+

Error response

+

500

+

Error response

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/ShowShare.html b/docs/sfs/api-ref/ShowShare.html index 223154129..24bcf1c0f 100644 --- a/docs/sfs/api-ref/ShowShare.html +++ b/docs/sfs/api-ref/ShowShare.html @@ -1,434 +1,475 @@

Querying Details About a File System

-

Function

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

+

Function

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

-

URI

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

+

URI

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

-
Table 1 Path Parameters

Parameter

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID

+

The project ID.

share_id

+

share_id

Yes

+

Yes

String

+

String

File system ID

+

The file system ID.

-

Request Parameters

-
Table 2 Request header parameters

Parameter

+

Request Parameters

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

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

X-Auth-Token

+

X-Auth-Token

Yes

+

Yes

String

+

String

Account token

+

The account token.

Content-Type

+

Content-Type

Yes

+

Yes

String

+

String

MIME type

+

The MIME type.

-

Response Parameters

Status code: 200

+

Response Parameters

Status code: 200

-
Table 3 Response body parameters

Parameter

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

Parameter

Type

+

Type

Description

+

Description

action_progress

+

action_progress

ActionProgress object

+

ActionProgress object

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

+

The file system creation progress. This field is only returned when the file system is being created.

version

+

version

String

+

String

Version of the SFS Turbo file system

+

The file system version.

avail_capacity

+

avail_capacity

String

+

String

Available capacity of the SFS Turbo file system, in GB

+

The available capacity of the file system, in GB.

availability_zone

+

availability_zone

String

+

String

Code of the AZ where the SFS Turbo file system resides

+

The code of the AZ where the file system resides.

az_name

+

az_name

String

+

String

Name of the AZ where the SFS Turbo file system resides

+

The name of the AZ where the file system resides.

created_at

+

created_at

String

+

String

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

+

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

crypt_key_id

+

crypt_key_id

String

+

String

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

+

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

expand_type

+

expand_type

String

+

String

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

-

export_location

-

String

-

Location where the SFS Turbo file system is mounted For example, 192.168.0.90:/. If the file system is being created, this parameter is not returned.

-

id

-

String

-

ID of the SFS Turbo file system

-

name

-

String

-

Name of the SFS Turbo file system specified during creation

-

pay_model

-

String

-

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

-

region

-

String

-

Region where the SFS Turbo file system resides

-

security_group_id

-

String

-

ID of the security group specified by the user

-

share_proto

-

String

-

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

-

share_type

-

String

-

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

-

size

-

String

-

Total capacity of the SFS Turbo file system, in GB

-

status

-

String

-

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

-

sub_status

-

String

-

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

-

subnet_id

-

String

-

ID of the subnet specified by the user

-

vpc_id

-

String

-

ID of the VPC specified by the user

-

tags

-

Array of ResourceTag objects

-

Tag list

-

optional_endpoint

-

String

-

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

-

hpc_bw

-

String

-

File system bandwidth.

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

    -

    -

    +

The extension type.

+

bandwidth is returned if the requested file system is an Enhanced file system.

+

For a 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, hpc is returned.

+

+

+

The value can be:

+
  • bandwidth

    +
  • hpc

instanceId

+

export_location

String

+

String

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

+

The file system location, for example, 192.168.0.90:/. This field is not returned when the file system is being created.

instanceType

+

id

String

+

String

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

+

The file system ID.

statusDetail

+

name

String

+

String

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

+

The file system name specified during creation.

features

+

pay_model

ShareInfoFeatures object

+

String

Whether backup is supported for SFS turbo file systems.

+

The file system billing mode. Value 0 indicates pay-per-use. This field is not returned when the file system is being created.

+

Enumeration values:

+
  • 0

    +
  • 1

    +
+

region

+

String

+

The region where the file system resides.

+

security_group_id

+

String

+

The ID of the specified security group.

+

share_proto

+

String

+

The protocol used by the SFS Turbo file system. The value can be NFS.

+

share_type

+

String

+

The file system performance type. Valid values are STANDARD and PERFORMANCE.

+

size

+

String

+

The file system total capacity, in GB.

+

status

+

String

+

The file system status.

+

Enumerated values:

+
  • 100: creating

    +
  • 200: available

    +
  • 303: creation failed

    +
  • 400: deleted

    +
  • 800: frozen

    +
+

sub_status

+

String

+

The file system sub-status. This field is not returned if no modification is made to the file system.

+

121 (expanding capacity), 132 (changing security group), 150* (adding storage backend), 151 (removing storage backend)

+

221 (expansion succeeded), 232 (security group changed), 250 (storage backend added), 251* (storage backend removed)

+

321 (expansion failed), 332 (changing security group failed), 350 (adding storage backend failed), 351 (removing storage backend failed)

+

subnet_id

+

String

+

The ID of the specified subnet.

+

vpc_id

+

String

+

The ID of the specified VPC.

+

enterprise_project_id

+

String

+

The ID of the enterprise project that file system is added to.

+

tags

+

Array of ResourceTag objects

+

The tag list.

+

optional_endpoint

+

String

+

The alternative IP addresses that can be used for mount. This field is not returned for previous-generation file systems.

+

hpc_bw

+

String

+

The file system bandwidth.

+
  • "20M": 20 MB/s/TiB

    +
  • "40M": 40 MB/s/TiB

    +
  • "125M": 125 MB/s/TiB

    +
  • "250M": 250 MB/s/TiB

    +
+

instanceId

+

String

+

The node ID of the file system type, which has no meaning. This is a reserved field.

+

instanceType

+

String

+

The node type of the file system type, which has no meaning. This is a reserved field.

+

statusDetail

+

String

+

The file system request ID, which has no meaning. This is a reserved field.

+

features

+

ShareInfoFeatures object

+

The file system feature settings.

-
Table 4 ActionProgress

Parameter

+
- - - - -
Table 4 ActionProgress

Parameter

Type

+

Type

Description

+

Description

CREATING

+

CREATING

String

+

String

File system creation progress

+

The file system creation progress.

-
Table 5 ResourceTag

Parameter

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

Parameter

Type

+

Type

Description

+

Description

key

+

key

String

+

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 (_).

+

The 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 (_).

value

+

value

String

+

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 (_).

+

The 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 (_).

-
Table 6 ShareInfoFeatures

Parameter

+
- - - - -
Table 6 ShareInfoFeatures

Parameter

Type

+

Type

Description

+

Description

backup

+

backup

ShareInfoFeature object

+

ShareInfoFeature object

Whether the SFS Turbo file system supports backup.

+

Whether the file system supports backup.

-
Table 7 ShareInfoFeature

Parameter

+
- - - - - - - - - - -
Table 7 ShareInfoFeature

Parameter

Type

+

Type

Description

+

Description

is_support

+

is_support

Boolean

+

Boolean

Whether the file system supports this feature.

+

Whether the file system supports this feature.

message

+

message

String

+

String

Message about whether the file system supports this feature.

+

The message.

msg_code

+

msg_code

String

+

String

Code of the message about whether the file system supports this feature.

+

The message code.

-

Example Requests

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

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

Example Requests

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

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

Example Responses

Status code: 200

-

Response body for querying a file system

-
{
+

Example Responses

Status code: 200

+

Query response body

+
  • Listing file systems in the project whose ID is e1e45b08f3ea4480ab4655ef9c7160ba

    +
    {
       "id" : "8fba8253-c914-439d-ae8b-d5c89d0bf5e8",
       "name" : "sfs-turbo-8468",
    -  "status" : "200",
    +  "status" : "100",
       "version" : "1.0.0",
       "region" : "example",
    -  "availability_zone" : "example",
    -  "az_name" : "example",
       "created_at" : "2018-11-19T04:02:03",
    -  "export_location" : "192.168.xx.xx:/",
    -  "action_progress" : { },
       "share_type" : "STANDARD",
    -  "sub_status" : "221",
    +  "sub_status" : "",
    +  "availability_zone" : "az1.dc1",
    +  "az_name" : "az1",
       "vpc_id" : "b24e39e1-bc0c-475b-ae0c-aef9cf240af3",
       "subnet_id" : "86fc01ea-8ec8-409d-ba7a-e0ea16d4fd97",
       "security_group_id" : "50586458-aec9-442c-bb13-e08ddc6f1b7a",
    -  "size" : "600.00",
    -  "avail_capacity" : "600.00",
    +  "size" : "500.00",
       "pay_model" : "0",
    -  "share_proto" : "NFS"
    +  "avail_capacity" : "500.00",
    +  "share_proto" : "NFS",
    +  "export_location" : "192.168.1.102:/",
    +  "optional_endpoint" : "192.168.1.102 192.168.1.232",
    +  "instanceId" : "34d65df8-342f-49fb-ac1a-60f686ca437c",
    +  "statusDetail" : "d120c389861619e7580a12cab74f6a22",
    +  "instanceType" : "efs-ha",
    +  "enterprise_project_id" : "0",
    +  "features" : {
    +    "backup" : {
    +      "is_support" : true
    +    }
    +  }
     }
    +
-

Status Codes

-
- - @@ -54,7 +54,7 @@ - - @@ -84,18 +84,7 @@ - - - - - @@ -114,7 +103,7 @@ - @@ -123,7 +112,7 @@ - diff --git a/docs/sfs/api-ref/UpdatePermRule.html b/docs/sfs/api-ref/UpdatePermRule.html index 1f1831e61..387cb87ff 100644 --- a/docs/sfs/api-ref/UpdatePermRule.html +++ b/docs/sfs/api-ref/UpdatePermRule.html @@ -3,83 +3,11 @@

Modifying a Permission Rule

Function

This API is used to modify a permission rule.

+

Constraints

This API is only supported for NFS file systems.

+

URI

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

-

Status Code

+

Status Codes

+
- - -

Status Code

Description

+

Description

200

+

200

Response body for querying a file system

+

Query response body

-

Error Codes

See Error Codes.

+

Error Codes

See Error Codes.

diff --git a/docs/sfs/api-ref/ShowSharedTags.html b/docs/sfs/api-ref/ShowSharedTags.html index 10c0b238c..03c7d0538 100644 --- a/docs/sfs/api-ref/ShowSharedTags.html +++ b/docs/sfs/api-ref/ShowSharedTags.html @@ -1,7 +1,7 @@ -

Querying Tags of a File System

-

Function

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

+

Querying All Tags of a File System

+

Function

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

URI

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

@@ -21,7 +21,7 @@

String

Project ID

+

The project ID.

share_id

@@ -30,7 +30,7 @@

String

File system ID

+

The file system ID.

String

Account token

+

The account token.

Content-Type

@@ -63,7 +63,7 @@

String

MIME type

+

The MIME type.

Array of ResourceTag objects

Tag list

-

sys_tags

-

Array of ResourceTag objects

-

Only users with the op_service permission can obtain this field.

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

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

    -
-

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

+

The tag list.

String

Tag key.

+

The 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 (_).

String

Tag value.

+

The 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 (_).

- - - - - - - - - - - - - - - - - - - - - -
Table 1 Path Parameters

Parameter

-

Mandatory

-

Type

-

Description

-

project_id

-

Yes

-

String

-

Project ID

-

share_id

-

Yes

-

String

-

File system ID

-

rule_id

-

Yes

-

String

-

Permission rule ID

-
-
-
-

Request Parameters

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

Parameter

-

Mandatory

-

Type

-

Description

-

X-Auth-Token

-

Yes

-

String

-

Account token

-

Content-Type

-

Yes

-

String

-

MIME type

-
-
- -
Table 3 Request body parameters

Parameter

+
@@ -89,38 +17,103 @@ - - - - - - + + + + + + + +
Table 1 Path Parameters

Parameter

Mandatory

ip_cidr

+

project_id

No

+

Yes

String

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

+

The project ID.

rw_type

+

share_id

No

+

Yes

String

Read/write permission of the object to be authorized.

+

The file system ID.

+

rule_id

+

Yes

+

String

+

The permission rule ID.

+
+
+ +

Request Parameters

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

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

The account token.

+

Content-Type

+

Yes

+

String

+

The MIME type.

+
+
+ +
+ + + + + + + + + - - - - @@ -130,47 +123,47 @@

Response Parameters

Status code: 200

-
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

rw_type

+

No

+

String

+

The read/write permission of the object to be authorized.

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

  • ro: read-only permission

  • none: no permission

user_type

+

user_type

No

+

No

String

+

String

System user's permission to access the file system. The value can be any of the following:

-
  • no_root_squash: default option. The client uses any user, including the root user. The NFS server retains the user used by the client and does not map the user.

    -
  • root_squash: When the client uses the root user, the user mapped to the NFS server is the NFS anonymous user (nfsnobody). If the client uses a non-root user, the NFS server retains the user used by the client and does not map the user.

    -
  • all_squash: All users of clients that access the NFS server are mapped as anonymous users.

    +

The file system access permission granted to the user of the object to be authorized. The value can be:

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

    +
  • root_squash: allows root on the client to access the file system as nfsnobody and allows a non-root user on the client to access as who they are, instead of being mapped to another user.

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

Table 4 Response body parameters

Parameter

+
- - - - - - - - - - - - - - @@ -179,26 +172,26 @@

Status code: 400

-
Table 4 Response body parameters

Parameter

Type

+

Type

Description

+

Description

id

+

id

String

+

String

Permission rule ID

+

The permission rule ID.

ip_cidr

+

ip_cidr

String

+

String

IP address or IP address range of the authorized object

+

The IP address or IP address range of the authorized object. It cannot be modified after configuration.

rw_type

+

rw_type

String

+

String

Read/write permission of the authorized object.

+

The read/write permission of the authorized object.

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

  • ro: read-only permission

  • none: no permission

user_type

+

user_type

String

+

String

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

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

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

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

    +

The file system access permission granted to the user of the authorized object. The value can be:

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

    +
  • root_squash: allows root on the client to access the file system as nfsnobody and allows a non-root user on the client to access as who they are, instead of being mapped to another user.

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

Table 5 Response body parameters

Parameter

+
- - - - - - - - @@ -206,26 +199,26 @@

Status code: 500

-
Table 5 Response body parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

Table 6 Response body parameters

Parameter

+
- - - - - - - - @@ -238,7 +231,7 @@ }

Example Responses

Status code: 200

-

Successful creation

+

Success

{
   "id" : "1131ed520xxxxxxebedb6e57xxxxxxxx",
   "ip_cidr" : "192.32.0.0/16",
@@ -259,25 +252,25 @@
 }

Status Codes

-
Table 6 Response body parameters

Parameter

Type

+

Type

Description

+

Description

errCode

+

errCode

String

+

String

Error code

+

The error code.

errMsg

+

errMsg

String

+

String

Error description

+

The error message.

- + + +

Status Code

+
- - - - - - - diff --git a/docs/sfs/api-ref/sfs_02_0009.html b/docs/sfs/api-ref/sfs_02_0009.html index 73be2ac5c..e63900162 100644 --- a/docs/sfs/api-ref/sfs_02_0009.html +++ b/docs/sfs/api-ref/sfs_02_0009.html @@ -80,7 +80,7 @@

Status Code

Description

+

Description

200

+

200

Successful creation

+

Success

400

+

400

Error response

+

Error response

500

+

500

Error response

+

Error response

-

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

+

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
 
@@ -156,7 +156,7 @@

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:

+

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:

- @@ -44,7 +44,7 @@ - - - @@ -321,7 +321,7 @@
1
 2
POST https://{{endpoint}}/v3/auth/tokens
 Content-Type: application/json
@@ -165,7 +165,7 @@
 

(Optional) Request Body

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

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

-

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

+

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
@@ -221,7 +221,7 @@
 }
 
-

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.

+

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

diff --git a/docs/sfs/api-ref/sfs_02_0011.html b/docs/sfs/api-ref/sfs_02_0011.html index 794384458..229a20ce4 100644 --- a/docs/sfs/api-ref/sfs_02_0011.html +++ b/docs/sfs/api-ref/sfs_02_0011.html @@ -3,15 +3,15 @@

Authentication

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 authentication is recommended because it is more secure than token authentication.
  • Token authentication: Requests are authenticated using tokens.
-

AK/SK Authentication

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

+

AK/SK Authentication

  • AK/SK authentication supports API requests with a body not larger than 12 MB. For API requests with a larger body, token authentication is recommended.
  • API Gateway checks the time format and compares the request time with the time when API Gateway received the request. If the time difference exceeds 15 minutes, API Gateway will reject the request. So, the local time on the client must be synchronized with the clock server to avoid a large offset in the value of X-Sdk-Date in the request header.
-

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, an AK/SK pair is used to sign requests and the signature is then added to the requests for authentication.

  • AK: access key ID, which is a unique identifier used in conjunction with a secret access key to sign requests cryptographically.
  • SK: secret access key, which is used in conjunction with an AK to sign requests cryptographically. It identifies a request sender and prevents the request from being modified.
-

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

+

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

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

-

Token Authentication

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

+

Token Authentication

  • A token remains valid for 24 hours after it is generated. You can cache a token and reuse it for authentication instead of generating a new one each time.
  • Before using a token, ensure that it has sufficient time remaining before expiration. Using a near-expiry token may cause API call failures.

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 a User Token API.

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

@@ -24,10 +24,10 @@ ], "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. + "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 that the IAM user belongs to + "name": "domainname" // Name of the domain that the IAM user belongs to } } } diff --git a/docs/sfs/api-ref/sfs_02_0012.html b/docs/sfs/api-ref/sfs_02_0012.html index 3b87beda7..f6a5a41ac 100644 --- a/docs/sfs/api-ref/sfs_02_0012.html +++ b/docs/sfs/api-ref/sfs_02_0012.html @@ -3,10 +3,10 @@

Response

Status Code

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

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

-

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

+

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

Response Header

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

-

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

+

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

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

Figure 1 Header fields of the response to the request for obtaining a user token
diff --git a/docs/sfs/api-ref/sfs_02_0014.html b/docs/sfs/api-ref/sfs_02_0014.html index 9f1c44b05..9711eabfb 100644 --- a/docs/sfs/api-ref/sfs_02_0014.html +++ b/docs/sfs/api-ref/sfs_02_0014.html @@ -41,7 +41,7 @@ "is_public": false } } -
  • #sfs_crypt_key_id: Specifies the encryption key ID. If #sfs_crypt_key_id, #sfs_crypt_domain_id, and #sfs_crypt_alias exist at the same time, the data encryption function is enabled.
  • #sfs_crypt_domain_id: Specifies the tenant domain ID. If #sfs_crypt_domain_id, #sfs_crypt_key_id, and #sfs_crypt_alias exist at the same time, the data encryption function is enabled.
  • #sfs_crypt_alias: Specifies the encryption key alias. If #sfs_crypt_alias, #sfs_crypt_key_id, and #sfs_crypt_domain_id exist at the same time, the data encryption function is enabled.
+
  • #sfs_crypt_key_id: Specifies the encryption key ID. If #sfs_crypt_key_id, #sfs_crypt_domain_id, and #sfs_crypt_alias exist at the same time, the data encryption function is enabled.
  • #sfs_crypt_domain_id: Specifies the tenant domain ID. If #sfs_crypt_domain_id, #sfs_crypt_key_id, and #sfs_crypt_alias exist at the same time, the data encryption function is enabled.
  • #sfs_crypt_alias: Specifies the encryption key alias. If #sfs_crypt_alias, #sfs_crypt_key_id, and #sfs_crypt_domain_id exist at the same time, the data encryption function is enabled.
diff --git a/docs/sfs/api-ref/sfs_02_0015.html b/docs/sfs/api-ref/sfs_02_0015.html index 11f92f824..c84f85f51 100644 --- a/docs/sfs/api-ref/sfs_02_0015.html +++ b/docs/sfs/api-ref/sfs_02_0015.html @@ -5,7 +5,7 @@

The token obtained from IAM is valid for only 24 hours. If you want to use one token for authentication, you can cache it to avoid frequently calling.

Involved APIs

If you use a token for authentication, you must obtain the token and add X-Auth-Token to the request header of the API when making a call. The following APIs are involved in the request for creating an SFS Turbo file system:

-
  • API for obtaining tokens from IAM
  • API for creating SFS Turbo file systems.
+
  • IAM API used to obtain a token
  • API for creating SFS Turbo file systems.

Procedure

  1. Obtain the token by following instructions in Authentication.
  2. Add X-Auth-Token to the request header.
  3. Specify the following parameters in the request body:

    {
       "share": {
    diff --git a/docs/sfs/api-ref/sfs_02_0049.html b/docs/sfs/api-ref/sfs_02_0049.html
    index c2c48d909..4f481bd59 100644
    --- a/docs/sfs/api-ref/sfs_02_0049.html
    +++ b/docs/sfs/api-ref/sfs_02_0049.html
    @@ -12,10 +12,14 @@
     
  4. + +
diff --git a/docs/sfs/api-ref/sfs_02_0080.html b/docs/sfs/api-ref/sfs_02_0080.html index 63f82dba4..c3841c8f2 100644 --- a/docs/sfs/api-ref/sfs_02_0080.html +++ b/docs/sfs/api-ref/sfs_02_0080.html @@ -4,7 +4,7 @@

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.

-
  • Policy-based authorization is useful if you want to allow or deny the access to an API.
+

Policy-based authorization is useful if you want to allow or deny the access to an API.

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.

Supported Actions

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:

diff --git a/docs/sfs/api-ref/sfs_02_0083.html b/docs/sfs/api-ref/sfs_02_0083.html index 69fdadfb9..614a9c35a 100644 --- a/docs/sfs/api-ref/sfs_02_0083.html +++ b/docs/sfs/api-ref/sfs_02_0083.html @@ -21,8 +21,8 @@

sfsturbo:shares:createShare

  • You must have VPC-related permissions when creating an SFS Turbo instance, including the permissions for verifying VPCs, subnets, and security groups, creating virtual IP addresses and ports, and creating security group rules. You must add the following action:
    • "vpc:*:*"
    -
  • The KMS Administrator permission needs to be configured for the encrypted instance in the project.
+
  • Creating an SFS Turbo file system requires VPC-related permissions, including the permissions for verifying VPCs, subnets, and security groups, creating virtual IP addresses and ports, and creating security group rules.
    • "vpc:*:*"
    +
  • Creating an encrypted SFS Turbo file system requires the KMS Administrator permissions.

√

sfsturbo:shares:deleteShare

  • To delete an SFS Turbo instance, you must have VPC-related permissions, including the permissions for deleting virtual IP addresses, ports, and security group rules. You must add the following action:
    • "vpc:*:*"
    +
  • Deleting an SFS Turbo file system requires VPC-related permissions, including the permissions for deleting virtual IP addresses and ports and deleting security group rules.
    • "vpc:*:*"

√

@@ -96,7 +96,7 @@

sfsturbo:shares:shareAction

To modify a security group, you must have the following permissions:

+

Changing a security group requires the following permissions:

  • vpc:securityGroups:*
  • vpc:securityGroupRules:*

√

@@ -244,7 +244,7 @@

√

Querying Permissions Rules of a File System

+

Querying Permission Rules of a File System

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

-

APIs for Console Only

+

Console Reference

Permission

API

@@ -383,6 +383,35 @@
+

Tenant Quota Management

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

Permission

+

API

+

Action

+

Dependent Permission

+

IAM Project

+

(Project)

+

Querying Tenant Quotas

+

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

+

sfsturbo:shares:getQuota

+

-

+

√

+
+
+

2025-04-07

+

2025-09-28

+

Updated the following content:

+

Added the description of tag-related APIs.

+

2025-04-07

Updated the following content:

  • Added descriptions about General Purpose File System APIs.
  • Updated section SFS Turbo Actions.
diff --git a/docs/sfs/api-ref/sfs_02_0110.html b/docs/sfs/api-ref/sfs_02_0110.html index 2f9bea242..2305740ec 100644 --- a/docs/sfs/api-ref/sfs_02_0110.html +++ b/docs/sfs/api-ref/sfs_02_0110.html @@ -9,6 +9,8 @@ + diff --git a/docs/sfs/api-ref/sfs_03_0001.html b/docs/sfs/api-ref/sfs_03_0001.html new file mode 100644 index 000000000..523ad8f9a --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0001.html @@ -0,0 +1,26 @@ + + +

Tags

+

+
+ + diff --git a/docs/sfs/api-ref/sfs_03_0002.html b/docs/sfs/api-ref/sfs_03_0002.html new file mode 100644 index 000000000..1bc87682c --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0002.html @@ -0,0 +1,225 @@ + + +

Batch Adding Tags to a Resource

+

Function

This API is used to batch add tags for a general purpose file system. You can add up to 20 tags to a resource.

+
+

URI

  • POST /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tags/create
  • Parameter description +
    + + + + + + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +

    resource_id

    +

    Yes

    +

    String

    +

    The resource ID, which is the name of a general purpose file system.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

tags

+

No

+

List<resource_tag>

+

The tag list. For details, see Table 3.

+

This parameter is mandatory for common tenants.

+

Use either tags or sys_tags if you have the op_service permissions.

+

sys_tags

+

No

+

List<resource_tag>

+

The system tag list. This parameter is available only to the op_service permissions.

+

Use either tags or sys_tags if you have the op_service permissions.

+

Only one resource_tag structure is used in TMS calls currently.

+

The key is fixed at _sys_enterprise_project_id.

+

The value can be UUID or 0. 0 indicates the default enterprise project.

+

System tags can only be added.

+

For details, see Table 3.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 resource_tag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

The tag key. A tag key can contain a maximum of 128 characters. It can contain letters, digits, and spaces representable in UTF-8 and special characters (_.:=+-@). It cannot start or end with a space and cannot be left empty. Tag keys starting with _sys_ are system tags, and you cannot start a tag key with _sys_.

+

value

+

No

+

String

+

The tag value. A tag value can contain a maximum of 255 characters. It can contain letters, digits, and spaces representable in UTF-8 and special characters (_.:=+-@) and can be left empty. It cannot start or end with a space.

+
+
+
+

Response Parameters

None

+
+

Example Request

Batch adding tags to a general purpose file system whose name is bucketName with the project ID c80a2157ba1d46c0825265947342077c:

+
POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/bucketName/tags/create
+

Request body example:

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

Example Response

None

+
+

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

204

+

Resource tags are added.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_03_0003.html b/docs/sfs/api-ref/sfs_03_0003.html new file mode 100644 index 000000000..983a5bbff --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0003.html @@ -0,0 +1,176 @@ + + +

Batch Deleting Tags from a Resource

+

Function

This API is used to batch delete tags from a specified resource. System tags cannot be deleted. If any tag to be deleted is not found, a successful result is returned.

+
+

URI

  • POST /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tags/delete
+
  • Parameter description +
    + + + + + + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +

    resource_id

    +

    Yes

    +

    String

    +

    The resource ID, which is the name of a general purpose file system.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

tags

+

Yes

+

List<resource_tag>

+

The tag list. For details, see Table 3.

+
+
+
+

Response Parameters

None

+
+

Example Request

Batch deleting tags from a general purpose file system whose name is bucketName with the project ID c80a2157ba1d46c0825265947342077c:

+
+
POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/bucketName/tags/delete
+

Request body example:

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

Example Response

None

+
+

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

204

+

Resource tags are deleted.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_03_0004.html b/docs/sfs/api-ref/sfs_03_0004.html new file mode 100644 index 000000000..0859d8c8e --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0004.html @@ -0,0 +1,187 @@ + + +

Querying Tags of a Resource

+

Function

This API is used to query tags of a specified resource.

+
+

URI

  • GET /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tags
+
  • Parameter description +
    + + + + + + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +

    resource_id

    +

    Yes

    +

    String

    +

    The resource ID, which is the name of a general purpose file system.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+
+

Response Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Response body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

tags

+

No

+

List<resource_tag>

+

The tag list. For details, see Table 3.

+

sys_tags

+

No

+

List<resource_tag>

+

The system tag list. This parameter is only available to users with the op_service permission.

+

This field contains only one resource_tag structure currently.

+

The key is fixed at _sys_enterprise_project_id.

+

The value is the ID of an enterprise project. Value 0 indicates the default enterprise project.

+

For details, see Table 3.

+
+
+
+

Example Request

Querying tags of a general purpose file system whose name is bucketName with the project ID c80a2157ba1d46c0825265947342077c:

+
GET https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/bucketName/tags
+
+

Example Response

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

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

200

+

Resource tags queried.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_03_0005.html b/docs/sfs/api-ref/sfs_03_0005.html new file mode 100644 index 000000000..1404548ff --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0005.html @@ -0,0 +1,410 @@ + + +

Querying Resources by Tag

+

Function

This API is used to list resources by tag. Resources are sorted by the time when they are created, in descending order.

+
+

URI

  • POST /v3/sfs/tms/{project_id}/file-systems/resource-instances/filter
+
  • Parameter description +
    + + + + + + + + + + + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +

    limit

    +

    No

    +

    Int

    +

    The number of records to be queried. The value ranges from 1 to 1000, and the default value is 1000.

    +

    offset

    +

    No

    +

    Int

    +

    The index location. The query starts from the next data record indexed by this parameter. The default value is 0, indicating that the query starts from the first data record. The value cannot be a negative number.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

without_any_tag

+

No

+

boolean

+

Excludes any of the specified tags. If this parameter is set to true, all resources without tags are queried. In this case, the tags field is ignored. If this parameter is set to false or not specified, it does not take effect, which means that all resources are returned or resources are filtered by tags or matches.

+

tags

+

No

+

List<tag>

+

Includes specified tags. A maximum of 20 tags can be specified. Tag keys must be unique. Each tag key can have a maximum of 20 tag values. A tag value can be empty but the structure cannot be missing. Tag values of the same key must be unique.

+

The response returns resources containing all tags in this list. Keys in this list are in an AND relationship while values in each key-value structure is in an OR relationship. If this parameter is not specified, all resources will be returned.

+

For details, see Table 3.

+

sys_tags

+

No

+

List<tag>

+

Contains system tags. This parameter is only available to users with the op_service permission.

+

This parameter cannot be used with filtering criteria without_any_tag and tags at the same time.

+

This field contains only one tag structure currently.

+

The key is fixed at _sys_enterprise_project_id.

+

The value is the ID of an enterprise project.

+

The key contains only one value. Value 0 indicates the default enterprise project.

+

For details, see Table 3.

+

matches

+

No

+

List<match>

+

The fields to be matched. The key in match is a dictionary value fixed at resource_name, meaning that the prefix search is performed based on the value of the key. It will be extended later.

+

For details, see Table 4.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 tag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

The tag key. A tag key can contain a maximum of 128 characters. It can contain letters, digits, and spaces representable in UTF-8 and special characters (_.:=+-@). It cannot start or end with a space and cannot be left empty. Tag keys starting with _sys_ are system tags, and you cannot start a tag key with _sys_.

+

values

+

Yes

+

List<String>

+

The tag value list. A value can be an empty array but cannot be left blank. If the list specified by values is empty arrays, any tag value can be queried. The values are in the OR relationship.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 match

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

The key. The key is fixed at resource_name currently. Other key values will be available later.

+

value

+

Yes

+

String

+

The value. Each tag value can contain a maximum of 255 Unicode characters. The character set is not verified.

+
+
+
+

Response Parameters

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

Parameter

+

Mandatory

+

Type

+

Description

+

resources

+

Yes

+

List<resource>

+

The resource list. For details, see Table 6.

+

total_count

+

Yes

+

Integer

+

The total number of records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 resource

Parameter

+

Mandatory

+

Type

+

Description

+

resource_id

+

Yes

+

String

+

The resource ID.

+

resource_detail

+

Yes

+

Object

+

The resource details. This value is left empty by default. The value is a resource object used for extension.

+

tags

+

Yes

+

List<resource_tag>

+

The tag list. If there is no tag, an empty array is used by default.

+

For details, see Table 3.

+

sys_tags

+

No

+

List<resource_tag>

+

This parameter is only available to users with the op_service permission.

+

This field contains only one resource_tag structure currently.

+

The key is fixed at _sys_enterprise_project_id.

+

The value is the ID of the enterprise project. Value 0 indicates the default enterprise project.

+

For details, see Table 3.

+

resource_name

+

Yes

+

String

+

The resource name. This parameter is an empty string if there is no resource name.

+
+
+
+

Example Request

Listing resources (with the project ID set to **c80a2157ba1d46c0825265947342077c**, offset to **0**, and limit to **10**):

+
POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/resource-instances/filter?limit=10&offset=0
+

Request body example:

+
{
+    "tags":[
+        {
+            "key":"key1",
+            "values":[
+                "value1",
+                "value2"
+            ]
+        },
+        {
+            "key":"key2",
+            "values":[
+                "value1",
+                "value2"
+            ]
+        }
+    ],
+    "matches":[
+        {
+            "key":"resource_name",
+            "value":"resource1"
+        }
+    ],
+    "without_any_tag":"false"
+}
+
+

Example Response

{
+    "resources":[
+        {
+            "resource_detail":"",
+            "resource_id":"resource1",
+            "resource_name":"resource1",
+            "tags":[
+                {
+                    "key":"key1",
+                    "value":"value1"
+                }
+            ],
+            "sys_tags":[]
+        }
+    ],
+    "total_count":1
+}
+
+

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

200

+

Resources listed.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_03_0006.html b/docs/sfs/api-ref/sfs_03_0006.html new file mode 100644 index 000000000..fac78b5cb --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0006.html @@ -0,0 +1,240 @@ + + +

Querying the Number of Resources by Tag

+

Function

This API is used to query the number of resources.

+
+

URI

  • POST /v3/sfs/tms/{project_id}/file-systems/resource-instances/count
+
  • Parameter description +
    + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

without_any_tag

+

No

+

boolean

+

Excludes resources with any of the specified tags. If this parameter is set to true, all resources without tags are queried. In this case, the tags field is ignored. If this parameter is set to false or not specified, it does not take effect, which means that all resources are returned or resources are filtered by tags or matches.

+

tags

+

No

+

List<tag>

+

The resources to be queried contain tags listed in tags. Each resource to be queried can contain a maximum of 20 tag keys, and each key can have a maximum of 20 values. The tag value of a tag key can be an empty array but the structure cannot be missing. Each tag key must be unique, and the tag values of a key must also be unique. The response returns resources containing all tags in this list. Keys in this list are in an AND relationship while values in each key-value structure is in an OR relationship. If this parameter is not specified, all resources will be returned.

+

For details, see Table 3.

+

sys_tags

+

No

+

List<tag>

+

Contains system tags. This parameter is only available to users with the op_service permission.

+

This parameter cannot be used with filtering criteria without_any_tag and tags at the same time.

+

This field contains only one tag structure currently.

+

The key is fixed at _sys_enterprise_project_id.

+

The value is the ID of an enterprise project.

+

The key contains only one value. Value 0 indicates the default enterprise project.

+

For details, see Table 3.

+

matches

+

No

+

List<match>

+

The fields to be matched. The key in match is a dictionary value fixed at resource_name, meaning that the prefix search is performed based on the value of the key. It will be extended later.

+

For details, see Table 4.

+
+
+
+

Response Parameters

+
+ + + + + + + + + + + +
Table 3 Response body parameter

Parameter

+

Mandatory

+

Type

+

Description

+

total_count

+

Yes

+

Integer

+

The total number of records.

+
+
+
+

Example Request

Querying the number of resources using project ID **c80a2157ba1d46c0825265947342077c**:

+
POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/resource-instances/count
+

Request body example:

+
{
+    "tags":[
+        {
+            "key":"key1",
+            "values":[
+                "value1",
+                "value2"
+            ]
+        },
+        {
+            "key":"key2",
+            "values":[
+                "value1",
+                "value2"
+            ]
+        }
+    ],
+    "matches":[
+        {
+            "key":"resource_name",
+            "value":"resource1"
+        }
+    ],
+    "without_any_tag":"true"
+}
+
+

Example Response

{
+    "total_count":1
+}
+
+

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

200

+

Number of resources queried.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/sfs_03_0007.html b/docs/sfs/api-ref/sfs_03_0007.html new file mode 100644 index 000000000..42fea7c17 --- /dev/null +++ b/docs/sfs/api-ref/sfs_03_0007.html @@ -0,0 +1,170 @@ + + +

Querying Tags in a Project

+

Function

This API is used to query tags of all resources owned by a tenant in a specified project.

+
+

URI

  • GET /v3/sfs/tms/{project_id}/file-systems/tags
  • Parameter description +
    + + + + + + + + + + + +

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    The project ID.

    +
    +
    +
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 1 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

Content-type

+

Yes

+

String

+

The MIME type of the request body.

+

Example: application/json

+

X-Auth-Token

+

No

+

String

+

The user token.

+
+
+
+

Response Parameters

+
+ + + + + + + + + + + +
Table 2 Response body parameter

Parameter

+

Mandatory

+

Type

+

Description

+

tags

+

Yes

+

List<tag>

+

The tag list. For details, see Table 3.

+
+
+
+

Example Request

Querying tags using project ID **c80a2157ba1d46c0825265947342077c**:

+
GET https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/tags
+
+

Example Response

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

Status Codes

  • Normal
+ +
+ + + + + + + +

Status Code

+

Description

+

200

+

Resource tags queried by project.

+
+
+
  • Abnormal
+ +
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

400

+

Invalid tag parameter.

+

401

+

Certification failed.

+

403

+

Authentication failed.

+

404

+

Resource not found.

+

500

+

System error.

+
+
+
+
+
+ +
+ diff --git a/docs/sfs/api-ref/topic_300000000.html b/docs/sfs/api-ref/topic_300000000.html index 4e7ad1520..79e8eccca 100644 --- a/docs/sfs/api-ref/topic_300000000.html +++ b/docs/sfs/api-ref/topic_300000000.html @@ -11,7 +11,7 @@ - diff --git a/docs/sfs/api-ref/topic_300000002.html b/docs/sfs/api-ref/topic_300000002.html index d6d9903c0..5c8406b79 100644 --- a/docs/sfs/api-ref/topic_300000002.html +++ b/docs/sfs/api-ref/topic_300000002.html @@ -5,16 +5,18 @@
diff --git a/docs/sfs/api-ref/topic_300000011.html b/docs/sfs/api-ref/topic_300000011.html new file mode 100644 index 000000000..a689b8e48 --- /dev/null +++ b/docs/sfs/api-ref/topic_300000011.html @@ -0,0 +1,16 @@ + + +

Tenant Quota Management

+

+
+
+ + + +
+