다음을 통해 공유


Apis - Get

API의 세부 정보를 반환합니다.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}?api-version=2024-03-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
apiName
path True

string

minLength: 1
maxLength: 90
pattern: ^[a-zA-Z0-9-]{3,90}$

API의 이름입니다.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

리소스 그룹의 이름입니다. 이름은 대/소문자를 구분하지 않습니다.

serviceName
path True

string

minLength: 1
maxLength: 90
pattern: ^[a-zA-Z0-9-]{3,90}$

Azure API Center 서비스의 이름입니다.

subscriptionId
path True

string (uuid)

대상 구독의 ID입니다. 값은 UUID여야 합니다.

workspaceName
path True

string

minLength: 1
maxLength: 90
pattern: ^[a-zA-Z0-9-]{3,90}$

작업 영역의 이름입니다.

api-version
query True

string

minLength: 1

이 작업에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

Api

Azure 작업이 성공적으로 완료되었습니다.

헤더

ETag: string

Other Status Codes

ErrorResponse

예기치 않은 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 흐름.

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Apis_Get

샘플 요청

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/apis/echo-api?api-version=2024-03-01

샘플 응답

{
  "type": "Microsoft.ApiCenter/services/apis",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/apis/echo-api",
  "name": "public",
  "systemData": {
    "createdAt": "2023-07-03T18:27:09.128871Z",
    "lastModifiedAt": "2023-07-03T18:27:09.1288716Z"
  },
  "properties": {
    "title": "Echo API",
    "description": "A simple HTTP request/response service.",
    "lifecycleStage": "design",
    "kind": "rest",
    "termsOfService": {
      "url": "https://contoso.com/terms-of-service"
    },
    "license": {
      "url": "https://contoso.com/license"
    },
    "externalDocumentation": [
      {
        "title": "Onboarding docs",
        "url": "https://docs.contoso.com"
      }
    ],
    "customProperties": {
      "author": "John Doe"
    }
  }
}

정의

Name Description
Api

API 엔터티.

ApiKind

API의 종류

Contact

연락처 정보

createdByType

리소스를 만든 ID의 형식입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ExternalDocumentation

API에 대한 추가 외부 설명서입니다.

License

API에 대한 라이선스 정보입니다.

LifecycleStage

API 개발 수명 주기의 단계

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

TermsOfService

API에 대한 서비스 약관입니다.

Api

API 엔터티.

Name 형식 Description
id

string (arm-id)

리소스에 대한 정규화된 리소스 ID입니다. 예: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

리소스의 이름

properties.contacts

Contact[]

연락처 집합

properties.customProperties

object

사용자 지정 속성
API 카탈로그 엔터티에 대해 정의된 사용자 지정 메타데이터입니다.

properties.description

string

maxLength: 1000

API에 대한 설명입니다.

properties.externalDocumentation

ExternalDocumentation[]

외부 설명서 집합

properties.kind

ApiKind

API의 종류입니다. 예를 들어 REST 또는 GraphQL입니다.

properties.license

License

API에 대한 라이선스 정보입니다.

properties.lifecycleStage

LifecycleStage

API의 현재 수명 주기 단계입니다.

properties.summary

string

maxLength: 200

API에 대한 간단한 설명입니다.

properties.termsOfService

TermsOfService

API에 대한 서비스 약관입니다.

properties.title

string

minLength: 1
maxLength: 50

API 타이틀.

systemData

systemData

createdBy 및 modifiedBy 정보가 포함된 Azure Resource Manager 메타데이터입니다.

type

string

리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"

ApiKind

API의 종류

Description
rest

표현 상태 전송 API

graphql

그래프 쿼리 언어 API

grpc

A gRPC Api

soap

A SOAP Api

webhook

웹 후크

websocket

웹 소켓

Contact

연락처 정보

Name 형식 Description
email

string

maxLength: 100

연락처의 전자 메일 주소입니다.

name

string

maxLength: 100

연락처의 이름입니다.

url

string (uri)

maxLength: 200

연락처의 URL입니다.

createdByType

리소스를 만든 ID의 형식입니다.

Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

오류 개체입니다.

ExternalDocumentation

API에 대한 추가 외부 설명서입니다.

Name 형식 Description
description

string

maxLength: 500

설명서에 대한 설명입니다.

title

string

maxLength: 50

설명서의 제목입니다.

url

string (uri)

maxLength: 200

설명서를 가리키는 URL입니다.

License

API에 대한 라이선스 정보입니다.

Name 형식 Description
identifier

string (uri)

maxLength: 50

API에 대한 SPDX 라이선스 정보입니다. 식별자 필드는 URL 필드와 함께 사용할 수 없습니다.

name

string

maxLength: 100

라이선스의 이름입니다.

url

string (uri)

maxLength: 200

라이선스 세부 정보를 가리키는 URL입니다. URL 필드는 식별자 필드와 함께 사용할 수 없습니다.

LifecycleStage

API 개발 수명 주기의 단계

Description
design

디자인 단계

development

개발 단계

testing

테스트 단계

preview

미리 보기

production

프로덕션 환경에서

deprecated

사용되지 않는 단계

retired

사용 중지된 단계

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

Name 형식 Description
createdAt

string (date-time)

리소스 만들기의 타임스탬프(UTC)입니다.

createdBy

string

리소스를 만든 ID입니다.

createdByType

createdByType

리소스를 만든 ID의 형식입니다.

lastModifiedAt

string (date-time)

리소스 마지막 수정의 타임스탬프(UTC)

lastModifiedBy

string

리소스를 마지막으로 수정한 ID입니다.

lastModifiedByType

createdByType

리소스를 마지막으로 수정한 ID의 형식입니다.

TermsOfService

API에 대한 서비스 약관입니다.

Name 형식 Description
url

string (uri)

maxLength: 200

서비스 약관을 가리키는 URL입니다.