Checking Whether an Application with the Same Name Exists in a Project
Function
This API is used to check whether an application with the same name exists in a project.
Calling Method
For details, see Calling APIs.
URI
GET /v1/applications/exist
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Application name Minimum: 1 Maximum: 128 |
project_id |
Yes |
String |
Project ID Minimum: 32 Maximum: 32 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. Minimum: 0 Maximum: 20000 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
Boolean |
Whether an application with the same name exists in the project. |
status |
String |
Request success or failure status |
Example Requests
https://{endpoint}/v1/applications/exist?name=test&project_id=46e2dd65b123456798137caebae6fa6d
Example Responses
Status code: 200
OK: The request is successful.
{ "result" : false, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK: The request is successful. |
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