Api Versions - Get Version

Get an API version.

GET https://{serviceName}.data.azure-apicenter.net/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}?api-version=2024-02-01-preview

URI Parameters

Name In Required Type Description
apiName
path True

string

Api identifier.

serviceName
path True

string

Region-unique API Center service name

versionName
path True

string

Version identifier.

workspaceName
path True

string

Workspace identifier.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

ApiVersion

The request has succeeded.

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Headers

x-ms-error-code: string

Security

AadOauth2Auth

The Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: accessCode
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize
Token URL: https://login.microsoftonline.com/common/oauth2/token

Scopes

Name Description
https://azure-apicenter.net/user_impersonation

Examples

ApiVersions_GetVersion

Sample request

GET https://{serviceName}.data.azure-apicenter.net/workspaces/default/apis/echo-api/versions/2023-01-01?api-version=2024-02-01-preview

Sample response

{
  "name": "2023-01-01",
  "title": "2023-01-01",
  "lifecycleStage": "design"
}

Definitions

Name Description
ApiVersion

API version resource model.

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

LifecycleStage

API Lifecycle Stage

ApiVersion

API version resource model.

Name Type Description
lifecycleStage

LifecycleStage

Current lifecycle stage of the API version.

name

string

Version identifier.

title

string

Version title.

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.InnerError

An object containing more specific information than the current object about the error.

message

string

A human-readable representation of the error.

target

string

The target of the error.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Name Type Description
error

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

Name Type Description
code

string

One of a server-defined set of error codes.

innererror

Azure.Core.Foundations.InnerError

Inner error.

LifecycleStage

API Lifecycle Stage

Name Type Description
deprecated

string

API is in the deprecated stage

design

string

API is in the design stage

development

string

API is in the development stage

preview

string

API is in the preview stage

production

string

API is in the production stage

retired

string

API is in the retired stage

testing

string

API is in the testing stage