Method: enterprises.policies.get
Solicitação HTTP
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
O URL usa a sintaxe de transcodificação gRPC.
Parâmetros de caminho
Parâmetros |
name |
string
O nome da política no formato enterprises/{enterpriseId}/policies/{policyId} .
|
Corpo da solicitação
O corpo da solicitação precisa estar vazio.
Corpo da resposta
Se a solicitação for bem-sucedida, o corpo da resposta conterá uma instância de Policy
.
Escopos de autorização
Requer o seguinte escopo OAuth:
https://www.googleapis.com/auth/androidmanagement
Para mais informações, consulte OAuth 2.0 Overview.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-01-29 UTC.
[null,null,["Última atualização 2025-01-29 UTC."],[[["Retrieves a specific policy using its unique identifier within an enterprise."],["Requires authorization with the `https://www.googleapis.com/auth/androidmanagement` scope."],["Uses a `GET` request to the specified URL with the policy's name as a path parameter."],["Returns the details of the requested policy if successful."],["Request body should be empty."]]],["This document outlines the process of retrieving a policy via an HTTP GET request. The request URL structure utilizes gRPC Transcoding and requires a `name` parameter, formatted as `enterprises/{enterpriseId}/policies/{policyId}`, specified in the path. The request body must be empty. A successful request returns a `Policy` instance. The operation requires authorization with the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. You can try out this operation using the tool `Try it!`\n"]]