setLifetime
    • PDF

    setLifetime

    • PDF

    記事の要約

    VPC環境で利用できます。

    Data Forestアプリの lifetimeを変更します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    idYESString最大22文字まで入力- アプリ識別子 UUID(base62)
    - idは Appsの getList APIを通じて取得可能
    lifetimeNOInteger300(秒)~604800(秒)アプリの lifetime(稼働時間) (単位: 秒)

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
        {
            "id": "string",
            "lifetime": 0
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <SetAppLifetimeRequest>
            <id>string</id>
            <lifetime>0</lifetime>
        </SetAppLifetimeRequest>
      

    レスポンス

    レスポンスボディ

    • 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>
      

    エラーコード

    DataForest概要参照

    リクエスト例

    • 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}" \
      

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
          "success": true,
          "message": "success",
          "id": "A4LI7d5mRn1f6M2HxZAEE2"
      }
      

    この記事は役に立ちましたか?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.