Template Specs - List By Subscription
Lijsten alle sjabloonspecificaties binnen de opgegeven abonnementen.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/?api-version=2021-05-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/?$expand=versions&api-version=2021-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
Abonnements-id die deel uitmaakt van de URI voor elke service-aanroep. |
api-version
|
query | True |
string |
Client-API-versie. |
$expand
|
query |
Hiermee kunt u aanvullende details van sjabloonspecificaties in het antwoord uitbreiden. Optioneel. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK: retourneert een matrix met sjabloonspecificaties. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | uw gebruikersaccount imiteren |
Voorbeelden
TemplatesSpecsListBySubscription
Sample Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/templateSpecs/?$expand=versions&api-version=2021-05-01
Sample Response
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
"type": "Microsoft.Resources/templateSpecs",
"name": "simpleTemplateSpec",
"location": "eastus",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
},
"properties": {
"description": "A very simple Template Spec"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG2/providers/Microsoft.Resources/templateSpecs/anotherSimpleTemplateSpec",
"type": "Microsoft.Resources/templateSpecs",
"name": "anotherSimpleTemplateSpec",
"location": "westus",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-02-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-02-03T02:03:01.1974346Z"
},
"properties": {
"description": "Another very simple Template Spec"
}
}
]
}
Definities
Name | Description |
---|---|
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
Foutreactie |
system |
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource. |
Template |
Sjabloonspecificatieobject. |
Template |
Hiermee kunt u aanvullende details van sjabloonspecificaties in het antwoord uitbreiden. Optioneel. |
Template |
Foutreactie sjabloonspecificaties. |
Template |
Lijst met sjabloonspecificaties. |
Template |
Informatie op hoog niveau over een sjabloonspecificatieversie. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het type aanvullende informatie. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
additionalInfo |
Aanvullende informatie over de fout. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
systemData
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
Het tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource het laatst heeft gewijzigd. |
TemplateSpec
Sjabloonspecificatieobject.
Name | Type | Description |
---|---|---|
id |
string |
Tekenreeks-id die wordt gebruikt om een resource in Azure te zoeken. |
location |
string |
De locatie van de sjabloonspecificatie. Deze kan niet worden gewijzigd nadat de sjabloonspecificatie is gemaakt. Dit moet een van de ondersteunde Azure-locaties zijn. |
name |
string |
Naam van deze resource. |
properties.description |
string |
Beschrijving van sjabloonspecificatie. |
properties.displayName |
string |
Weergavenaam van sjabloonspecificatie. |
properties.metadata |
object |
De metagegevens van sjabloonspecificatie. Metagegevens zijn een open-eindeobject en zijn meestal een verzameling sleutel-waardeparen. |
properties.versions |
<string,
Template |
Informatie op hoog niveau over de versies binnen deze sjabloonspecificatie. De sleutels zijn de versienamen. Alleen ingevuld als de queryparameter $expand is ingesteld op 'versions'. |
systemData |
Azure Resource Manager metagegevens met informatie over createdBy en modifiedBy. |
|
tags |
object |
Resourcetags. |
type |
string |
Type van deze resource. |
TemplateSpecExpandKind
Hiermee kunt u aanvullende details van sjabloonspecificaties in het antwoord uitbreiden. Optioneel.
Name | Type | Description |
---|---|---|
versions |
string |
Bevat versiegegevens met de sjabloonspecificatie. |
TemplateSpecsError
Foutreactie sjabloonspecificaties.
Name | Type | Description |
---|---|---|
error |
Foutreactie |
TemplateSpecsListResult
Lijst met sjabloonspecificaties.
Name | Type | Description |
---|---|---|
nextLink |
string |
De URL die moet worden gebruikt om de volgende set resultaten op te halen. |
value |
Een matrix met sjabloonspecificaties. |
TemplateSpecVersionInfo
Informatie op hoog niveau over een sjabloonspecificatieversie.
Name | Type | Description |
---|---|---|
description |
string |
Beschrijving van de versie van sjabloonspecificatie. |
timeCreated |
string |
De tijdstempel van wanneer de versie is gemaakt. |
timeModified |
string |
Het tijdstempel van wanneer de versie voor het laatst is gewijzigd. |