API Collections - List By Resource Group
Microsoft Defender for API にオンボードされているリソース グループ内の API コレクションの一覧を取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/apiCollections?api-version=2023-11-15
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前では大文字と小文字が区別されません。 |
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
これは、成功した応答を示します。 応答には、API コレクションの一覧が含まれています。 |
|
Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs
要求のサンプル
GET https://management.azure.com/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6/resourceGroups/rg1/providers/Microsoft.Security/apiCollections?api-version=2023-11-15
応答のサンプル
{
"value": [
{
"id": "/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/providers/Microsoft.Security/apiCollections/echo-api",
"name": "echo-api",
"type": "Microsoft.Security/apiCollections",
"properties": {
"provisioningState": "Succeeded",
"displayName": "Echo API",
"discoveredVia": "/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"baseUrl": "https://apimservice1.azure-api.net/echo",
"numberOfApiEndpoints": 6,
"numberOfInactiveApiEndpoints": 3,
"numberOfUnauthenticatedApiEndpoints": 1,
"numberOfExternalApiEndpoints": 3,
"numberOfApiEndpointsWithSensitiveDataExposed": 1,
"sensitivityLabel": "Highly Confidential"
}
}
],
"nextLink": "https://management.azure.com/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6/resourceGroups/rg1/providers/Microsoft.Security/apiCollections?api-version=2023-11-15&$skipToken=ac943fd6a934"
}
定義
名前 | 説明 |
---|---|
Api |
Microsoft Defender for API によって表される API コレクション。 |
Api |
Microsoft Defender for API で表される API コレクションの一覧のページ。 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Provisioning |
API コレクションのプロビジョニング状態を取得します。 |
ApiCollection
Microsoft Defender for API によって表される API コレクション。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID |
name |
string |
リソース名 |
properties.baseUrl |
string (uri) |
この API コレクションのベース URI。 この API コレクションのすべてのエンドポイントは、このベース URI を拡張します。 |
properties.discoveredVia |
string (arm-id) |
この API コレクションが検出されたリソースのリソース ID。 |
properties.displayName |
string |
API コレクションの表示名。 |
properties.numberOfApiEndpoints |
integer (int64) |
この API コレクションで検出された API エンドポイントの数。 |
properties.numberOfApiEndpointsWithSensitiveDataExposed |
integer (int64) |
要求や応答で機密データを公開している、この API コレクション内の API エンドポイントの数。 |
properties.numberOfExternalApiEndpoints |
integer (int64) |
インターネットからの API トラフィックが観察された、この API コレクション内の API エンドポイントの数。 |
properties.numberOfInactiveApiEndpoints |
integer (int64) |
過去 30 日間に API トラフィックを受信していない、この API コレクション内の API エンドポイントの数。 |
properties.numberOfUnauthenticatedApiEndpoints |
integer (int64) |
認証されていないこの API コレクション内の API エンドポイントの数。 |
properties.provisioningState |
API コレクションのプロビジョニング状態を取得します。 |
|
properties.sensitivityLabel |
string |
この API コレクションの Microsoft Purview の最も優先度の高い秘密度ラベル。 |
type |
string |
リソースの種類 |
ApiCollectionList
Microsoft Defender for API で表される API コレクションの一覧のページ。
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
次のページをフェッチする URI。 |
value |
このページの API コレクション。 |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
error |
エラー オブジェクト。 |
ProvisioningState
API コレクションのプロビジョニング状態を取得します。
値 | 説明 |
---|---|
Canceled | |
Failed | |
InProgress | |
Succeeded |