setLifetime
- Print
- PDF
setLifetime
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Changes the Data Forest app's lifetime.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
id | YES | String | Enter up to 22 characters. | - app identifier UUID (base62) - id can be acquired through getList API of Apps. |
lifetime | NO | Integer | 300 seconds-604800 seconds | The app's lifetime (unit: second) |
Request headers
Request Bodies
- JSON
{ "id": "string", "lifetime": 0 }
- XML
<?xml version="1.0" encoding="UTF-8"?> <SetAppLifetimeRequest> <id>string</id> <lifetime>0</lifetime> </SetAppLifetimeRequest>
Responses
Response bodies
- JSON
{ "id": "string", "message": "string", "success": true }
- XML
<?xml version="1.0" encoding="UTF-8"?> <SetAppLifetimeResponse> <id>string</id> <message>string</message> <success>true</success> </SetAppLifetimeResponse>
Errors
Examples
Request Examples
HTTP
POST https://df.apigw.ntruss.com/api/v2/apps/setLifetime HOST: df.apigw.ntruss.com Content-Type: application/json x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo= x-ncp-apigw-timestamp: 1658898041497 x-ncp-iam-access-key: 17F9A6E9F72BD92ED94B { "id": "A4LI7d5mRn1f6M2HxZAEE2", "lifetime": 400 }
BASH
curl -X POST "https://df.apigw.ntruss.com/api/v2/apps/setLifetime" \ -H "accept: application/json" \ -H "Content-Type: application/json" \ -H "x-ncp-apigw-timestamp:1658898041497" \ -H "x-ncp-iam-access-key:17F9A6E9F72BD92ED94B" \ -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \ -d "{ \"id\": \"A4LI7d5mRn1f6M2HxZAEE2\", \"lifetime\": 400}" \
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "message": "success", "id": "A4LI7d5mRn1f6M2HxZAEE2" }
Was this article helpful?