Para agentes de IA: um índice de documentação está disponível em https://www.mongodb.com/pt-br/docs/llms.txt — as versões de markdown de todas as páginas estão disponíveis anexando .md a qualquer caminho de URL.

Obtenha hosts com integridade de replicação.

The v2.0 versions of the three Get Host endpoints return everything the v1.0 endpoints return. They add two fields that report a replica set member's replication health. Use these endpoints to detect a member that is too stale to catch up and to read its replication error.

Adding fields to an existing response can break clients that validate the schema strictly. The v1.0 endpoints are unchanged and never return these fields.

Before you use the v2.0 Get Host resources, review the following requirements.

Observação

Grupos e projetos são termos sinônimos. Seu {PROJECT-ID} é igual ao ID do seu projeto. Para grupos existentes, o ID do grupo/projeto permanece o mesmo. Esta página usa o termo grupo, que é mais familiar, ao se referir a descrições. O ponto de extremidade permanece conforme indicado no documento.

URL base: https://{OPSMANAGER-HOST}:{PORT}/api/public/v2.0

To use the v2.0 Get Host resources, you must be an Ops Manager user with at least the Project Read Only role.

Your deployment must run Ops Manager 8.0.28 or 9.0.2 or later. Monitoring must be enabled for the project. If monitoring is disabled, Ops Manager omits the new fields.

The following table lists the endpoints available for the v2.0 Get Host resources. The paths match the v1.0 endpoints under the v2.0 base URL.

Método
Endpoint
Descrição

GET

Retorna um host pelo seu identificador único.

GET

Retorna um host pelo seu nome de host e porta.

GET

Retorna todos os hosts do projeto.

The v2.0 endpoints return the following fields in addition to the v1.0 response fields.

Nome
Tipo
Descrição

muito antigo

booleano

true Se este membro ficou atrasado em relação à janela do oplog e não consegue se recuperar, ele precisa de uma sincronização inicial.

último erro de repetição

string

The member's last replication error, from the errmsg field of rs.status().

Both fields describe this host's own member entry in its replica set. Ops Manager omits them for hosts that aren't replica set members, and omits lastReplError when the member reports no error.

1
2

If tooStale is true, the member cannot catch up from the replica set's oplog and requires an initial sync.

3

lastReplError Contém a mensagem de erro de replicação do membro.