Tenant Configuration - Get Sync State
Hiermee wordt de status van de meest recente synchronisatie tussen de configuratiedatabase en de Git-opslagplaats opgeslagen.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/configuration/syncState?api-version=2021-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
configuration
|
path | True |
De id van de Git-configuratiebewerking. |
|
resource
|
path | True |
string |
De naam van de resourcegroep. |
service
|
path | True |
string |
De naam van de API Management service. Regex-patroon: |
subscription
|
path | True |
string |
Abonnementsreferenties 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 |
Versie van de API die moet worden gebruikt met de clientaanvraag. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Resultaat synchronisatiestatus. |
|
Other Status Codes |
Foutreactie 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
ApiManagementTenantAccessSyncState
Voorbeeldaanvraag
Voorbeeldrespons
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/syncState",
"type": "Microsoft.ApiManagement/service/tenant/syncState",
"name": "syncState",
"properties": {
"branch": "master",
"commitId": "de891c2342c7058dde45e5e624eae7e558c94683",
"isExport": true,
"isSynced": true,
"isGitEnabled": true,
"syncDate": "2021-04-13T01:15:53.9824995Z",
"configurationChangeDate": "2021-04-13T00:11:43.862781Z",
"lastOperationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/operationResults/6074f0bd093a9d0dac3d7347"
}
}
Definities
Name | Description |
---|---|
configuration |
De id van de Git-configuratiebewerking. |
Error |
Fout veldcontract. |
Error |
Foutreactie. |
Tenant |
Resultaat van de synchronisatiestatus van tenantconfiguratie. |
configurationIdName
De id van de Git-configuratiebewerking.
Name | Type | Description |
---|---|---|
configuration |
string |
ErrorFieldContract
Fout veldcontract.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode op eigenschapsniveau. |
message |
string |
Door mensen leesbare weergave van fout op eigenschapsniveau. |
target |
string |
Naam van eigenschap. |
ErrorResponse
Foutreactie.
Name | Type | Description |
---|---|---|
error.code |
string |
Door de service gedefinieerde foutcode. Deze code fungeert als een substatus voor de HTTP-foutcode die is opgegeven in het antwoord. |
error.details |
De lijst met ongeldige velden verzenden in aanvraag, in geval van een validatiefout. |
|
error.message |
string |
Door mensen leesbare weergave van de fout. |
TenantConfigurationSyncStateContract
Resultaat van de synchronisatiestatus van tenantconfiguratie.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.branch |
string |
De naam van de Git-vertakking. |
properties.commitId |
string |
De meest recente doorvoer-id. |
properties.configurationChangeDate |
string |
De datum van de meest recente configuratiewijziging. De datum voldoet aan de volgende notatie: |
properties.isExport |
boolean |
waarde die aangeeft of de laatste synchronisatie is opgeslagen (true) of deploy (false). |
properties.isGitEnabled |
boolean |
waarde die aangeeft of git-configuratietoegang is ingeschakeld. |
properties.isSynced |
boolean |
waarde die aangeeft of de laatste synchronisatie later was dan de configuratiewijziging. |
properties.lastOperationId |
string |
Meest recente tenantconfiguratiebewerkings-id |
properties.syncDate |
string |
De datum van de meest recente synchronisatie. De datum voldoet aan de volgende notatie: |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |