Atualiza o método de autenticação de nome de utilizador e palavra-passe PostgreSQL criado pelo serviço. O pedido é esparso e propriedades omitidas preservam os seus valores atuais. Esta versão da API suporta ativar o método, desativar o método e redefinir a sua palavra-passe. Para um cluster que já tem um administrador mas que atualmente tem a autenticação por palavra-passe desativada, o estado Enabled e o administratorLoginPassword podem ser fornecidos em conjunto para reativar a autenticação por palavra-passe e redefinir a palavra-passe. A desativação não pode incluir credenciais e não remove nem modifica utilizadores ou funções existentes na base de dados. A renomeação do administrador não é suportada nesta versão da API.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod?api-version=2026-10-01-preview
Parâmetros do URI
| Nome |
Em |
Obrigatório |
Tipo |
Descrição |
|
clusterName
|
path |
True
|
string
minLength: 1 maxLength: 63 pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
|
O nome do cluster HorizonDB.
|
|
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90
|
O nome do grupo de recursos. O nome não faz distinção entre maiúsculas e minúsculas.
|
|
subscriptionId
|
path |
True
|
string
(uuid)
|
O ID da assinatura de destino. O valor deve ser um UUID.
|
|
api-version
|
query |
True
|
string
minLength: 1
|
A versão da API a utilizar para esta operação.
|
Corpo do Pedido
Respostas
| Nome |
Tipo |
Descrição |
|
200 OK
|
PasswordAuthentication
|
Operação do Azure concluída com sucesso.
|
|
202 Accepted
|
|
Pedido de atualização de recursos aceito.
Cabeçalhos
- Azure-AsyncOperation: string
- Location: string
- Retry-After: integer
|
|
Other Status Codes
|
ErrorResponse
|
Uma resposta de erro inesperada.
|
Segurança
azure_auth
Fluxo OAuth2 do Azure Active Directory.
Tipo:
oauth2
Fluxo:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Âmbitos
| Nome |
Descrição |
|
user_impersonation
|
assumir a identidade da sua conta de utilizador
|
Exemplos
Disable password authentication
Pedido de amostra
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
Resposta da amostra
{
"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
Pedido de amostra
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
Resposta da amostra
{
"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
Pedido de amostra
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
Resposta da amostra
{
"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
Definições
| Nome |
Descrição |
|
AuthenticationState
|
Indica se o estado de autenticação está ativado ou não.
|
|
createdByType
|
O tipo de identidade que criou o recurso.
|
|
ErrorAdditionalInfo
|
Informações adicionais sobre o erro de gestão de recursos.
|
|
ErrorDetail
|
O detalhe do erro.
|
|
ErrorResponse
|
Resposta de erro
|
|
PasswordAuthentication
|
O método de autenticação por nome de utilizador e palavra-passe PostgreSQL criado pelo serviço para um cluster HorizonDB. Este recurso configura o mecanismo de autenticação, incluindo o estado ativado e as credenciais de login do administrador; não é um recurso apenas com palavra-passe.
|
|
PasswordAuthenticationForPatchUpdate
|
Um pedido de atualização esparso para autenticação por nome de utilizador e palavra-passe PostgreSQL.
|
|
PasswordAuthenticationProperties
|
Propriedades do método de autenticação por nome de utilizador e palavra-passe PostgreSQL criado por serviço.
|
|
PasswordAuthenticationPropertiesForPatchUpdate
|
Propriedades para atualização da autenticação por nome de utilizador e palavra-passe do PostgreSQL. Propriedades omitidas preservam os seus valores atuais. Esta versão da API suporta ativar ou desativar o método de autenticação e redefinir a sua palavra-passe. As alterações suportadas podem ser combinadas.
|
|
ProvisioningState
|
O estado de provisionamento.
|
|
systemData
|
Metadados referentes à criação e última modificação do recurso.
|
AuthenticationState
Enumeração
Indica se o estado de autenticação está ativado ou não.
| Valor |
Descrição |
|
Enabled
|
Está ativado
|
|
Disabled
|
Está desativado
|
createdByType
Enumeração
O tipo de identidade que criou o recurso.
| Valor |
Descrição |
|
User
|
|
|
Application
|
|
|
ManagedIdentity
|
|
|
Key
|
|
ErrorAdditionalInfo
Object
Informações adicionais sobre o erro de gestão de recursos.
| Nome |
Tipo |
Descrição |
|
info
|
object
|
As informações adicionais.
|
|
type
|
string
|
O tipo de informação adicional.
|
ErrorDetail
Object
O detalhe do erro.
| Nome |
Tipo |
Descrição |
|
additionalInfo
|
ErrorAdditionalInfo[]
|
As informações adicionais do erro.
|
|
code
|
string
|
O código de erro.
|
|
details
|
ErrorDetail[]
|
Os detalhes do erro.
|
|
message
|
string
|
A mensagem de erro.
|
|
target
|
string
|
O alvo do erro.
|
ErrorResponse
Object
Resposta de erro
| Nome |
Tipo |
Descrição |
|
error
|
ErrorDetail
|
O objeto de erro.
|
PasswordAuthentication
Object
O método de autenticação por nome de utilizador e palavra-passe PostgreSQL criado pelo serviço para um cluster HorizonDB. Este recurso configura o mecanismo de autenticação, incluindo o estado ativado e as credenciais de login do administrador; não é um recurso apenas com palavra-passe.
| Nome |
Tipo |
Descrição |
|
id
|
string
(arm-id)
|
ID de recurso totalmente qualificado para o recurso. Por exemplo, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
|
name
|
string
|
O nome do recurso
|
|
properties
|
PasswordAuthenticationProperties
|
As propriedades específicas do recurso para este recurso.
|
|
systemData
|
systemData
|
Metadados do Azure Resource Manager contendo informações createdBy e modifiedBy.
|
|
type
|
string
|
O tipo do recurso. Por exemplo, "Microsoft.Compute/virtualMachines" ou "Microsoft.Storage/storageAccounts"
|
PasswordAuthenticationForPatchUpdate
Object
Um pedido de atualização esparso para autenticação por nome de utilizador e palavra-passe PostgreSQL.
PasswordAuthenticationProperties
Object
Propriedades do método de autenticação por nome de utilizador e palavra-passe PostgreSQL criado por serviço.
| Nome |
Tipo |
Descrição |
|
administratorLogin
|
string
(password)
minLength: 1 maxLength: 63
|
O nome de login do administrador PostgreSQL. Este valor não é devolvido nas respostas. Depois de definido, a renomeação deixa de ser suportada. Definir o login exige que o estado de autenticação por palavra-passe esteja ativado no mesmo pedido.
|
|
administratorLoginPassword
|
string
(password)
minLength: 8 maxLength: 128
|
A palavra-passe do administrador do PostgreSQL. Definir a palavra-passe requer que o estado de autenticação da palavra-passe esteja ativado no mesmo pedido.
|
|
provisioningState
|
ProvisioningState
|
O estado de provisionamento do método de autenticação por nome de utilizador e palavra-passe PostgreSQL.
|
|
state
|
AuthenticationState
|
O estado da autenticação por nome de utilizador e palavra-passe do PostgreSQL.
|
PasswordAuthenticationPropertiesForPatchUpdate
Object
Propriedades para atualização da autenticação por nome de utilizador e palavra-passe do PostgreSQL. Propriedades omitidas preservam os seus valores atuais. Esta versão da API suporta ativar ou desativar o método de autenticação e redefinir a sua palavra-passe. As alterações suportadas podem ser combinadas.
| Nome |
Tipo |
Descrição |
|
administratorLoginPassword
|
string
(password)
minLength: 8 maxLength: 128
|
A palavra-passe do administrador do PostgreSQL. Fornecer esta propriedade redefine a palavra-passe do administrador configurado. Quando a autenticação por palavra-passe está atualmente desativada para um cluster que já tem um administrador, esta propriedade pode ser combinada com o estado Ativado para reativar a autenticação por palavra-passe e redefinir a palavra-passe.
|
|
state
|
AuthenticationState
|
O estado alvo de autenticação por palavra-passe. Ativado pode ser combinado com o administratorLoginPassword para reativar a autenticação por palavra-passe e redefinir a palavra-passe de um cluster que já tem um administrador. Desativar a autenticação por palavra-passe não remove nem modifica utilizadores ou papéis existentes na base de dados. Desativado não pode ser combinado com administratorLoginPassword.
|
ProvisioningState
Enumeração
O estado de provisionamento.
| Valor |
Descrição |
|
Succeeded
|
O recurso foi criado.
|
|
Failed
|
Falha na criação de recursos.
|
|
Canceled
|
A criação de recursos foi cancelada.
|
|
InProgress
|
A operação de recursos do HorizonDB está a correr ativamente.
|
|
Provisioning
|
O recurso do HorizonDB ainda está a ser provisionado.
|
systemData
Object
Metadados referentes à criação e última modificação do recurso.
| Nome |
Tipo |
Descrição |
|
createdAt
|
string
(date-time)
|
A marca temporal da criação do recurso (UTC).
|
|
createdBy
|
string
|
A identidade que criou o recurso.
|
|
createdByType
|
createdByType
|
O tipo de identidade que criou o recurso.
|
|
lastModifiedAt
|
string
(date-time)
|
A data e hora da última modificação do recurso (UTC)
|
|
lastModifiedBy
|
string
|
A identidade que modificou o recurso pela última vez.
|
|
lastModifiedByType
|
createdByType
|
O tipo de identidade que modificou o recurso pela última vez.
|