Delen via


Disaster Recovery Configs - Fail Over

Roept GEO DR-failover aan en configureert de alias opnieuw zodat deze verwijst naar de secundaire naamruimte

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover?api-version=2021-11-01

URI-parameters

Name In Vereist Type Description
alias
path True

string

De naam van de configuratie voor herstel na noodgevallen

namespaceName
path True

string

De naam van de naamruimte

resourceGroupName
path True

string

Naam van de resourcegroep binnen het Azure-abonnement.

subscriptionId
path True

string

Abonnementsreferenties waarmee een 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 Type Description
parameters

FailoverProperties

Vereiste parameters voor het maken van een alias (configuratie voor herstel na noodgevallen)

Antwoorden

Name Type Description
200 OK

De failoverbewerking is voltooid.

Other Status Codes

ErrorResponse

ServiceBus-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

SBAliasFailOver

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-8860/disasterRecoveryConfigs/sdk-DisasterRecovery-3814/failover?api-version=2021-11-01

Voorbeeldrespons

Definities

Name Description
Error

Het foutobject.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Het foutantwoord voor resourcebeheer.

FailoverProperties

Vereiste parameters voor het maken van een alias (configuratie voor herstel na noodgevallen)

Error

Het foutobject.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorResponse[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorResponse

Het foutantwoord voor resourcebeheer.

Name Type Description
error

Error

Het foutobject.

FailoverProperties

Vereiste parameters voor het maken van een alias (configuratie voor herstel na noodgevallen)

Name Type Description
properties.IsSafeFailover

boolean

Veilige failover is om aan te geven dat de service moet wachten totdat de in behandeling zijnde replicatie is voltooid voordat wordt overgeschakeld naar de secundaire.