List Guest Environment
Reads a list of environment variables from the guest operating system. If the authentication uses Credentials.interactive-session, then the environment being read will be that of the user logged into the desktop. Otherwise it’s the environment of the system user.
if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires VirtualMachine.GuestOperations.Query.
Request
URLURL
Path Parameters
Path Parameters
Header Parameters
Header Parameters
Request Body
This is a request body class for an operation.
{
"credentials": {
"interactive_session": false,
"type": "enum"
},
"names": [
"string"
]
}
The names of the variables to be read. If the set is empty, then all the environment variables are returned.
Response
Response BodyResponse Body
map
of
string of type application/json
Mapping from environment variable names to environment variable values, or all environment variables if nothing is specified. If any specified environment variable contained in names is not set, then nothing is returned for that variable.