getDetail
- 印刷する
- PDF
getDetail
- 印刷する
- PDF
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
VPC環境で利用できます。
作成した Notebookの詳細情報を確認します。
リクエスト
リクエストパラメータ
パラメータ名 | 要否 | タイプ | 制約事項 | 説明 |
---|---|---|---|---|
id | YES | String | - idは Notebooksの getList APIを通じて取得可能 |
リクエストヘッダ
リクエストボディ
- JSON
{ "id": "string" }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetNotebookDetailRequest> <id>string</id> </GetNotebookDetailRequest>
レスポンス
レスポンスボディ
- JSON
{ "acgName": "string", "acgNo":0, "additionalStorage": { "storageGB": 0, "storageType": "string" }, "createdAt": "2023-06-07T06:28:34.992Z", "domain": "string", "id": "string", "loginKeyName": "string", "message": "string", "name": "string", "serverDesc": "string", "sshAccount": "string", "state": "ACCEPTED", "subnetName": "string", "subnetNo": 0, "success": true, "typeName": "string", "userConfigurations": [ { "componentName": "string", "description": "string", "isMasking": true, "name": "string", "regexpDescription": "string", "regularExpression": "string", "value": "string" } ], "vpcName": "string", "vpcNo": 0 }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetNotebookDetailResponse> <acgName>string</acgName> <acgNo>0</acgNo> <additionalStorage> <storageGB>0</storageGB> <storageType>string</storageType> </additionalStorage> <createdAt>2023-06-07T06:28:51.589Z</createdAt> <domain>string</domain> <id>string</id> <loginKeyName>string</loginKeyName> <message>string</message> <name>string</name> <serverDesc>string</serverDesc> <sshAccount>string</sshAccount> <state>ACCEPTED</state> <subnetName>string</subnetName> <subnetNo>0</subnetNo> <success>true</success> <typeName>string</typeName> <userConfigurations> <componentName>string</componentName> <description>string</description> <isMasking>true</isMasking> <name>string</name> <regexpDescription>string</regexpDescription> <regularExpression>string</regularExpression> <value>string</value> </userConfigurations> <vpcName>string</vpcName> <vpcNo>0</vpcNo> </GetNotebookDetailResponse>
エラーコード
HTTP Status | Description |
---|---|
400 | invalid request parameters |
403 | not allowed to access |
404 | no such element |
500 | unexpected error |
例
リクエスト例
POST https://df.apigw.ntruss.com/api/v2/notebooks/getDetail
HOST: df.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: Azm1WBMWDgEONUCUbsVkB4tRIpc053uOHU8bitbQRtU=
x-ncp-apigw-timestamp: 1658898041497
x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu
{
"id": "7kHeVWhiRsxdRl0nXz04ri"
}
curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getDetail" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
-H "x-ncp-apigw-timestamp: 1684750174503" \
-H "x-ncp-apigw-signature-v2: bj7hVWhEfBRCr49ztbXA4OxXpZgezJXryP83IcSFmbg=" \
-d "{ \"id\": \"7kHeVWhiRsxdRl0nXz04ri\"}"
レスポンス例
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "id": "7kHeVWhiRsxdRl0nXz04ri", "name": "df-notebook", "typeName": "Jupyter Lab", "state": "RUNNING", "vpcNo": 8717, "vpcName": "test-vpc", "subnetName": "prisub-kr", "acgNo":7178, "acgName": "df-notebook-acg-1ss11", "serverDesc": "vCPU 4EA, Memory 16GB, [HDD]Disk 50GB", "loginKeyName": "subin-beta", "domain": "7khevwhirsxdrl0nxz04ri-notebook.kr.df.beta.naverncp.com:18080", "sshAccount": "forest", "additionalStorage": { "storageGB": 0, "storageType": "SSD" }, "userConfigurations": [ { "name": "Access Password", "value": "", "componentName": "Jupyter Lab", "regularExpression": "^[a-zA-Z][a-zA-Z0-9]{1,7}$", "isMasking": true }, { "name": "Access Key", "value": "", "componentName": "Object Storage", "regularExpression": ".*", "isMasking": true }, { "name": "Secret Key", "value": "", "componentName": "Object Storage", "regularExpression": ".*", "isMasking": true } ] }
エラーコードの例
HTTP
HTTP Status Description 404 no such element BASH
{ "message": "no such element", "success": false }
この記事は役に立ちましたか?