Fabric Capacities - Check Name Availability
實作本機 CheckNameAvailability 作業
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Fabric/locations/{location}/checkNameAvailability?api-version=2023-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
location
|
path | True |
string minLength: 1 |
Azure 區域的名稱。 |
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
name |
string |
需要檢查可用性的資源名稱。 |
type |
string |
資源類型。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
要求已成功。 |
|
Other Status Codes |
未預期的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Check name availability of a capacity
範例要求
POST https://management.azure.com/subscriptions/548B7FB7-3B2A-4F46-BB02-66473F1FC22C/providers/Microsoft.Fabric/locations/westcentralus/checkNameAvailability?api-version=2023-11-01
{
"name": "azsdktest",
"type": "Microsoft.Fabric/capacities"
}
範例回覆
{
"nameAvailable": true
}
定義
名稱 | Description |
---|---|
Check |
指定名稱無法使用的原因。 |
Check |
檢查可用性要求本文。 |
Check |
檢查可用性結果。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
CheckNameAvailabilityReason
指定名稱無法使用的原因。
值 | Description |
---|---|
AlreadyExists | |
Invalid |
CheckNameAvailabilityRequest
檢查可用性要求本文。
名稱 | 類型 | Description |
---|---|---|
name |
string |
需要檢查可用性的資源名稱。 |
type |
string |
資源類型。 |
CheckNameAvailabilityResponse
檢查可用性結果。
名稱 | 類型 | Description |
---|---|---|
message |
string |
提供指定名稱的詳細原因。 |
nameAvailable |
boolean |
指出資源名稱是否可用。 |
reason |
指定名稱無法使用的原因。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |