Api Version Set - Get
取得其識別碼所指定的 Api 版本集詳細資料。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}?api-version=2022-08-01
URI 參數
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
|
資源群組的名稱。 名稱不區分大小寫。 |
service
|
path | True |
|
API 管理服務的名稱。 Regex pattern: |
subscription
|
path | True |
|
目標訂用帳戶的識別碼。 |
version
|
path | True |
|
Api 版本設定識別碼。 在目前API 管理服務實例中必須是唯一的。 Regex pattern: |
api-version
|
query | True |
|
用於此作業的 API 版本。 |
回應
Name | Type | Description |
---|---|---|
200 OK |
取得指定的 Api 版本集實體。 Headers
|
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | 模擬您的使用者帳戶 |
範例
ApiManagementGetApiVersionSet
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/vs1?api-version=2022-08-01
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/vs1",
"type": "Microsoft.ApiManagement/service/api-version-sets",
"name": "vs1",
"properties": {
"displayName": "Version Set 1",
"versioningScheme": "Segment",
"description": "Version configuration"
}
}
定義
Api |
API 版本設定合約詳細資料。 |
Error |
錯誤欄位合約。 |
Error |
錯誤回應。 |
versioning |
值,決定 API 版本識別碼在 HTTP 要求中的位置。 |
ApiVersionSetContract
API 版本設定合約詳細資料。
Name | Type | Description |
---|---|---|
id |
|
資源的完整資源識別碼。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
|
資源的名稱 |
properties.description |
|
API 版本集的描述。 |
properties.displayName |
|
API 版本集的名稱 |
properties.versionHeaderName |
|
如果 versioningScheme 設定為 |
properties.versionQueryName |
|
如果 versioningScheme 設定為 |
properties.versioningScheme |
值,決定 API 版本識別碼在 HTTP 要求中的位置。 |
|
type |
|
資源類型。 例如「Microsoft.Compute/virtualMachines」 或 「Microsoft.Storage/storageAccounts」 |
ErrorFieldContract
錯誤欄位合約。
Name | Type | Description |
---|---|---|
code |
|
屬性層級錯誤碼。 |
message |
|
人類可讀取的屬性層級錯誤標記法。 |
target |
|
屬性名稱。 |
ErrorResponse
錯誤回應。
Name | Type | Description |
---|---|---|
error.code |
|
服務定義的錯誤碼。 此代碼會作為回應中指定之 HTTP 錯誤碼的子狀態。 |
error.details |
要求中傳送無效欄位的清單,以防發生驗證錯誤。 |
|
error.message |
|
人類可閱讀的錯誤表示法。 |
versioningScheme
值,決定 API 版本識別碼在 HTTP 要求中的位置。
Name | Type | Description |
---|---|---|
Header |
|
API 版本會在 HTTP 標頭中傳遞。 |
Query |
|
API 版本會在查詢參數中傳遞。 |
Segment |
|
API 版本會在路徑區段中傳遞。 |