Dsc Configuration - Get
Haal de configuratie op die is geïdentificeerd met de configuratienaam.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}?api-version=2023-11-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
De naam van het Automation-account. |
configuration
|
path | True |
string |
De configuratienaam. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Naam van een Azure-resourcegroep. |
subscription
|
path | True |
string |
Hiermee haalt u abonnementsreferenties op die het Microsoft Azure-abonnement uniek identificeren. De abonnements-id maakt deel uit van de URI voor elke serviceoproep. |
api-version
|
query | True |
string |
Client-API-versie. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK Media Types: "application/json", "text/plain; charset=utf-8" |
|
Other Status Codes |
Automatiseringsfoutreactie waarin wordt beschreven waarom de bewerking is mislukt. Media Types: "application/json", "text/plain; charset=utf-8" |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get a DSC Configuration
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/TemplateBasic?api-version=2023-11-01
Voorbeeldrespons
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/TemplateBasic",
"name": "TemplateBasic",
"type": "Microsoft.Automation/AutomationAccounts/Configurations",
"location": "East US 2",
"tags": {},
"etag": "\"636263396635600000\"",
"properties": {
"provisioningState": null,
"jobCount": 0,
"parameters": {},
"description": "sample configuration",
"state": "Published",
"creationTime": "2017-03-28T23:14:23.56+00:00",
"lastModifiedTime": "2017-03-28T23:14:23.56+00:00",
"logVerbose": false
}
}
Definities
Name | Description |
---|---|
Content |
Definitie van het eigenschapstype runbook. |
Content |
Definitie van de inhoudsbron. |
Content |
Hiermee haalt u het inhoudsbrontype op of stelt u dit in. |
Dsc |
Definitie van het configuratietype. |
Dsc |
Definitie van het type configuratieparameter. |
Dsc |
Hiermee haalt u de inrichtingsstatus van de configuratie op of stelt u deze in. |
Dsc |
Hiermee haalt u de status van de configuratie op of stelt u deze in. |
Error |
Foutreactie van een bewerkingsfout |
ContentHash
Definitie van het eigenschapstype runbook.
Name | Type | Description |
---|---|---|
algorithm |
string |
Hiermee haalt u het hash-algoritme voor inhoud op dat wordt gebruikt om de inhoud te hashen. |
value |
string |
Hiermee wordt de verwachte hashwaarde van de inhoud opgehaald of ingesteld. |
ContentSource
Definitie van de inhoudsbron.
Name | Type | Description |
---|---|---|
hash |
Hiermee haalt u de hash op of stelt u deze in. |
|
type |
Hiermee haalt u het inhoudsbrontype op of stelt u dit in. |
|
value |
string |
Hiermee haalt u de waarde van de inhoud op of stelt u deze in. Dit is gebaseerd op het inhoudsbrontype. |
version |
string |
Hiermee haalt u de versie van de inhoud op of stelt u deze in. |
ContentSourceType
Hiermee haalt u het inhoudsbrontype op of stelt u dit in.
Waarde | Description |
---|---|
embeddedContent | |
uri |
DscConfiguration
Definitie van het configuratietype.
Name | Type | Description |
---|---|---|
etag |
string |
Hiermee haalt u de etag van de resource op of stelt u deze in. |
id |
string |
Volledig gekwalificeerde resource-id voor de resource |
location |
string |
De Azure-regio waar de resource zich bevindt |
name |
string |
De naam van de resource |
properties.creationTime |
string (date-time) |
Hiermee haalt u de aanmaaktijd op of stelt u deze in. |
properties.description |
string |
Hiermee haalt u de beschrijving op of stelt u deze in. |
properties.jobCount |
integer (int32) |
Hiermee haalt u het aantal taken van de configuratie op of stelt u deze in. |
properties.lastModifiedTime |
string (date-time) |
Hiermee haalt u de laatst gewijzigde tijd op of stelt u deze in. |
properties.logVerbose |
boolean |
Hiermee haalt u uitgebreide logboekoptie op of stelt u deze in. |
properties.nodeConfigurationCount |
integer |
Hiermee haalt u het aantal gecompileerde knooppuntconfiguraties op. |
properties.parameters |
<string,
Dsc |
Hiermee haalt u de configuratieparameters op of stelt u deze in. |
properties.provisioningState |
Hiermee haalt u de inrichtingsstatus van de configuratie op of stelt u deze in. |
|
properties.source |
Hiermee haalt u de bron op of stelt u deze in. |
|
properties.state |
Hiermee haalt u de status van de configuratie op of stelt u deze in. |
|
tags |
object |
Resourcetags. |
type |
string |
Het type resource. |
DscConfigurationParameter
Definitie van het type configuratieparameter.
Name | Type | Description |
---|---|---|
defaultValue |
string |
Hiermee wordt de standaardwaarde van de parameter opgehaald of ingesteld. |
isMandatory |
boolean |
Hiermee wordt een Booleaanse waarde opgehaald of ingesteld om aan te geven of de parameter verplicht is of niet. |
position |
integer (int32) |
De positie van de parameter ophalen of instellen. |
type |
string |
Hiermee haalt u het type van de parameter op of stelt u deze in. |
DscConfigurationProvisioningState
Hiermee haalt u de inrichtingsstatus van de configuratie op of stelt u deze in.
Waarde | Description |
---|---|
Succeeded |
DscConfigurationState
Hiermee haalt u de status van de configuratie op of stelt u deze in.
Waarde | Description |
---|---|
Edit | |
New | |
Published |
ErrorResponse
Foutreactie van een bewerkingsfout
Name | Type | Description |
---|---|---|
code |
string |
Foutcode |
message |
string |
Foutbericht dat aangeeft waarom de bewerking is mislukt. |