Megosztás a következőn keresztül:


Maintenance Configurations - Get

Lekéri a ManagedEnvironment karbantartási konfigurációját.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}?api-version=2025-02-02-preview

URI-paraméterek

Name In Kötelező Típus Description
configName
path True

string

pattern: ^[-\w\._\(\)]+$

A karbantartási konfiguráció neve.

environmentName
path True

string

pattern: ^[-\w\._\(\)]+$

A felügyelt környezet neve.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket.

subscriptionId
path True

string (uuid)

A cél-előfizetés azonosítója. Az értéknek UUID-nek kell lennie.

api-version
query True

string

minLength: 1

A művelethez használandó API-verzió.

Válaszok

Name Típus Description
200 OK

MaintenanceConfigurationResource

A karbantartási konfigurációk lekérésének válasza.

Other Status Codes

DefaultErrorResponse

Gyakori hibaválasz.

Biztonság

azure_auth

Azure Active Directory OAuth2-folyamat

Típus: oauth2
Folyamat: implicit
Engedélyezési URL: https://login.microsoftonline.com/common/oauth2/authorize

Hatókörök

Name Description
user_impersonation a felhasználói fiók megszemélyesítése

Példák

ManagedEnvironmentMaintenanceConfigurationsGet

Mintakérelem

GET https://management.azure.com/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/rg1/providers/Microsoft.App/managedEnvironments/managedEnv/maintenanceConfigurations/default?api-version=2025-02-02-preview

Mintaválasz

{
  "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/rg1/providers/Microsoft.App/managedEnvironments/managedEnv/maintenanceConfigurations/default",
  "name": "default",
  "type": "Microsoft.App/ManagedEnvironments/MaintenanceConfigurations",
  "properties": {
    "scheduledEntries": [
      {
        "weekDay": "Sunday",
        "startHourUtc": 12,
        "durationHours": 9
      }
    ]
  }
}

Definíciók

Name Description
createdByType

Az erőforrást létrehozó identitás típusa.

DefaultErrorResponse

App Service-hibaválasz.

Details

Részletek vagy hiba

Error

Hibamodell.

MaintenanceConfigurationResource

Információk a karbantartási konfigurációs erőforrásról.

ScheduledEntry

Felügyelt környezet karbantartási ütemezésének bejegyzése.

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

WeekDay

A hét azon napja, amikor egy felügyelt környezet javítható.

createdByType

Az erőforrást létrehozó identitás típusa.

Érték Description
Application
Key
ManagedIdentity
User

DefaultErrorResponse

App Service-hibaválasz.

Name Típus Description
error

Error

Hibamodell.

Details

Részletek vagy hiba

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.

Error

Hibamodell.

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

details

Details[]

Részletek vagy hiba

innererror

string

További információ a hibakereséshez.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.

MaintenanceConfigurationResource

Információk a karbantartási konfigurációs erőforrásról.

Name Típus Description
id

string (arm-id)

Az erőforrás teljes erőforrás-azonosítója. Például: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

Az erőforrás neve

properties.scheduledEntries

ScheduledEntry[]

Felügyelt környezet karbantartási ütemezéseinek listája.

systemData

systemData

A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok.

type

string

Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"

ScheduledEntry

Felügyelt környezet karbantartási ütemezésének bejegyzése.

Name Típus Description
durationHours

integer (int32)

A karbantartási időszak hossza 8 és 24 óra között lehet.

startHourUtc

integer (int32)

Kezdési óra, amely után a felügyelt környezet karbantartása 0 és 23 óra között kezdődhet.

weekDay

WeekDay

A hét azon napja, amikor egy felügyelt környezet javítható.

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Name Típus Description
createdAt

string (date-time)

Az erőforrás-létrehozás időbélyege (UTC).

createdBy

string

Az erőforrást létrehozó identitás.

createdByType

createdByType

Az erőforrást létrehozó identitás típusa.

lastModifiedAt

string (date-time)

Az erőforrás utolsó módosításának időbélyege (UTC)

lastModifiedBy

string

Az erőforrást legutóbb módosító identitás.

lastModifiedByType

createdByType

Az erőforrást legutóbb módosító identitás típusa.

WeekDay

A hét azon napja, amikor egy felügyelt környezet javítható.

Érték Description
Friday
Monday
Saturday
Sunday
Thursday
Tuesday
Wednesday