Azure / Azure/azure-libraries-for-java
Provide a Get by ID SDK method which fetches VirtualMachine model and instance views in a single API call
- Lenguaje dominante
- Java
- Estrellas
- 97
- Forks
- 102
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
There is currently no way to retrieve the combined model and instance views of a single Virtual Machine using a Get by ID API call in the SDK. The Virtual Machine Get REST API supports this using the $expand parameter:
https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get
`Azure.virtualMachines().getById()` and `Azure.virtualMachines().getByIdAsync()` both call the Get API without the $expand parameter. The only way I've found to retrieve instance view details after calling getById() is to attempt to access one of the instance properties such as VirtualMachine.powerState(). This forces the calling code to make two sequential API calls to Azure.
It would be ideal to have a way in the SDK to retrieve both model and instance views in a single API call since the underlying REST API supports this mechanism.
Guía de contribución
Línea de trabajo
Comienza siguiendo Azure.virtualMachines().getById() y getByIdAsync() hasta la llamada REST Get; después, lee la documentación enlazada de Virtual Machines Get API para comprobar su compatibilidad con $expand. El trabajo está terminado cuando ambos métodos del SDK puedan recuperar vistas combinadas del modelo y de la instancia mediante una sola llamada a la API.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- azure, java
- Área
- api, cloud
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100