Share feedback
Thanks for sharing your feedback!
基本情報
API URL
KR: https://ncr.apigw.ntruss.com/ncr/api
SGN: https://ncr.apigw.ntruss.com/ncr/sgn-api
JPN: https://ncr.apigw.ntruss.com/ncr/jpn-api
項目 | Mandatory | 説明 |
---|
Content-Type | Mandatory | リクエストBody Content Typeをapplication/jsonに指定 |
x-ncp-apigw-timestamp | Mandatory | 1970年1月1日 00:00:00協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)に表したものです。 API Gatewayサーバとの時間差が5分以上の場合は無効なリクエストとしてみなします。 |
x-ncp-iam-access-key | Mandatory | ポータルまたはSub Accountから発行されたAccess Key ID |
x-ncp-apigw-signature-v2 | Mandatory | 上記の例題のBodyをAccess Key IdとマッピングされたSecretKeyで暗号化した署名 HMAC暗号化のアルゴリズムはHmacSHA256を使用 |
NAVER Cloud Platform認証キー及びSignature作成ガイドの表示
Container Registry API V2
Registryリスト返却
Container Registryに登録されたRegistryリストを返します。
リクエストURL
GET https://ncr.apigw.ntruss.com/ncr/api/v2/repositories
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Headers
API Headerの表示
Parameters
項目 | Mandatory | Type | 説明 | 備考 |
---|
page | - | number | ページ番号 | 照会するページ番号、ページ番号は0より大きい値を入力 |
pagesize | - | number | ページサイズ | 照会するページサイズ、ページサイズは0より大きい値を入力 |
レスポンスBody
{
"count": "number",
"next": "number",
"previous": "number",
"results": [
{
"name": "string",
"bucket": "string",
"end_point": "string",
"usage": "string",
"created": "number",
"status": "string"
}
]
}
項目 | Type | 説明 | 備考 |
---|
count | number | 登録されたレジストリの数 | |
next | number | 次ページの番号、次ページがない場合はNullを返却 | |
previous | number | 以前ページの番号、 以前ページがない場合はNullを返却 | |
results[].name | string | レジストリ名 | |
results[].bucket | string | レジストリを連携されたObject StorageのBucket名 | |
results[].end_point | string | Docker Clientが Registryにアクセスするためのエンドポイント | |
results[].created | number | レジストリの作成日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
results[].status | string | レジストリのステータスを返却 | Object Storageとの連携ステータスを表示、正常状態であれば running を返却、Bucketが削除されている場合は disconnected を返却 |
レスポンスStatus
HTTP Status | Desc |
---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
新規Registry登録
Object StorageのBucketと連携されたRegistryを作成します。
リクエストURL
POST https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 作成するレジストリ名 |
Headers
API Headerの表示
リクエストBody
{
"bucket": "string"
}
項目 | Mandatory | Type | 説明 | 備考 |
---|
bucket | Mandatory | string | Bucket名 | 作成されるレジストリと連携されるObject StorageのBucket名、重複使用不可 |
レスポンスBody
{
"returnCode": "string",
"returnMessage": "string"
}
項目 | Type | 説明 | 備考 |
---|
returnCode | string | リターンコード | |
returnMessage | string | リターンメッセージ | |
レスポンスStatus
HTTP Status | Desc |
---|
201 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
409 | Conflict |
500 | Internal Server Error |
Registry削除
特定のRegistryを削除します。
リクエストURL
DELETE https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 削除するレジストリ名 |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
なし
レスポンスStatus
HTTP Status | Desc |
---|
204 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImageリスト返却
レジストリ内に登録されたImageのリストを返します。
リクエストURL
GET https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | イメージリストを照会するレジストリ名 |
Parameters
項目 | Mandatory | Type | 説明 | 備考 |
---|
page | - | number | ページ番号 | 照会するページ番号、ページ番号は0より大きい値を入力 |
pagesize | - | number | ページサイズ | 照会するページサイズ、ページサイズは0より大きい値を入力 |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
{
"count": "number",
"next": "number",
"previous": "number",
"results": [
{
"user": "string",
"name": "string",
"namespace": "string",
"repository_type": "string",
"status": "number",
"description": "string",
"is_private": "boolean",
"is_automated": "boolean",
"can_edit": "boolean",
"star_count": "number",
"pull_count": "number",
"last_updated": "number"
}
]
}
項目 | Type | 説明 | 備考 |
---|
count | number | 登録されたレジストリの数 | |
next | number | 次ページの番号、次ページがない場合はNullを返却 | |
previous | number | 以前ページの番号、 以前ページがない場合はNullを返却 | |
result[].user | string | 不使用 | 不使用 |
result[].name | string | イメージ名 | |
result[].namespace | string | レジストリ名 | |
result[].repository_type | string | 不使用 | 不使用 |
result[].status | number | 不使用 | 不使用 |
result[].description | string | イメージに対するshort description | |
result[].is_private | boolean | 不使用 | 不使用 |
result[].is_automated | boolean | 不使用 | 不使用 |
result[].can_edit | boolean | 不使用 | 不使用 |
result[].star_count | number | 不使用 | 不使用 |
result[].pull_count | number | イメージ対する総Pull countの値 | |
result[].last_update | number | イメージの最近変更日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
レスポンスStatus
HTTP Status | Desc |
---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImage情報返却
レジストリ内に登録されたImageの詳細情報を返します。
リクエストURL
GET https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 詳細イメージを照会するレジストリ名 |
imageName | Mandatory | string | イメージ名 | 詳細情報の照会対象イメージ名、URI Encodingした値を使う必要がある。(e.g. hello/worldの場合はhello%2Fworldに変換して使用) |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
{
"user": "string",
"name": "string",
"namespace": "string",
"repository_type": "string",
"status": "number",
"description": "string",
"is_private": "boolean",
"is_automated": "boolean",
"can_edit": "boolean",
"star_count": "number",
"pull_count": "number",
"last_updated": "number",
"has_starred": "boolean",
"full_description": "string",
"affiliation": "string",
"permissions": {
"read": "boolean",
"write": "boolean",
"admin": "boolean"
}
}
項目 | Type | 説明 | 備考 |
---|
user | string | 不使用 | 不使用 |
name | string | イメージ名 | |
namespace | string | レジストリ名 | |
repository_type | string | 不使用 | 不使用 |
status | number | 不使用 | 不使用 |
description | string | イメージに対するshort description | |
is_private | boolean | 不使用 | 不使用 |
is_automated | boolean | 不使用 | 不使用 |
can_edit | boolean | 不使用 | 不使用 |
star_count | number | 不使用 | 不使用 |
pull_count | number | イメージに対する総Pull countの値 | |
last_update | number | イメージの最近変更日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
has_starred | boolean | 不使用 | 不使用 |
full_description | string | イメージに対する詳細description | |
affiliation | boolean | 不使用 | 不使用 |
permissions | object | 不使用 | 不使用 |
レスポンスStatus
HTTP Status | Desc |
---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImageの情報修正
レジストリに登録されたイメージに対するdescription、full_descriptionをアップデートします。
リクエストURL
PATCH https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 情報を変更するイメージがあるレジストリ名 |
imageName | Mandatory | string | イメージ名 | 情報を変更するイメージ名、URI Encodingした値を使用する必要がある。(e.g. hello/worldの場合、hello%2Fworldに変換して使用) |
Headers
API Headerの表示
リクエストBody
{
"description": "string",
"full_description": "string"
}
項目 | Mandatory | Type | 説明 | 備考 |
---|
description | - | string | イメージに対する短い説明を作成 | |
full_description | - | string | イメージに対する詳細説明を作成 | Markdownサポート |
レスポンスBody
なし
レスポンスStatus
HTTP Status | Desc |
---|
204 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImage削除
レジストリに登録されたイメージを削除します。
リクエストURL
DELETE https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 削除対象のイメージがあるレジストリ名 |
imageName | Mandatory | string | イメージ名 | 削除するイメージ名、URI Encodingした値を使用する必要がある。(e.g. hello/worldの場合、hello%2Fworldに変換して使用) |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
なし
レスポンスStatus
HTTP Status | Desc |
---|
204 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImageのTagリスト返却
レジストリのイメージに登録されたTagリストを返します。
リクエストURL
GET https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}/tags
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | タグを返却するイメージがあるレジストリ名 |
imageName | Mandatory | string | イメージ名 | タグを返却するイメージ名、URI Encodingした値を使用する必要がある。(e.g. hello/worldの場合、hello%2Fworldに変換して使用) |
Parameters
項目 | Mandatory | Type | 説明 | 備考 |
---|
page | - | number | ページ番号 | 照会するページ番号、ページ番号は0より大きい値を入力 |
pagesize | - | number | ページサイズ | 照会するページサイズ、ページサイズは0より大きい値を入力 |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
{
"count": "number",
"next": "number",
"previous": "number",
"results": [
{
"name": "string",
"full_size": "number",
"images": [
{
"size": "number",
"architecture": "string",
"variant": "string",
"features": "string",
"os": "string",
"os_version": "string",
"os_features": "string",
"created": "number"
}
],
"id": "number",
"repository": "number",
"creator": "string",
"last_updater": "string",
"last_updated": "number",
"image_id": "number",
"v2": "boolean"
}
]
}
項目 | Type | 説明 | 備考 |
---|
count | number | 登録されたレジストリの数 | |
next | number | 次ページの番号、次ページがない場合はNullを返却 | |
previous | number | 以前ページの番号、 以前ページがない場合はNullを返却 | |
result[].name | string | タグ名 | |
result[].full_size | number | タグサイズ | |
result[].images[].size | number | イメージサイズ | |
result[].images[].architecture | string | amd64 あるいはppc64le のようなCPUアーキテクチャ | |
result[].image[].features | string | 不使用 | 不使用 |
result[].image[].os | string | linux あるいはwindows のようなオペレーティングシステム | |
result[].image[].os_version | string | 不使用 | 不使用 |
result[].image[].os_features | string | 不使用 | 不使用 |
result[].image[].created | string | イメージ作成日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
result[].id | number | タグID | |
result[].repository | number | レジストリID | |
result[].creator | string | イメージ登録者ID | 不使用 |
result[].last_updater | string | イメージ登録者ID | 不使用 |
result[].last_updated | string | イメージの最近変更日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
result[].image_id | number | イメージID | |
result[].v2 | boolean | イメージに対するv2スペック適用有無 | |
レスポンスStatus
HTTP Status | Desc |
---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImageの特定Tag情報返却
レジストリのイメージに登録された特定Tagの詳細情報を返します。
リクエストURL
GET https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}/tags/{reference}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 詳細タグ 情報を返却するイメージがあるレジストリ名 |
imageName | Mandatory | string | イメージ名 | 詳細タグ情報を返却するイメージ名、URI Encodingした値を使用する必要がある。(e.g. hello/worldの場合、hello%2Fworldに変換して使用) |
reference | Madatory | string | タグ名 | 詳細情報を照会するタグ名 |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
{
"name": "string",
"full_size": "number",
"images": [
{
"size": "number",
"architecture": "string",
"variant": "string",
"features": "string",
"os": "string",
"os_version": "string",
"os_features": "string",
"created": "number"
}
],
"id": "number",
"repository": "number",
"creator": "string",
"last_updater": "string",
"last_updated": "number",
"image_id": "number",
"v2": "boolean"
}
項目 | Type | 説明 | 備考 |
---|
name | string | タグ名 | |
full_size | number | タグサイズ | |
images[].size | number | イメージサイズ | |
images[].architecture | string | イメージの動作環境 | |
image[].features | string | 不使用 | 不使用 |
image[].os | string | イメージ実行環境 | |
image[].os_version | string | 不使用 | 不使用 |
image[].os_features | string | 不使用 | 不使用 |
image[].created | string | イメージ作成日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
id | number | タグID | |
repository | number | レジストリID | |
creator | string | イメージ登録者ID | 不使用 |
last_updater | string | イメージ登録者ID | 不使用 |
last_updated | string | イメージ最近変更日 | 1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリセカンド(Millisecond)で返却 |
image_id | number | イメージID | |
v2 | boolean | イメージに対するv2スペック適用有無 | |
レスポンスStatus
HTTP Status | Desc |
---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Registry内に登録されたImageの特定Tag削除
レジストリのイメージに登録された特定Tagを削除します。
リクエストURL
DELETE https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/{imageName}/tags/{reference}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
項目 | Mandatory | Type | 説明 | 備考 |
---|
registry | Mandatory | string | レジストリ名 | 削除するイメージのタグがあるレジストリ名 |
imageName | Mandatory | string | イメージ名 | 削除するタグのイメージ名、URI Encodingした値を使用する必要がある。(e.g. hello/worldの場合、hello%2Fworldに変換して使用) |
reference | Madatory | string | タグ名 | 削除するタグ名 |
Headers
API Headerの表示
リクエストBody
なし
レスポンスBody
なし
レスポンスStatus
HTTP Status | Desc |
---|
204 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
あなたのフィードバックをありがとう!私たちのチームはあなたに戻って取得します