Documentation ¶
Overview ¶
Package resourcegroups provides tools for interacting with the Azure Resource Manager resource groups API.
Index ¶
- Constants
- type Client
- func (c *Client) CreateResourceGroup(resourceGroup string, properties Group) (*Group, error)
- func (c *Client) DeleteResourceGroup(resourceGroup string) error
- func (c *Client) GetResourceGroup(resourceGroup string) (*Group, error)
- func (c *Client) ResourceGroupExists(resourceGroup string) (bool, error)
- func (c *Client) UpdateResourceGroup(resourceGroup string, properties Group) (*Group, error)
- type Group
- type GroupProperties
Constants ¶
const (
// BaseURI is the default URI used for compute services.
BaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for interacting with Azure resource groups.
Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines.
func NewClient ¶
func NewClient(auth *azure.Authentication, extraUserAgent string) (*Client, error)
NewClient creates a new Azure resource groups client.
func (*Client) CreateResourceGroup ¶
CreateResourceGroup creates a new Azure resource group with the provided properties. From: https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/createorupdate
func (*Client) DeleteResourceGroup ¶
DeleteResourceGroup deletes an Azure resource group. From: https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/delete
func (*Client) GetResourceGroup ¶
GetResourceGroup gets an Azure resource group. From: https://docs.microsoft.com/en-us/rest/api/resources/ResourceGroups/Get
func (*Client) ResourceGroupExists ¶
ResourceGroupExists checks if an Azure resource group exists. From: https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/checkexistence
func (*Client) UpdateResourceGroup ¶
UpdateResourceGroup updates an Azure resource group with the provided properties. From: https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/createorupdate
type Group ¶
type Group struct { api.ResponseMetadata `json:"-"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Properties *GroupProperties `json:"properties,omitempty"` Location string `json:"location,omitempty"` ManagedBy string `json:"managedBy,omitempty"` Tags map[string]string `json:"tags,omitempty"` }
Group holds resource group information.
type GroupProperties ¶
type GroupProperties struct {
ProvisioningState string `json:"provisioningState,omitempty"`
}
GroupProperties deines the properties for an Azure resource group.