Invoke-HeatProxy
SYNOPSIS
Call the HEAT SOAP webservice using a scriptblock.
SYNTAX
DESCRIPTION
Generic function used to call an arbitrary method in the HEAT SOAP webservice proxy for the current connection. The function ensures we have an open connection to HEAT and runs the scriptblock to call the proxy. If the call to the proxy returns a 429 error (server busy), the call will be retried after a delay in order to ensure the call is made. Other errors are rethrown, any otheroutput from the function is returned to the caller.
EXAMPLES
EXAMPLE 1
Invoke-HeatProxy -scrbl {param($proxy,$sessionkey,$tenantid) $proxy.GetRolesForUser($sessionkey,$tenantid}
Calls the method GetRolesForUser to get a list of roles assigned to the current user.
PARAMETERS
-scrbl
Scriptblock to execute with the proxy. This scripblock should have a param block defining the parameters needed to make the call: - Proxy: the webservice proxy (internal to the HEAT module). - SessionKey: the session key needed with all HEAT SOAP methods - TenantId: the tenant ID neededd with all HEAT SOAP methods.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.