Runtime Environments - Create
Runtime-omgeving maken of bijwerken
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}?api-version=2023-05-15-preview
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
De naam van het Automation-account. |
resource
|
path | True |
string |
Naam van een Azure-resourcegroep. Regex-patroon: |
runtime
|
path | True |
string |
De naam van de runtimeomgeving. Regex-patroon: |
subscription
|
path | True |
string |
Hiermee haalt u abonnementsreferenties op waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep. |
api-version
|
query | True |
string |
Client-API-versie. |
Aanvraagbody
Name | Vereist | Type | Description |
---|---|---|---|
location | True |
string |
De geografische locatie waar de resource zich bevindt |
properties.defaultPackages |
object |
Lijst met standaardpakketten voor omgeving |
|
properties.description |
string |
Hiermee wordt de beschrijving opgehaald of ingesteld. |
|
properties.runtime.language |
string |
Taal van runtime-omgeving |
|
properties.runtime.version |
string |
Taalversie |
|
tags |
object |
Resourcetags. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Bijgewerkt |
|
201 Created |
Gemaakt |
|
Other Status Codes |
Automatiseringsfoutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
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
Create or update automation account
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9/runtimeEnvironments/myRuntimeEnvironmentName?api-version=2023-05-15-preview
{
"properties": {
"runtime": {
"language": "PowerShell",
"version": "7.1"
},
"defaultPackages": {
"Az": "8.3.0"
}
},
"location": "East US 2"
}
Voorbeeldrespons
{
"name": "myRuntimeEnvironmentName",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9/runtimeEnvironments/myRuntimeEnvironmentName",
"type": "Microsoft.Automation/automationAccounts/runtimeEnvironments",
"location": "East US 2",
"tags": {},
"systemData": {
"createdAt": "2023-07-05T07:32:41.4389914+00:00",
"lastModifiedAt": "2023-07-05T07:33:07.5597465+00:00"
},
"properties": {
"runtime": {
"language": "PowerShell",
"version": "7.1"
},
"defaultPackages": {
"Az": "8.3.0"
}
}
}
{
"name": "myRuntimeEnvironmentName",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9/runtimeEnvironments/myRuntimeEnvironmentName",
"type": "Microsoft.Automation/automationAccounts/runtimeEnvironments",
"location": "East US 2",
"tags": {},
"systemData": {
"createdAt": "2023-07-05T07:32:41.4389914+00:00",
"lastModifiedAt": "2023-07-05T07:33:07.5597465+00:00"
},
"properties": {
"runtime": {
"language": "PowerShell",
"version": "7.1"
},
"defaultPackages": {
"Az": "8.3.0"
}
}
}
Definities
Name | Description |
---|---|
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Foutreactie van een bewerkingsfout |
Runtime |
Definitie van het type Runtime-omgeving. |
system |
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorResponse
Foutreactie van een bewerkingsfout
Name | Type | Description |
---|---|---|
code |
string |
Foutcode |
message |
string |
Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt. |
RuntimeEnvironment
Definitie van het type Runtime-omgeving.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
location |
string |
De geografische locatie waar de resource zich bevindt |
name |
string |
De naam van de resource |
properties.defaultPackages |
object |
Lijst met standaardpakketten voor omgeving |
properties.description |
string |
Hiermee wordt de beschrijving opgehaald of ingesteld. |
properties.runtime.language |
string |
Taal van runtime-omgeving |
properties.runtime.version |
string |
Taalversie |
systemData |
Metagegevens van het resourcesysteem. |
|
tags |
object |
Resourcetags. |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
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. |