Checking Whether the Module Name Is Duplicate
Function
This API is used to check whether the module name is duplicate.
Calling Method
For details, see Calling APIs.
URI
GET /v2/module/module-name-validation
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition: 32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API. Constraints: The value must contain 32 characters. Digits and letters are allowed. Value range: N/A Default value: N/A |
module_name |
No |
String |
Definition: Module name. Constraints: N/A Value range: N/A Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: User token. Obtain a token by calling the IAM API forobtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints: Mandatory. Value range: Minimum length: 10 characters. Maximum length: 32,768 characters. Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
result object |
Definition: Returned result object. |
status |
String |
Definition: Returned status of a project. Value range: success: successful error: failed |
Example Requests
GET http://{endpoint}/v2/module/module-name-validation?module_name=%E9%98%BF%E8%90%A8%E8%BE%BE%E6%98%AF&project_id=5192de5eb435430c8cd41c6ae6028848&_=1753684289029
Example Responses
Status code: 200
OK (The request has succeeded).
{ "result" : { "exist" : true }, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK (The request has succeeded). |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot