次の方法で共有


Apis - List All

ワークスペース間で API のコレクションを一覧表示します。

GET https://{serviceName}.data.{region}.azure-apicenter.ms/apis?api-version=2024-02-01-preview
GET https://{serviceName}.data.{region}.azure-apicenter.ms/apis?api-version=2024-02-01-preview&top={top}&skip={skip}&maxpagesize={maxpagesize}

URI パラメーター

名前 / 必須 説明
region
path True

string

リージョン名

serviceName
path True

string

リージョン固有の API センター サービス名

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

maxpagesize
query

integer (int32)

ページあたりの結果項目の最大数。

skip
query

integer (int32)

スキップする結果項目の数。

top
query

integer (int32)

返される結果項目の数。

応答

名前 説明
200 OK

PagedApiAll

要求は成功しました。

Other Status Codes

Azure.Core.Foundations.ErrorResponse

予期しないエラー応答。

ヘッダー

x-ms-error-code: string

セキュリティ

AadOauth2Auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: accessCode
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize
Token URL (トークン URL): https://login.microsoftonline.com/common/oauth2/token

スコープ

名前 説明
https://azure-apicenter.net/user_impersonation

Apis_ListAll

要求のサンプル

GET https://{serviceName}.data.{region}.azure-apicenter.ms/apis?api-version=2024-02-01-preview

応答のサンプル

{
  "value": [
    {
      "name": "echo-api",
      "title": "Echo API",
      "kind": "rest",
      "lastUpdated": "2023-12-18T18:49:11.878Z",
      "description": "A simple HTTP request/response service.",
      "lifecycleStage": "design",
      "termsOfService": {
        "url": "https://contoso.com/terms-of-service"
      },
      "license": {
        "name": "default",
        "url": "https://contoso.com/license"
      },
      "externalDocumentation": [
        {
          "title": "Onboarding docs",
          "description": "Learn how to onboard to the Echo API.",
          "url": "https://docs.contoso.com"
        }
      ],
      "contacts": [
        {
          "name": "Contoso support",
          "url": "https://support.contoso.com",
          "email": "support@contoso.com"
        }
      ]
    }
  ],
  "nextLink": "https://microsoft.com/a"
}

定義

名前 説明
Api

API リソース モデル。

ApiKind

API の種類

Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.

Contact

API の連絡先情報

ExternalDocumentation

API 外部ドキュメント モデル

License

API ライセンス モデル

LifecycleStage

API ライフサイクル ステージ

PagedApiAll

ワークスペース間での API 項目のページングコレクション。

TermsOfService

API サービスの使用条件

Api

API リソース モデル。

名前 説明
contacts

Contact[]

API の連絡先。

customProperties

object

API エンティティに対して定義されたカスタム メタデータ。

description

string

maxLength: 1000

API の説明

externalDocumentation

ExternalDocumentation[]

外部ドキュメント

kind

ApiKind

API の種類。 たとえば、REST や GraphQL などです。

lastUpdated

string (date-time)

最終更新日時。

license

License

API のライセンス情報。

lifecycleStage

LifecycleStage

API の現在のライフサイクル ステージ。

name

string

maxLength: 50

API 識別子。

summary

string

maxLength: 200

API の簡単な説明。

termsOfService

TermsOfService

API のサービス条件。

title

string

maxLength: 50

API の名前。

ApiKind

API の種類

説明
graphql

GraphQL API

grpc

GRPC API

rest

REST API

soap

SOAP API

webhook

Webhook API

websocket

Websocket API

Azure.Core.Foundations.Error

エラー オブジェクト。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

details

Azure.Core.Foundations.Error[]

この報告されたエラーの原因となった特定のエラーに関する詳細の配列。

innererror

Azure.Core.Foundations.InnerError

エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。

message

string

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

target

string

エラーのターゲット。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

名前 説明
error

Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

innererror

Azure.Core.Foundations.InnerError

内部エラー。

Contact

API の連絡先情報

名前 説明
email

string

maxLength: 100

連絡先のメール アドレス。

name

string

maxLength: 100

連絡先の名前。

url

string (uri)

連絡先の URL。

ExternalDocumentation

API 外部ドキュメント モデル

名前 説明
description

string

maxLength: 1000

ドキュメントの説明。

title

string

maxLength: 50

ドキュメントのタイトル。

url

string (uri)

ドキュメントを指す URL。

License

API ライセンス モデル

名前 説明
identifier

string

maxLength: 200

API の SPDX ライセンス情報。 識別子フィールドは、URL フィールドと相互に排他的です。

name

string

maxLength: 50

ライセンスの名前。

url

string (uri)

ライセンスの詳細を指す URL。 URL フィールドは、識別子フィールドと相互に排他的です。

LifecycleStage

API ライフサイクル ステージ

説明
deprecated

API は非推奨の段階にあります

design

API が設計段階にある

development

API は開発段階にあります

preview

API はプレビュー 段階にあります

production

API は運用段階にあります

retired

API は廃止された段階にあります

testing

API はテスト 段階にあります

PagedApiAll

ワークスペース間での API 項目のページングコレクション。

名前 説明
nextLink

string (uri)

アイテムの次のページへのリンク

value

Api[]

このページの API 項目

TermsOfService

API サービスの使用条件

名前 説明
url

string (uri)

サービス条件を指す URL。