Password Authentications - Update

Werkt de door de dienst gemaakte PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode bij. Het verzoek is schaars en weggelaten eigenschappen behouden hun huidige waarden. Deze API-versie ondersteunt het inschakelen van de methode, het uitschakelen van de methode en het resetten van het wachtwoord. Voor een cluster die al een beheerder heeft maar momenteel wachtwoordauthenticatie heeft uitgeschakeld, kunnen status Enabled en administratorLoginPassword samen worden ingevoerd om wachtwoordauthenticatie opnieuw in te schakelen en het wachtwoord te resetten. Het uitschakelen van gegevens kan geen inloggegevens bevatten en verwijdert of wijzigt bestaande databasegebruikers of -rollen niet. Beheerdershernoeming wordt niet ondersteund in deze API-versie.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod?api-version=2026-10-01-preview

URI-parameters

Naam In Vereist Type Description
clusterName
path True

string

minLength: 1
maxLength: 63
pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$

De naam van de HorizonDB-cluster.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resource group. De naam is hoofdletterongevoelig.

subscriptionId
path True

string (uuid)

De ID van het doelabonnement. De waarde moet een UUID zijn.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Naam Type Description
properties

PasswordAuthenticationPropertiesForPatchUpdate

De PostgreSQL gebruikersnaam-en-wachtwoord authenticatie-eigenschappen om bij te werken.

Antwoorden

Naam Type Description
200 OK

PasswordAuthentication

Azure-operatie succesvol voltooid.

202 Accepted

Aanvraag voor resource-update geaccepteerd.

Kopteksten

  • Azure-AsyncOperation: string
  • Location: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

Een onverwachte foutreactie.

Beveiliging

azure_auth

OAuth2-stroom voor Azure Active Directory.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Naam Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Disable password authentication
Enable password authentication and reset the existing administrator password
Reset the sole PostgreSQL administrator role password

Disable password authentication

Voorbeeldaanvraag

PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview

{
  "properties": {
    "state": "Disabled"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
  "name": "passwordMethod",
  "type": "Microsoft.HorizonDb/clusters/authentications",
  "properties": {
    "state": "Disabled",
    "provisioningState": "Succeeded"
  }
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30

Enable password authentication and reset the existing administrator password

Voorbeeldaanvraag

PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview

{
  "properties": {
    "state": "Enabled",
    "administratorLoginPassword": "********"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
  "name": "passwordMethod",
  "type": "Microsoft.HorizonDb/clusters/authentications",
  "properties": {
    "state": "Enabled",
    "provisioningState": "Succeeded"
  }
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30

Reset the sole PostgreSQL administrator role password

Voorbeeldaanvraag

PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview

{
  "properties": {
    "administratorLoginPassword": "********"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
  "name": "passwordMethod",
  "type": "Microsoft.HorizonDb/clusters/authentications",
  "properties": {
    "state": "Enabled",
    "provisioningState": "Succeeded"
  }
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30

Definities

Naam Description
AuthenticationState

Geeft aan of de authenticatiestatus is ingeschakeld of niet.

createdByType

Het identiteitstype dat de resource heeft gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

Het foutdetail.

ErrorResponse

Foutreactie

PasswordAuthentication

De door de dienst gemaakte PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode voor een HorizonDB-cluster. Deze bron configureert het authenticatiemechanisme, inclusief de ingeschakelde status en inloggegevens van de administrator; het is geen alleen-wachtwoord bron.

PasswordAuthenticationForPatchUpdate

Een sobere update-aanvraag voor PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie.

PasswordAuthenticationProperties

Eigenschappen van de door de dienst gemaakte PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode.

PasswordAuthenticationPropertiesForPatchUpdate

Eigenschappen voor het bijwerken van PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie. Uitgelaten eigendommen behouden hun huidige waarden. Deze API-versie ondersteunt het in- of uitschakelen van de authenticatiemethode en het resetten van het wachtwoord. Ondersteunde wijzigingen kunnen worden gecombineerd.

ProvisioningState

De inrichtingsstatus.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

AuthenticationState

Geeft aan of de authenticatiestatus is ingeschakeld of niet.

Waarde Description
Enabled

Is ingeschakeld

Disabled

Is uitgeschakeld

createdByType

Het identiteitstype dat de resource heeft gemaakt.

Waarde Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Naam Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

Het foutdetail.

Naam Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

code

string

De foutcode.

details

ErrorDetail[]

De foutgegevens.

message

string

Het foutbericht.

target

string

Het foutdoelwit.

ErrorResponse

Foutreactie

Naam Type Description
error

ErrorDetail

Het foutobject.

PasswordAuthentication

De door de dienst gemaakte PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode voor een HorizonDB-cluster. Deze bron configureert het authenticatiemechanisme, inclusief de ingeschakelde status en inloggegevens van de administrator; het is geen alleen-wachtwoord bron.

Naam Type Description
id

string (arm-id)

Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}"

name

string

De naam van de resource

properties

PasswordAuthenticationProperties

De resourcespecifieke eigenschappen voor deze resource.

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

type

string

Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

PasswordAuthenticationForPatchUpdate

Een sobere update-aanvraag voor PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie.

Naam Type Description
properties

PasswordAuthenticationPropertiesForPatchUpdate

De PostgreSQL gebruikersnaam-en-wachtwoord authenticatie-eigenschappen om bij te werken.

PasswordAuthenticationProperties

Eigenschappen van de door de dienst gemaakte PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode.

Naam Type Description
administratorLogin

string (password)

minLength: 1
maxLength: 63

De inlognaam van de PostgreSQL-beheerder. Deze waarde wordt niet teruggegeven in antwoorden. Nadat deze is ingesteld, wordt hernoemen niet ondersteund. Het instellen van de login vereist dat de status van wachtwoordauthenticatie ingeschakeld is in hetzelfde verzoek.

administratorLoginPassword

string (password)

minLength: 8
maxLength: 128

Het wachtwoord van de PostgreSQL-beheerder. Het instellen van het wachtwoord vereist dat de status van wachtwoordauthenticatie in hetzelfde verzoek is ingeschakeld.

provisioningState

ProvisioningState

De provisioningstatus van de PostgreSQL gebruikersnaam-en-wachtwoord authenticatiemethode.

state

AuthenticationState

De staat van PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie.

PasswordAuthenticationPropertiesForPatchUpdate

Eigenschappen voor het bijwerken van PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie. Uitgelaten eigendommen behouden hun huidige waarden. Deze API-versie ondersteunt het in- of uitschakelen van de authenticatiemethode en het resetten van het wachtwoord. Ondersteunde wijzigingen kunnen worden gecombineerd.

Naam Type Description
administratorLoginPassword

string (password)

minLength: 8
maxLength: 128

Het wachtwoord van de PostgreSQL-beheerder. Het invoeren van deze eigenschap reset het wachtwoord van de geconfigureerde beheerder. Wanneer wachtwoordauthenticatie momenteel is uitgeschakeld voor een cluster met al een beheerder, kan deze eigenschap worden gecombineerd met status Enabled om wachtwoordauthenticatie opnieuw in te schakelen en het wachtwoord te resetten.

state

AuthenticationState

De doel-wachtwoord-authenticatiestatus. Enabled kan worden gecombineerd met administratorLoginPassword om wachtwoordauthenticatie opnieuw in te schakelen en het wachtwoord te resetten voor een cluster die al een administrator heeft. Het uitschakelen van wachtwoordauthenticatie verwijdert of wijzigt bestaande databasegebruikers of -rollen niet. Uitgeschakeld kan niet worden gecombineerd met administratorLoginPassword.

ProvisioningState

De inrichtingsstatus.

Waarde Description
Succeeded

Er is een bron gemaakt.

Failed

Het maken van bronnen is mislukt.

Canceled

Het maken van grondstoffen is geannuleerd.

InProgress

De HorizonDB-resourceoperatie draait actief.

Provisioning

De HorizonDB-resource is nog steeds in provisioning.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Naam Type Description
createdAt

string (date-time)

De tijdstempel van het aanmaken van resources (UTC).

createdBy

string

De identiteit die de resource heeft gemaakt.

createdByType

createdByType

Het identiteitstype dat de resource heeft gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.