checkHasResource
- Print
- PDF
checkHasResource
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Check if there are resources created belonging to the account before deleting a Date Forest account.
Requests
Request parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
id | YES | String | Enter up to 22 characters. | Account identifier UUID (base62) Id can be obtained through getList API in Accounts |
Request headers
Request Bodies
- JSON
{ "id": "string" }
- XML
<?xml version="1.0" encoding="UTF-8"?> <CheckAccountHasResourceRequest> <id>string</id> </CheckAccountHasResourceRequest>
Responses
Response bodies
- JSON
{
"success": true,
"hasResource": true
}
XML
<?xml version="1.0" encoding="UTF-8"?> <CheckAccountHasResourceResponse> <success>true</success> <message>success</message> <id>string</id> <hasResource>true</hasResource> </CheckAccountHasResourceResponse>
Errors
Examples
Request examples
- HTTP
POST https://df.apigw.ntruss.com/api/v2/accounts/checkHasResource HOST: df.apigw.ntruss.com Content-Type: application/json x-ncp-apigw-timestamp: 1505290625682 x-ncp-iam-access-key: D78BB444D6D3C84CA38A x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo= { "id": "bQzIBjrQEtRktPBnc8PpyC" }
- BASH
curl -X POST "https://df.apigw.ntruss.com/api/v2/accounts/checkHasResource" \ -H "accept: application/json" \ -H "Content-Type: application/json" \ -H "x-ncp-apigw-timestamp:1505290625682" \ -H "x-ncp-iam-access-key:D78BB444D6D3C84CA38A" \ -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \ -d "{ \"id\": \"bQzIBjrQEtRktPBnc8PpyC\"}" \
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "hasResource": true }
Was this article helpful?