Cluster IAMアクセスの照会

Prev Next

VPC環境で利用できます。

特定のクラスタの IAMアクセス情報を照会します。

リクエスト

リクエスト形式を説明します。リクエスト形式は次の通りです。

メソッド URI
GET /clusters/{uuid}/access-entries/{entryUuid}

リクエストヘッダ

Ncloud Kubernetes Service APIリクエストで共通して使用されるヘッダの詳細は、Ncloud Kubernetes Serviceの共通リクエストヘッダをご参照ください。

リクエストパスパラメータ

パラメータの説明は次の通りです。

フィールド タイプ 必須の有無 説明
uuid String Required クラスタの UUID
entryUuid String Required IAMアクセスの Entry UUID

リクエスト例

リクエストのサンプルコードは次の通りです。

curl --location --request GET 'https://nks.apigw.ntruss.com/vnks/v2/clusters/****a20e-e0fb-4dc9-af1b-97fd3f8d****/access-entries/****a20e-e0fb-4dc9-af1b-97fd3f8d****' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Sub Account Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json'

レスポンス

レスポンス形式を説明します。

レスポンスボディ

レスポンスボディの説明は次の通りです。

フィールド タイプ 必須の有無 説明
accessEntry Object - IAMアクセス情報
accessEntry.uuid String - IAMアクセス Entry uuid
accessEntry.entry String - IAM USER、ROLE別 NRN情報
accessEntry.groups[] Array - グループ名
accessEntry.policies[] Array - ポリシーリスト
accessEntry.policies[].type String - ポリシーのタイプ
accessEntry.policies[].scope String - ポリシーの範囲
accessEntry.policies[].namespaces Array - ネームスペース

レスポンスステータスコード

Ncloud Kubernetes Service APIで共通して使用されるレスポンスステータスコードの詳細は、Ncloud Kubernetes Serviceのレスポンスステータスコードをご参照ください。

レスポンス例

レスポンスのサンプルコードは次の通りです。

{
    "accessEntry": {
        "clusterUuid": "****a20e-e0fb-4dc9-af1b-97fd3f8d****"
        "entry": "***:Account::***",
        "policies": [
          {
            "scope": "Cluster",
            "type": "NKSClusterAdminPolicy"
          }
        ],
        "uuid": "****a20e-e0fb-4dc9-af1b-97fd3f8d****"
    }
}