Published Artifacts - List
発行されたブループリント定義のバージョンの成果物を一覧表示します。
GET https://management.azure.com/{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}/versions/{versionId}/artifacts?api-version=2018-11-01-preview
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
blueprint
|
path | True |
string |
ブループリント定義の名前。 |
resource
|
path | True |
string |
リソースのスコープ。 有効なスコープは、管理グループ (形式: '/providers/Microsoft.Management/managementGroups/{managementGroup}')、サブスクリプション (形式: '/subscriptions/{subscriptionId}') です。 |
version
|
path | True |
string |
発行されたブループリント定義のバージョン。 |
api-version
|
query | True |
string |
クライアント API のバージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
OK -- 発行されたブループリント定義のバージョンの成果物が取得されました。 |
|
Other Status Codes |
ブループリント エラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントの借用 |
例
MG-Artifact |
Sub-Artifact |
MG-ArtifactList
Sample Request
Sample Response
{
"value": [
{
"properties": {
"displayName": "enforce owners of given subscription",
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
"principalIds": "[parameters('owners')]"
},
"kind": "roleAssignment",
"id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "ownerAssignment"
},
{
"properties": {
"displayName": "force costCenter tag on all resources",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62",
"parameters": {
"tagName": {
"value": "costCenter"
},
"tagValue": {
"value": "[parameter('costCenter')]"
}
}
},
"kind": "policyAssignment",
"id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "costCenterPolicy"
},
{
"properties": {
"template": {
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS"
],
"metadata": {
"description": "Storage Account type"
}
}
},
"variables": {
"storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]",
"apiVersion": "2016-01-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "[parameters('storageAccountType')]"
},
"kind": "Storage",
"properties": {}
}
],
"outputs": {
"storageAccountName": {
"type": "string",
"value": "[variables('storageAccountName')]"
}
}
},
"resourceGroup": "storageRG",
"parameters": {
"storageAccountType": {
"value": "[parameters('storageAccountType')]"
}
}
},
"kind": "template",
"id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "storageTemplate"
}
]
}
Sub-ArtifactList
Sample Request
Sample Response
{
"value": [
{
"properties": {
"displayName": "enforce owners of given subscription",
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
"principalIds": "[parameters('owners')]"
},
"kind": "roleAssignment",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "ownerAssignment"
},
{
"properties": {
"displayName": "force costCenter tag on all resources",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62",
"parameters": {
"tagName": {
"value": "costCenter"
},
"tagValue": {
"value": "[parameter('costCenter')]"
}
}
},
"kind": "policyAssignment",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "costCenterPolicy"
},
{
"properties": {
"template": {
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS"
],
"metadata": {
"description": "Storage Account type"
}
}
},
"variables": {
"storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]",
"apiVersion": "2016-01-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "[parameters('storageAccountType')]"
},
"kind": "Storage",
"properties": {}
}
],
"outputs": {
"storageAccountName": {
"type": "string",
"value": "[variables('storageAccountName')]"
}
}
},
"resourceGroup": "storageRG",
"parameters": {
"storageAccountType": {
"value": "[parameters('storageAccountType')]"
}
}
},
"kind": "template",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate",
"type": "Microsoft.Blueprint/blueprints/versions/artifacts",
"name": "storageTemplate"
}
]
}
定義
名前 | 説明 |
---|---|
Artifact |
ブループリント成果物の一覧。 |
Cloud |
|
Error |
リソース管理エラーの追加情報。 |
Error |
エラー応答 |
key |
Key Vaultへのリンクを指定します。 |
Parameter |
指定したパラメーターの値。 'value' または 'reference' のいずれかを指定できますが、両方を指定することはできません。 |
Policy |
ポリシー割り当てを適用するブループリント 成果物。 |
Role |
ロールの割り当てを適用するブループリント 成果物。 |
Secret |
Key Vault シークレットへの参照。 |
Template |
Resource Manager テンプレートをデプロイするブループリント 成果物。 |
ArtifactList
ブループリント成果物の一覧。
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
結果の次のページにリンクします。 |
value | Artifact[]: |
ブループリント成果物の一覧。 |
CloudError
名前 | 型 | 説明 |
---|---|---|
error |
エラー応答 |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細です。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーのターゲット。 |
keyVaultReference
Key Vaultへのリンクを指定します。
名前 | 型 | 説明 |
---|---|---|
id |
string |
Key Vaultの Azure リソース ID。 |
ParameterValue
指定したパラメーターの値。 'value' または 'reference' のいずれかを指定できますが、両方を指定することはできません。
名前 | 型 | 説明 |
---|---|---|
reference |
参照型としてのパラメーター値。 |
|
value |
object |
パラメーター値。 オブジェクト、配列、文字列、数値、ブール値など、有効な JSON 値を使用できます。 |
PolicyAssignmentArtifact
ポリシー割り当てを適用するブループリント 成果物。
名前 | 型 | 説明 |
---|---|---|
id |
string |
Azure 上の任意のリソースを検索するために使用される文字列 ID。 |
kind |
string:
policy |
ブループリント 成果物の種類を指定します。 |
name |
string |
このリソースの名前。 |
properties.dependsOn |
string[] |
指定した成果物の前にデプロイする必要がある成果物。 |
properties.description |
string |
複数行でこのリソースについて説明します。 |
properties.displayName |
string |
このリソースを説明する 1 行の文字列。 |
properties.parameters |
<string,
Parameter |
ポリシー定義のパラメーター値。 |
properties.policyDefinitionId |
string |
ポリシー定義の Azure リソース ID。 |
properties.resourceGroup |
string |
ポリシーが割り当てられるリソース グループ プレースホルダーの名前。 |
type |
string |
このリソースの種類。 |
RoleAssignmentArtifact
ロールの割り当てを適用するブループリント 成果物。
名前 | 型 | 説明 |
---|---|---|
id |
string |
Azure 上の任意のリソースを検索するために使用される文字列 ID。 |
kind |
string:
role |
ブループリント 成果物の種類を指定します。 |
name |
string |
このリソースの名前。 |
properties.dependsOn |
string[] |
指定した成果物の前にデプロイする必要がある成果物。 |
properties.description |
string |
複数行でこのリソースについて説明します。 |
properties.displayName |
string |
このリソースを説明する 1 行の文字列。 |
properties.principalIds |
Azure Active Directory のユーザーまたはグループ ID の配列。 roleDefinition は各 ID に適用されます。 |
|
properties.resourceGroup |
string |
RoleAssignment は、この resourceGroup のスコープになります。 空の場合は、サブスクリプションにスコープが設定されます。 |
properties.roleDefinitionId |
string |
RoleDefinition の Azure リソース ID。 |
type |
string |
このリソースの種類。 |
SecretValueReference
Key Vault シークレットへの参照。
名前 | 型 | 説明 |
---|---|---|
keyVault |
特定の Azure Key Vaultへの参照を指定します。 |
|
secretName |
string |
シークレットの名前。 |
secretVersion |
string |
使用するシークレットのバージョン。 空白のままにすると、シークレットの最新バージョンが使用されます。 |
TemplateArtifact
Resource Manager テンプレートをデプロイするブループリント 成果物。
名前 | 型 | 説明 |
---|---|---|
id |
string |
Azure 上の任意のリソースを検索するために使用される文字列 ID。 |
kind |
string:
template |
ブループリント 成果物の種類を指定します。 |
name |
string |
このリソースの名前。 |
properties.dependsOn |
string[] |
指定した成果物の前にデプロイする必要がある成果物。 |
properties.description |
string |
複数行でこのリソースについて説明します。 |
properties.displayName |
string |
このリソースを説明する 1 行の文字列。 |
properties.parameters |
<string,
Parameter |
テンプレート ブループリント成果物パラメーター値をResource Managerします。 |
properties.resourceGroup |
string |
該当する場合は、Resource Manager テンプレートブループリント成果物のデプロイ先となるリソース グループ プレースホルダーの名前。 |
properties.template |
object |
Resource Manager テンプレートブループリント成果物本文。 |
type |
string |
このリソースの種類。 |