Documentation ¶
Index ¶
- type ActionType
- type AssignmentReportProperties
- type BestPractice
- type BestPracticeList
- type BestPracticesClient
- type BestPracticesClientGetOptions
- type BestPracticesClientGetResponse
- type BestPracticesClientGetResult
- type BestPracticesClientListByTenantOptions
- type BestPracticesClientListByTenantResponse
- type BestPracticesClientListByTenantResult
- type BestPracticesVersionsClient
- func (client *BestPracticesVersionsClient) Get(ctx context.Context, bestPracticeName string, versionName string, ...) (BestPracticesVersionsClientGetResponse, error)
- func (client *BestPracticesVersionsClient) ListByTenant(ctx context.Context, bestPracticeName string, ...) (BestPracticesVersionsClientListByTenantResponse, error)
- type BestPracticesVersionsClientGetOptions
- type BestPracticesVersionsClientGetResponse
- type BestPracticesVersionsClientGetResult
- type BestPracticesVersionsClientListByTenantOptions
- type BestPracticesVersionsClientListByTenantResponse
- type BestPracticesVersionsClientListByTenantResult
- type ConfigurationProfile
- type ConfigurationProfileAssignment
- type ConfigurationProfileAssignmentList
- type ConfigurationProfileAssignmentProperties
- type ConfigurationProfileAssignmentsClient
- func (client *ConfigurationProfileAssignmentsClient) CreateOrUpdate(ctx context.Context, configurationProfileAssignmentName string, ...) (ConfigurationProfileAssignmentsClientCreateOrUpdateResponse, error)
- func (client *ConfigurationProfileAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, ...) (ConfigurationProfileAssignmentsClientDeleteResponse, error)
- func (client *ConfigurationProfileAssignmentsClient) Get(ctx context.Context, resourceGroupName string, ...) (ConfigurationProfileAssignmentsClientGetResponse, error)
- func (client *ConfigurationProfileAssignmentsClient) List(ctx context.Context, resourceGroupName string, ...) (ConfigurationProfileAssignmentsClientListResponse, error)
- func (client *ConfigurationProfileAssignmentsClient) ListBySubscription(ctx context.Context, ...) (ConfigurationProfileAssignmentsClientListBySubscriptionResponse, error)
- type ConfigurationProfileAssignmentsClientCreateOrUpdateOptions
- type ConfigurationProfileAssignmentsClientCreateOrUpdateResponse
- type ConfigurationProfileAssignmentsClientCreateOrUpdateResult
- type ConfigurationProfileAssignmentsClientDeleteOptions
- type ConfigurationProfileAssignmentsClientDeleteResponse
- type ConfigurationProfileAssignmentsClientGetOptions
- type ConfigurationProfileAssignmentsClientGetResponse
- type ConfigurationProfileAssignmentsClientGetResult
- type ConfigurationProfileAssignmentsClientListBySubscriptionOptions
- type ConfigurationProfileAssignmentsClientListBySubscriptionResponse
- type ConfigurationProfileAssignmentsClientListBySubscriptionResult
- type ConfigurationProfileAssignmentsClientListOptions
- type ConfigurationProfileAssignmentsClientListResponse
- type ConfigurationProfileAssignmentsClientListResult
- type ConfigurationProfileList
- type ConfigurationProfileProperties
- type ConfigurationProfileUpdate
- type ConfigurationProfilesClient
- func (client *ConfigurationProfilesClient) CreateOrUpdate(ctx context.Context, configurationProfileName string, resourceGroupName string, ...) (ConfigurationProfilesClientCreateOrUpdateResponse, error)
- func (client *ConfigurationProfilesClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileName string, ...) (ConfigurationProfilesClientDeleteResponse, error)
- func (client *ConfigurationProfilesClient) Get(ctx context.Context, configurationProfileName string, resourceGroupName string, ...) (ConfigurationProfilesClientGetResponse, error)
- func (client *ConfigurationProfilesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, ...) (ConfigurationProfilesClientListByResourceGroupResponse, error)
- func (client *ConfigurationProfilesClient) ListBySubscription(ctx context.Context, ...) (ConfigurationProfilesClientListBySubscriptionResponse, error)
- func (client *ConfigurationProfilesClient) Update(ctx context.Context, configurationProfileName string, resourceGroupName string, ...) (ConfigurationProfilesClientUpdateResponse, error)
- type ConfigurationProfilesClientCreateOrUpdateOptions
- type ConfigurationProfilesClientCreateOrUpdateResponse
- type ConfigurationProfilesClientCreateOrUpdateResult
- type ConfigurationProfilesClientDeleteOptions
- type ConfigurationProfilesClientDeleteResponse
- type ConfigurationProfilesClientGetOptions
- type ConfigurationProfilesClientGetResponse
- type ConfigurationProfilesClientGetResult
- type ConfigurationProfilesClientListByResourceGroupOptions
- type ConfigurationProfilesClientListByResourceGroupResponse
- type ConfigurationProfilesClientListByResourceGroupResult
- type ConfigurationProfilesClientListBySubscriptionOptions
- type ConfigurationProfilesClientListBySubscriptionResponse
- type ConfigurationProfilesClientListBySubscriptionResult
- type ConfigurationProfilesClientUpdateOptions
- type ConfigurationProfilesClientUpdateResponse
- type ConfigurationProfilesClientUpdateResult
- type ConfigurationProfilesVersionsClient
- func (client *ConfigurationProfilesVersionsClient) CreateOrUpdate(ctx context.Context, configurationProfileName string, versionName string, ...) (ConfigurationProfilesVersionsClientCreateOrUpdateResponse, error)
- func (client *ConfigurationProfilesVersionsClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileName string, ...) (ConfigurationProfilesVersionsClientDeleteResponse, error)
- func (client *ConfigurationProfilesVersionsClient) Get(ctx context.Context, configurationProfileName string, versionName string, ...) (ConfigurationProfilesVersionsClientGetResponse, error)
- func (client *ConfigurationProfilesVersionsClient) ListChildResources(ctx context.Context, configurationProfileName string, resourceGroupName string, ...) (ConfigurationProfilesVersionsClientListChildResourcesResponse, error)
- func (client *ConfigurationProfilesVersionsClient) Update(ctx context.Context, configurationProfileName string, versionName string, ...) (ConfigurationProfilesVersionsClientUpdateResponse, error)
- type ConfigurationProfilesVersionsClientCreateOrUpdateOptions
- type ConfigurationProfilesVersionsClientCreateOrUpdateResponse
- type ConfigurationProfilesVersionsClientCreateOrUpdateResult
- type ConfigurationProfilesVersionsClientDeleteOptions
- type ConfigurationProfilesVersionsClientDeleteResponse
- type ConfigurationProfilesVersionsClientGetOptions
- type ConfigurationProfilesVersionsClientGetResponse
- type ConfigurationProfilesVersionsClientGetResult
- type ConfigurationProfilesVersionsClientListChildResourcesOptions
- type ConfigurationProfilesVersionsClientListChildResourcesResponse
- type ConfigurationProfilesVersionsClientListChildResourcesResult
- type ConfigurationProfilesVersionsClientUpdateOptions
- type ConfigurationProfilesVersionsClientUpdateResponse
- type ConfigurationProfilesVersionsClientUpdateResult
- type CreatedByType
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OperationsClientListResult
- type Origin
- type ProxyResource
- type Report
- type ReportList
- type ReportResource
- type ReportsClient
- func (client *ReportsClient) Get(ctx context.Context, resourceGroupName string, ...) (ReportsClientGetResponse, error)
- func (client *ReportsClient) ListByConfigurationProfileAssignments(ctx context.Context, resourceGroupName string, ...) (ReportsClientListByConfigurationProfileAssignmentsResponse, error)
- type ReportsClientGetOptions
- type ReportsClientGetResponse
- type ReportsClientGetResult
- type ReportsClientListByConfigurationProfileAssignmentsOptions
- type ReportsClientListByConfigurationProfileAssignmentsResponse
- type ReportsClientListByConfigurationProfileAssignmentsResult
- type Resource
- type SystemData
- type TrackedResource
- type UpdateResource
Examples ¶
- BestPracticesClient.Get
- BestPracticesClient.ListByTenant
- BestPracticesVersionsClient.Get
- BestPracticesVersionsClient.ListByTenant
- ConfigurationProfileAssignmentsClient.CreateOrUpdate
- ConfigurationProfileAssignmentsClient.Delete
- ConfigurationProfileAssignmentsClient.Get
- ConfigurationProfileAssignmentsClient.List
- ConfigurationProfileAssignmentsClient.ListBySubscription
- ConfigurationProfilesClient.CreateOrUpdate
- ConfigurationProfilesClient.Delete
- ConfigurationProfilesClient.Get
- ConfigurationProfilesClient.ListByResourceGroup
- ConfigurationProfilesClient.ListBySubscription
- ConfigurationProfilesClient.Update
- ConfigurationProfilesVersionsClient.CreateOrUpdate
- ConfigurationProfilesVersionsClient.Delete
- ConfigurationProfilesVersionsClient.Get
- ConfigurationProfilesVersionsClient.ListChildResources
- ConfigurationProfilesVersionsClient.Update
- OperationsClient.List
- ReportsClient.Get
- ReportsClient.ListByConfigurationProfileAssignments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶ added in v0.2.0
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶ added in v0.2.0
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
func (ActionType) ToPtr ¶ added in v0.2.0
func (c ActionType) ToPtr() *ActionType
ToPtr returns a *ActionType pointing to the current value.
type AssignmentReportProperties ¶ added in v0.2.0
type AssignmentReportProperties struct { // End time of the configuration profile assignment processing. EndTime *string `json:"endTime,omitempty"` // Start time of the configuration profile assignment processing. StartTime *string `json:"startTime,omitempty"` // READ-ONLY; The configurationProfile linked to the assignment. ConfigurationProfile *string `json:"configurationProfile,omitempty" azure:"ro"` // READ-ONLY; Duration of the configuration profile assignment processing. Duration *string `json:"duration,omitempty" azure:"ro"` // READ-ONLY; Error message, if any, returned by the configuration profile assignment processing. Error *ErrorDetail `json:"error,omitempty" azure:"ro"` // READ-ONLY; Last modified time of the configuration profile assignment processing. LastModifiedTime *string `json:"lastModifiedTime,omitempty" azure:"ro"` // READ-ONLY; Version of the report format ReportFormatVersion *string `json:"reportFormatVersion,omitempty" azure:"ro"` // READ-ONLY; List of resources processed by the configuration profile assignment. Resources []*ReportResource `json:"resources,omitempty" azure:"ro"` // READ-ONLY; The status of the configuration profile assignment. Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; Type of the configuration profile assignment processing (Initial/Consistency). Type *string `json:"type,omitempty" azure:"ro"` }
AssignmentReportProperties - Data related to the report detail.
func (AssignmentReportProperties) MarshalJSON ¶ added in v0.2.0
func (a AssignmentReportProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssignmentReportProperties.
type BestPractice ¶ added in v0.2.0
type BestPractice struct { // Properties of the best practice. Properties *ConfigurationProfileProperties `json:"properties,omitempty"` // READ-ONLY; The fully qualified ID for the best practice. For example, /providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the best practice. For example, azureBestPracticesProduction Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. For example, Microsoft.Automanage/bestPractices Type *string `json:"type,omitempty" azure:"ro"` }
BestPractice - Definition of the Automanage best practice.
type BestPracticeList ¶ added in v0.2.0
type BestPracticeList struct { // Result of the list best practice operation. Value []*BestPractice `json:"value,omitempty"` }
BestPracticeList - The response of the list best practice operation.
func (BestPracticeList) MarshalJSON ¶ added in v0.2.0
func (b BestPracticeList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BestPracticeList.
type BestPracticesClient ¶ added in v0.2.0
type BestPracticesClient struct {
// contains filtered or unexported fields
}
BestPracticesClient contains the methods for the BestPractices group. Don't use this type directly, use NewBestPracticesClient() instead.
func NewBestPracticesClient ¶ added in v0.2.0
func NewBestPracticesClient(credential azcore.TokenCredential, options *arm.ClientOptions) *BestPracticesClient
NewBestPracticesClient creates a new instance of BestPracticesClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BestPracticesClient) Get ¶ added in v0.2.0
func (client *BestPracticesClient) Get(ctx context.Context, bestPracticeName string, options *BestPracticesClientGetOptions) (BestPracticesClientGetResponse, error)
Get - Get information about a Automanage best practice If the operation fails it returns an *azcore.ResponseError type. bestPracticeName - The Automanage best practice name. options - BestPracticesClientGetOptions contains the optional parameters for the BestPracticesClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPractice.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewBestPracticesClient(cred, nil) res, err := client.Get(ctx, "<best-practice-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BestPracticesClientGetResult) }
Output:
func (*BestPracticesClient) ListByTenant ¶ added in v0.2.0
func (client *BestPracticesClient) ListByTenant(ctx context.Context, options *BestPracticesClientListByTenantOptions) (BestPracticesClientListByTenantResponse, error)
ListByTenant - Retrieve a list of Automanage best practices If the operation fails it returns an *azcore.ResponseError type. options - BestPracticesClientListByTenantOptions contains the optional parameters for the BestPracticesClient.ListByTenant method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesByTenant.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewBestPracticesClient(cred, nil) res, err := client.ListByTenant(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BestPracticesClientListByTenantResult) }
Output:
type BestPracticesClientGetOptions ¶ added in v0.2.0
type BestPracticesClientGetOptions struct { }
BestPracticesClientGetOptions contains the optional parameters for the BestPracticesClient.Get method.
type BestPracticesClientGetResponse ¶ added in v0.2.0
type BestPracticesClientGetResponse struct { BestPracticesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BestPracticesClientGetResponse contains the response from method BestPracticesClient.Get.
type BestPracticesClientGetResult ¶ added in v0.2.0
type BestPracticesClientGetResult struct {
BestPractice
}
BestPracticesClientGetResult contains the result from method BestPracticesClient.Get.
type BestPracticesClientListByTenantOptions ¶ added in v0.2.0
type BestPracticesClientListByTenantOptions struct { }
BestPracticesClientListByTenantOptions contains the optional parameters for the BestPracticesClient.ListByTenant method.
type BestPracticesClientListByTenantResponse ¶ added in v0.2.0
type BestPracticesClientListByTenantResponse struct { BestPracticesClientListByTenantResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BestPracticesClientListByTenantResponse contains the response from method BestPracticesClient.ListByTenant.
type BestPracticesClientListByTenantResult ¶ added in v0.2.0
type BestPracticesClientListByTenantResult struct {
BestPracticeList
}
BestPracticesClientListByTenantResult contains the result from method BestPracticesClient.ListByTenant.
type BestPracticesVersionsClient ¶ added in v0.2.0
type BestPracticesVersionsClient struct {
// contains filtered or unexported fields
}
BestPracticesVersionsClient contains the methods for the BestPracticesVersions group. Don't use this type directly, use NewBestPracticesVersionsClient() instead.
func NewBestPracticesVersionsClient ¶ added in v0.2.0
func NewBestPracticesVersionsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *BestPracticesVersionsClient
NewBestPracticesVersionsClient creates a new instance of BestPracticesVersionsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BestPracticesVersionsClient) Get ¶ added in v0.2.0
func (client *BestPracticesVersionsClient) Get(ctx context.Context, bestPracticeName string, versionName string, options *BestPracticesVersionsClientGetOptions) (BestPracticesVersionsClientGetResponse, error)
Get - Get information about a Automanage best practice version If the operation fails it returns an *azcore.ResponseError type. bestPracticeName - The Automanage best practice name. versionName - The Automanage best practice version name. options - BestPracticesVersionsClientGetOptions contains the optional parameters for the BestPracticesVersionsClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPracticeVersion.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewBestPracticesVersionsClient(cred, nil) res, err := client.Get(ctx, "<best-practice-name>", "<version-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BestPracticesVersionsClientGetResult) }
Output:
func (*BestPracticesVersionsClient) ListByTenant ¶ added in v0.2.0
func (client *BestPracticesVersionsClient) ListByTenant(ctx context.Context, bestPracticeName string, options *BestPracticesVersionsClientListByTenantOptions) (BestPracticesVersionsClientListByTenantResponse, error)
ListByTenant - Retrieve a list of Automanage best practices versions If the operation fails it returns an *azcore.ResponseError type. bestPracticeName - The Automanage best practice name. options - BestPracticesVersionsClientListByTenantOptions contains the optional parameters for the BestPracticesVersionsClient.ListByTenant method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesVersionsByTenant.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewBestPracticesVersionsClient(cred, nil) res, err := client.ListByTenant(ctx, "<best-practice-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.BestPracticesVersionsClientListByTenantResult) }
Output:
type BestPracticesVersionsClientGetOptions ¶ added in v0.2.0
type BestPracticesVersionsClientGetOptions struct { }
BestPracticesVersionsClientGetOptions contains the optional parameters for the BestPracticesVersionsClient.Get method.
type BestPracticesVersionsClientGetResponse ¶ added in v0.2.0
type BestPracticesVersionsClientGetResponse struct { BestPracticesVersionsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BestPracticesVersionsClientGetResponse contains the response from method BestPracticesVersionsClient.Get.
type BestPracticesVersionsClientGetResult ¶ added in v0.2.0
type BestPracticesVersionsClientGetResult struct {
BestPractice
}
BestPracticesVersionsClientGetResult contains the result from method BestPracticesVersionsClient.Get.
type BestPracticesVersionsClientListByTenantOptions ¶ added in v0.2.0
type BestPracticesVersionsClientListByTenantOptions struct { }
BestPracticesVersionsClientListByTenantOptions contains the optional parameters for the BestPracticesVersionsClient.ListByTenant method.
type BestPracticesVersionsClientListByTenantResponse ¶ added in v0.2.0
type BestPracticesVersionsClientListByTenantResponse struct { BestPracticesVersionsClientListByTenantResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BestPracticesVersionsClientListByTenantResponse contains the response from method BestPracticesVersionsClient.ListByTenant.
type BestPracticesVersionsClientListByTenantResult ¶ added in v0.2.0
type BestPracticesVersionsClientListByTenantResult struct {
BestPracticeList
}
BestPracticesVersionsClientListByTenantResult contains the result from method BestPracticesVersionsClient.ListByTenant.
type ConfigurationProfile ¶
type ConfigurationProfile struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of the configuration profile. Properties *ConfigurationProfileProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ConfigurationProfile - Definition of the configuration profile.
func (ConfigurationProfile) MarshalJSON ¶ added in v0.2.0
func (c ConfigurationProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfile.
type ConfigurationProfileAssignment ¶
type ConfigurationProfileAssignment struct { // Properties of the configuration profile assignment. Properties *ConfigurationProfileAssignmentProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ConfigurationProfileAssignment - Configuration profile assignment is an association between a VM and automanage profile configuration.
type ConfigurationProfileAssignmentList ¶
type ConfigurationProfileAssignmentList struct { // Result of the list configuration profile assignment operation. Value []*ConfigurationProfileAssignment `json:"value,omitempty"` }
ConfigurationProfileAssignmentList - The response of the list configuration profile assignment operation.
func (ConfigurationProfileAssignmentList) MarshalJSON ¶
func (c ConfigurationProfileAssignmentList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfileAssignmentList.
type ConfigurationProfileAssignmentProperties ¶
type ConfigurationProfileAssignmentProperties struct { // The Automanage configurationProfile ARM Resource URI. ConfigurationProfile *string `json:"configurationProfile,omitempty"` // The profileOverrides setting for the configuration profile assignment. ProfileOverrides map[string]map[string]interface{} `json:"profileOverrides,omitempty"` // The target VM resource URI TargetID *string `json:"targetId,omitempty"` // READ-ONLY; The status of onboarding, which only appears in the response. Status *string `json:"status,omitempty" azure:"ro"` }
ConfigurationProfileAssignmentProperties - Automanage configuration profile assignment properties.
func (ConfigurationProfileAssignmentProperties) MarshalJSON ¶ added in v0.2.0
func (c ConfigurationProfileAssignmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfileAssignmentProperties.
type ConfigurationProfileAssignmentsClient ¶
type ConfigurationProfileAssignmentsClient struct {
// contains filtered or unexported fields
}
ConfigurationProfileAssignmentsClient contains the methods for the ConfigurationProfileAssignments group. Don't use this type directly, use NewConfigurationProfileAssignmentsClient() instead.
func NewConfigurationProfileAssignmentsClient ¶
func NewConfigurationProfileAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ConfigurationProfileAssignmentsClient
NewConfigurationProfileAssignmentsClient creates a new instance of ConfigurationProfileAssignmentsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConfigurationProfileAssignmentsClient) CreateOrUpdate ¶ added in v0.2.0
func (client *ConfigurationProfileAssignmentsClient) CreateOrUpdate(ctx context.Context, configurationProfileAssignmentName string, resourceGroupName string, vmName string, parameters ConfigurationProfileAssignment, options *ConfigurationProfileAssignmentsClientCreateOrUpdateOptions) (ConfigurationProfileAssignmentsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates an association between a VM and Automanage configuration profile If the operation fails it returns an *azcore.ResponseError type. configurationProfileAssignmentName - Name of the configuration profile assignment. Only default is supported. resourceGroupName - The name of the resource group. The name is case insensitive. vmName - The name of the virtual machine. parameters - Parameters supplied to the create or update configuration profile assignment. options - ConfigurationProfileAssignmentsClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileAssignment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfileAssignmentsClient("<subscription-id>", cred, nil) res, err := client.CreateOrUpdate(ctx, "<configuration-profile-assignment-name>", "<resource-group-name>", "<vm-name>", armautomanage.ConfigurationProfileAssignment{ Properties: &armautomanage.ConfigurationProfileAssignmentProperties{ ConfigurationProfile: to.StringPtr("<configuration-profile>"), }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfileAssignmentsClientCreateOrUpdateResult) }
Output:
func (*ConfigurationProfileAssignmentsClient) Delete ¶
func (client *ConfigurationProfileAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, vmName string, options *ConfigurationProfileAssignmentsClientDeleteOptions) (ConfigurationProfileAssignmentsClientDeleteResponse, error)
Delete - Delete a configuration profile assignment If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileAssignmentName - Name of the configuration profile assignment vmName - The name of the virtual machine. options - ConfigurationProfileAssignmentsClientDeleteOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.Delete method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileAssignment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfileAssignmentsClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<configuration-profile-assignment-name>", "<vm-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ConfigurationProfileAssignmentsClient) Get ¶
func (client *ConfigurationProfileAssignmentsClient) Get(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, vmName string, options *ConfigurationProfileAssignmentsClientGetOptions) (ConfigurationProfileAssignmentsClientGetResponse, error)
Get - Get information about a configuration profile assignment If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileAssignmentName - The configuration profile assignment name. vmName - The name of the virtual machine. options - ConfigurationProfileAssignmentsClientGetOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileAssignment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfileAssignmentsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<configuration-profile-assignment-name>", "<vm-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfileAssignmentsClientGetResult) }
Output:
func (*ConfigurationProfileAssignmentsClient) List ¶
func (client *ConfigurationProfileAssignmentsClient) List(ctx context.Context, resourceGroupName string, options *ConfigurationProfileAssignmentsClientListOptions) (ConfigurationProfileAssignmentsClientListResponse, error)
List - Get list of configuration profile assignments If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ConfigurationProfileAssignmentsClientListOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.List method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfileAssignmentsClient("<subscription-id>", cred, nil) res, err := client.List(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfileAssignmentsClientListResult) }
Output:
func (*ConfigurationProfileAssignmentsClient) ListBySubscription ¶
func (client *ConfigurationProfileAssignmentsClient) ListBySubscription(ctx context.Context, options *ConfigurationProfileAssignmentsClientListBySubscriptionOptions) (ConfigurationProfileAssignmentsClientListBySubscriptionResponse, error)
ListBySubscription - Get list of configuration profile assignments under a given subscription If the operation fails it returns an *azcore.ResponseError type. options - ConfigurationProfileAssignmentsClientListBySubscriptionOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.ListBySubscription method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfileAssignmentsClient("<subscription-id>", cred, nil) res, err := client.ListBySubscription(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfileAssignmentsClientListBySubscriptionResult) }
Output:
type ConfigurationProfileAssignmentsClientCreateOrUpdateOptions ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientCreateOrUpdateOptions struct { }
ConfigurationProfileAssignmentsClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.CreateOrUpdate method.
type ConfigurationProfileAssignmentsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientCreateOrUpdateResponse struct { ConfigurationProfileAssignmentsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfileAssignmentsClientCreateOrUpdateResponse contains the response from method ConfigurationProfileAssignmentsClient.CreateOrUpdate.
type ConfigurationProfileAssignmentsClientCreateOrUpdateResult ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientCreateOrUpdateResult struct {
ConfigurationProfileAssignment
}
ConfigurationProfileAssignmentsClientCreateOrUpdateResult contains the result from method ConfigurationProfileAssignmentsClient.CreateOrUpdate.
type ConfigurationProfileAssignmentsClientDeleteOptions ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientDeleteOptions struct { }
ConfigurationProfileAssignmentsClientDeleteOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.Delete method.
type ConfigurationProfileAssignmentsClientDeleteResponse ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfileAssignmentsClientDeleteResponse contains the response from method ConfigurationProfileAssignmentsClient.Delete.
type ConfigurationProfileAssignmentsClientGetOptions ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientGetOptions struct { }
ConfigurationProfileAssignmentsClientGetOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.Get method.
type ConfigurationProfileAssignmentsClientGetResponse ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientGetResponse struct { ConfigurationProfileAssignmentsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfileAssignmentsClientGetResponse contains the response from method ConfigurationProfileAssignmentsClient.Get.
type ConfigurationProfileAssignmentsClientGetResult ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientGetResult struct {
ConfigurationProfileAssignment
}
ConfigurationProfileAssignmentsClientGetResult contains the result from method ConfigurationProfileAssignmentsClient.Get.
type ConfigurationProfileAssignmentsClientListBySubscriptionOptions ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListBySubscriptionOptions struct { }
ConfigurationProfileAssignmentsClientListBySubscriptionOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.ListBySubscription method.
type ConfigurationProfileAssignmentsClientListBySubscriptionResponse ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListBySubscriptionResponse struct { ConfigurationProfileAssignmentsClientListBySubscriptionResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfileAssignmentsClientListBySubscriptionResponse contains the response from method ConfigurationProfileAssignmentsClient.ListBySubscription.
type ConfigurationProfileAssignmentsClientListBySubscriptionResult ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListBySubscriptionResult struct {
ConfigurationProfileAssignmentList
}
ConfigurationProfileAssignmentsClientListBySubscriptionResult contains the result from method ConfigurationProfileAssignmentsClient.ListBySubscription.
type ConfigurationProfileAssignmentsClientListOptions ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListOptions struct { }
ConfigurationProfileAssignmentsClientListOptions contains the optional parameters for the ConfigurationProfileAssignmentsClient.List method.
type ConfigurationProfileAssignmentsClientListResponse ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListResponse struct { ConfigurationProfileAssignmentsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfileAssignmentsClientListResponse contains the response from method ConfigurationProfileAssignmentsClient.List.
type ConfigurationProfileAssignmentsClientListResult ¶ added in v0.2.0
type ConfigurationProfileAssignmentsClientListResult struct {
ConfigurationProfileAssignmentList
}
ConfigurationProfileAssignmentsClientListResult contains the result from method ConfigurationProfileAssignmentsClient.List.
type ConfigurationProfileList ¶ added in v0.2.0
type ConfigurationProfileList struct { // Result of the list ConfigurationProfile operation. Value []*ConfigurationProfile `json:"value,omitempty"` }
ConfigurationProfileList - The response of the list configuration profile operation.
func (ConfigurationProfileList) MarshalJSON ¶ added in v0.2.0
func (c ConfigurationProfileList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfileList.
type ConfigurationProfileProperties ¶ added in v0.2.0
type ConfigurationProfileProperties struct { // configuration dictionary of the configuration profile. Configuration map[string]interface{} `json:"configuration,omitempty"` // overrides of the configuration profile. Overrides []map[string]interface{} `json:"overrides,omitempty"` }
ConfigurationProfileProperties - Automanage configuration profile properties.
func (ConfigurationProfileProperties) MarshalJSON ¶ added in v0.2.0
func (c ConfigurationProfileProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfileProperties.
type ConfigurationProfileUpdate ¶ added in v0.2.0
type ConfigurationProfileUpdate struct { // Properties of the configuration profile. Properties *ConfigurationProfileProperties `json:"properties,omitempty"` // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` }
ConfigurationProfileUpdate - Definition of the configuration profile.
func (ConfigurationProfileUpdate) MarshalJSON ¶ added in v0.2.0
func (c ConfigurationProfileUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProfileUpdate.
type ConfigurationProfilesClient ¶ added in v0.2.0
type ConfigurationProfilesClient struct {
// contains filtered or unexported fields
}
ConfigurationProfilesClient contains the methods for the ConfigurationProfiles group. Don't use this type directly, use NewConfigurationProfilesClient() instead.
func NewConfigurationProfilesClient ¶ added in v0.2.0
func NewConfigurationProfilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ConfigurationProfilesClient
NewConfigurationProfilesClient creates a new instance of ConfigurationProfilesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConfigurationProfilesClient) CreateOrUpdate ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) CreateOrUpdate(ctx context.Context, configurationProfileName string, resourceGroupName string, parameters ConfigurationProfile, options *ConfigurationProfilesClientCreateOrUpdateOptions) (ConfigurationProfilesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates a configuration profile If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - Name of the configuration profile. resourceGroupName - The name of the resource group. The name is case insensitive. parameters - Parameters supplied to create or update configuration profile. options - ConfigurationProfilesClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfilesClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfile.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) res, err := client.CreateOrUpdate(ctx, "<configuration-profile-name>", "<resource-group-name>", armautomanage.ConfigurationProfile{ Location: to.StringPtr("<location>"), Tags: map[string]*string{ "Organization": to.StringPtr("Administration"), }, Properties: &armautomanage.ConfigurationProfileProperties{ Configuration: map[string]interface{}{ "Antimalware/Enable": false, "AzureSecurityCenter/Enable": true, "Backup/Enable": false, "BootDiagnostics/Enable": true, "ChangeTrackingAndInventory/Enable": true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "UpdateManagement/Enable": true, "VMInsights/Enable": true, }, Overrides: []map[string]interface{}{ { "if": map[string]interface{}{ "equals": "eastus", "field": "$.location", }, "priority": float64(100), "then": map[string]interface{}{ "LogAnalytics/Enable": true, "LogAnalytics/Reprovision": true, "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", }, }, { "if": map[string]interface{}{ "equals": "centralcanada", "field": "$.location", }, "priority": float64(200), "then": map[string]interface{}{ "LogAnalytics/Enable": true, "LogAnalytics/Reprovision": true, "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", }, }}, }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesClientCreateOrUpdateResult) }
Output:
func (*ConfigurationProfilesClient) Delete ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileName string, options *ConfigurationProfilesClientDeleteOptions) (ConfigurationProfilesClientDeleteResponse, error)
Delete - Delete a configuration profile If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileName - Name of the configuration profile options - ConfigurationProfilesClientDeleteOptions contains the optional parameters for the ConfigurationProfilesClient.Delete method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfile.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<configuration-profile-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ConfigurationProfilesClient) Get ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) Get(ctx context.Context, configurationProfileName string, resourceGroupName string, options *ConfigurationProfilesClientGetOptions) (ConfigurationProfilesClientGetResponse, error)
Get - Get information about a configuration profile If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - The configuration profile name. resourceGroupName - The name of the resource group. The name is case insensitive. options - ConfigurationProfilesClientGetOptions contains the optional parameters for the ConfigurationProfilesClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfile.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<configuration-profile-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesClientGetResult) }
Output:
func (*ConfigurationProfilesClient) ListByResourceGroup ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, options *ConfigurationProfilesClientListByResourceGroupOptions) (ConfigurationProfilesClientListByResourceGroupResponse, error)
ListByResourceGroup - Retrieve a list of configuration profile within a given resource group If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ConfigurationProfilesClientListByResourceGroupOptions contains the optional parameters for the ConfigurationProfilesClient.ListByResourceGroup method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) res, err := client.ListByResourceGroup(ctx, "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesClientListByResourceGroupResult) }
Output:
func (*ConfigurationProfilesClient) ListBySubscription ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) ListBySubscription(ctx context.Context, options *ConfigurationProfilesClientListBySubscriptionOptions) (ConfigurationProfilesClientListBySubscriptionResponse, error)
ListBySubscription - Retrieve a list of configuration profile within a subscription If the operation fails it returns an *azcore.ResponseError type. options - ConfigurationProfilesClientListBySubscriptionOptions contains the optional parameters for the ConfigurationProfilesClient.ListBySubscription method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) res, err := client.ListBySubscription(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesClientListBySubscriptionResult) }
Output:
func (*ConfigurationProfilesClient) Update ¶ added in v0.2.0
func (client *ConfigurationProfilesClient) Update(ctx context.Context, configurationProfileName string, resourceGroupName string, parameters ConfigurationProfileUpdate, options *ConfigurationProfilesClientUpdateOptions) (ConfigurationProfilesClientUpdateResponse, error)
Update - Updates a configuration profile If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - Name of the configuration profile. resourceGroupName - The name of the resource group. The name is case insensitive. parameters - Parameters supplied to update configuration profile. options - ConfigurationProfilesClientUpdateOptions contains the optional parameters for the ConfigurationProfilesClient.Update method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfile.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesClient("<subscription-id>", cred, nil) res, err := client.Update(ctx, "<configuration-profile-name>", "<resource-group-name>", armautomanage.ConfigurationProfileUpdate{ Tags: map[string]*string{ "Organization": to.StringPtr("Administration"), }, Properties: &armautomanage.ConfigurationProfileProperties{ Configuration: map[string]interface{}{ "Antimalware/Enable": false, "AzureSecurityCenter/Enable": true, "Backup/Enable": false, "BootDiagnostics/Enable": true, "ChangeTrackingAndInventory/Enable": true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "UpdateManagement/Enable": true, "VMInsights/Enable": true, }, }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesClientUpdateResult) }
Output:
type ConfigurationProfilesClientCreateOrUpdateOptions ¶ added in v0.2.0
type ConfigurationProfilesClientCreateOrUpdateOptions struct { }
ConfigurationProfilesClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfilesClient.CreateOrUpdate method.
type ConfigurationProfilesClientCreateOrUpdateResponse ¶ added in v0.2.0
type ConfigurationProfilesClientCreateOrUpdateResponse struct { ConfigurationProfilesClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientCreateOrUpdateResponse contains the response from method ConfigurationProfilesClient.CreateOrUpdate.
type ConfigurationProfilesClientCreateOrUpdateResult ¶ added in v0.2.0
type ConfigurationProfilesClientCreateOrUpdateResult struct {
ConfigurationProfile
}
ConfigurationProfilesClientCreateOrUpdateResult contains the result from method ConfigurationProfilesClient.CreateOrUpdate.
type ConfigurationProfilesClientDeleteOptions ¶ added in v0.2.0
type ConfigurationProfilesClientDeleteOptions struct { }
ConfigurationProfilesClientDeleteOptions contains the optional parameters for the ConfigurationProfilesClient.Delete method.
type ConfigurationProfilesClientDeleteResponse ¶ added in v0.2.0
type ConfigurationProfilesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientDeleteResponse contains the response from method ConfigurationProfilesClient.Delete.
type ConfigurationProfilesClientGetOptions ¶ added in v0.2.0
type ConfigurationProfilesClientGetOptions struct { }
ConfigurationProfilesClientGetOptions contains the optional parameters for the ConfigurationProfilesClient.Get method.
type ConfigurationProfilesClientGetResponse ¶ added in v0.2.0
type ConfigurationProfilesClientGetResponse struct { ConfigurationProfilesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientGetResponse contains the response from method ConfigurationProfilesClient.Get.
type ConfigurationProfilesClientGetResult ¶ added in v0.2.0
type ConfigurationProfilesClientGetResult struct {
ConfigurationProfile
}
ConfigurationProfilesClientGetResult contains the result from method ConfigurationProfilesClient.Get.
type ConfigurationProfilesClientListByResourceGroupOptions ¶ added in v0.2.0
type ConfigurationProfilesClientListByResourceGroupOptions struct { }
ConfigurationProfilesClientListByResourceGroupOptions contains the optional parameters for the ConfigurationProfilesClient.ListByResourceGroup method.
type ConfigurationProfilesClientListByResourceGroupResponse ¶ added in v0.2.0
type ConfigurationProfilesClientListByResourceGroupResponse struct { ConfigurationProfilesClientListByResourceGroupResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientListByResourceGroupResponse contains the response from method ConfigurationProfilesClient.ListByResourceGroup.
type ConfigurationProfilesClientListByResourceGroupResult ¶ added in v0.2.0
type ConfigurationProfilesClientListByResourceGroupResult struct {
ConfigurationProfileList
}
ConfigurationProfilesClientListByResourceGroupResult contains the result from method ConfigurationProfilesClient.ListByResourceGroup.
type ConfigurationProfilesClientListBySubscriptionOptions ¶ added in v0.2.0
type ConfigurationProfilesClientListBySubscriptionOptions struct { }
ConfigurationProfilesClientListBySubscriptionOptions contains the optional parameters for the ConfigurationProfilesClient.ListBySubscription method.
type ConfigurationProfilesClientListBySubscriptionResponse ¶ added in v0.2.0
type ConfigurationProfilesClientListBySubscriptionResponse struct { ConfigurationProfilesClientListBySubscriptionResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientListBySubscriptionResponse contains the response from method ConfigurationProfilesClient.ListBySubscription.
type ConfigurationProfilesClientListBySubscriptionResult ¶ added in v0.2.0
type ConfigurationProfilesClientListBySubscriptionResult struct {
ConfigurationProfileList
}
ConfigurationProfilesClientListBySubscriptionResult contains the result from method ConfigurationProfilesClient.ListBySubscription.
type ConfigurationProfilesClientUpdateOptions ¶ added in v0.2.0
type ConfigurationProfilesClientUpdateOptions struct { }
ConfigurationProfilesClientUpdateOptions contains the optional parameters for the ConfigurationProfilesClient.Update method.
type ConfigurationProfilesClientUpdateResponse ¶ added in v0.2.0
type ConfigurationProfilesClientUpdateResponse struct { ConfigurationProfilesClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesClientUpdateResponse contains the response from method ConfigurationProfilesClient.Update.
type ConfigurationProfilesClientUpdateResult ¶ added in v0.2.0
type ConfigurationProfilesClientUpdateResult struct {
ConfigurationProfile
}
ConfigurationProfilesClientUpdateResult contains the result from method ConfigurationProfilesClient.Update.
type ConfigurationProfilesVersionsClient ¶ added in v0.2.0
type ConfigurationProfilesVersionsClient struct {
// contains filtered or unexported fields
}
ConfigurationProfilesVersionsClient contains the methods for the ConfigurationProfilesVersions group. Don't use this type directly, use NewConfigurationProfilesVersionsClient() instead.
func NewConfigurationProfilesVersionsClient ¶ added in v0.2.0
func NewConfigurationProfilesVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ConfigurationProfilesVersionsClient
NewConfigurationProfilesVersionsClient creates a new instance of ConfigurationProfilesVersionsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConfigurationProfilesVersionsClient) CreateOrUpdate ¶ added in v0.2.0
func (client *ConfigurationProfilesVersionsClient) CreateOrUpdate(ctx context.Context, configurationProfileName string, versionName string, resourceGroupName string, parameters ConfigurationProfile, options *ConfigurationProfilesVersionsClientCreateOrUpdateOptions) (ConfigurationProfilesVersionsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates a configuration profile version If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - Name of the configuration profile. versionName - The configuration profile version name. resourceGroupName - The name of the resource group. The name is case insensitive. parameters - Parameters supplied to create or update configuration profile. options - ConfigurationProfilesVersionsClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.CreateOrUpdate method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileVersion.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesVersionsClient("<subscription-id>", cred, nil) res, err := client.CreateOrUpdate(ctx, "<configuration-profile-name>", "<version-name>", "<resource-group-name>", armautomanage.ConfigurationProfile{ Location: to.StringPtr("<location>"), Tags: map[string]*string{ "Organization": to.StringPtr("Administration"), }, Properties: &armautomanage.ConfigurationProfileProperties{ Configuration: map[string]interface{}{ "Antimalware/Enable": false, "AzureSecurityCenter/Enable": true, "Backup/Enable": false, "BootDiagnostics/Enable": true, "ChangeTrackingAndInventory/Enable": true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "UpdateManagement/Enable": true, "VMInsights/Enable": true, }, Overrides: []map[string]interface{}{ { "if": map[string]interface{}{ "equals": "eastus", "field": "$.location", }, "priority": float64(100), "then": map[string]interface{}{ "LogAnalytics/Enable": true, "LogAnalytics/Reprovision": true, "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", }, }, { "if": map[string]interface{}{ "equals": "centralcanada", "field": "$.location", }, "priority": float64(200), "then": map[string]interface{}{ "LogAnalytics/Enable": true, "LogAnalytics/Reprovision": true, "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", }, }}, }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesVersionsClientCreateOrUpdateResult) }
Output:
func (*ConfigurationProfilesVersionsClient) Delete ¶ added in v0.2.0
func (client *ConfigurationProfilesVersionsClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileName string, versionName string, options *ConfigurationProfilesVersionsClientDeleteOptions) (ConfigurationProfilesVersionsClientDeleteResponse, error)
Delete - Delete a configuration profile version If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileName - Name of the configuration profile versionName - The configuration profile version name. options - ConfigurationProfilesVersionsClientDeleteOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Delete method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileVersion.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesVersionsClient("<subscription-id>", cred, nil) _, err = client.Delete(ctx, "<resource-group-name>", "<configuration-profile-name>", "<version-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ConfigurationProfilesVersionsClient) Get ¶ added in v0.2.0
func (client *ConfigurationProfilesVersionsClient) Get(ctx context.Context, configurationProfileName string, versionName string, resourceGroupName string, options *ConfigurationProfilesVersionsClientGetOptions) (ConfigurationProfilesVersionsClientGetResponse, error)
Get - Get information about a configuration profile version If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - The configuration profile name. versionName - The configuration profile version name. resourceGroupName - The name of the resource group. The name is case insensitive. options - ConfigurationProfilesVersionsClientGetOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileVersion.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesVersionsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<configuration-profile-name>", "<version-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesVersionsClientGetResult) }
Output:
func (*ConfigurationProfilesVersionsClient) ListChildResources ¶ added in v0.2.0
func (client *ConfigurationProfilesVersionsClient) ListChildResources(ctx context.Context, configurationProfileName string, resourceGroupName string, options *ConfigurationProfilesVersionsClientListChildResourcesOptions) (ConfigurationProfilesVersionsClientListChildResourcesResponse, error)
ListChildResources - Retrieve a list of configuration profile version for a configuration profile If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - Name of the configuration profile. resourceGroupName - The name of the resource group. The name is case insensitive. options - ConfigurationProfilesVersionsClientListChildResourcesOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.ListChildResources method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileVersions.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesVersionsClient("<subscription-id>", cred, nil) res, err := client.ListChildResources(ctx, "<configuration-profile-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesVersionsClientListChildResourcesResult) }
Output:
func (*ConfigurationProfilesVersionsClient) Update ¶ added in v0.2.0
func (client *ConfigurationProfilesVersionsClient) Update(ctx context.Context, configurationProfileName string, versionName string, resourceGroupName string, parameters ConfigurationProfileUpdate, options *ConfigurationProfilesVersionsClientUpdateOptions) (ConfigurationProfilesVersionsClientUpdateResponse, error)
Update - Updates a configuration profile version If the operation fails it returns an *azcore.ResponseError type. configurationProfileName - Name of the configuration profile. versionName - The configuration profile version name. resourceGroupName - The name of the resource group. The name is case insensitive. parameters - Parameters supplied to update configuration profile. options - ConfigurationProfilesVersionsClientUpdateOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Update method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfileVersion.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewConfigurationProfilesVersionsClient("<subscription-id>", cred, nil) res, err := client.Update(ctx, "<configuration-profile-name>", "<version-name>", "<resource-group-name>", armautomanage.ConfigurationProfileUpdate{ Tags: map[string]*string{ "Organization": to.StringPtr("Administration"), }, Properties: &armautomanage.ConfigurationProfileProperties{ Configuration: map[string]interface{}{ "Antimalware/Enable": false, "AzureSecurityCenter/Enable": true, "Backup/Enable": false, "BootDiagnostics/Enable": true, "ChangeTrackingAndInventory/Enable": true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "UpdateManagement/Enable": true, "VMInsights/Enable": true, }, }, }, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ConfigurationProfilesVersionsClientUpdateResult) }
Output:
type ConfigurationProfilesVersionsClientCreateOrUpdateOptions ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientCreateOrUpdateOptions struct { }
ConfigurationProfilesVersionsClientCreateOrUpdateOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.CreateOrUpdate method.
type ConfigurationProfilesVersionsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientCreateOrUpdateResponse struct { ConfigurationProfilesVersionsClientCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesVersionsClientCreateOrUpdateResponse contains the response from method ConfigurationProfilesVersionsClient.CreateOrUpdate.
type ConfigurationProfilesVersionsClientCreateOrUpdateResult ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientCreateOrUpdateResult struct {
ConfigurationProfile
}
ConfigurationProfilesVersionsClientCreateOrUpdateResult contains the result from method ConfigurationProfilesVersionsClient.CreateOrUpdate.
type ConfigurationProfilesVersionsClientDeleteOptions ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientDeleteOptions struct { }
ConfigurationProfilesVersionsClientDeleteOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Delete method.
type ConfigurationProfilesVersionsClientDeleteResponse ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesVersionsClientDeleteResponse contains the response from method ConfigurationProfilesVersionsClient.Delete.
type ConfigurationProfilesVersionsClientGetOptions ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientGetOptions struct { }
ConfigurationProfilesVersionsClientGetOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Get method.
type ConfigurationProfilesVersionsClientGetResponse ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientGetResponse struct { ConfigurationProfilesVersionsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesVersionsClientGetResponse contains the response from method ConfigurationProfilesVersionsClient.Get.
type ConfigurationProfilesVersionsClientGetResult ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientGetResult struct {
ConfigurationProfile
}
ConfigurationProfilesVersionsClientGetResult contains the result from method ConfigurationProfilesVersionsClient.Get.
type ConfigurationProfilesVersionsClientListChildResourcesOptions ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientListChildResourcesOptions struct { }
ConfigurationProfilesVersionsClientListChildResourcesOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.ListChildResources method.
type ConfigurationProfilesVersionsClientListChildResourcesResponse ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientListChildResourcesResponse struct { ConfigurationProfilesVersionsClientListChildResourcesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesVersionsClientListChildResourcesResponse contains the response from method ConfigurationProfilesVersionsClient.ListChildResources.
type ConfigurationProfilesVersionsClientListChildResourcesResult ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientListChildResourcesResult struct {
ConfigurationProfileList
}
ConfigurationProfilesVersionsClientListChildResourcesResult contains the result from method ConfigurationProfilesVersionsClient.ListChildResources.
type ConfigurationProfilesVersionsClientUpdateOptions ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientUpdateOptions struct { }
ConfigurationProfilesVersionsClientUpdateOptions contains the optional parameters for the ConfigurationProfilesVersionsClient.Update method.
type ConfigurationProfilesVersionsClientUpdateResponse ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientUpdateResponse struct { ConfigurationProfilesVersionsClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ConfigurationProfilesVersionsClientUpdateResponse contains the response from method ConfigurationProfilesVersionsClient.Update.
type ConfigurationProfilesVersionsClientUpdateResult ¶ added in v0.2.0
type ConfigurationProfilesVersionsClientUpdateResult struct {
ConfigurationProfile
}
ConfigurationProfilesVersionsClientUpdateResult contains the result from method ConfigurationProfilesVersionsClient.Update.
type CreatedByType ¶ added in v0.2.0
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶ added in v0.2.0
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func (CreatedByType) ToPtr ¶ added in v0.2.0
func (c CreatedByType) ToPtr() *CreatedByType
ToPtr returns a *CreatedByType pointing to the current value.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info map[string]interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
type ErrorDetail ¶
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin `json:"origin,omitempty" azure:"ro"` }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - Localized display information for this particular operation.
type OperationListResult ¶ added in v0.2.0
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of operations supported by the resource provider Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶ added in v0.2.0
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error)
List - Lists all of the available Automanage REST API operations. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listOperations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewOperationsClient(cred, nil) res, err := client.List(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.OperationsClientListResult) }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct { OperationsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsClientListResult ¶ added in v0.2.0
type OperationsClientListResult struct {
OperationListResult
}
OperationsClientListResult contains the result from method OperationsClient.List.
type Origin ¶ added in v0.2.0
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
func PossibleOriginValues ¶ added in v0.2.0
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type Report ¶ added in v0.2.0
type Report struct { // The properties for the report. Properties *AssignmentReportProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Report - Definition of the report.
type ReportList ¶ added in v0.2.0
type ReportList struct { // Result of the list report operation. Value []*Report `json:"value,omitempty"` }
ReportList - The response of the list report operation.
func (ReportList) MarshalJSON ¶ added in v0.2.0
func (r ReportList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReportList.
type ReportResource ¶ added in v0.2.0
type ReportResource struct { // READ-ONLY; Error message, if any, returned when deploying the resource. Error *ErrorDetail `json:"error,omitempty" azure:"ro"` // READ-ONLY; ARM id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the resource. Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ReportResource - Details about the resource processed by the configuration profile assignment
type ReportsClient ¶ added in v0.2.0
type ReportsClient struct {
// contains filtered or unexported fields
}
ReportsClient contains the methods for the Reports group. Don't use this type directly, use NewReportsClient() instead.
func NewReportsClient ¶ added in v0.2.0
func NewReportsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ReportsClient
NewReportsClient creates a new instance of ReportsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ReportsClient) Get ¶ added in v0.2.0
func (client *ReportsClient) Get(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, reportName string, vmName string, options *ReportsClientGetOptions) (ReportsClientGetResponse, error)
Get - Get information about a report associated with a configuration profile assignment run If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileAssignmentName - The configuration profile assignment name. reportName - The report name. vmName - The name of the virtual machine. options - ReportsClientGetOptions contains the optional parameters for the ReportsClient.Get method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getReport.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewReportsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<configuration-profile-assignment-name>", "<report-name>", "<vm-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ReportsClientGetResult) }
Output:
func (*ReportsClient) ListByConfigurationProfileAssignments ¶ added in v0.2.0
func (client *ReportsClient) ListByConfigurationProfileAssignments(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, vmName string, options *ReportsClientListByConfigurationProfileAssignmentsOptions) (ReportsClientListByConfigurationProfileAssignmentsResponse, error)
ListByConfigurationProfileAssignments - Retrieve a list of reports within a given configuration profile assignment If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. configurationProfileAssignmentName - The configuration profile assignment name. vmName - The name of the virtual machine. options - ReportsClientListByConfigurationProfileAssignmentsOptions contains the optional parameters for the ReportsClient.ListByConfigurationProfileAssignments method.
Example ¶
x-ms-original-file: specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listReportsByconfigurationProfileAssignment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armautomanage.NewReportsClient("<subscription-id>", cred, nil) res, err := client.ListByConfigurationProfileAssignments(ctx, "<resource-group-name>", "<configuration-profile-assignment-name>", "<vm-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ReportsClientListByConfigurationProfileAssignmentsResult) }
Output:
type ReportsClientGetOptions ¶ added in v0.2.0
type ReportsClientGetOptions struct { }
ReportsClientGetOptions contains the optional parameters for the ReportsClient.Get method.
type ReportsClientGetResponse ¶ added in v0.2.0
type ReportsClientGetResponse struct { ReportsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReportsClientGetResponse contains the response from method ReportsClient.Get.
type ReportsClientGetResult ¶ added in v0.2.0
type ReportsClientGetResult struct {
Report
}
ReportsClientGetResult contains the result from method ReportsClient.Get.
type ReportsClientListByConfigurationProfileAssignmentsOptions ¶ added in v0.2.0
type ReportsClientListByConfigurationProfileAssignmentsOptions struct { }
ReportsClientListByConfigurationProfileAssignmentsOptions contains the optional parameters for the ReportsClient.ListByConfigurationProfileAssignments method.
type ReportsClientListByConfigurationProfileAssignmentsResponse ¶ added in v0.2.0
type ReportsClientListByConfigurationProfileAssignmentsResponse struct { ReportsClientListByConfigurationProfileAssignmentsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReportsClientListByConfigurationProfileAssignmentsResponse contains the response from method ReportsClient.ListByConfigurationProfileAssignments.
type ReportsClientListByConfigurationProfileAssignmentsResult ¶ added in v0.2.0
type ReportsClientListByConfigurationProfileAssignmentsResult struct {
ReportList
}
ReportsClientListByConfigurationProfileAssignmentsResult contains the result from method ReportsClient.ListByConfigurationProfileAssignments.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type SystemData ¶ added in v0.2.0
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶ added in v0.2.0
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶ added in v0.2.0
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type UpdateResource ¶
type UpdateResource struct { // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` }
UpdateResource - Represents an update resource
func (UpdateResource) MarshalJSON ¶
func (u UpdateResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateResource.
Source Files ¶
- build.go
- zz_generated_bestpractices_client.go
- zz_generated_bestpracticesversions_client.go
- zz_generated_configurationprofileassignments_client.go
- zz_generated_configurationprofiles_client.go
- zz_generated_configurationprofilesversions_client.go
- zz_generated_constants.go
- zz_generated_models.go
- zz_generated_operations_client.go
- zz_generated_reports_client.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go