次の方法で共有


Named Value - List By Service

サービス インスタンス内で定義されている名前付きの値のコレクションを一覧表示します。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues?api-version=2021-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues?$filter={$filter}&$top={$top}&$skip={$skip}&isKeyVaultRefreshFailed={isKeyVaultRefreshFailed}&api-version=2021-08-01

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

リソース グループの名前。

serviceName
path True

string

API Management サービスの名前。

正規表現パターン: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、全ての修理依頼についてURI の一部を生じさせます。

api-version
query True

string

クライアント要求で使用される API のバージョン。

$filter
query

string

|フィールド |使用法 |サポートされている演算子 |サポートされている関数 |
|-------------|-------------|-------------|-------------|
|tags |filter |ge、le、eq、ne、gt、lt |substringof、contains、startswith、endswith、any、all |
|displayName |filter |ge、le、eq、ne、gt、lt |substringof、contains、startswith、endswith |

$skip
query

integer

int32

スキップするレコードの数。

$top
query

integer

int32

返されるレコードの数。

isKeyVaultRefreshFailed
query

boolean

true に設定すると、応答には、更新に失敗した名前付き値エンティティのみが含まれます。

応答

名前 説明
200 OK

NamedValueCollection

指定したAPI Management サービス インスタンスの名前付き値エンティティのコレクション。

Other Status Codes

ErrorResponse

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントの借用

ApiManagementListNamedValues

要求のサンプル

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues?api-version=2021-08-01

応答のサンプル

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/592f1174cc83890dc4f32686",
      "type": "Microsoft.ApiManagement/service/namedValues",
      "name": "592f1174cc83890dc4f32686",
      "properties": {
        "displayName": "Logger-Credentials-592f1174cc83890dc4f32687",
        "value": "propValue",
        "secret": false
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/testprop6",
      "type": "Microsoft.ApiManagement/service/namedValues",
      "name": "testprop6",
      "properties": {
        "displayName": "prop6namekv",
        "keyVault": {
          "secretIdentifier": "https://contoso.vault.azure.net/secrets/aadSecret",
          "identityClientId": "2d2df842-44d8-4885-8dec-77cc1a984a31",
          "lastStatus": {
            "code": "Success",
            "timeStampUtc": "2020-09-11T00:54:31.8024882Z"
          }
        },
        "tags": [
          "foo",
          "bar"
        ],
        "secret": true
      }
    }
  ],
  "count": 1,
  "nextLink": ""
}

定義

名前 説明
ErrorFieldContract

エラー フィールド コントラクト。

ErrorResponse

エラー応答。

KeyVaultContractProperties

KeyVault コントラクトの詳細。

KeyVaultLastAccessStatusContractProperties

コントラクトの更新プロパティを発行します。

NamedValueCollection

Paged NamedValue リスト表現。

NamedValueContract

NamedValue の詳細。

ErrorFieldContract

エラー フィールド コントラクト。

名前 説明
code

string

プロパティ レベルのエラー コード。

message

string

プロパティ レベルエラーの人間が判読できる表現。

target

string

プロパティ名。

ErrorResponse

エラー応答。

名前 説明
error.code

string

サービスによって定義されたエラー コード。 このコードは、応答に指定された HTTP エラー コードのサブステータスとして機能します。

error.details

ErrorFieldContract[]

検証エラーが発生した場合に要求で送信される無効なフィールドの一覧。

error.message

string

人が判読できるエラーの表現。

KeyVaultContractProperties

KeyVault コントラクトの詳細。

名前 説明
identityClientId

string

SystemAssignedIdentity の場合は Null、UserAssignedIdentity の場合はクライアント ID で、キー コンテナーシークレットへのアクセスに使用されます。

lastStatus

KeyVaultLastAccessStatusContractProperties

キー コンテナーからのシークレットの前回の同期と更新の状態。

secretIdentifier

string

シークレットをフェッチするためのキー コンテナー シークレット識別子。 バージョン管理されたシークレットを指定すると、自動更新が防止されます。 これには、API Management サービスを aka.ms/apimmsi で構成する必要があります

KeyVaultLastAccessStatusContractProperties

コントラクトの更新プロパティを発行します。

名前 説明
code

string

キー コンテナーからのシークレットの同期と更新の最後の状態コード。

message

string

エラーの詳細は空です。

timeStampUtc

string

前回シークレットにアクセスしました。 日付は、ISO 8601 標準で指定されている形式 yyyy-MM-ddTHH:mm:ssZ に準拠しています。

NamedValueCollection

Paged NamedValue リスト表現。

名前 説明
count

integer

すべてのページの合計レコード数。

nextLink

string

次のページリンク (存在する場合)。

value

NamedValueContract[]

ページ値。

NamedValueContract

NamedValue の詳細。

名前 説明
id

string

リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

リソースの名前

properties.displayName

string

NamedValue の一意の名前。 文字、数字、ピリオド、ダッシュ、下線のみを使用できます。

properties.keyVault

KeyVaultContractProperties

namedValue の KeyVault の場所の詳細。

properties.secret

boolean

値がシークレットかどうかと暗号化する必要があるかどうかを決定します。 既定値は false です。

properties.tags

string[]

指定した場合に NamedValue リストをフィルター処理するために使用できる省略可能なタグ。

properties.value

string

NamedValue の値。 ポリシー式を含めることができます。 空にすることはできません。スペースのみで構成することはできません。 このプロパティは、'GET' 操作では入力されません。 値を取得するには、'/listSecrets' POST 要求を使用します。

type

string

リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts"