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
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
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"
}
}
import com.azure.resourcemanager.horizondb.models.AuthenticationState;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json
*/
/**
* Sample code: Disable password authentication.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void disablePasswordAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate().withProperties(
new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python password_authentications_disable.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"state": "Disabled"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/PasswordAuthentications_Disable.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_disablePasswordAuthentication() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
State: to.Ptr(armhorizondb.AuthenticationStateDisabled),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateDisabled),
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json
*/
async function disablePasswordAuthentication() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { state: "Disabled" } },
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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": "********"
}
}
import com.azure.resourcemanager.horizondb.models.AuthenticationState;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json
*/
/**
* Sample code: Enable password authentication and reset the existing administrator password.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void enablePasswordAuthenticationAndResetTheExistingAdministratorPassword(
com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate().withProperties(
new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED)
.withAdministratorLoginPassword("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python password_authentications_enable.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"administratorLoginPassword": "********", "state": "Enabled"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/PasswordAuthentications_Enable.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_enablePasswordAuthenticationAndResetTheExistingAdministratorPassword() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
AdministratorLoginPassword: to.Ptr("********"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json
*/
async function enablePasswordAuthenticationAndResetTheExistingAdministratorPassword() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { state: "Enabled", administratorLoginPassword: "********" } },
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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": "********"
}
}
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
*/
/**
* Sample code: Reset the sole PostgreSQL administrator role password.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void
resetTheSolePostgreSQLAdministratorRolePassword(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate()
.withProperties(new PasswordAuthenticationPropertiesForPatchUpdate()
.withAdministratorLoginPassword("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python password_authentications_reset_password.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"administratorLoginPassword": "********"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_resetTheSolePostgreSqlAdministratorRolePassword() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
AdministratorLoginPassword: to.Ptr("********"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
*/
async function resetTheSolePostgreSQLAdministratorRolePassword() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { administratorLoginPassword: "********" } },
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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
Opsomming
Geeft aan of de authenticatiestatus is ingeschakeld of niet.
| Waarde |
Description |
|
Enabled
|
Is ingeschakeld
|
|
Disabled
|
Is uitgeschakeld
|
createdByType
Opsomming
Het identiteitstype dat de resource heeft gemaakt.
| Waarde |
Description |
|
User
|
|
|
Application
|
|
|
ManagedIdentity
|
|
|
Key
|
|
ErrorAdditionalInfo
Object
Aanvullende informatie over de resourcebeheerfout.
| Naam |
Type |
Description |
|
info
|
object
|
De aanvullende informatie.
|
|
type
|
string
|
Het extra informatietype.
|
ErrorDetail
Object
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
Object
Foutreactie
| Naam |
Type |
Description |
|
error
|
ErrorDetail
|
Het foutobject.
|
PasswordAuthentication
Object
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
Object
Een sobere update-aanvraag voor PostgreSQL gebruikersnaam-en-wachtwoord-authenticatie.
PasswordAuthenticationProperties
Object
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
Object
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
Opsomming
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
Object
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.
|