const ( // DefaultBaseURI is the default URI used for the service Serialconsole DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Serialconsole.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client BaseClient) DisableConsole(ctx context.Context, defaultParameter string) (result SetObject, err error)
DisableConsole disables the Serial Console service for all VMs and VM scale sets in the provided subscription Parameters: defaultParameter - default parameter. Leave the value as "default".
func (client BaseClient) DisableConsolePreparer(ctx context.Context, defaultParameter string) (*http.Request, error)
DisableConsolePreparer prepares the DisableConsole request.
func (client BaseClient) DisableConsoleResponder(resp *http.Response) (result SetObject, err error)
DisableConsoleResponder handles the response to the DisableConsole request. The method always closes the http.Response Body.
func (client BaseClient) DisableConsoleSender(req *http.Request) (*http.Response, error)
DisableConsoleSender sends the DisableConsole request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) EnableConsole(ctx context.Context, defaultParameter string) (result SetObject, err error)
EnableConsole enables the Serial Console service for all VMs and VM scale sets in the provided subscription Parameters: defaultParameter - default parameter. Leave the value as "default".
func (client BaseClient) EnableConsolePreparer(ctx context.Context, defaultParameter string) (*http.Request, error)
EnableConsolePreparer prepares the EnableConsole request.
func (client BaseClient) EnableConsoleResponder(resp *http.Response) (result SetObject, err error)
EnableConsoleResponder handles the response to the EnableConsole request. The method always closes the http.Response Body.
func (client BaseClient) EnableConsoleSender(req *http.Request) (*http.Response, error)
EnableConsoleSender sends the EnableConsole request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetConsoleStatus(ctx context.Context, defaultParameter string) (result SetObject, err error)
GetConsoleStatus gets whether or not Serial Console is disabled for a given subscription Parameters: defaultParameter - default parameter. Leave the value as "default".
func (client BaseClient) GetConsoleStatusPreparer(ctx context.Context, defaultParameter string) (*http.Request, error)
GetConsoleStatusPreparer prepares the GetConsoleStatus request.
func (client BaseClient) GetConsoleStatusResponder(resp *http.Response) (result SetObject, err error)
GetConsoleStatusResponder handles the response to the GetConsoleStatus request. The method always closes the http.Response Body.
func (client BaseClient) GetConsoleStatusSender(req *http.Request) (*http.Response, error)
GetConsoleStatusSender sends the GetConsoleStatus request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) ListOperations(ctx context.Context) (result Operations, err error)
ListOperations gets a list of Serial Console API operations.
func (client BaseClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error)
ListOperationsPreparer prepares the ListOperations request.
func (client BaseClient) ListOperationsResponder(resp *http.Response) (result Operations, err error)
ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.
func (client BaseClient) ListOperationsSender(req *http.Request) (*http.Response, error)
ListOperationsSender sends the ListOperations request. The method will close the http.Response Body if it receives an error.
DisableSerialConsoleResult returns whether or not Serial Console is disabled.
type DisableSerialConsoleResult struct { // Disabled - Whether or not Serial Console is disabled. Disabled *bool `json:"disabled,omitempty"` }
EnableSerialConsoleResult returns whether or not Serial Console is disabled (enabled).
type EnableSerialConsoleResult struct { // Disabled - Whether or not Serial Console is disabled (enabled). Disabled *bool `json:"disabled,omitempty"` }
GetSerialConsoleSubscriptionNotFound error saying that the provided subscription could not be found
type GetSerialConsoleSubscriptionNotFound struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Subscription not found message Message *string `json:"message,omitempty"` }
Operations serial Console operations
type Operations struct { autorest.Response `json:"-"` // Value - A list of Serial Console operations Value *[]OperationsValueItem `json:"value,omitempty"` }
OperationsValueItem ...
type OperationsValueItem struct { Name *string `json:"name,omitempty"` IsDataAction *string `json:"isDataAction,omitempty"` Display *OperationsValueItemDisplay `json:"display,omitempty"` }
OperationsValueItemDisplay ...
type OperationsValueItemDisplay struct { Provider *string `json:"provider,omitempty"` Resource *string `json:"resource,omitempty"` Operation *string `json:"operation,omitempty"` Description *string `json:"description,omitempty"` }
SetObject ...
type SetObject struct { autorest.Response `json:"-"` Value interface{} `json:"value,omitempty"` }
Status returns whether or not Serial Console is disabled.
type Status struct { // Disabled - Whether or not Serial Console is disabled. Disabled *bool `json:"disabled,omitempty"` }
Name | Synopsis |
---|---|
.. | |
serialconsoleapi | Deprecated: Please note, this package has been deprecated. |