Documentation
¶
Index ¶
- type APIKey
- type ActionType
- type AutoGeneratedDomainNameLabelScope
- type AvailablePromotion
- type AzureMonitorWorkspaceIntegration
- type ClientFactory
- func (c *ClientFactory) NewGrafanaClient() *GrafanaClient
- func (c *ClientFactory) NewIntegrationFabricsClient() *IntegrationFabricsClient
- func (c *ClientFactory) NewManagedDashboardsClient() *ManagedDashboardsClient
- func (c *ClientFactory) NewManagedPrivateEndpointsClient() *ManagedPrivateEndpointsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
- func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
- type CreatedByType
- type CreatorCanAdmin
- type DeterministicOutboundIP
- type EnterpriseConfigurations
- type EnterpriseDetails
- type GrafanaAvailablePlugin
- type GrafanaAvailablePluginListResponse
- type GrafanaClient
- func (client *GrafanaClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[GrafanaClientCreateResponse], error)
- func (client *GrafanaClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[GrafanaClientDeleteResponse], error)
- func (client *GrafanaClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[GrafanaClientUpdateResponse], error)
- func (client *GrafanaClient) CheckEnterpriseDetails(ctx context.Context, resourceGroupName string, workspaceName string, ...) (GrafanaClientCheckEnterpriseDetailsResponse, error)
- func (client *GrafanaClient) FetchAvailablePlugins(ctx context.Context, resourceGroupName string, workspaceName string, ...) (GrafanaClientFetchAvailablePluginsResponse, error)
- func (client *GrafanaClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (GrafanaClientGetResponse, error)
- func (client *GrafanaClient) NewListByResourceGroupPager(resourceGroupName string, options *GrafanaClientListByResourceGroupOptions) *runtime.Pager[GrafanaClientListByResourceGroupResponse]
- func (client *GrafanaClient) NewListPager(options *GrafanaClientListOptions) *runtime.Pager[GrafanaClientListResponse]
- type GrafanaClientBeginCreateOptions
- type GrafanaClientBeginDeleteOptions
- type GrafanaClientBeginUpdateOptions
- type GrafanaClientCheckEnterpriseDetailsOptions
- type GrafanaClientCheckEnterpriseDetailsResponse
- type GrafanaClientCreateResponse
- type GrafanaClientDeleteResponse
- type GrafanaClientFetchAvailablePluginsOptions
- type GrafanaClientFetchAvailablePluginsResponse
- type GrafanaClientGetOptions
- type GrafanaClientGetResponse
- type GrafanaClientListByResourceGroupOptions
- type GrafanaClientListByResourceGroupResponse
- type GrafanaClientListOptions
- type GrafanaClientListResponse
- type GrafanaClientUpdateResponse
- type GrafanaConfigurations
- type GrafanaIntegrations
- type GrafanaPlugin
- type IntegrationFabric
- type IntegrationFabricListResponse
- type IntegrationFabricProperties
- type IntegrationFabricPropertiesUpdateParameters
- type IntegrationFabricUpdateParameters
- type IntegrationFabricsClient
- func (client *IntegrationFabricsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[IntegrationFabricsClientCreateResponse], error)
- func (client *IntegrationFabricsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[IntegrationFabricsClientDeleteResponse], error)
- func (client *IntegrationFabricsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[IntegrationFabricsClientUpdateResponse], error)
- func (client *IntegrationFabricsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (IntegrationFabricsClientGetResponse, error)
- func (client *IntegrationFabricsClient) NewListPager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[IntegrationFabricsClientListResponse]
- type IntegrationFabricsClientBeginCreateOptions
- type IntegrationFabricsClientBeginDeleteOptions
- type IntegrationFabricsClientBeginUpdateOptions
- type IntegrationFabricsClientCreateResponse
- type IntegrationFabricsClientDeleteResponse
- type IntegrationFabricsClientGetOptions
- type IntegrationFabricsClientGetResponse
- type IntegrationFabricsClientListOptions
- type IntegrationFabricsClientListResponse
- type IntegrationFabricsClientUpdateResponse
- type ManagedDashboard
- type ManagedDashboardListResponse
- type ManagedDashboardProperties
- type ManagedDashboardUpdateParameters
- type ManagedDashboardsClient
- func (client *ManagedDashboardsClient) BeginCreate(ctx context.Context, resourceGroupName string, dashboardName string, ...) (*runtime.Poller[ManagedDashboardsClientCreateResponse], error)
- func (client *ManagedDashboardsClient) Delete(ctx context.Context, resourceGroupName string, dashboardName string, ...) (ManagedDashboardsClientDeleteResponse, error)
- func (client *ManagedDashboardsClient) Get(ctx context.Context, resourceGroupName string, dashboardName string, ...) (ManagedDashboardsClientGetResponse, error)
- func (client *ManagedDashboardsClient) NewListBySubscriptionPager(options *ManagedDashboardsClientListBySubscriptionOptions) *runtime.Pager[ManagedDashboardsClientListBySubscriptionResponse]
- func (client *ManagedDashboardsClient) NewListPager(resourceGroupName string, options *ManagedDashboardsClientListOptions) *runtime.Pager[ManagedDashboardsClientListResponse]
- func (client *ManagedDashboardsClient) Update(ctx context.Context, resourceGroupName string, dashboardName string, ...) (ManagedDashboardsClientUpdateResponse, error)
- type ManagedDashboardsClientBeginCreateOptions
- type ManagedDashboardsClientCreateResponse
- type ManagedDashboardsClientDeleteOptions
- type ManagedDashboardsClientDeleteResponse
- type ManagedDashboardsClientGetOptions
- type ManagedDashboardsClientGetResponse
- type ManagedDashboardsClientListBySubscriptionOptions
- type ManagedDashboardsClientListBySubscriptionResponse
- type ManagedDashboardsClientListOptions
- type ManagedDashboardsClientListResponse
- type ManagedDashboardsClientUpdateOptions
- type ManagedDashboardsClientUpdateResponse
- type ManagedGrafana
- type ManagedGrafanaListResponse
- type ManagedGrafanaProperties
- type ManagedGrafanaPropertiesUpdateParameters
- type ManagedGrafanaUpdateParameters
- type ManagedPrivateEndpointConnectionState
- type ManagedPrivateEndpointConnectionStatus
- type ManagedPrivateEndpointModel
- type ManagedPrivateEndpointModelListResponse
- type ManagedPrivateEndpointModelProperties
- type ManagedPrivateEndpointUpdateParameters
- type ManagedPrivateEndpointsClient
- func (client *ManagedPrivateEndpointsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[ManagedPrivateEndpointsClientCreateResponse], error)
- func (client *ManagedPrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[ManagedPrivateEndpointsClientDeleteResponse], error)
- func (client *ManagedPrivateEndpointsClient) BeginRefresh(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[ManagedPrivateEndpointsClientRefreshResponse], error)
- func (client *ManagedPrivateEndpointsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[ManagedPrivateEndpointsClientUpdateResponse], error)
- func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (ManagedPrivateEndpointsClientGetResponse, error)
- func (client *ManagedPrivateEndpointsClient) NewListPager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[ManagedPrivateEndpointsClientListResponse]
- type ManagedPrivateEndpointsClientBeginCreateOptions
- type ManagedPrivateEndpointsClientBeginDeleteOptions
- type ManagedPrivateEndpointsClientBeginRefreshOptions
- type ManagedPrivateEndpointsClientBeginUpdateOptions
- type ManagedPrivateEndpointsClientCreateResponse
- type ManagedPrivateEndpointsClientDeleteResponse
- type ManagedPrivateEndpointsClientGetOptions
- type ManagedPrivateEndpointsClientGetResponse
- type ManagedPrivateEndpointsClientListOptions
- type ManagedPrivateEndpointsClientListResponse
- type ManagedPrivateEndpointsClientRefreshResponse
- type ManagedPrivateEndpointsClientUpdateResponse
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type MarketplaceAutoRenew
- type MarketplaceTrialQuota
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) BeginApprove(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientApproveResponse], error)
- func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]
- type PrivateEndpointConnectionsClientApproveResponse
- type PrivateEndpointConnectionsClientBeginApproveOptions
- type PrivateEndpointConnectionsClientBeginDeleteOptions
- type PrivateEndpointConnectionsClientDeleteResponse
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListOptions
- type PrivateEndpointConnectionsClientListResponse
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, workspaceName string, ...) *runtime.Pager[PrivateLinkResourcesClientListResponse]
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListOptions
- type PrivateLinkResourcesClientListResponse
- type PrivateLinkServiceConnectionState
- type ProvisioningState
- type PublicNetworkAccess
- type ResourceSKU
- type SMTP
- type SaasSubscriptionDetails
- type Security
- type Size
- type Snapshots
- type StartTLSPolicy
- type SubscriptionTerm
- type SystemData
- type UnifiedAlertingScreenshots
- type UserAssignedIdentity
- type Users
- type ZoneRedundancy
Examples ¶
- GrafanaClient.BeginCreate
- GrafanaClient.BeginDelete
- GrafanaClient.BeginUpdate
- GrafanaClient.CheckEnterpriseDetails
- GrafanaClient.FetchAvailablePlugins
- GrafanaClient.Get
- GrafanaClient.NewListByResourceGroupPager
- GrafanaClient.NewListPager
- IntegrationFabricsClient.BeginCreate
- IntegrationFabricsClient.BeginDelete
- IntegrationFabricsClient.BeginUpdate
- IntegrationFabricsClient.Get
- IntegrationFabricsClient.NewListPager
- ManagedDashboardsClient.BeginCreate
- ManagedDashboardsClient.Delete
- ManagedDashboardsClient.Get
- ManagedDashboardsClient.NewListBySubscriptionPager
- ManagedDashboardsClient.NewListPager
- ManagedDashboardsClient.Update
- ManagedPrivateEndpointsClient.BeginCreate
- ManagedPrivateEndpointsClient.BeginDelete
- ManagedPrivateEndpointsClient.BeginRefresh
- ManagedPrivateEndpointsClient.BeginUpdate
- ManagedPrivateEndpointsClient.Get
- ManagedPrivateEndpointsClient.NewListPager
- OperationsClient.NewListPager
- PrivateEndpointConnectionsClient.BeginApprove
- PrivateEndpointConnectionsClient.BeginDelete
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.NewListPager
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey string
func PossibleAPIKeyValues ¶
func PossibleAPIKeyValues() []APIKey
PossibleAPIKeyValues returns the possible values for the APIKey const type.
type ActionType ¶
type ActionType string
ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const ( // ActionTypeInternal - Actions are for internal-only APIs. ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type AutoGeneratedDomainNameLabelScope ¶
type AutoGeneratedDomainNameLabelScope string
AutoGeneratedDomainNameLabelScope - Scope for dns deterministic name hash calculation
const (
AutoGeneratedDomainNameLabelScopeTenantReuse AutoGeneratedDomainNameLabelScope = "TenantReuse"
)
func PossibleAutoGeneratedDomainNameLabelScopeValues ¶
func PossibleAutoGeneratedDomainNameLabelScopeValues() []AutoGeneratedDomainNameLabelScope
PossibleAutoGeneratedDomainNameLabelScopeValues returns the possible values for the AutoGeneratedDomainNameLabelScope const type.
type AvailablePromotion ¶
type AvailablePromotion string
const ( AvailablePromotionFreeTrial AvailablePromotion = "FreeTrial" AvailablePromotionNone AvailablePromotion = "None" )
func PossibleAvailablePromotionValues ¶
func PossibleAvailablePromotionValues() []AvailablePromotion
PossibleAvailablePromotionValues returns the possible values for the AvailablePromotion const type.
type AzureMonitorWorkspaceIntegration ¶
type AzureMonitorWorkspaceIntegration struct {
// The resource Id of the connected Azure Monitor Workspace.
AzureMonitorWorkspaceResourceID *string
}
AzureMonitorWorkspaceIntegration - Integrations for Azure Monitor Workspace.
func (AzureMonitorWorkspaceIntegration) MarshalJSON ¶
func (a AzureMonitorWorkspaceIntegration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMonitorWorkspaceIntegration.
func (*AzureMonitorWorkspaceIntegration) UnmarshalJSON ¶
func (a *AzureMonitorWorkspaceIntegration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMonitorWorkspaceIntegration.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewGrafanaClient ¶
func (c *ClientFactory) NewGrafanaClient() *GrafanaClient
NewGrafanaClient creates a new instance of GrafanaClient.
func (*ClientFactory) NewIntegrationFabricsClient ¶
func (c *ClientFactory) NewIntegrationFabricsClient() *IntegrationFabricsClient
NewIntegrationFabricsClient creates a new instance of IntegrationFabricsClient.
func (*ClientFactory) NewManagedDashboardsClient ¶
func (c *ClientFactory) NewManagedDashboardsClient() *ManagedDashboardsClient
NewManagedDashboardsClient creates a new instance of ManagedDashboardsClient.
func (*ClientFactory) NewManagedPrivateEndpointsClient ¶
func (c *ClientFactory) NewManagedPrivateEndpointsClient() *ManagedPrivateEndpointsClient
NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPrivateEndpointConnectionsClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.
func (*ClientFactory) NewPrivateLinkResourcesClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The kind of entity that created the resource.
const ( // CreatedByTypeApplication - The entity was created by an application. CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey - The entity was created by a key. CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity - The entity was created by a managed identity. CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser - The entity was created by a user. CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type CreatorCanAdmin ¶
type CreatorCanAdmin string
CreatorCanAdmin - The creator will have admin access for the Grafana instance.
const ( // CreatorCanAdminDisabled - Creator admin access is disabled CreatorCanAdminDisabled CreatorCanAdmin = "Disabled" // CreatorCanAdminEnabled - Creator admin access is enabled CreatorCanAdminEnabled CreatorCanAdmin = "Enabled" )
func PossibleCreatorCanAdminValues ¶
func PossibleCreatorCanAdminValues() []CreatorCanAdmin
PossibleCreatorCanAdminValues returns the possible values for the CreatorCanAdmin const type.
type DeterministicOutboundIP ¶
type DeterministicOutboundIP string
const ( DeterministicOutboundIPDisabled DeterministicOutboundIP = "Disabled" DeterministicOutboundIPEnabled DeterministicOutboundIP = "Enabled" )
func PossibleDeterministicOutboundIPValues ¶
func PossibleDeterministicOutboundIPValues() []DeterministicOutboundIP
PossibleDeterministicOutboundIPValues returns the possible values for the DeterministicOutboundIP const type.
type EnterpriseConfigurations ¶
type EnterpriseConfigurations struct {
// The AutoRenew setting of the Enterprise subscription
MarketplaceAutoRenew *MarketplaceAutoRenew
// The Plan Id of the Azure Marketplace subscription for the Enterprise plugins
MarketplacePlanID *string
}
EnterpriseConfigurations - Enterprise settings of a Grafana instance
func (EnterpriseConfigurations) MarshalJSON ¶
func (e EnterpriseConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseConfigurations.
func (*EnterpriseConfigurations) UnmarshalJSON ¶
func (e *EnterpriseConfigurations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseConfigurations.
type EnterpriseDetails ¶
type EnterpriseDetails struct {
// The allocation details of the per subscription free trial slot of the subscription.
MarketplaceTrialQuota *MarketplaceTrialQuota
// SaaS subscription details of a Grafana instance
SaasSubscriptionDetails *SaasSubscriptionDetails
}
EnterpriseDetails - Enterprise details of a Grafana instance
func (EnterpriseDetails) MarshalJSON ¶
func (e EnterpriseDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseDetails.
func (*EnterpriseDetails) UnmarshalJSON ¶
func (e *EnterpriseDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseDetails.
type GrafanaAvailablePlugin ¶
type GrafanaAvailablePlugin struct {
// READ-ONLY; Grafana plugin author/publisher name
Author *string
// READ-ONLY; Grafana plugin display name
Name *string
// READ-ONLY; Grafana plugin id
PluginID *string
// READ-ONLY; Grafana plugin type
Type *string
}
GrafanaAvailablePlugin - Available plugins of grafana
func (GrafanaAvailablePlugin) MarshalJSON ¶
func (g GrafanaAvailablePlugin) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GrafanaAvailablePlugin.
func (*GrafanaAvailablePlugin) UnmarshalJSON ¶
func (g *GrafanaAvailablePlugin) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GrafanaAvailablePlugin.
type GrafanaAvailablePluginListResponse ¶
type GrafanaAvailablePluginListResponse struct {
NextLink *string
Value []*GrafanaAvailablePlugin
}
func (GrafanaAvailablePluginListResponse) MarshalJSON ¶
func (g GrafanaAvailablePluginListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GrafanaAvailablePluginListResponse.
func (*GrafanaAvailablePluginListResponse) UnmarshalJSON ¶
func (g *GrafanaAvailablePluginListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GrafanaAvailablePluginListResponse.
type GrafanaClient ¶
type GrafanaClient struct {
// contains filtered or unexported fields
}
GrafanaClient contains the methods for the Grafana group. Don't use this type directly, use NewGrafanaClient() instead.
func NewGrafanaClient ¶
func NewGrafanaClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GrafanaClient, error)
NewGrafanaClient creates a new instance of GrafanaClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GrafanaClient) BeginCreate ¶
func (client *GrafanaClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, requestBodyParameters ManagedGrafana, options *GrafanaClientBeginCreateOptions) (*runtime.Poller[GrafanaClientCreateResponse], error)
BeginCreate - Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientBeginCreateOptions contains the optional parameters for the GrafanaClient.BeginCreate method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_Create.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewGrafanaClient().BeginCreate(ctx, "myResourceGroup", "myWorkspace", armdashboard.ManagedGrafana{
Identity: &armdashboard.ManagedServiceIdentity{
Type: to.Ptr(armdashboard.ManagedServiceIdentityTypeSystemAssigned),
},
Location: to.Ptr("West US"),
Properties: &armdashboard.ManagedGrafanaProperties{
APIKey: to.Ptr(armdashboard.APIKeyEnabled),
DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
MarketplacePlanID: to.Ptr("myPlanId"),
},
GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
Security: &armdashboard.Security{
CsrfAlwaysCheck: to.Ptr(false),
},
SMTP: &armdashboard.SMTP{
Enabled: to.Ptr(true),
FromAddress: to.Ptr("test@sendemail.com"),
FromName: to.Ptr("emailsender"),
Host: to.Ptr("smtp.sendemail.com:587"),
Password: to.Ptr(""),
SkipVerify: to.Ptr(true),
StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
User: to.Ptr("username"),
},
Snapshots: &armdashboard.Snapshots{
ExternalEnabled: to.Ptr(true),
},
UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
CaptureEnabled: to.Ptr(false),
},
Users: &armdashboard.Users{
EditorsCanAdmin: to.Ptr(true),
ViewersCanEdit: to.Ptr(true),
},
},
GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
{
AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
},
},
},
GrafanaMajorVersion: to.Ptr("9"),
GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
"sample-plugin-id": {},
},
PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
},
SKU: &armdashboard.ResourceSKU{
Name: to.Ptr("Standard"),
},
Tags: map[string]*string{
"Environment": to.Ptr("Dev"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientCreateResponse{
// ManagedGrafana: &armdashboard.ManagedGrafana{
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.Dashboard/grafana"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"),
// Identity: &armdashboard.ManagedServiceIdentity{
// Type: to.Ptr(armdashboard.ManagedServiceIdentityTypeSystemAssigned),
// },
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedGrafanaProperties{
// APIKey: to.Ptr(armdashboard.APIKeyEnabled),
// AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse),
// DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
// Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"),
// EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
// MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
// MarketplacePlanID: to.Ptr("myPlanId"),
// },
// GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
// Security: &armdashboard.Security{
// CsrfAlwaysCheck: to.Ptr(false),
// },
// SMTP: &armdashboard.SMTP{
// Enabled: to.Ptr(true),
// FromAddress: to.Ptr("test@sendemail.com"),
// FromName: to.Ptr("emailsender"),
// Host: to.Ptr("smtp.sendemail.com:587"),
// SkipVerify: to.Ptr(true),
// StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
// User: to.Ptr("username"),
// },
// Snapshots: &armdashboard.Snapshots{
// ExternalEnabled: to.Ptr(true),
// },
// UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
// CaptureEnabled: to.Ptr(false),
// },
// Users: &armdashboard.Users{
// EditorsCanAdmin: to.Ptr(true),
// ViewersCanEdit: to.Ptr(true),
// },
// },
// GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
// AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
// {
// AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
// },
// },
// },
// GrafanaMajorVersion: to.Ptr("9"),
// GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
// "sample-plugin-id": &armdashboard.GrafanaPlugin{
// PluginID: to.Ptr("sample-plugin-id"),
// },
// },
// GrafanaVersion: to.Ptr("9.4.5"),
// OutboundIPs: []*string{
// to.Ptr("192.168.0.1"),
// to.Ptr("192.168.0.2"),
// },
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
// ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
// },
// SKU: &armdashboard.ResourceSKU{
// Name: to.Ptr("Standard"),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// }
}
Output:
func (*GrafanaClient) BeginDelete ¶
func (client *GrafanaClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, options *GrafanaClientBeginDeleteOptions) (*runtime.Poller[GrafanaClientDeleteResponse], error)
BeginDelete - Delete a workspace for Grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientBeginDeleteOptions contains the optional parameters for the GrafanaClient.BeginDelete method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewGrafanaClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientDeleteResponse{
// }
}
Output:
func (*GrafanaClient) BeginUpdate ¶
func (client *GrafanaClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, requestBodyParameters ManagedGrafanaUpdateParameters, options *GrafanaClientBeginUpdateOptions) (*runtime.Poller[GrafanaClientUpdateResponse], error)
BeginUpdate - Update a workspace for Grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientBeginUpdateOptions contains the optional parameters for the GrafanaClient.BeginUpdate method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_Update.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewGrafanaClient().BeginUpdate(ctx, "myResourceGroup", "myWorkspace", armdashboard.ManagedGrafanaUpdateParameters{
Properties: &armdashboard.ManagedGrafanaPropertiesUpdateParameters{
APIKey: to.Ptr(armdashboard.APIKeyEnabled),
DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
MarketplacePlanID: to.Ptr("myPlanId"),
},
GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
Security: &armdashboard.Security{
CsrfAlwaysCheck: to.Ptr(false),
},
SMTP: &armdashboard.SMTP{
Enabled: to.Ptr(true),
FromAddress: to.Ptr("test@sendemail.com"),
FromName: to.Ptr("emailsender"),
Host: to.Ptr("smtp.sendemail.com:587"),
Password: to.Ptr(""),
SkipVerify: to.Ptr(true),
StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
User: to.Ptr("username"),
},
Snapshots: &armdashboard.Snapshots{
ExternalEnabled: to.Ptr(true),
},
UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
CaptureEnabled: to.Ptr(false),
},
Users: &armdashboard.Users{
EditorsCanAdmin: to.Ptr(true),
ViewersCanEdit: to.Ptr(true),
},
},
GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
{
AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
},
},
},
GrafanaMajorVersion: to.Ptr("9"),
GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
"sample-plugin-id": {},
},
},
SKU: &armdashboard.ResourceSKU{
Name: to.Ptr("Standard"),
},
Tags: map[string]*string{
"Environment": to.Ptr("Dev 2"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientUpdateResponse{
// ManagedGrafana: &armdashboard.ManagedGrafana{
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.Dashboard/grafana"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedGrafanaProperties{
// APIKey: to.Ptr(armdashboard.APIKeyEnabled),
// AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse),
// DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
// Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"),
// EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
// MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
// MarketplacePlanID: to.Ptr("myPlanId"),
// },
// GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
// Security: &armdashboard.Security{
// CsrfAlwaysCheck: to.Ptr(false),
// },
// SMTP: &armdashboard.SMTP{
// Enabled: to.Ptr(true),
// FromAddress: to.Ptr("test@sendemail.com"),
// FromName: to.Ptr("emailsender"),
// Host: to.Ptr("smtp.sendemail.com:587"),
// SkipVerify: to.Ptr(true),
// StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
// User: to.Ptr("username"),
// },
// Snapshots: &armdashboard.Snapshots{
// ExternalEnabled: to.Ptr(true),
// },
// Users: &armdashboard.Users{
// EditorsCanAdmin: to.Ptr(true),
// ViewersCanEdit: to.Ptr(true),
// },
// },
// GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
// AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
// {
// AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
// },
// },
// },
// GrafanaMajorVersion: to.Ptr("9"),
// GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
// "sample-plugin-id": &armdashboard.GrafanaPlugin{
// PluginID: to.Ptr("sample-plugin-id"),
// },
// },
// GrafanaVersion: to.Ptr("9.4.5"),
// OutboundIPs: []*string{
// to.Ptr("192.168.0.1"),
// to.Ptr("192.168.0.2"),
// },
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
// ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
// },
// SKU: &armdashboard.ResourceSKU{
// Name: to.Ptr("Standard"),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev 2"),
// },
// },
// }
}
Output:
func (*GrafanaClient) CheckEnterpriseDetails ¶
func (client *GrafanaClient) CheckEnterpriseDetails(ctx context.Context, resourceGroupName string, workspaceName string, options *GrafanaClientCheckEnterpriseDetailsOptions) (GrafanaClientCheckEnterpriseDetailsResponse, error)
CheckEnterpriseDetails - Retrieve enterprise add-on details information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientCheckEnterpriseDetailsOptions contains the optional parameters for the GrafanaClient.CheckEnterpriseDetails method.
Example ¶
Generated from example definition: 2025-08-01/EnterpriseDetails_Post.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewGrafanaClient().CheckEnterpriseDetails(ctx, "myResourceGroup", "myWorkspace", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientCheckEnterpriseDetailsResponse{
// EnterpriseDetails: &armdashboard.EnterpriseDetails{
// MarketplaceTrialQuota: &armdashboard.MarketplaceTrialQuota{
// AvailablePromotion: to.Ptr(armdashboard.AvailablePromotionNone),
// GrafanaResourceID: to.Ptr("/subscriptions/e1e3b30d-e7ec-4e25-8587-db037bcb9a4d/resourcegroups/amg-local-script-test-rg/providers/microsoft.dashboard/grafana/eus2-enterprise-1001-07"),
// TrialEndAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-03T01:06:00.447Z"); return t}()),
// TrialStartAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-04T01:06:00.447Z"); return t}()),
// },
// SaasSubscriptionDetails: &armdashboard.SaasSubscriptionDetails{
// OfferID: to.Ptr("amg_test"),
// PlanID: to.Ptr("amg_globalplan"),
// PublisherID: to.Ptr("isvtestuklegacy"),
// Term: &armdashboard.SubscriptionTerm{
// EndDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-03T00:00:00Z"); return t}()),
// StartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-04T00:00:00Z"); return t}()),
// TermUnit: to.Ptr("P1M"),
// },
// },
// },
// }
}
Output:
func (*GrafanaClient) FetchAvailablePlugins ¶
func (client *GrafanaClient) FetchAvailablePlugins(ctx context.Context, resourceGroupName string, workspaceName string, options *GrafanaClientFetchAvailablePluginsOptions) (GrafanaClientFetchAvailablePluginsResponse, error)
FetchAvailablePlugins - A synchronous resource action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientFetchAvailablePluginsOptions contains the optional parameters for the GrafanaClient.FetchAvailablePlugins method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_FetchAvailablePlugins.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewGrafanaClient().FetchAvailablePlugins(ctx, "myResourceGroup", "myWorkspace", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientFetchAvailablePluginsResponse{
// GrafanaAvailablePluginListResponse: &armdashboard.GrafanaAvailablePluginListResponse{
// Value: []*armdashboard.GrafanaAvailablePlugin{
// {
// Name: to.Ptr("Plugin A"),
// PluginID: to.Ptr("plugin-a"),
// },
// {
// Name: to.Ptr("Plugin B"),
// PluginID: to.Ptr("plugin-b"),
// },
// },
// },
// }
}
Output:
func (*GrafanaClient) Get ¶
func (client *GrafanaClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *GrafanaClientGetOptions) (GrafanaClientGetResponse, error)
Get - Get the properties of a specific workspace for Grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - GrafanaClientGetOptions contains the optional parameters for the GrafanaClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewGrafanaClient().Get(ctx, "myResourceGroup", "myWorkspace", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.GrafanaClientGetResponse{
// ManagedGrafana: &armdashboard.ManagedGrafana{
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.Dashboard/grafana"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedGrafanaProperties{
// APIKey: to.Ptr(armdashboard.APIKeyEnabled),
// AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse),
// DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
// Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"),
// EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
// MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
// MarketplacePlanID: to.Ptr("myPlanId"),
// },
// GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
// Security: &armdashboard.Security{
// CsrfAlwaysCheck: to.Ptr(false),
// },
// SMTP: &armdashboard.SMTP{
// Enabled: to.Ptr(true),
// FromAddress: to.Ptr("test@sendemail.com"),
// FromName: to.Ptr("emailsender"),
// Host: to.Ptr("smtp.sendemail.com:587"),
// SkipVerify: to.Ptr(true),
// StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
// User: to.Ptr("username"),
// },
// Snapshots: &armdashboard.Snapshots{
// ExternalEnabled: to.Ptr(true),
// },
// UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
// CaptureEnabled: to.Ptr(false),
// },
// Users: &armdashboard.Users{
// EditorsCanAdmin: to.Ptr(true),
// ViewersCanEdit: to.Ptr(true),
// },
// },
// GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
// AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
// {
// AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
// },
// },
// },
// GrafanaMajorVersion: to.Ptr("9"),
// GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
// "sample-plugin-id": &armdashboard.GrafanaPlugin{
// PluginID: to.Ptr("sample-plugin-id"),
// },
// },
// GrafanaVersion: to.Ptr("9.4.5"),
// OutboundIPs: []*string{
// to.Ptr("192.168.0.1"),
// to.Ptr("192.168.0.2"),
// },
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
// ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
// },
// SKU: &armdashboard.ResourceSKU{
// Name: to.Ptr("Standard"),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// }
}
Output:
func (*GrafanaClient) NewListByResourceGroupPager ¶
func (client *GrafanaClient) NewListByResourceGroupPager(resourceGroupName string, options *GrafanaClientListByResourceGroupOptions) *runtime.Pager[GrafanaClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all resources of workspaces for Grafana under the specified resource group.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - GrafanaClientListByResourceGroupOptions contains the optional parameters for the GrafanaClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_ListByResourceGroup.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewGrafanaClient().NewListByResourceGroupPager("myResourceGroup", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.GrafanaClientListByResourceGroupResponse{
// ManagedGrafanaListResponse: armdashboard.ManagedGrafanaListResponse{
// Value: []*armdashboard.ManagedGrafana{
// {
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.Dashboard/grafana"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedGrafanaProperties{
// APIKey: to.Ptr(armdashboard.APIKeyEnabled),
// AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse),
// DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
// Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"),
// EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
// MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
// MarketplacePlanID: to.Ptr("myPlanId"),
// },
// GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
// Security: &armdashboard.Security{
// CsrfAlwaysCheck: to.Ptr(false),
// },
// SMTP: &armdashboard.SMTP{
// Enabled: to.Ptr(true),
// FromAddress: to.Ptr("test@sendemail.com"),
// FromName: to.Ptr("emailsender"),
// Host: to.Ptr("smtp.sendemail.com:587"),
// SkipVerify: to.Ptr(true),
// StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
// User: to.Ptr("username"),
// },
// Snapshots: &armdashboard.Snapshots{
// ExternalEnabled: to.Ptr(true),
// },
// UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
// CaptureEnabled: to.Ptr(false),
// },
// Users: &armdashboard.Users{
// EditorsCanAdmin: to.Ptr(true),
// ViewersCanEdit: to.Ptr(true),
// },
// },
// GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
// AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
// {
// AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
// },
// },
// },
// GrafanaMajorVersion: to.Ptr("9"),
// GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
// "sample-plugin-id": &armdashboard.GrafanaPlugin{
// PluginID: to.Ptr("sample-plugin-id"),
// },
// },
// GrafanaVersion: to.Ptr("9.4.5"),
// OutboundIPs: []*string{
// to.Ptr("192.168.0.1"),
// to.Ptr("192.168.0.2"),
// },
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
// ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
// },
// SKU: &armdashboard.ResourceSKU{
// Name: to.Ptr("Standard"),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// },
// },
// }
}
}
Output:
func (*GrafanaClient) NewListPager ¶
func (client *GrafanaClient) NewListPager(options *GrafanaClientListOptions) *runtime.Pager[GrafanaClientListResponse]
NewListPager - List all resources of workspaces for Grafana under the specified subscription.
Generated from API version 2025-08-01
- options - GrafanaClientListOptions contains the optional parameters for the GrafanaClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/Grafana_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewGrafanaClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.GrafanaClientListResponse{
// ManagedGrafanaListResponse: armdashboard.ManagedGrafanaListResponse{
// Value: []*armdashboard.ManagedGrafana{
// {
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.Dashboard/grafana"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedGrafanaProperties{
// APIKey: to.Ptr(armdashboard.APIKeyEnabled),
// AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse),
// DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled),
// Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"),
// EnterpriseConfigurations: &armdashboard.EnterpriseConfigurations{
// MarketplaceAutoRenew: to.Ptr(armdashboard.MarketplaceAutoRenewEnabled),
// MarketplacePlanID: to.Ptr("myPlanId"),
// },
// GrafanaConfigurations: &armdashboard.GrafanaConfigurations{
// Security: &armdashboard.Security{
// CsrfAlwaysCheck: to.Ptr(false),
// },
// SMTP: &armdashboard.SMTP{
// Enabled: to.Ptr(true),
// FromAddress: to.Ptr("test@sendemail.com"),
// FromName: to.Ptr("emailsender"),
// Host: to.Ptr("smtp.sendemail.com:587"),
// SkipVerify: to.Ptr(true),
// StartTLSPolicy: to.Ptr(armdashboard.StartTLSPolicyOpportunisticStartTLS),
// User: to.Ptr("username"),
// },
// Snapshots: &armdashboard.Snapshots{
// ExternalEnabled: to.Ptr(true),
// },
// UnifiedAlertingScreenshots: &armdashboard.UnifiedAlertingScreenshots{
// CaptureEnabled: to.Ptr(false),
// },
// Users: &armdashboard.Users{
// EditorsCanAdmin: to.Ptr(true),
// ViewersCanEdit: to.Ptr(true),
// },
// },
// GrafanaIntegrations: &armdashboard.GrafanaIntegrations{
// AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{
// {
// AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"),
// },
// },
// },
// GrafanaMajorVersion: to.Ptr("9"),
// GrafanaPlugins: map[string]*armdashboard.GrafanaPlugin{
// "sample-plugin-id": &armdashboard.GrafanaPlugin{
// PluginID: to.Ptr("sample-plugin-id"),
// },
// },
// GrafanaVersion: to.Ptr("9.4.5"),
// OutboundIPs: []*string{
// to.Ptr("192.168.0.1"),
// to.Ptr("192.168.0.2"),
// },
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled),
// ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled),
// },
// SKU: &armdashboard.ResourceSKU{
// Name: to.Ptr("Standard"),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// },
// },
// }
}
}
Output:
type GrafanaClientBeginCreateOptions ¶
type GrafanaClientBeginCreateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
GrafanaClientBeginCreateOptions contains the optional parameters for the GrafanaClient.BeginCreate method.
type GrafanaClientBeginDeleteOptions ¶
type GrafanaClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
GrafanaClientBeginDeleteOptions contains the optional parameters for the GrafanaClient.BeginDelete method.
type GrafanaClientBeginUpdateOptions ¶
type GrafanaClientBeginUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
GrafanaClientBeginUpdateOptions contains the optional parameters for the GrafanaClient.BeginUpdate method.
type GrafanaClientCheckEnterpriseDetailsOptions ¶
type GrafanaClientCheckEnterpriseDetailsOptions struct {
}
GrafanaClientCheckEnterpriseDetailsOptions contains the optional parameters for the GrafanaClient.CheckEnterpriseDetails method.
type GrafanaClientCheckEnterpriseDetailsResponse ¶
type GrafanaClientCheckEnterpriseDetailsResponse struct {
// Enterprise details of a Grafana instance
EnterpriseDetails
}
GrafanaClientCheckEnterpriseDetailsResponse contains the response from method GrafanaClient.CheckEnterpriseDetails.
type GrafanaClientCreateResponse ¶
type GrafanaClientCreateResponse struct {
// The grafana resource type.
ManagedGrafana
}
GrafanaClientCreateResponse contains the response from method GrafanaClient.BeginCreate.
type GrafanaClientDeleteResponse ¶
type GrafanaClientDeleteResponse struct {
}
GrafanaClientDeleteResponse contains the response from method GrafanaClient.BeginDelete.
type GrafanaClientFetchAvailablePluginsOptions ¶
type GrafanaClientFetchAvailablePluginsOptions struct {
}
GrafanaClientFetchAvailablePluginsOptions contains the optional parameters for the GrafanaClient.FetchAvailablePlugins method.
type GrafanaClientFetchAvailablePluginsResponse ¶
type GrafanaClientFetchAvailablePluginsResponse struct {
GrafanaAvailablePluginListResponse
}
GrafanaClientFetchAvailablePluginsResponse contains the response from method GrafanaClient.FetchAvailablePlugins.
type GrafanaClientGetOptions ¶
type GrafanaClientGetOptions struct {
}
GrafanaClientGetOptions contains the optional parameters for the GrafanaClient.Get method.
type GrafanaClientGetResponse ¶
type GrafanaClientGetResponse struct {
// The grafana resource type.
ManagedGrafana
}
GrafanaClientGetResponse contains the response from method GrafanaClient.Get.
type GrafanaClientListByResourceGroupOptions ¶
type GrafanaClientListByResourceGroupOptions struct {
}
GrafanaClientListByResourceGroupOptions contains the optional parameters for the GrafanaClient.NewListByResourceGroupPager method.
type GrafanaClientListByResourceGroupResponse ¶
type GrafanaClientListByResourceGroupResponse struct {
// Paged collection of ManagedGrafana items
ManagedGrafanaListResponse
}
GrafanaClientListByResourceGroupResponse contains the response from method GrafanaClient.NewListByResourceGroupPager.
type GrafanaClientListOptions ¶
type GrafanaClientListOptions struct {
}
GrafanaClientListOptions contains the optional parameters for the GrafanaClient.NewListPager method.
type GrafanaClientListResponse ¶
type GrafanaClientListResponse struct {
// Paged collection of ManagedGrafana items
ManagedGrafanaListResponse
}
GrafanaClientListResponse contains the response from method GrafanaClient.NewListPager.
type GrafanaClientUpdateResponse ¶
type GrafanaClientUpdateResponse struct {
// The grafana resource type.
ManagedGrafana
}
GrafanaClientUpdateResponse contains the response from method GrafanaClient.BeginUpdate.
type GrafanaConfigurations ¶
type GrafanaConfigurations struct {
// Email server settings.
// https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
SMTP *SMTP
// Grafana security settings
Security *Security
// Grafana Snapshots settings
Snapshots *Snapshots
// Grafana Unified Alerting Screenshots settings
UnifiedAlertingScreenshots *UnifiedAlertingScreenshots
// Grafana users settings
Users *Users
}
GrafanaConfigurations - Server configurations of a Grafana instance
func (GrafanaConfigurations) MarshalJSON ¶
func (g GrafanaConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GrafanaConfigurations.
func (*GrafanaConfigurations) UnmarshalJSON ¶
func (g *GrafanaConfigurations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GrafanaConfigurations.
type GrafanaIntegrations ¶
type GrafanaIntegrations struct {
AzureMonitorWorkspaceIntegrations []*AzureMonitorWorkspaceIntegration
}
GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.
func (GrafanaIntegrations) MarshalJSON ¶
func (g GrafanaIntegrations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GrafanaIntegrations.
func (*GrafanaIntegrations) UnmarshalJSON ¶
func (g *GrafanaIntegrations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GrafanaIntegrations.
type GrafanaPlugin ¶
type GrafanaPlugin struct {
// READ-ONLY; Grafana plugin id
PluginID *string
}
GrafanaPlugin - Plugin of Grafana
func (GrafanaPlugin) MarshalJSON ¶
func (g GrafanaPlugin) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GrafanaPlugin.
func (*GrafanaPlugin) UnmarshalJSON ¶
func (g *GrafanaPlugin) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GrafanaPlugin.
type IntegrationFabric ¶
type IntegrationFabric struct {
// REQUIRED; The geo-location where the resource lives
Location *string
Properties *IntegrationFabricProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
IntegrationFabric - The integration fabric resource type.
func (IntegrationFabric) MarshalJSON ¶
func (i IntegrationFabric) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntegrationFabric.
func (*IntegrationFabric) UnmarshalJSON ¶
func (i *IntegrationFabric) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationFabric.
type IntegrationFabricListResponse ¶
type IntegrationFabricListResponse struct {
// REQUIRED; The IntegrationFabric items on this page
Value []*IntegrationFabric
// The link to the next page of items
NextLink *string
}
IntegrationFabricListResponse - Paged collection of IntegrationFabric items
func (IntegrationFabricListResponse) MarshalJSON ¶
func (i IntegrationFabricListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntegrationFabricListResponse.
func (*IntegrationFabricListResponse) UnmarshalJSON ¶
func (i *IntegrationFabricListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationFabricListResponse.
type IntegrationFabricProperties ¶
type IntegrationFabricProperties struct {
// The resource Id of the Azure resource which is used to configure Grafana data source. E.g., an Azure Monitor Workspace,
// an Azure Data Explorer cluster, etc.
DataSourceResourceID *string
// A list of integration scenarios covered by this integration fabric
Scenarios []*string
// The resource Id of the Azure resource being integrated with Azure Managed Grafana. E.g., an Azure Kubernetes Service cluster.
TargetResourceID *string
// READ-ONLY; Provisioning state of the resource.
ProvisioningState *ProvisioningState
}
func (IntegrationFabricProperties) MarshalJSON ¶
func (i IntegrationFabricProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntegrationFabricProperties.
func (*IntegrationFabricProperties) UnmarshalJSON ¶
func (i *IntegrationFabricProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationFabricProperties.
type IntegrationFabricPropertiesUpdateParameters ¶
type IntegrationFabricPropertiesUpdateParameters struct {
// The new integration scenarios covered by this integration fabric.
Scenarios []*string
}
func (IntegrationFabricPropertiesUpdateParameters) MarshalJSON ¶
func (i IntegrationFabricPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntegrationFabricPropertiesUpdateParameters.
func (*IntegrationFabricPropertiesUpdateParameters) UnmarshalJSON ¶
func (i *IntegrationFabricPropertiesUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationFabricPropertiesUpdateParameters.
type IntegrationFabricUpdateParameters ¶
type IntegrationFabricUpdateParameters struct {
// The new properties of this Integration Fabric resource
Properties *IntegrationFabricPropertiesUpdateParameters
// The new tags of the Integration Fabric resource.
Tags map[string]*string
}
IntegrationFabricUpdateParameters - The parameters for a PATCH request to a Integration Fabric resource.
func (IntegrationFabricUpdateParameters) MarshalJSON ¶
func (i IntegrationFabricUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntegrationFabricUpdateParameters.
func (*IntegrationFabricUpdateParameters) UnmarshalJSON ¶
func (i *IntegrationFabricUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationFabricUpdateParameters.
type IntegrationFabricsClient ¶
type IntegrationFabricsClient struct {
// contains filtered or unexported fields
}
IntegrationFabricsClient contains the methods for the IntegrationFabrics group. Don't use this type directly, use NewIntegrationFabricsClient() instead.
func NewIntegrationFabricsClient ¶
func NewIntegrationFabricsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationFabricsClient, error)
NewIntegrationFabricsClient creates a new instance of IntegrationFabricsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*IntegrationFabricsClient) BeginCreate ¶
func (client *IntegrationFabricsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, integrationFabricName string, requestBodyParameters IntegrationFabric, options *IntegrationFabricsClientBeginCreateOptions) (*runtime.Poller[IntegrationFabricsClientCreateResponse], error)
BeginCreate - Create a IntegrationFabric If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- integrationFabricName - The integration fabric name of Azure Managed Grafana.
- options - IntegrationFabricsClientBeginCreateOptions contains the optional parameters for the IntegrationFabricsClient.BeginCreate method.
Example ¶
Generated from example definition: 2025-08-01/IntegrationFabrics_Create.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIntegrationFabricsClient().BeginCreate(ctx, "myResourceGroup", "myWorkspace", "sampleIntegration", armdashboard.IntegrationFabric{
Location: to.Ptr("West US"),
Properties: &armdashboard.IntegrationFabricProperties{
DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw"),
Scenarios: []*string{
to.Ptr("scenario1"),
to.Ptr("scenario2"),
},
TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.IntegrationFabricsClientCreateResponse{
// IntegrationFabric: &armdashboard.IntegrationFabric{
// Name: to.Ptr("sampleIntegration"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/integrationFabrics"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace/integrationFabrics/myIntegrationFabricName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.IntegrationFabricProperties{
// DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// Scenarios: []*string{
// to.Ptr("scenario1"),
// to.Ptr("scenario2"),
// },
// TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks"),
// },
// },
// }
}
Output:
func (*IntegrationFabricsClient) BeginDelete ¶
func (client *IntegrationFabricsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, integrationFabricName string, options *IntegrationFabricsClientBeginDeleteOptions) (*runtime.Poller[IntegrationFabricsClientDeleteResponse], error)
BeginDelete - Delete a IntegrationFabric If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- integrationFabricName - The integration fabric name of Azure Managed Grafana.
- options - IntegrationFabricsClientBeginDeleteOptions contains the optional parameters for the IntegrationFabricsClient.BeginDelete method.
Example ¶
Generated from example definition: 2025-08-01/IntegrationFabrics_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIntegrationFabricsClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", "sampleIntegration", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*IntegrationFabricsClient) BeginUpdate ¶
func (client *IntegrationFabricsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, integrationFabricName string, requestBodyParameters IntegrationFabricUpdateParameters, options *IntegrationFabricsClientBeginUpdateOptions) (*runtime.Poller[IntegrationFabricsClientUpdateResponse], error)
BeginUpdate - Update a IntegrationFabric If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- integrationFabricName - The integration fabric name of Azure Managed Grafana.
- options - IntegrationFabricsClientBeginUpdateOptions contains the optional parameters for the IntegrationFabricsClient.BeginUpdate method.
Example ¶
Generated from example definition: 2025-08-01/IntegrationFabrics_Update.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIntegrationFabricsClient().BeginUpdate(ctx, "myResourceGroup", "myWorkspace", "sampleIntegration", armdashboard.IntegrationFabricUpdateParameters{
Properties: &armdashboard.IntegrationFabricPropertiesUpdateParameters{
Scenarios: []*string{
to.Ptr("scenario1"),
},
},
Tags: map[string]*string{
"Environment": to.Ptr("Dev 2"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.IntegrationFabricsClientUpdateResponse{
// IntegrationFabric: &armdashboard.IntegrationFabric{
// Name: to.Ptr("sampleIntegration"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/integrationFabrics"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace/integrationFabrics/myIntegrationFabricName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.IntegrationFabricProperties{
// DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// Scenarios: []*string{
// to.Ptr("scenario1"),
// },
// TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks"),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev 2"),
// },
// },
// }
}
Output:
func (*IntegrationFabricsClient) Get ¶
func (client *IntegrationFabricsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationFabricName string, options *IntegrationFabricsClientGetOptions) (IntegrationFabricsClientGetResponse, error)
Get - Get a IntegrationFabric If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- integrationFabricName - The integration fabric name of Azure Managed Grafana.
- options - IntegrationFabricsClientGetOptions contains the optional parameters for the IntegrationFabricsClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/IntegrationFabrics_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIntegrationFabricsClient().Get(ctx, "myResourceGroup", "myWorkspace", "sampleIntegration", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.IntegrationFabricsClientGetResponse{
// IntegrationFabric: &armdashboard.IntegrationFabric{
// Name: to.Ptr("sampleIntegration"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/integrationFabrics"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace/integrationFabrics/myIntegrationFabricName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.IntegrationFabricProperties{
// DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// Scenarios: []*string{
// to.Ptr("scenario1"),
// to.Ptr("scenario2"),
// },
// TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks"),
// },
// },
// }
}
Output:
func (*IntegrationFabricsClient) NewListPager ¶
func (client *IntegrationFabricsClient) NewListPager(resourceGroupName string, workspaceName string, options *IntegrationFabricsClientListOptions) *runtime.Pager[IntegrationFabricsClientListResponse]
NewListPager - List IntegrationFabric resources by ManagedGrafana
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - IntegrationFabricsClientListOptions contains the optional parameters for the IntegrationFabricsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/IntegrationFabrics_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewIntegrationFabricsClient().NewListPager("myResourceGroup", "myWorkspace", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.IntegrationFabricsClientListResponse{
// IntegrationFabricListResponse: armdashboard.IntegrationFabricListResponse{
// Value: []*armdashboard.IntegrationFabric{
// {
// Name: to.Ptr("sampleIntegration"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/integrationFabrics"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace/integrationFabrics/myIntegrationFabricName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.IntegrationFabricProperties{
// DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw1"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// Scenarios: []*string{
// to.Ptr("scenario1"),
// to.Ptr("scenario2"),
// },
// TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks1"),
// },
// },
// {
// Name: to.Ptr("sampleIntegration"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/integrationFabrics"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace/integrationFabrics/myIntegrationFabricName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.IntegrationFabricProperties{
// DataSourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw2"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// Scenarios: []*string{
// to.Ptr("scenario1"),
// to.Ptr("scenario2"),
// },
// TargetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks2"),
// },
// },
// },
// },
// }
}
}
Output:
type IntegrationFabricsClientBeginCreateOptions ¶
type IntegrationFabricsClientBeginCreateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IntegrationFabricsClientBeginCreateOptions contains the optional parameters for the IntegrationFabricsClient.BeginCreate method.
type IntegrationFabricsClientBeginDeleteOptions ¶
type IntegrationFabricsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IntegrationFabricsClientBeginDeleteOptions contains the optional parameters for the IntegrationFabricsClient.BeginDelete method.
type IntegrationFabricsClientBeginUpdateOptions ¶
type IntegrationFabricsClientBeginUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IntegrationFabricsClientBeginUpdateOptions contains the optional parameters for the IntegrationFabricsClient.BeginUpdate method.
type IntegrationFabricsClientCreateResponse ¶
type IntegrationFabricsClientCreateResponse struct {
// The integration fabric resource type.
IntegrationFabric
}
IntegrationFabricsClientCreateResponse contains the response from method IntegrationFabricsClient.BeginCreate.
type IntegrationFabricsClientDeleteResponse ¶
type IntegrationFabricsClientDeleteResponse struct {
}
IntegrationFabricsClientDeleteResponse contains the response from method IntegrationFabricsClient.BeginDelete.
type IntegrationFabricsClientGetOptions ¶
type IntegrationFabricsClientGetOptions struct {
}
IntegrationFabricsClientGetOptions contains the optional parameters for the IntegrationFabricsClient.Get method.
type IntegrationFabricsClientGetResponse ¶
type IntegrationFabricsClientGetResponse struct {
// The integration fabric resource type.
IntegrationFabric
}
IntegrationFabricsClientGetResponse contains the response from method IntegrationFabricsClient.Get.
type IntegrationFabricsClientListOptions ¶
type IntegrationFabricsClientListOptions struct {
}
IntegrationFabricsClientListOptions contains the optional parameters for the IntegrationFabricsClient.NewListPager method.
type IntegrationFabricsClientListResponse ¶
type IntegrationFabricsClientListResponse struct {
// Paged collection of IntegrationFabric items
IntegrationFabricListResponse
}
IntegrationFabricsClientListResponse contains the response from method IntegrationFabricsClient.NewListPager.
type IntegrationFabricsClientUpdateResponse ¶
type IntegrationFabricsClientUpdateResponse struct {
// The integration fabric resource type.
IntegrationFabric
}
IntegrationFabricsClientUpdateResponse contains the response from method IntegrationFabricsClient.BeginUpdate.
type ManagedDashboard ¶
type ManagedDashboard struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Properties specific to the managed dashboard resource.
Properties *ManagedDashboardProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
ManagedDashboard - The managed dashboard resource type.
func (ManagedDashboard) MarshalJSON ¶
func (m ManagedDashboard) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedDashboard.
func (*ManagedDashboard) UnmarshalJSON ¶
func (m *ManagedDashboard) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedDashboard.
type ManagedDashboardListResponse ¶
type ManagedDashboardListResponse struct {
// REQUIRED; The ManagedDashboard items on this page
Value []*ManagedDashboard
// The link to the next page of items
NextLink *string
}
ManagedDashboardListResponse - Paged collection of ManagedDashboard items
func (ManagedDashboardListResponse) MarshalJSON ¶
func (m ManagedDashboardListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedDashboardListResponse.
func (*ManagedDashboardListResponse) UnmarshalJSON ¶
func (m *ManagedDashboardListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedDashboardListResponse.
type ManagedDashboardProperties ¶
type ManagedDashboardProperties struct {
// READ-ONLY; Provisioning state of the resource.
ProvisioningState *ProvisioningState
}
ManagedDashboardProperties - Properties specific to the grafana resource.
func (ManagedDashboardProperties) MarshalJSON ¶
func (m ManagedDashboardProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedDashboardProperties.
func (*ManagedDashboardProperties) UnmarshalJSON ¶
func (m *ManagedDashboardProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedDashboardProperties.
type ManagedDashboardUpdateParameters ¶
type ManagedDashboardUpdateParameters struct {
// The new tags of the managed dashboard resource.
Tags map[string]*string
}
ManagedDashboardUpdateParameters - The parameters for a PATCH request to a managed dashboard resource.
func (ManagedDashboardUpdateParameters) MarshalJSON ¶
func (m ManagedDashboardUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedDashboardUpdateParameters.
func (*ManagedDashboardUpdateParameters) UnmarshalJSON ¶
func (m *ManagedDashboardUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedDashboardUpdateParameters.
type ManagedDashboardsClient ¶
type ManagedDashboardsClient struct {
// contains filtered or unexported fields
}
ManagedDashboardsClient contains the methods for the ManagedDashboards group. Don't use this type directly, use NewManagedDashboardsClient() instead.
func NewManagedDashboardsClient ¶
func NewManagedDashboardsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedDashboardsClient, error)
NewManagedDashboardsClient creates a new instance of ManagedDashboardsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ManagedDashboardsClient) BeginCreate ¶
func (client *ManagedDashboardsClient) BeginCreate(ctx context.Context, resourceGroupName string, dashboardName string, requestBodyParameters ManagedDashboard, options *ManagedDashboardsClientBeginCreateOptions) (*runtime.Poller[ManagedDashboardsClientCreateResponse], error)
BeginCreate - Create or update a dashboard for grafana resource. This API is idempotent, so user can either create a new dashboard or update an existing dashboard. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- dashboardName - The name of the Azure Managed Dashboard.
- options - ManagedDashboardsClientBeginCreateOptions contains the optional parameters for the ManagedDashboardsClient.BeginCreate method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_Create.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagedDashboardsClient().BeginCreate(ctx, "myResourceGroup", "myDashboard", armdashboard.ManagedDashboard{
Location: to.Ptr("West US"),
Tags: map[string]*string{
"Environment": to.Ptr("Dev"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedDashboardsClientCreateResponse{
// ManagedDashboard: &armdashboard.ManagedDashboard{
// Name: to.Ptr("myDashboard"),
// Type: to.Ptr("Microsoft.Dashboard/dashboards"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/dashboards/myDashboard"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedDashboardProperties{
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// }
}
Output:
func (*ManagedDashboardsClient) Delete ¶
func (client *ManagedDashboardsClient) Delete(ctx context.Context, resourceGroupName string, dashboardName string, options *ManagedDashboardsClientDeleteOptions) (ManagedDashboardsClientDeleteResponse, error)
Delete - Delete a dashboard for Grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- dashboardName - The name of the Azure Managed Dashboard.
- options - ManagedDashboardsClientDeleteOptions contains the optional parameters for the ManagedDashboardsClient.Delete method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewManagedDashboardsClient().Delete(ctx, "myResourceGroup", "myDashboard", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedDashboardsClientDeleteResponse{
// }
}
Output:
func (*ManagedDashboardsClient) Get ¶
func (client *ManagedDashboardsClient) Get(ctx context.Context, resourceGroupName string, dashboardName string, options *ManagedDashboardsClientGetOptions) (ManagedDashboardsClientGetResponse, error)
Get - Get the properties of a specific dashboard for grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- dashboardName - The name of the Azure Managed Dashboard.
- options - ManagedDashboardsClientGetOptions contains the optional parameters for the ManagedDashboardsClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewManagedDashboardsClient().Get(ctx, "myResourceGroup", "myDashboard", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedDashboardsClientGetResponse{
// ManagedDashboard: &armdashboard.ManagedDashboard{
// Name: to.Ptr("myDashboard"),
// Type: to.Ptr("Microsoft.Dashboard/dashboards"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/dashboards/myDashboard"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedDashboardProperties{
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// }
}
Output:
func (*ManagedDashboardsClient) NewListBySubscriptionPager ¶
func (client *ManagedDashboardsClient) NewListBySubscriptionPager(options *ManagedDashboardsClientListBySubscriptionOptions) *runtime.Pager[ManagedDashboardsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all resources of dashboards under the specified subscription.
Generated from API version 2025-08-01
- options - ManagedDashboardsClientListBySubscriptionOptions contains the optional parameters for the ManagedDashboardsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewManagedDashboardsClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.ManagedDashboardsClientListBySubscriptionResponse{
// ManagedDashboardListResponse: armdashboard.ManagedDashboardListResponse{
// Value: []*armdashboard.ManagedDashboard{
// {
// Name: to.Ptr("myDashboard"),
// Type: to.Ptr("Microsoft.Dashboard/dashboards"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/dashboards/myDashboard"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedDashboardProperties{
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// },
// },
// }
}
}
Output:
func (*ManagedDashboardsClient) NewListPager ¶
func (client *ManagedDashboardsClient) NewListPager(resourceGroupName string, options *ManagedDashboardsClientListOptions) *runtime.Pager[ManagedDashboardsClientListResponse]
NewListPager - List all resources of dashboards under the specified resource group.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ManagedDashboardsClientListOptions contains the optional parameters for the ManagedDashboardsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_ListByResourceGroup.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewManagedDashboardsClient().NewListPager("myResourceGroup", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.ManagedDashboardsClientListResponse{
// ManagedDashboardListResponse: armdashboard.ManagedDashboardListResponse{
// Value: []*armdashboard.ManagedDashboard{
// {
// Name: to.Ptr("myDashboard"),
// Type: to.Ptr("Microsoft.Dashboard/dashboards"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/dashboards/myDashboard"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedDashboardProperties{
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev"),
// },
// },
// },
// },
// }
}
}
Output:
func (*ManagedDashboardsClient) Update ¶
func (client *ManagedDashboardsClient) Update(ctx context.Context, resourceGroupName string, dashboardName string, requestBodyParameters ManagedDashboardUpdateParameters, options *ManagedDashboardsClientUpdateOptions) (ManagedDashboardsClientUpdateResponse, error)
Update - Update a dashboard for Grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- dashboardName - The name of the Azure Managed Dashboard.
- options - ManagedDashboardsClientUpdateOptions contains the optional parameters for the ManagedDashboardsClient.Update method.
Example ¶
Generated from example definition: 2025-08-01/Dashboard_Update.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewManagedDashboardsClient().Update(ctx, "myResourceGroup", "myDashboard", armdashboard.ManagedDashboardUpdateParameters{
Tags: map[string]*string{
"Environment": to.Ptr("Dev 2"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedDashboardsClientUpdateResponse{
// ManagedDashboard: &armdashboard.ManagedDashboard{
// Name: to.Ptr("myDashboard"),
// Type: to.Ptr("Microsoft.Dashboard/dashboards"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/dashboards/myDashboard"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedDashboardProperties{
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// },
// Tags: map[string]*string{
// "Environment": to.Ptr("Dev 2"),
// },
// },
// }
}
Output:
type ManagedDashboardsClientBeginCreateOptions ¶
type ManagedDashboardsClientBeginCreateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagedDashboardsClientBeginCreateOptions contains the optional parameters for the ManagedDashboardsClient.BeginCreate method.
type ManagedDashboardsClientCreateResponse ¶
type ManagedDashboardsClientCreateResponse struct {
// The managed dashboard resource type.
ManagedDashboard
}
ManagedDashboardsClientCreateResponse contains the response from method ManagedDashboardsClient.BeginCreate.
type ManagedDashboardsClientDeleteOptions ¶
type ManagedDashboardsClientDeleteOptions struct {
}
ManagedDashboardsClientDeleteOptions contains the optional parameters for the ManagedDashboardsClient.Delete method.
type ManagedDashboardsClientDeleteResponse ¶
type ManagedDashboardsClientDeleteResponse struct {
}
ManagedDashboardsClientDeleteResponse contains the response from method ManagedDashboardsClient.Delete.
type ManagedDashboardsClientGetOptions ¶
type ManagedDashboardsClientGetOptions struct {
}
ManagedDashboardsClientGetOptions contains the optional parameters for the ManagedDashboardsClient.Get method.
type ManagedDashboardsClientGetResponse ¶
type ManagedDashboardsClientGetResponse struct {
// The managed dashboard resource type.
ManagedDashboard
}
ManagedDashboardsClientGetResponse contains the response from method ManagedDashboardsClient.Get.
type ManagedDashboardsClientListBySubscriptionOptions ¶
type ManagedDashboardsClientListBySubscriptionOptions struct {
}
ManagedDashboardsClientListBySubscriptionOptions contains the optional parameters for the ManagedDashboardsClient.NewListBySubscriptionPager method.
type ManagedDashboardsClientListBySubscriptionResponse ¶
type ManagedDashboardsClientListBySubscriptionResponse struct {
// Paged collection of ManagedDashboard items
ManagedDashboardListResponse
}
ManagedDashboardsClientListBySubscriptionResponse contains the response from method ManagedDashboardsClient.NewListBySubscriptionPager.
type ManagedDashboardsClientListOptions ¶
type ManagedDashboardsClientListOptions struct {
}
ManagedDashboardsClientListOptions contains the optional parameters for the ManagedDashboardsClient.NewListPager method.
type ManagedDashboardsClientListResponse ¶
type ManagedDashboardsClientListResponse struct {
// Paged collection of ManagedDashboard items
ManagedDashboardListResponse
}
ManagedDashboardsClientListResponse contains the response from method ManagedDashboardsClient.NewListPager.
type ManagedDashboardsClientUpdateOptions ¶
type ManagedDashboardsClientUpdateOptions struct {
}
ManagedDashboardsClientUpdateOptions contains the optional parameters for the ManagedDashboardsClient.Update method.
type ManagedDashboardsClientUpdateResponse ¶
type ManagedDashboardsClientUpdateResponse struct {
// The managed dashboard resource type.
ManagedDashboard
}
ManagedDashboardsClientUpdateResponse contains the response from method ManagedDashboardsClient.Update.
type ManagedGrafana ¶
type ManagedGrafana struct {
// The managed service identities assigned to this resource.
Identity *ManagedServiceIdentity
// The geo-location where the resource lives
Location *string
// Properties specific to the grafana resource.
Properties *ManagedGrafanaProperties
// The Sku of the grafana resource.
SKU *ResourceSKU
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
ManagedGrafana - The grafana resource type.
func (ManagedGrafana) MarshalJSON ¶
func (m ManagedGrafana) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedGrafana.
func (*ManagedGrafana) UnmarshalJSON ¶
func (m *ManagedGrafana) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedGrafana.
type ManagedGrafanaListResponse ¶
type ManagedGrafanaListResponse struct {
// REQUIRED; The ManagedGrafana items on this page
Value []*ManagedGrafana
// The link to the next page of items
NextLink *string
}
ManagedGrafanaListResponse - Paged collection of ManagedGrafana items
func (ManagedGrafanaListResponse) MarshalJSON ¶
func (m ManagedGrafanaListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedGrafanaListResponse.
func (*ManagedGrafanaListResponse) UnmarshalJSON ¶
func (m *ManagedGrafanaListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedGrafanaListResponse.
type ManagedGrafanaProperties ¶
type ManagedGrafanaProperties struct {
// The api key setting of the Grafana instance.
APIKey *APIKey
// Scope for dns deterministic name hash calculation.
AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope
// The creator will have admin access for the Grafana instance.
CreatorCanAdmin *CreatorCanAdmin
// Whether a Grafana instance uses deterministic outbound IPs.
DeterministicOutboundIP *DeterministicOutboundIP
// Enterprise settings of a Grafana instance
EnterpriseConfigurations *EnterpriseConfigurations
// Server configurations of a Grafana instance
GrafanaConfigurations *GrafanaConfigurations
// GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards,
// alerting defaults) for common monitoring scenarios.
GrafanaIntegrations *GrafanaIntegrations
// The major Grafana software version to target.
GrafanaMajorVersion *string
// Installed plugin list of the Grafana instance. Key is plugin id, value is plugin definition.
GrafanaPlugins map[string]*GrafanaPlugin
// Indicate the state for enable or disable traffic over the public interface.
PublicNetworkAccess *PublicNetworkAccess
// The zone redundancy setting of the Grafana instance.
ZoneRedundancy *ZoneRedundancy
// READ-ONLY; The endpoint of the Grafana instance.
Endpoint *string
// READ-ONLY; The Grafana software version.
GrafanaVersion *string
// READ-ONLY; List of outbound IPs if deterministicOutboundIP is enabled.
OutboundIPs []*string
// READ-ONLY; The private endpoint connections of the Grafana instance.
PrivateEndpointConnections []*PrivateEndpointConnection
// READ-ONLY; Provisioning state of the resource.
ProvisioningState *ProvisioningState
}
ManagedGrafanaProperties - Properties specific to the grafana resource.
func (ManagedGrafanaProperties) MarshalJSON ¶
func (m ManagedGrafanaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedGrafanaProperties.
func (*ManagedGrafanaProperties) UnmarshalJSON ¶
func (m *ManagedGrafanaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedGrafanaProperties.
type ManagedGrafanaPropertiesUpdateParameters ¶
type ManagedGrafanaPropertiesUpdateParameters struct {
// The api key setting of the Grafana instance.
APIKey *APIKey
// The creator will have admin access for the Grafana instance.
CreatorCanAdmin *CreatorCanAdmin
// Whether a Grafana instance uses deterministic outbound IPs.
DeterministicOutboundIP *DeterministicOutboundIP
// Enterprise settings of a Grafana instance
EnterpriseConfigurations *EnterpriseConfigurations
// Server configurations of a Grafana instance
GrafanaConfigurations *GrafanaConfigurations
// GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards,
// alerting defaults) for common monitoring scenarios.
GrafanaIntegrations *GrafanaIntegrations
// The major Grafana software version to target.
GrafanaMajorVersion *string
// Update of Grafana plugin. Key is plugin id, value is plugin definition. If plugin definition is null, plugin with given
// plugin id will be removed. Otherwise, given plugin will be installed.
GrafanaPlugins map[string]*GrafanaPlugin
// Indicate the state for enable or disable traffic over the public interface.
PublicNetworkAccess *PublicNetworkAccess
// The zone redundancy setting of the Grafana instance.
ZoneRedundancy *ZoneRedundancy
}
ManagedGrafanaPropertiesUpdateParameters - The properties parameters for a PATCH request to a grafana resource.
func (ManagedGrafanaPropertiesUpdateParameters) MarshalJSON ¶
func (m ManagedGrafanaPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedGrafanaPropertiesUpdateParameters.
func (*ManagedGrafanaPropertiesUpdateParameters) UnmarshalJSON ¶
func (m *ManagedGrafanaPropertiesUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedGrafanaPropertiesUpdateParameters.
type ManagedGrafanaUpdateParameters ¶
type ManagedGrafanaUpdateParameters struct {
// The managed identity of the grafana resource.
Identity *ManagedServiceIdentity
// Properties specific to the managed grafana resource.
Properties *ManagedGrafanaPropertiesUpdateParameters
SKU *ResourceSKU
// The new tags of the grafana resource.
Tags map[string]*string
}
ManagedGrafanaUpdateParameters - The parameters for a PATCH request to a grafana resource.
func (ManagedGrafanaUpdateParameters) MarshalJSON ¶
func (m ManagedGrafanaUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedGrafanaUpdateParameters.
func (*ManagedGrafanaUpdateParameters) UnmarshalJSON ¶
func (m *ManagedGrafanaUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedGrafanaUpdateParameters.
type ManagedPrivateEndpointConnectionState ¶
type ManagedPrivateEndpointConnectionState struct {
// READ-ONLY; Gets or sets the reason for approval/rejection of the connection.
Description *string
// READ-ONLY; The approval/rejection status of managed private endpoint connection.
Status *ManagedPrivateEndpointConnectionStatus
}
ManagedPrivateEndpointConnectionState - The state of managed private endpoint connection.
func (ManagedPrivateEndpointConnectionState) MarshalJSON ¶
func (m ManagedPrivateEndpointConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointConnectionState.
func (*ManagedPrivateEndpointConnectionState) UnmarshalJSON ¶
func (m *ManagedPrivateEndpointConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointConnectionState.
type ManagedPrivateEndpointConnectionStatus ¶
type ManagedPrivateEndpointConnectionStatus string
ManagedPrivateEndpointConnectionStatus - The approval/rejection status of managed private endpoint connection.
const ( ManagedPrivateEndpointConnectionStatusApproved ManagedPrivateEndpointConnectionStatus = "Approved" ManagedPrivateEndpointConnectionStatusDisconnected ManagedPrivateEndpointConnectionStatus = "Disconnected" ManagedPrivateEndpointConnectionStatusPending ManagedPrivateEndpointConnectionStatus = "Pending" ManagedPrivateEndpointConnectionStatusRejected ManagedPrivateEndpointConnectionStatus = "Rejected" )
func PossibleManagedPrivateEndpointConnectionStatusValues ¶
func PossibleManagedPrivateEndpointConnectionStatusValues() []ManagedPrivateEndpointConnectionStatus
PossibleManagedPrivateEndpointConnectionStatusValues returns the possible values for the ManagedPrivateEndpointConnectionStatus const type.
type ManagedPrivateEndpointModel ¶
type ManagedPrivateEndpointModel struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Resource properties.
Properties *ManagedPrivateEndpointModelProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
ManagedPrivateEndpointModel - The managed private endpoint resource type.
func (ManagedPrivateEndpointModel) MarshalJSON ¶
func (m ManagedPrivateEndpointModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointModel.
func (*ManagedPrivateEndpointModel) UnmarshalJSON ¶
func (m *ManagedPrivateEndpointModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointModel.
type ManagedPrivateEndpointModelListResponse ¶
type ManagedPrivateEndpointModelListResponse struct {
// REQUIRED; The ManagedPrivateEndpointModel items on this page
Value []*ManagedPrivateEndpointModel
// The link to the next page of items
NextLink *string
}
ManagedPrivateEndpointModelListResponse - The list of managed private endpoints of a grafana resource
func (ManagedPrivateEndpointModelListResponse) MarshalJSON ¶
func (m ManagedPrivateEndpointModelListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointModelListResponse.
func (*ManagedPrivateEndpointModelListResponse) UnmarshalJSON ¶
func (m *ManagedPrivateEndpointModelListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointModelListResponse.
type ManagedPrivateEndpointModelProperties ¶
type ManagedPrivateEndpointModelProperties struct {
// The group Ids of the managed private endpoint.
GroupIDs []*string
// The ARM resource ID of the resource for which the managed private endpoint is pointing to.
PrivateLinkResourceID *string
// The region of the resource to which the managed private endpoint is pointing to.
PrivateLinkResourceRegion *string
// The URL of the data store behind the private link service. It would be the URL in the Grafana data source configuration
// page without the protocol and port.
PrivateLinkServiceURL *string
// User input request message of the managed private endpoint.
RequestMessage *string
// READ-ONLY; The state of managed private endpoint connection.
ConnectionState *ManagedPrivateEndpointConnectionState
// READ-ONLY; The private IP of private endpoint after approval. This property is empty before connection is approved.
PrivateLinkServicePrivateIP *string
// READ-ONLY; Provisioning state of the resource.
ProvisioningState *ProvisioningState
}
ManagedPrivateEndpointModelProperties - Properties specific to the managed private endpoint.
func (ManagedPrivateEndpointModelProperties) MarshalJSON ¶
func (m ManagedPrivateEndpointModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointModelProperties.
func (*ManagedPrivateEndpointModelProperties) UnmarshalJSON ¶
func (m *ManagedPrivateEndpointModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointModelProperties.
type ManagedPrivateEndpointUpdateParameters ¶
type ManagedPrivateEndpointUpdateParameters struct {
// The new tags of the managed private endpoint.
Tags map[string]*string
}
ManagedPrivateEndpointUpdateParameters - The parameters for a PATCH request to a managed private endpoint.
func (ManagedPrivateEndpointUpdateParameters) MarshalJSON ¶
func (m ManagedPrivateEndpointUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointUpdateParameters.
func (*ManagedPrivateEndpointUpdateParameters) UnmarshalJSON ¶
func (m *ManagedPrivateEndpointUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointUpdateParameters.
type ManagedPrivateEndpointsClient ¶
type ManagedPrivateEndpointsClient struct {
// contains filtered or unexported fields
}
ManagedPrivateEndpointsClient contains the methods for the ManagedPrivateEndpoints group. Don't use this type directly, use NewManagedPrivateEndpointsClient() instead.
func NewManagedPrivateEndpointsClient ¶
func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedPrivateEndpointsClient, error)
NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ManagedPrivateEndpointsClient) BeginCreate ¶
func (client *ManagedPrivateEndpointsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, requestBodyParameters ManagedPrivateEndpointModel, options *ManagedPrivateEndpointsClientBeginCreateOptions) (*runtime.Poller[ManagedPrivateEndpointsClientCreateResponse], error)
BeginCreate - Create or update a managed private endpoint for a grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- managedPrivateEndpointName - The managed private endpoint name of Azure Managed Grafana.
- requestBodyParameters - The managed private endpoint to be created or updated.
- options - ManagedPrivateEndpointsClientBeginCreateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginCreate method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_Create.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagedPrivateEndpointsClient().BeginCreate(ctx, "myResourceGroup", "myWorkspace", "myMPEName", armdashboard.ManagedPrivateEndpointModel{
Location: to.Ptr("West US"),
Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
GroupIDs: []*string{
to.Ptr("grafana"),
},
PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource"),
PrivateLinkResourceRegion: to.Ptr("West US"),
PrivateLinkServiceURL: to.Ptr("my-self-hosted-influxdb.westus.mydomain.com"),
RequestMessage: to.Ptr("Example Request Message"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedPrivateEndpointsClientCreateResponse{
// ManagedPrivateEndpointModel: &armdashboard.ManagedPrivateEndpointModel{
// Name: to.Ptr("myMPEName"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/managedPrivateEndpoint"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/managedPrivateEndpoints/myPrivateEndpointName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource"),
// PrivateLinkResourceRegion: to.Ptr("West US"),
// PrivateLinkServiceURL: to.Ptr("my-self-hosted-influxdb.westus.mydomain.com"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// RequestMessage: to.Ptr("Example Request Message"),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// },
// }
}
Output:
func (*ManagedPrivateEndpointsClient) BeginDelete ¶
func (client *ManagedPrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientBeginDeleteOptions) (*runtime.Poller[ManagedPrivateEndpointsClientDeleteResponse], error)
BeginDelete - Delete a managed private endpoint for a grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- managedPrivateEndpointName - The managed private endpoint name of Azure Managed Grafana.
- options - ManagedPrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginDelete method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagedPrivateEndpointsClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", "myMPEName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedPrivateEndpointsClientDeleteResponse{
// }
}
Output:
func (*ManagedPrivateEndpointsClient) BeginRefresh ¶
func (client *ManagedPrivateEndpointsClient) BeginRefresh(ctx context.Context, resourceGroupName string, workspaceName string, options *ManagedPrivateEndpointsClientBeginRefreshOptions) (*runtime.Poller[ManagedPrivateEndpointsClientRefreshResponse], error)
BeginRefresh - Refresh and sync managed private endpoints of a grafana resource to latest state. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - ManagedPrivateEndpointsClientBeginRefreshOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginRefresh method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_Refresh.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagedPrivateEndpointsClient().BeginRefresh(ctx, "myResourceGroup", "myWorkspace", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedPrivateEndpointsClientRefreshResponse{
// }
}
Output:
func (*ManagedPrivateEndpointsClient) BeginUpdate ¶
func (client *ManagedPrivateEndpointsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, requestBodyParameters ManagedPrivateEndpointUpdateParameters, options *ManagedPrivateEndpointsClientBeginUpdateOptions) (*runtime.Poller[ManagedPrivateEndpointsClientUpdateResponse], error)
BeginUpdate - Update a managed private endpoint for an existing grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- managedPrivateEndpointName - The managed private endpoint name of Azure Managed Grafana.
- requestBodyParameters - Properties that can be updated to an existing managed private endpoint.
- options - ManagedPrivateEndpointsClientBeginUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginUpdate method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_Patch.json
package main
import (
"context"
"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/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagedPrivateEndpointsClient().BeginUpdate(ctx, "myResourceGroup", "myWorkspace", "myMPEName", armdashboard.ManagedPrivateEndpointUpdateParameters{
Tags: map[string]*string{
"Environment": to.Ptr("Dev 2"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedPrivateEndpointsClientUpdateResponse{
// ManagedPrivateEndpointModel: &armdashboard.ManagedPrivateEndpointModel{
// Name: to.Ptr("myMPEName"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/managedPrivateEndpoint"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/managedPrivateEndpoints/myPrivateEndpointName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource"),
// PrivateLinkResourceRegion: to.Ptr("West US"),
// PrivateLinkServicePrivateIP: to.Ptr("10.0.0.5"),
// PrivateLinkServiceURL: to.Ptr("my-self-hosted-influxdb.westus.mydomain.com"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// RequestMessage: to.Ptr("Example Request Message"),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// },
// }
}
Output:
func (*ManagedPrivateEndpointsClient) Get ¶
func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientGetOptions) (ManagedPrivateEndpointsClientGetResponse, error)
Get - Get a specific managed private endpoint of a grafana resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- managedPrivateEndpointName - The managed private endpoint name of Azure Managed Grafana.
- options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewManagedPrivateEndpointsClient().Get(ctx, "myResourceGroup", "myWorkspace", "myMPEName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.ManagedPrivateEndpointsClientGetResponse{
// ManagedPrivateEndpointModel: &armdashboard.ManagedPrivateEndpointModel{
// Name: to.Ptr("myMPEName"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/managedPrivateEndpoint"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/managedPrivateEndpoints/myPrivateEndpointName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
// ConnectionState: &armdashboard.ManagedPrivateEndpointConnectionState{
// Description: to.Ptr("Auto-Approved"),
// Status: to.Ptr(armdashboard.ManagedPrivateEndpointConnectionStatusApproved),
// },
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource"),
// PrivateLinkResourceRegion: to.Ptr("West US"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// RequestMessage: to.Ptr("Example Request Message"),
// },
// SystemData: &armdashboard.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()),
// CreatedBy: to.Ptr("string"),
// CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()),
// LastModifiedBy: to.Ptr("string"),
// LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser),
// },
// },
// }
}
Output:
func (*ManagedPrivateEndpointsClient) NewListPager ¶
func (client *ManagedPrivateEndpointsClient) NewListPager(resourceGroupName string, workspaceName string, options *ManagedPrivateEndpointsClientListOptions) *runtime.Pager[ManagedPrivateEndpointsClientListResponse]
NewListPager - List all managed private endpoints of a grafana resource.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/ManagedPrivateEndpoints_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewManagedPrivateEndpointsClient().NewListPager("myResourceGroup", "myWorkspace", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.ManagedPrivateEndpointsClientListResponse{
// ManagedPrivateEndpointModelListResponse: armdashboard.ManagedPrivateEndpointModelListResponse{
// Value: []*armdashboard.ManagedPrivateEndpointModel{
// {
// Name: to.Ptr("myMPEName"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/managedPrivateEndpoint"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/managedPrivateEndpoints/myPrivateEndpointName"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
// ConnectionState: &armdashboard.ManagedPrivateEndpointConnectionState{
// Description: to.Ptr("Auto-Approved"),
// Status: to.Ptr(armdashboard.ManagedPrivateEndpointConnectionStatusApproved),
// },
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource1"),
// PrivateLinkResourceRegion: to.Ptr("West US"),
// PrivateLinkServicePrivateIP: to.Ptr("10.0.0.5"),
// PrivateLinkServiceURL: to.Ptr("my-self-hosted-influxdb.westus.mydomain.com"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// RequestMessage: to.Ptr("Example Request Message"),
// },
// },
// {
// Name: to.Ptr("myMPEName2"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/managedPrivateEndpoint"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/managedPrivateEndpoints/myPrivateEndpointName2"),
// Location: to.Ptr("West US"),
// Properties: &armdashboard.ManagedPrivateEndpointModelProperties{
// ConnectionState: &armdashboard.ManagedPrivateEndpointConnectionState{
// Description: to.Ptr("Example Reject Reason"),
// Status: to.Ptr(armdashboard.ManagedPrivateEndpointConnectionStatusRejected),
// },
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateLinkResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource2"),
// PrivateLinkResourceRegion: to.Ptr("West US"),
// ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded),
// RequestMessage: to.Ptr("Example Request Message 2"),
// },
// },
// },
// },
// }
}
}
Output:
type ManagedPrivateEndpointsClientBeginCreateOptions ¶
type ManagedPrivateEndpointsClientBeginCreateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagedPrivateEndpointsClientBeginCreateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginCreate method.
type ManagedPrivateEndpointsClientBeginDeleteOptions ¶
type ManagedPrivateEndpointsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagedPrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginDelete method.
type ManagedPrivateEndpointsClientBeginRefreshOptions ¶
type ManagedPrivateEndpointsClientBeginRefreshOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagedPrivateEndpointsClientBeginRefreshOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginRefresh method.
type ManagedPrivateEndpointsClientBeginUpdateOptions ¶
type ManagedPrivateEndpointsClientBeginUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagedPrivateEndpointsClientBeginUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginUpdate method.
type ManagedPrivateEndpointsClientCreateResponse ¶
type ManagedPrivateEndpointsClientCreateResponse struct {
// The managed private endpoint resource type.
ManagedPrivateEndpointModel
}
ManagedPrivateEndpointsClientCreateResponse contains the response from method ManagedPrivateEndpointsClient.BeginCreate.
type ManagedPrivateEndpointsClientDeleteResponse ¶
type ManagedPrivateEndpointsClientDeleteResponse struct {
}
ManagedPrivateEndpointsClientDeleteResponse contains the response from method ManagedPrivateEndpointsClient.BeginDelete.
type ManagedPrivateEndpointsClientGetOptions ¶
type ManagedPrivateEndpointsClientGetOptions struct {
}
ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method.
type ManagedPrivateEndpointsClientGetResponse ¶
type ManagedPrivateEndpointsClientGetResponse struct {
// The managed private endpoint resource type.
ManagedPrivateEndpointModel
}
ManagedPrivateEndpointsClientGetResponse contains the response from method ManagedPrivateEndpointsClient.Get.
type ManagedPrivateEndpointsClientListOptions ¶
type ManagedPrivateEndpointsClientListOptions struct {
}
ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListPager method.
type ManagedPrivateEndpointsClientListResponse ¶
type ManagedPrivateEndpointsClientListResponse struct {
// The list of managed private endpoints of a grafana resource
ManagedPrivateEndpointModelListResponse
}
ManagedPrivateEndpointsClientListResponse contains the response from method ManagedPrivateEndpointsClient.NewListPager.
type ManagedPrivateEndpointsClientRefreshResponse ¶
type ManagedPrivateEndpointsClientRefreshResponse struct {
}
ManagedPrivateEndpointsClientRefreshResponse contains the response from method ManagedPrivateEndpointsClient.BeginRefresh.
type ManagedPrivateEndpointsClientUpdateResponse ¶
type ManagedPrivateEndpointsClientUpdateResponse struct {
// The managed private endpoint resource type.
ManagedPrivateEndpointModel
}
ManagedPrivateEndpointsClientUpdateResponse contains the response from method ManagedPrivateEndpointsClient.BeginUpdate.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct {
// REQUIRED; The type of managed identity assigned to this resource.
Type *ManagedServiceIdentityType
// The identities assigned to this resource by the user.
UserAssignedIdentities map[string]*UserAssignedIdentity
// READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned
// identity.
PrincipalID *string
// READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantID *string
}
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
func (*ManagedServiceIdentity) UnmarshalJSON ¶
func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeSystemAssignedUserAssigned - System and user assigned managed identity. ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type MarketplaceAutoRenew ¶
type MarketplaceAutoRenew string
MarketplaceAutoRenew - The AutoRenew setting of the Enterprise subscription
const ( MarketplaceAutoRenewDisabled MarketplaceAutoRenew = "Disabled" MarketplaceAutoRenewEnabled MarketplaceAutoRenew = "Enabled" )
func PossibleMarketplaceAutoRenewValues ¶
func PossibleMarketplaceAutoRenewValues() []MarketplaceAutoRenew
PossibleMarketplaceAutoRenewValues returns the possible values for the MarketplaceAutoRenew const type.
type MarketplaceTrialQuota ¶
type MarketplaceTrialQuota struct {
// Available enterprise promotion for the subscription
AvailablePromotion *AvailablePromotion
// Resource Id of the Grafana resource which is doing the trial.
GrafanaResourceID *string
// The date and time in UTC of when the trial ends.
TrialEndAt *time.Time
// The date and time in UTC of when the trial starts.
TrialStartAt *time.Time
}
MarketplaceTrialQuota - The allocation details of the per subscription free trial slot of the subscription.
func (MarketplaceTrialQuota) MarshalJSON ¶
func (m MarketplaceTrialQuota) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MarketplaceTrialQuota.
func (*MarketplaceTrialQuota) UnmarshalJSON ¶
func (m *MarketplaceTrialQuota) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceTrialQuota.
type Operation ¶
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay
// READ-ONLY; Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
ActionType *ActionType
// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
// Resource Manager/control-plane operations.
IsDataAction *bool
// 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
// 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
}
Operation - REST API Operation
Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string
// 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
// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
// Compute".
Provider *string
// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
// Schedule Collections".
Resource *string
}
OperationDisplay - Localized display information for and operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// REQUIRED; The Operation items on this page
Value []*Operation
// The link to the next page of items
NextLink *string
}
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 ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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, error)
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) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2025-08-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/Operations_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.OperationsClientListResponse{
// OperationListResult: armdashboard.OperationListResult{
// Value: []*armdashboard.Operation{
// {
// Name: to.Ptr("Microsoft.Dashboard/grafana/write"),
// ActionType: to.Ptr(armdashboard.ActionTypeInternal),
// Display: &armdashboard.OperationDisplay{
// Description: to.Ptr("Write grafana workspace resource"),
// Operation: to.Ptr("write"),
// Provider: to.Ptr("Microsoft.Dashboard"),
// Resource: to.Ptr("grafana"),
// },
// Origin: to.Ptr(armdashboard.OriginUser),
// },
// },
// },
// }
}
}
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
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"
const ( // OriginSystem - Indicates the operation is initiated by a system. OriginSystem Origin = "system" // OriginUser - Indicates the operation is initiated by a user. OriginUser Origin = "user" // OriginUserSystem - Indicates the operation is initiated by a user or system. OriginUserSystem Origin = "user,system" )
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type PrivateEndpoint ¶
type PrivateEndpoint struct {
// READ-ONLY; The resource identifier of the private endpoint
ID *string
}
PrivateEndpoint - The private endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (p PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
func (*PrivateEndpoint) UnmarshalJSON ¶
func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct {
// Resource properties.
Properties *PrivateEndpointConnectionProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
PrivateEndpointConnection - The Private Endpoint Connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct {
// REQUIRED; The PrivateEndpointConnection items on this page
Value []*PrivateEndpointConnection
// The link to the next page of items
NextLink *string
}
PrivateEndpointConnectionListResult - The response of a PrivateEndpointConnection list operation.
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
func (*PrivateEndpointConnectionListResult) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct {
// REQUIRED; A collection of information about the state of the connection between service consumer and provider.
PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState
// The private endpoint connection group ids.
GroupIDs []*string
// The resource of private end point.
PrivateEndpoint *PrivateEndpoint
// READ-ONLY; The provisioning state of the private endpoint connection resource.
ProvisioningState *PrivateEndpointConnectionProvisioningState
}
PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
func (PrivateEndpointConnectionProperties) MarshalJSON ¶
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
func (*PrivateEndpointConnectionProperties) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState - The current provisioning state.
const ( // PrivateEndpointConnectionProvisioningStateCreating - Connection is being created PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" // PrivateEndpointConnectionProvisioningStateDeleting - Connection is being deleted PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" // PrivateEndpointConnectionProvisioningStateFailed - Connection provisioning has failed PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" // PrivateEndpointConnectionProvisioningStateSucceeded - Connection has been provisioned PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) BeginApprove ¶
func (client *PrivateEndpointConnectionsClient) BeginApprove(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, body PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginApproveOptions) (*runtime.Poller[PrivateEndpointConnectionsClientApproveResponse], error)
BeginApprove - Manual approve private endpoint connection If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- privateEndpointConnectionName - The private endpoint connection name of Azure Managed Grafana.
- options - PrivateEndpointConnectionsClientBeginApproveOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginApprove method.
Example ¶
Generated from example definition: 2025-08-01/PrivateEndpointConnections_Approve.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginApprove(ctx, "myResourceGroup", "myWorkspace", "myConnection", armdashboard.PrivateEndpointConnection{}, &armdashboard.PrivateEndpointConnectionsClientBeginApproveOptions{})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*PrivateEndpointConnectionsClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Delete private endpoint connection If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- privateEndpointConnectionName - The private endpoint connection name of Azure Managed Grafana.
- options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: 2025-08-01/PrivateEndpointConnections_Delete.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", "myConnection", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Get private endpoint connections. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- privateEndpointConnectionName - The private endpoint connection name of Azure Managed Grafana.
- options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/PrivateEndpointConnections_Get.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "myResourceGroup", "myWorkspace", "myConnection", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.PrivateEndpointConnectionsClientGetResponse{
// PrivateEndpointConnection: &armdashboard.PrivateEndpointConnection{
// Name: to.Ptr("myConnection"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/privateEndpointConnections"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection"),
// Properties: &armdashboard.PrivateEndpointConnectionProperties{
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateEndpoint: &armdashboard.PrivateEndpoint{
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"),
// },
// PrivateLinkServiceConnectionState: &armdashboard.PrivateLinkServiceConnectionState{
// Description: to.Ptr("string"),
// ActionsRequired: to.Ptr("None"),
// Status: to.Ptr(armdashboard.PrivateEndpointServiceConnectionStatusPending),
// },
// ProvisioningState: to.Ptr(armdashboard.PrivateEndpointConnectionProvisioningState("Accepted")),
// },
// },
// }
}
Output:
func (*PrivateEndpointConnectionsClient) NewListPager ¶
func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, workspaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]
NewListPager - Get private endpoint connection
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/PrivateEndpointConnections_List.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListPager("myResourceGroup", "myWorkspace", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.PrivateEndpointConnectionsClientListResponse{
// PrivateEndpointConnectionListResult: armdashboard.PrivateEndpointConnectionListResult{
// Value: []*armdashboard.PrivateEndpointConnection{
// {
// Name: to.Ptr("myConnection"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/privateEndpointConnections"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection"),
// Properties: &armdashboard.PrivateEndpointConnectionProperties{
// GroupIDs: []*string{
// to.Ptr("grafana"),
// },
// PrivateEndpoint: &armdashboard.PrivateEndpoint{
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"),
// },
// PrivateLinkServiceConnectionState: &armdashboard.PrivateLinkServiceConnectionState{
// Description: to.Ptr("string"),
// ActionsRequired: to.Ptr("None"),
// Status: to.Ptr(armdashboard.PrivateEndpointServiceConnectionStatusPending),
// },
// ProvisioningState: to.Ptr(armdashboard.PrivateEndpointConnectionProvisioningState("Accepted")),
// },
// },
// },
// },
// }
}
}
Output:
type PrivateEndpointConnectionsClientApproveResponse ¶
type PrivateEndpointConnectionsClientApproveResponse struct {
// The Private Endpoint Connection resource.
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientApproveResponse contains the response from method PrivateEndpointConnectionsClient.BeginApprove.
type PrivateEndpointConnectionsClientBeginApproveOptions ¶
type PrivateEndpointConnectionsClientBeginApproveOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
PrivateEndpointConnectionsClientBeginApproveOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginApprove method.
type PrivateEndpointConnectionsClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
type PrivateEndpointConnectionsClientDeleteResponse ¶
type PrivateEndpointConnectionsClientDeleteResponse struct {
}
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete.
type PrivateEndpointConnectionsClientGetOptions ¶
type PrivateEndpointConnectionsClientGetOptions struct {
}
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶
type PrivateEndpointConnectionsClientGetResponse struct {
// The Private Endpoint Connection resource.
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListOptions ¶
type PrivateEndpointConnectionsClientListOptions struct {
}
PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager method.
type PrivateEndpointConnectionsClientListResponse ¶
type PrivateEndpointConnectionsClientListResponse struct {
// The response of a PrivateEndpointConnection list operation.
PrivateEndpointConnectionListResult
}
PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
const ( // PrivateEndpointServiceConnectionStatusApproved - Connection approved PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" // PrivateEndpointServiceConnectionStatusPending - Connection waiting for approval or rejection PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" // PrivateEndpointServiceConnectionStatusRejected - Connection Rejected PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct {
// Resource properties.
Properties *PrivateLinkResourceProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
PrivateLinkResource - A private link resource
func (PrivateLinkResource) MarshalJSON ¶
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct {
// REQUIRED; The PrivateLinkResource items on this page
Value []*PrivateLinkResource
// The link to the next page of items
NextLink *string
}
PrivateLinkResourceListResult - The response of a PrivateLinkResource list operation.
func (PrivateLinkResourceListResult) MarshalJSON ¶
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
func (*PrivateLinkResourceListResult) UnmarshalJSON ¶
func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct {
// The private link resource Private link DNS zone name.
RequiredZoneNames []*string
// READ-ONLY; The private link resource group id.
GroupID *string
// READ-ONLY; Provisioning state of the resource.
ProvisioningState *ProvisioningState
// READ-ONLY; The private link resource required member names.
RequiredMembers []*string
}
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
func (*PrivateLinkResourceProperties) UnmarshalJSON ¶
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, privateLinkResourceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Get specific private link resource information for this grafana resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: 2025-08-01/PrivateLinkResources_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "myResourceGroup", "myWorkspace", "grafana", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdashboard.PrivateLinkResourcesClientGetResponse{
// PrivateLinkResource: &armdashboard.PrivateLinkResource{
// Name: to.Ptr("grafana"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/PrivateLinkResources"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana"),
// Properties: &armdashboard.PrivateLinkResourceProperties{
// GroupID: to.Ptr("grafana"),
// RequiredMembers: []*string{
// to.Ptr("grafana"),
// },
// RequiredZoneNames: []*string{
// to.Ptr("grafana-test.azure.com"),
// },
// },
// },
// }
}
Output:
func (*PrivateLinkResourcesClient) NewListPager ¶
func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, workspaceName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse]
NewListPager - List all private link resources information for this grafana resource
Generated from API version 2025-08-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- workspaceName - The workspace name of Azure Managed Grafana.
- options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager method.
Example ¶
Generated from example definition: 2025-08-01/PrivateLinkResources_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard/v2"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdashboard.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPrivateLinkResourcesClient().NewListPager("myResourceGroup", "myWorkspace", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdashboard.PrivateLinkResourcesClientListResponse{
// PrivateLinkResourceListResult: armdashboard.PrivateLinkResourceListResult{
// Value: []*armdashboard.PrivateLinkResource{
// {
// Name: to.Ptr("grafana"),
// Type: to.Ptr("Microsoft.Dashboard/grafana/PrivateLinkResources"),
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana"),
// Properties: &armdashboard.PrivateLinkResourceProperties{
// GroupID: to.Ptr("grafana"),
// RequiredMembers: []*string{
// to.Ptr("grafana"),
// },
// RequiredZoneNames: []*string{
// to.Ptr("grafana-test.azure.com"),
// },
// },
// },
// },
// },
// }
}
}
Output:
type PrivateLinkResourcesClientGetOptions ¶
type PrivateLinkResourcesClientGetOptions struct {
}
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶
type PrivateLinkResourcesClientGetResponse struct {
// A private link resource
PrivateLinkResource
}
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListOptions ¶
type PrivateLinkResourcesClientListOptions struct {
}
PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager method.
type PrivateLinkResourcesClientListResponse ¶
type PrivateLinkResourcesClientListResponse struct {
// The response of a PrivateLinkResource list operation.
PrivateLinkResourceListResult
}
PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.NewListPager.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct {
// A message indicating if changes on the service provider require any updates on the consumer.
ActionsRequired *string
// The reason for approval/rejection of the connection.
Description *string
// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
Status *PrivateEndpointServiceConnectionStatus
}
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
func (PrivateLinkServiceConnectionState) MarshalJSON ¶
func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
func (*PrivateLinkServiceConnectionState) UnmarshalJSON ¶
func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - Indicate the state for enable or disable traffic over the public interface.
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
type ResourceSKU ¶
type ResourceSKU struct {
// REQUIRED; The name of the SKU.
Name *string
// Specifies the capacity tier of the Grafana instance.
Size *Size
}
ResourceSKU - Represents the SKU of a resource.
func (ResourceSKU) MarshalJSON ¶
func (r ResourceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSKU.
func (*ResourceSKU) UnmarshalJSON ¶
func (r *ResourceSKU) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU.
type SMTP ¶
type SMTP struct {
// Enable this to allow Grafana to send email. Default is false
Enabled *bool
// Address used when sending out emails
// https://pkg.go.dev/net/mail#Address
FromAddress *string
// Name to be used when sending out emails. Default is "Azure Managed Grafana Notification"
// https://pkg.go.dev/net/mail#Address
FromName *string
// SMTP server hostname with port, e.g. test.email.net:587
Host *string
// Password of SMTP auth. If the password contains # or ;, then you have to wrap it with triple quotes
Password *string
// Verify SSL for SMTP server. Default is false
// https://pkg.go.dev/crypto/tls#Config
SkipVerify *bool
// The StartTLSPolicy setting of the SMTP configuration
// https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy
StartTLSPolicy *StartTLSPolicy
// User of SMTP auth
User *string
}
SMTP - Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
func (SMTP) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SMTP.
func (*SMTP) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SMTP.
type SaasSubscriptionDetails ¶
type SaasSubscriptionDetails struct {
// The offer Id of the SaaS subscription.
OfferID *string
// The plan Id of the SaaS subscription.
PlanID *string
// The publisher Id of the SaaS subscription.
PublisherID *string
// The billing term of the SaaS Subscription.
Term *SubscriptionTerm
}
SaasSubscriptionDetails - SaaS subscription details of a Grafana instance
func (SaasSubscriptionDetails) MarshalJSON ¶
func (s SaasSubscriptionDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SaasSubscriptionDetails.
func (*SaasSubscriptionDetails) UnmarshalJSON ¶
func (s *SaasSubscriptionDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SaasSubscriptionDetails.
type Security ¶
type Security struct {
// Set to true to execute the CSRF check even if the login cookie is not in a request (default false).
CsrfAlwaysCheck *bool
}
Security - Grafana security settings
func (Security) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Security.
func (*Security) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Security.
type Size ¶
type Size string
Size - Specifies the capacity tier of the Grafana instance.
func PossibleSizeValues ¶
func PossibleSizeValues() []Size
PossibleSizeValues returns the possible values for the Size const type.
type Snapshots ¶
type Snapshots struct {
// Set to false to disable external snapshot publish endpoint
ExternalEnabled *bool
}
Snapshots - Grafana Snapshots settings
func (Snapshots) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Snapshots.
func (*Snapshots) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Snapshots.
type StartTLSPolicy ¶
type StartTLSPolicy string
StartTLSPolicy - The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy
const ( StartTLSPolicyMandatoryStartTLS StartTLSPolicy = "MandatoryStartTLS" StartTLSPolicyNoStartTLS StartTLSPolicy = "NoStartTLS" StartTLSPolicyOpportunisticStartTLS StartTLSPolicy = "OpportunisticStartTLS" )
func PossibleStartTLSPolicyValues ¶
func PossibleStartTLSPolicyValues() []StartTLSPolicy
PossibleStartTLSPolicyValues returns the possible values for the StartTLSPolicy const type.
type SubscriptionTerm ¶
type SubscriptionTerm struct {
// The date and time in UTC of when the billing term ends.
EndDate *time.Time
// The date and time in UTC of when the billing term starts.
StartDate *time.Time
// The unit of the billing term.
TermUnit *string
}
SubscriptionTerm - The current billing term of the SaaS Subscription.
func (SubscriptionTerm) MarshalJSON ¶
func (s SubscriptionTerm) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionTerm.
func (*SubscriptionTerm) UnmarshalJSON ¶
func (s *SubscriptionTerm) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionTerm.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type UnifiedAlertingScreenshots ¶
type UnifiedAlertingScreenshots struct {
// Set to false to disable capture screenshot in Unified Alert due to performance issue.
CaptureEnabled *bool
}
UnifiedAlertingScreenshots - Grafana Unified Alerting Screenshots settings
func (UnifiedAlertingScreenshots) MarshalJSON ¶
func (u UnifiedAlertingScreenshots) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnifiedAlertingScreenshots.
func (*UnifiedAlertingScreenshots) UnmarshalJSON ¶
func (u *UnifiedAlertingScreenshots) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnifiedAlertingScreenshots.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct {
// READ-ONLY; The client ID of the assigned identity.
ClientID *string
// READ-ONLY; The principal ID of the assigned identity.
PrincipalID *string
}
UserAssignedIdentity - User assigned identity properties
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type Users ¶
type Users struct {
// Set to true so editors can administrate dashboards, folders and teams they create.
EditorsCanAdmin *bool
// Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access
// to. They cannot save their changes.
ViewersCanEdit *bool
}
Users - Grafana users settings
func (Users) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Users.
func (*Users) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Users.
type ZoneRedundancy ¶
type ZoneRedundancy string
const ( ZoneRedundancyDisabled ZoneRedundancy = "Disabled" ZoneRedundancyEnabled ZoneRedundancy = "Enabled" )
func PossibleZoneRedundancyValues ¶
func PossibleZoneRedundancyValues() []ZoneRedundancy
PossibleZoneRedundancyValues returns the possible values for the ZoneRedundancy const type.