Builders - Get
取得 BuilderResource
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}?api-version=2025-02-02-preview
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
builder
|
path | True |
string minLength: 2maxLength: 32 pattern: ^[-\w\._\(\)]+$ |
產生器的名稱。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
ARM 作業已順利完成。 |
|
Other Status Codes |
常見的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Builders_Get_0
範例要求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder?api-version=2025-02-02-preview
範例回覆
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
"name": "testBuilder",
"type": "Microsoft.App/builders",
"location": "eastus",
"identity": {
"type": "SystemAssigned,UserAssigned",
"principalId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"properties": {
"provisioningState": "Succeeded",
"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
"containerRegistries": [
{
"containerRegistryServer": "test.azurecr.io",
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
},
{
"containerRegistryServer": "test2.azurecr.io",
"identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
}
]
},
"systemData": {
"createdBy": "sample@microsoft.com",
"createdByType": "User",
"createdAt": "2022-10-11T11:05:51.4940669Z",
"lastModifiedBy": "sample@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
},
"tags": {
"key": "value"
}
}
定義
名稱 | Description |
---|---|
Builder |
資源實例布建狀態。 |
Builder |
SourceToCloud 建立器資源的相關信息。 |
Container |
模型,表示從容器登錄對應到用來連接它的身分識別。 |
created |
建立資源的身分識別類型。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Managed |
受控服務識別(系統指派和/或使用者指派的身分識別) |
Managed |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
system |
與建立和上次修改資源相關的元數據。 |
User |
使用者指派的身分識別屬性 |
BuilderProvisioningState
資源實例布建狀態。
值 | Description |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
BuilderResource
SourceToCloud 建立器資源的相關信息。
名稱 | 類型 | Description |
---|---|---|
id |
string (arm-id) |
資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
identity |
指派給此資源的受控服務識別。 |
|
location |
string |
資源所在的地理位置 |
name |
string |
資源的名稱 |
properties.containerRegistries |
容器登錄和用來連線的受控識別對應清單。 |
|
properties.environmentId |
string (arm-id) |
建立器所關聯之容器應用程式環境的資源標識碼。 |
properties.provisioningState |
建置器資源的布建狀態。 |
|
systemData |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
|
tags |
object |
資源標籤。 |
type |
string |
資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ContainerRegistry
模型,表示從容器登錄對應到用來連接它的身分識別。
名稱 | 類型 | Description |
---|---|---|
containerRegistryServer |
string |
容器登錄的登入伺服器。 |
identityResourceId |
string (arm-id) |
受控識別的資源標識碼。 |
createdByType
建立資源的身分識別類型。
值 | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
ManagedServiceIdentity
受控服務識別(系統指派和/或使用者指派的身分識別)
名稱 | 類型 | Description |
---|---|---|
principalId |
string (uuid) |
系統指派身分識別的服務主體標識碼。 此屬性只會針對系統指派的身分識別提供。 |
tenantId |
string (uuid) |
系統指派身分識別的租用戶標識碼。 此屬性只會針對系統指派的身分識別提供。 |
type |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 身分識別 |
ManagedServiceIdentityType
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。
值 | Description |
---|---|
None | |
SystemAssigned | |
SystemAssigned,UserAssigned | |
UserAssigned |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
UserAssignedIdentity
使用者指派的身分識別屬性
名稱 | 類型 | Description |
---|---|---|
clientId |
string (uuid) |
指派之身分識別的用戶端標識碼。 |
principalId |
string (uuid) |
指派之身分識別的主體標識碼。 |