Documentation ¶
Index ¶
- type AADAuthenticationParameters
- type Access
- type AddressSpace
- type ApplicationGateway
- type ApplicationGatewayAuthenticationCertificate
- type ApplicationGatewayAuthenticationCertificatePropertiesFormat
- type ApplicationGatewayAutoscaleConfiguration
- type ApplicationGatewayAvailableSSLOptions
- type ApplicationGatewayAvailableSSLOptionsPropertiesFormat
- type ApplicationGatewayAvailableSSLPredefinedPolicies
- type ApplicationGatewayAvailableWafRuleSetsResult
- type ApplicationGatewayBackendAddress
- type ApplicationGatewayBackendAddressPool
- type ApplicationGatewayBackendAddressPoolPropertiesFormat
- type ApplicationGatewayBackendHTTPSettings
- type ApplicationGatewayBackendHTTPSettingsPropertiesFormat
- type ApplicationGatewayBackendHealth
- type ApplicationGatewayBackendHealthHTTPSettings
- type ApplicationGatewayBackendHealthOnDemand
- type ApplicationGatewayBackendHealthPool
- type ApplicationGatewayBackendHealthServer
- type ApplicationGatewayBackendHealthServerHealth
- type ApplicationGatewayBackendSettings
- type ApplicationGatewayBackendSettingsPropertiesFormat
- type ApplicationGatewayClientAuthConfiguration
- type ApplicationGatewayConnectionDraining
- type ApplicationGatewayCookieBasedAffinity
- type ApplicationGatewayCustomError
- type ApplicationGatewayCustomErrorStatusCode
- type ApplicationGatewayFirewallDisabledRuleGroup
- type ApplicationGatewayFirewallExclusion
- type ApplicationGatewayFirewallMode
- type ApplicationGatewayFirewallRule
- type ApplicationGatewayFirewallRuleGroup
- type ApplicationGatewayFirewallRuleSet
- type ApplicationGatewayFirewallRuleSetPropertiesFormat
- type ApplicationGatewayFrontendIPConfiguration
- type ApplicationGatewayFrontendIPConfigurationPropertiesFormat
- type ApplicationGatewayFrontendPort
- type ApplicationGatewayFrontendPortPropertiesFormat
- type ApplicationGatewayGlobalConfiguration
- type ApplicationGatewayHTTPListener
- type ApplicationGatewayHTTPListenerPropertiesFormat
- type ApplicationGatewayHeaderConfiguration
- type ApplicationGatewayIPConfiguration
- type ApplicationGatewayIPConfigurationPropertiesFormat
- type ApplicationGatewayListResult
- type ApplicationGatewayListener
- type ApplicationGatewayListenerPropertiesFormat
- type ApplicationGatewayLoadDistributionAlgorithm
- type ApplicationGatewayLoadDistributionPolicy
- type ApplicationGatewayLoadDistributionPolicyPropertiesFormat
- type ApplicationGatewayLoadDistributionTarget
- type ApplicationGatewayLoadDistributionTargetPropertiesFormat
- type ApplicationGatewayOnDemandProbe
- type ApplicationGatewayOperationalState
- type ApplicationGatewayPathRule
- type ApplicationGatewayPathRulePropertiesFormat
- type ApplicationGatewayPrivateEndpointConnection
- type ApplicationGatewayPrivateEndpointConnectionListResult
- type ApplicationGatewayPrivateEndpointConnectionProperties
- type ApplicationGatewayPrivateEndpointConnectionsClient
- func (client *ApplicationGatewayPrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (...)
- func (client *ApplicationGatewayPrivateEndpointConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (...)
- func (client *ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (ApplicationGatewayPrivateEndpointConnectionsClientGetResponse, error)
- func (client *ApplicationGatewayPrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, applicationGatewayName string, ...) *runtime.Pager[ApplicationGatewayPrivateEndpointConnectionsClientListResponse]
- type ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions
- type ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions
- type ApplicationGatewayPrivateEndpointConnectionsClientDeleteResponse
- type ApplicationGatewayPrivateEndpointConnectionsClientGetOptions
- type ApplicationGatewayPrivateEndpointConnectionsClientGetResponse
- type ApplicationGatewayPrivateEndpointConnectionsClientListOptions
- type ApplicationGatewayPrivateEndpointConnectionsClientListResponse
- type ApplicationGatewayPrivateEndpointConnectionsClientUpdateResponse
- type ApplicationGatewayPrivateLinkConfiguration
- type ApplicationGatewayPrivateLinkConfigurationProperties
- type ApplicationGatewayPrivateLinkIPConfiguration
- type ApplicationGatewayPrivateLinkIPConfigurationProperties
- type ApplicationGatewayPrivateLinkResource
- type ApplicationGatewayPrivateLinkResourceListResult
- type ApplicationGatewayPrivateLinkResourceProperties
- type ApplicationGatewayPrivateLinkResourcesClient
- type ApplicationGatewayPrivateLinkResourcesClientListOptions
- type ApplicationGatewayPrivateLinkResourcesClientListResponse
- type ApplicationGatewayProbe
- type ApplicationGatewayProbeHealthResponseMatch
- type ApplicationGatewayProbePropertiesFormat
- type ApplicationGatewayPropertiesFormat
- type ApplicationGatewayProtocol
- type ApplicationGatewayRedirectConfiguration
- type ApplicationGatewayRedirectConfigurationPropertiesFormat
- type ApplicationGatewayRedirectType
- type ApplicationGatewayRequestRoutingRule
- type ApplicationGatewayRequestRoutingRulePropertiesFormat
- type ApplicationGatewayRequestRoutingRuleType
- type ApplicationGatewayRewriteRule
- type ApplicationGatewayRewriteRuleActionSet
- type ApplicationGatewayRewriteRuleCondition
- type ApplicationGatewayRewriteRuleSet
- type ApplicationGatewayRewriteRuleSetPropertiesFormat
- type ApplicationGatewayRoutingRule
- type ApplicationGatewayRoutingRulePropertiesFormat
- type ApplicationGatewaySKU
- type ApplicationGatewaySKUName
- type ApplicationGatewaySSLCertificate
- type ApplicationGatewaySSLCertificatePropertiesFormat
- type ApplicationGatewaySSLCipherSuite
- type ApplicationGatewaySSLPolicy
- type ApplicationGatewaySSLPolicyName
- type ApplicationGatewaySSLPolicyType
- type ApplicationGatewaySSLPredefinedPolicy
- type ApplicationGatewaySSLPredefinedPolicyPropertiesFormat
- type ApplicationGatewaySSLProfile
- type ApplicationGatewaySSLProfilePropertiesFormat
- type ApplicationGatewaySSLProtocol
- type ApplicationGatewayTier
- type ApplicationGatewayTrustedClientCertificate
- type ApplicationGatewayTrustedClientCertificatePropertiesFormat
- type ApplicationGatewayTrustedRootCertificate
- type ApplicationGatewayTrustedRootCertificatePropertiesFormat
- type ApplicationGatewayURLConfiguration
- type ApplicationGatewayURLPathMap
- type ApplicationGatewayURLPathMapPropertiesFormat
- type ApplicationGatewayWebApplicationFirewallConfiguration
- type ApplicationGatewaysClient
- func (client *ApplicationGatewaysClient) BeginBackendHealth(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientBackendHealthResponse], error)
- func (client *ApplicationGatewaysClient) BeginBackendHealthOnDemand(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientBackendHealthOnDemandResponse], error)
- func (client *ApplicationGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientCreateOrUpdateResponse], error)
- func (client *ApplicationGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientDeleteResponse], error)
- func (client *ApplicationGatewaysClient) BeginStart(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientStartResponse], error)
- func (client *ApplicationGatewaysClient) BeginStop(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (*runtime.Poller[ApplicationGatewaysClientStopResponse], error)
- func (client *ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (ApplicationGatewaysClientGetResponse, error)
- func (client *ApplicationGatewaysClient) GetSSLPredefinedPolicy(ctx context.Context, predefinedPolicyName string, ...) (ApplicationGatewaysClientGetSSLPredefinedPolicyResponse, error)
- func (client *ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context, ...) (ApplicationGatewaysClientListAvailableRequestHeadersResponse, error)
- func (client *ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context, ...) (ApplicationGatewaysClientListAvailableResponseHeadersResponse, error)
- func (client *ApplicationGatewaysClient) ListAvailableSSLOptions(ctx context.Context, ...) (ApplicationGatewaysClientListAvailableSSLOptionsResponse, error)
- func (client *ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context, ...) (ApplicationGatewaysClientListAvailableServerVariablesResponse, error)
- func (client *ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context, ...) (ApplicationGatewaysClientListAvailableWafRuleSetsResponse, error)
- func (client *ApplicationGatewaysClient) NewListAllPager(options *ApplicationGatewaysClientListAllOptions) *runtime.Pager[ApplicationGatewaysClientListAllResponse]
- func (client *ApplicationGatewaysClient) NewListAvailableSSLPredefinedPoliciesPager(options *ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions) ...
- func (client *ApplicationGatewaysClient) NewListPager(resourceGroupName string, options *ApplicationGatewaysClientListOptions) *runtime.Pager[ApplicationGatewaysClientListResponse]
- func (client *ApplicationGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationGatewayName string, ...) (ApplicationGatewaysClientUpdateTagsResponse, error)
- type ApplicationGatewaysClientBackendHealthOnDemandResponse
- type ApplicationGatewaysClientBackendHealthResponse
- type ApplicationGatewaysClientBeginBackendHealthOnDemandOptions
- type ApplicationGatewaysClientBeginBackendHealthOptions
- type ApplicationGatewaysClientBeginCreateOrUpdateOptions
- type ApplicationGatewaysClientBeginDeleteOptions
- type ApplicationGatewaysClientBeginStartOptions
- type ApplicationGatewaysClientBeginStopOptions
- type ApplicationGatewaysClientCreateOrUpdateResponse
- type ApplicationGatewaysClientDeleteResponse
- type ApplicationGatewaysClientGetOptions
- type ApplicationGatewaysClientGetResponse
- type ApplicationGatewaysClientGetSSLPredefinedPolicyOptions
- type ApplicationGatewaysClientGetSSLPredefinedPolicyResponse
- type ApplicationGatewaysClientListAllOptions
- type ApplicationGatewaysClientListAllResponse
- type ApplicationGatewaysClientListAvailableRequestHeadersOptions
- type ApplicationGatewaysClientListAvailableRequestHeadersResponse
- type ApplicationGatewaysClientListAvailableResponseHeadersOptions
- type ApplicationGatewaysClientListAvailableResponseHeadersResponse
- type ApplicationGatewaysClientListAvailableSSLOptionsOptions
- type ApplicationGatewaysClientListAvailableSSLOptionsResponse
- type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions
- type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesResponse
- type ApplicationGatewaysClientListAvailableServerVariablesOptions
- type ApplicationGatewaysClientListAvailableServerVariablesResponse
- type ApplicationGatewaysClientListAvailableWafRuleSetsOptions
- type ApplicationGatewaysClientListAvailableWafRuleSetsResponse
- type ApplicationGatewaysClientListOptions
- type ApplicationGatewaysClientListResponse
- type ApplicationGatewaysClientStartResponse
- type ApplicationGatewaysClientStopResponse
- type ApplicationGatewaysClientUpdateTagsOptions
- type ApplicationGatewaysClientUpdateTagsResponse
- type ApplicationRule
- type ApplicationSecurityGroup
- type ApplicationSecurityGroupListResult
- type ApplicationSecurityGroupPropertiesFormat
- type ApplicationSecurityGroupsClient
- func (client *ApplicationSecurityGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationSecurityGroupsClientCreateOrUpdateResponse], error)
- func (client *ApplicationSecurityGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationSecurityGroupsClientDeleteResponse], error)
- func (client *ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, ...) (ApplicationSecurityGroupsClientGetResponse, error)
- func (client *ApplicationSecurityGroupsClient) NewListAllPager(options *ApplicationSecurityGroupsClientListAllOptions) *runtime.Pager[ApplicationSecurityGroupsClientListAllResponse]
- func (client *ApplicationSecurityGroupsClient) NewListPager(resourceGroupName string, options *ApplicationSecurityGroupsClientListOptions) *runtime.Pager[ApplicationSecurityGroupsClientListResponse]
- func (client *ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, ...) (ApplicationSecurityGroupsClientUpdateTagsResponse, error)
- type ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions
- type ApplicationSecurityGroupsClientBeginDeleteOptions
- type ApplicationSecurityGroupsClientCreateOrUpdateResponse
- type ApplicationSecurityGroupsClientDeleteResponse
- type ApplicationSecurityGroupsClientGetOptions
- type ApplicationSecurityGroupsClientGetResponse
- type ApplicationSecurityGroupsClientListAllOptions
- type ApplicationSecurityGroupsClientListAllResponse
- type ApplicationSecurityGroupsClientListOptions
- type ApplicationSecurityGroupsClientListResponse
- type ApplicationSecurityGroupsClientUpdateTagsOptions
- type ApplicationSecurityGroupsClientUpdateTagsResponse
- type AssociationType
- type AuthenticationMethod
- type AuthorizationListResult
- type AuthorizationPropertiesFormat
- type AuthorizationUseStatus
- type AutoApprovedPrivateLinkService
- type AutoApprovedPrivateLinkServicesResult
- type Availability
- type AvailableDelegation
- type AvailableDelegationsClient
- type AvailableDelegationsClientListOptions
- type AvailableDelegationsClientListResponse
- type AvailableDelegationsResult
- type AvailableEndpointServicesClient
- type AvailableEndpointServicesClientListOptions
- type AvailableEndpointServicesClientListResponse
- type AvailablePrivateEndpointType
- type AvailablePrivateEndpointTypesClient
- func (client *AvailablePrivateEndpointTypesClient) NewListByResourceGroupPager(location string, resourceGroupName string, ...) *runtime.Pager[AvailablePrivateEndpointTypesClientListByResourceGroupResponse]
- func (client *AvailablePrivateEndpointTypesClient) NewListPager(location string, options *AvailablePrivateEndpointTypesClientListOptions) *runtime.Pager[AvailablePrivateEndpointTypesClientListResponse]
- type AvailablePrivateEndpointTypesClientListByResourceGroupOptions
- type AvailablePrivateEndpointTypesClientListByResourceGroupResponse
- type AvailablePrivateEndpointTypesClientListOptions
- type AvailablePrivateEndpointTypesClientListResponse
- type AvailablePrivateEndpointTypesResult
- type AvailableProvidersList
- type AvailableProvidersListCity
- type AvailableProvidersListCountry
- type AvailableProvidersListParameters
- type AvailableProvidersListState
- type AvailableResourceGroupDelegationsClient
- type AvailableResourceGroupDelegationsClientListOptions
- type AvailableResourceGroupDelegationsClientListResponse
- type AvailableServiceAlias
- type AvailableServiceAliasesClient
- func (client *AvailableServiceAliasesClient) NewListByResourceGroupPager(resourceGroupName string, location string, ...) *runtime.Pager[AvailableServiceAliasesClientListByResourceGroupResponse]
- func (client *AvailableServiceAliasesClient) NewListPager(location string, options *AvailableServiceAliasesClientListOptions) *runtime.Pager[AvailableServiceAliasesClientListResponse]
- type AvailableServiceAliasesClientListByResourceGroupOptions
- type AvailableServiceAliasesClientListByResourceGroupResponse
- type AvailableServiceAliasesClientListOptions
- type AvailableServiceAliasesClientListResponse
- type AvailableServiceAliasesResult
- type AzureAsyncOperationResult
- type AzureFirewall
- type AzureFirewallApplicationRule
- type AzureFirewallApplicationRuleCollection
- type AzureFirewallApplicationRuleCollectionPropertiesFormat
- type AzureFirewallApplicationRuleProtocol
- type AzureFirewallApplicationRuleProtocolType
- type AzureFirewallFqdnTag
- type AzureFirewallFqdnTagListResult
- type AzureFirewallFqdnTagPropertiesFormat
- type AzureFirewallFqdnTagsClient
- type AzureFirewallFqdnTagsClientListAllOptions
- type AzureFirewallFqdnTagsClientListAllResponse
- type AzureFirewallIPConfiguration
- type AzureFirewallIPConfigurationPropertiesFormat
- type AzureFirewallIPGroups
- type AzureFirewallListResult
- type AzureFirewallNatRCAction
- type AzureFirewallNatRCActionType
- type AzureFirewallNatRule
- type AzureFirewallNatRuleCollection
- type AzureFirewallNatRuleCollectionProperties
- type AzureFirewallNetworkRule
- type AzureFirewallNetworkRuleCollection
- type AzureFirewallNetworkRuleCollectionPropertiesFormat
- type AzureFirewallNetworkRuleProtocol
- type AzureFirewallPropertiesFormat
- type AzureFirewallPublicIPAddress
- type AzureFirewallRCAction
- type AzureFirewallRCActionType
- type AzureFirewallSKU
- type AzureFirewallSKUName
- type AzureFirewallSKUTier
- type AzureFirewallThreatIntelMode
- type AzureFirewallsClient
- func (client *AzureFirewallsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, azureFirewallName string, ...) (*runtime.Poller[AzureFirewallsClientCreateOrUpdateResponse], error)
- func (client *AzureFirewallsClient) BeginDelete(ctx context.Context, resourceGroupName string, azureFirewallName string, ...) (*runtime.Poller[AzureFirewallsClientDeleteResponse], error)
- func (client *AzureFirewallsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, ...) (*runtime.Poller[AzureFirewallsClientUpdateTagsResponse], error)
- func (client *AzureFirewallsClient) Get(ctx context.Context, resourceGroupName string, azureFirewallName string, ...) (AzureFirewallsClientGetResponse, error)
- func (client *AzureFirewallsClient) NewListAllPager(options *AzureFirewallsClientListAllOptions) *runtime.Pager[AzureFirewallsClientListAllResponse]
- func (client *AzureFirewallsClient) NewListPager(resourceGroupName string, options *AzureFirewallsClientListOptions) *runtime.Pager[AzureFirewallsClientListResponse]
- type AzureFirewallsClientBeginCreateOrUpdateOptions
- type AzureFirewallsClientBeginDeleteOptions
- type AzureFirewallsClientBeginUpdateTagsOptions
- type AzureFirewallsClientCreateOrUpdateResponse
- type AzureFirewallsClientDeleteResponse
- type AzureFirewallsClientGetOptions
- type AzureFirewallsClientGetResponse
- type AzureFirewallsClientListAllOptions
- type AzureFirewallsClientListAllResponse
- type AzureFirewallsClientListOptions
- type AzureFirewallsClientListResponse
- type AzureFirewallsClientUpdateTagsResponse
- type AzureReachabilityReport
- type AzureReachabilityReportItem
- type AzureReachabilityReportLatencyInfo
- type AzureReachabilityReportLocation
- type AzureReachabilityReportParameters
- type AzureWebCategory
- type AzureWebCategoryListResult
- type AzureWebCategoryPropertiesFormat
- type BGPCommunity
- type BackendAddressInboundNatRulePortMappings
- type BackendAddressPool
- type BackendAddressPoolPropertiesFormat
- type BastionActiveSession
- type BastionActiveSessionListResult
- type BastionConnectProtocol
- type BastionHost
- type BastionHostIPConfiguration
- type BastionHostIPConfigurationPropertiesFormat
- type BastionHostListResult
- type BastionHostPropertiesFormat
- type BastionHostSKUName
- type BastionHostsClient
- func (client *BastionHostsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (*runtime.Poller[BastionHostsClientCreateOrUpdateResponse], error)
- func (client *BastionHostsClient) BeginDelete(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (*runtime.Poller[BastionHostsClientDeleteResponse], error)
- func (client *BastionHostsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (*runtime.Poller[BastionHostsClientUpdateTagsResponse], error)
- func (client *BastionHostsClient) Get(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (BastionHostsClientGetResponse, error)
- func (client *BastionHostsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[BastionHostsClientListByResourceGroupResponse]
- func (client *BastionHostsClient) NewListPager(options *BastionHostsClientListOptions) *runtime.Pager[BastionHostsClientListResponse]
- type BastionHostsClientBeginCreateOrUpdateOptions
- type BastionHostsClientBeginDeleteOptions
- type BastionHostsClientBeginUpdateTagsOptions
- type BastionHostsClientCreateOrUpdateResponse
- type BastionHostsClientDeleteResponse
- type BastionHostsClientGetOptions
- type BastionHostsClientGetResponse
- type BastionHostsClientListByResourceGroupOptions
- type BastionHostsClientListByResourceGroupResponse
- type BastionHostsClientListOptions
- type BastionHostsClientListResponse
- type BastionHostsClientUpdateTagsResponse
- type BastionSessionDeleteResult
- type BastionSessionState
- type BastionShareableLink
- type BastionShareableLinkListRequest
- type BastionShareableLinkListResult
- type BgpConnection
- type BgpConnectionProperties
- type BgpPeerState
- type BgpPeerStatus
- type BgpPeerStatusListResult
- type BgpServiceCommunitiesClient
- type BgpServiceCommunitiesClientListOptions
- type BgpServiceCommunitiesClientListResponse
- type BgpServiceCommunity
- type BgpServiceCommunityListResult
- type BgpServiceCommunityPropertiesFormat
- type BgpSettings
- type BreakOutCategoryPolicies
- type CheckPrivateLinkServiceVisibilityRequest
- type CircuitConnectionStatus
- type CloudError
- type CloudErrorBody
- type CommissionedState
- type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties
- type ConfigurationDiagnosticParameters
- type ConfigurationDiagnosticProfile
- type ConfigurationDiagnosticResponse
- type ConfigurationDiagnosticResult
- type ConfigurationPolicyGroupsClient
- func (client *ConfigurationPolicyGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ConfigurationPolicyGroupsClientCreateOrUpdateResponse], error)
- func (client *ConfigurationPolicyGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ConfigurationPolicyGroupsClientDeleteResponse], error)
- func (client *ConfigurationPolicyGroupsClient) Get(ctx context.Context, resourceGroupName string, ...) (ConfigurationPolicyGroupsClientGetResponse, error)
- func (client *ConfigurationPolicyGroupsClient) NewListByVPNServerConfigurationPager(resourceGroupName string, vpnServerConfigurationName string, ...) ...
- type ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions
- type ConfigurationPolicyGroupsClientBeginDeleteOptions
- type ConfigurationPolicyGroupsClientCreateOrUpdateResponse
- type ConfigurationPolicyGroupsClientDeleteResponse
- type ConfigurationPolicyGroupsClientGetOptions
- type ConfigurationPolicyGroupsClientGetResponse
- type ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions
- type ConfigurationPolicyGroupsClientListByVPNServerConfigurationResponse
- type ConnectionMonitor
- type ConnectionMonitorDestination
- type ConnectionMonitorEndpoint
- type ConnectionMonitorEndpointFilter
- type ConnectionMonitorEndpointFilterItem
- type ConnectionMonitorEndpointFilterItemType
- type ConnectionMonitorEndpointFilterType
- type ConnectionMonitorEndpointScope
- type ConnectionMonitorEndpointScopeItem
- type ConnectionMonitorHTTPConfiguration
- type ConnectionMonitorIcmpConfiguration
- type ConnectionMonitorListResult
- type ConnectionMonitorOutput
- type ConnectionMonitorParameters
- type ConnectionMonitorQueryResult
- type ConnectionMonitorResult
- type ConnectionMonitorResultProperties
- type ConnectionMonitorSource
- type ConnectionMonitorSourceStatus
- type ConnectionMonitorSuccessThreshold
- type ConnectionMonitorTCPConfiguration
- type ConnectionMonitorTestConfiguration
- type ConnectionMonitorTestConfigurationProtocol
- type ConnectionMonitorTestGroup
- type ConnectionMonitorType
- type ConnectionMonitorWorkspaceSettings
- type ConnectionMonitorsClient
- func (client *ConnectionMonitorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[ConnectionMonitorsClientCreateOrUpdateResponse], error)
- func (client *ConnectionMonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[ConnectionMonitorsClientDeleteResponse], error)
- func (client *ConnectionMonitorsClient) BeginQuery(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[ConnectionMonitorsClientQueryResponse], error)
- func (client *ConnectionMonitorsClient) BeginStart(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[ConnectionMonitorsClientStartResponse], error)
- func (client *ConnectionMonitorsClient) BeginStop(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[ConnectionMonitorsClientStopResponse], error)
- func (client *ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (ConnectionMonitorsClientGetResponse, error)
- func (client *ConnectionMonitorsClient) NewListPager(resourceGroupName string, networkWatcherName string, ...) *runtime.Pager[ConnectionMonitorsClientListResponse]
- func (client *ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (ConnectionMonitorsClientUpdateTagsResponse, error)
- type ConnectionMonitorsClientBeginCreateOrUpdateOptions
- type ConnectionMonitorsClientBeginDeleteOptions
- type ConnectionMonitorsClientBeginQueryOptions
- type ConnectionMonitorsClientBeginStartOptions
- type ConnectionMonitorsClientBeginStopOptions
- type ConnectionMonitorsClientCreateOrUpdateResponse
- type ConnectionMonitorsClientDeleteResponse
- type ConnectionMonitorsClientGetOptions
- type ConnectionMonitorsClientGetResponse
- type ConnectionMonitorsClientListOptions
- type ConnectionMonitorsClientListResponse
- type ConnectionMonitorsClientQueryResponse
- type ConnectionMonitorsClientStartResponse
- type ConnectionMonitorsClientStopResponse
- type ConnectionMonitorsClientUpdateTagsOptions
- type ConnectionMonitorsClientUpdateTagsResponse
- type ConnectionResetSharedKey
- type ConnectionSharedKey
- type ConnectionState
- type ConnectionStateSnapshot
- type ConnectionStatus
- type ConnectivityDestination
- type ConnectivityHop
- type ConnectivityInformation
- type ConnectivityIssue
- type ConnectivityParameters
- type ConnectivitySource
- type Container
- type ContainerNetworkInterface
- type ContainerNetworkInterfaceConfiguration
- type ContainerNetworkInterfaceConfigurationPropertiesFormat
- type ContainerNetworkInterfaceIPConfiguration
- type ContainerNetworkInterfaceIPConfigurationPropertiesFormat
- type ContainerNetworkInterfacePropertiesFormat
- type CoverageLevel
- type CustomDNSConfigPropertiesFormat
- type CustomIPPrefix
- type CustomIPPrefixListResult
- type CustomIPPrefixPropertiesFormat
- type CustomIPPrefixesClient
- func (client *CustomIPPrefixesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customIPPrefixName string, ...) (*runtime.Poller[CustomIPPrefixesClientCreateOrUpdateResponse], error)
- func (client *CustomIPPrefixesClient) BeginDelete(ctx context.Context, resourceGroupName string, customIPPrefixName string, ...) (*runtime.Poller[CustomIPPrefixesClientDeleteResponse], error)
- func (client *CustomIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, customIPPrefixName string, ...) (CustomIPPrefixesClientGetResponse, error)
- func (client *CustomIPPrefixesClient) NewListAllPager(options *CustomIPPrefixesClientListAllOptions) *runtime.Pager[CustomIPPrefixesClientListAllResponse]
- func (client *CustomIPPrefixesClient) NewListPager(resourceGroupName string, options *CustomIPPrefixesClientListOptions) *runtime.Pager[CustomIPPrefixesClientListResponse]
- func (client *CustomIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, customIPPrefixName string, ...) (CustomIPPrefixesClientUpdateTagsResponse, error)
- type CustomIPPrefixesClientBeginCreateOrUpdateOptions
- type CustomIPPrefixesClientBeginDeleteOptions
- type CustomIPPrefixesClientCreateOrUpdateResponse
- type CustomIPPrefixesClientDeleteResponse
- type CustomIPPrefixesClientGetOptions
- type CustomIPPrefixesClientGetResponse
- type CustomIPPrefixesClientListAllOptions
- type CustomIPPrefixesClientListAllResponse
- type CustomIPPrefixesClientListOptions
- type CustomIPPrefixesClientListResponse
- type CustomIPPrefixesClientUpdateTagsOptions
- type CustomIPPrefixesClientUpdateTagsResponse
- type DNSNameAvailabilityResult
- type DNSSettings
- type DdosCustomPoliciesClient
- func (client *DdosCustomPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, ...) (*runtime.Poller[DdosCustomPoliciesClientCreateOrUpdateResponse], error)
- func (client *DdosCustomPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, ...) (*runtime.Poller[DdosCustomPoliciesClientDeleteResponse], error)
- func (client *DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, ...) (DdosCustomPoliciesClientGetResponse, error)
- func (client *DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, ...) (DdosCustomPoliciesClientUpdateTagsResponse, error)
- type DdosCustomPoliciesClientBeginCreateOrUpdateOptions
- type DdosCustomPoliciesClientBeginDeleteOptions
- type DdosCustomPoliciesClientCreateOrUpdateResponse
- type DdosCustomPoliciesClientDeleteResponse
- type DdosCustomPoliciesClientGetOptions
- type DdosCustomPoliciesClientGetResponse
- type DdosCustomPoliciesClientUpdateTagsOptions
- type DdosCustomPoliciesClientUpdateTagsResponse
- type DdosCustomPolicy
- type DdosCustomPolicyPropertiesFormat
- type DdosCustomPolicyProtocol
- type DdosCustomPolicyTriggerSensitivityOverride
- type DdosProtectionPlan
- type DdosProtectionPlanListResult
- type DdosProtectionPlanPropertiesFormat
- type DdosProtectionPlansClient
- func (client *DdosProtectionPlansClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, ...) (*runtime.Poller[DdosProtectionPlansClientCreateOrUpdateResponse], error)
- func (client *DdosProtectionPlansClient) BeginDelete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, ...) (*runtime.Poller[DdosProtectionPlansClientDeleteResponse], error)
- func (client *DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, ...) (DdosProtectionPlansClientGetResponse, error)
- func (client *DdosProtectionPlansClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[DdosProtectionPlansClientListByResourceGroupResponse]
- func (client *DdosProtectionPlansClient) NewListPager(options *DdosProtectionPlansClientListOptions) *runtime.Pager[DdosProtectionPlansClientListResponse]
- func (client *DdosProtectionPlansClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, ...) (DdosProtectionPlansClientUpdateTagsResponse, error)
- type DdosProtectionPlansClientBeginCreateOrUpdateOptions
- type DdosProtectionPlansClientBeginDeleteOptions
- type DdosProtectionPlansClientCreateOrUpdateResponse
- type DdosProtectionPlansClientDeleteResponse
- type DdosProtectionPlansClientGetOptions
- type DdosProtectionPlansClientGetResponse
- type DdosProtectionPlansClientListByResourceGroupOptions
- type DdosProtectionPlansClientListByResourceGroupResponse
- type DdosProtectionPlansClientListOptions
- type DdosProtectionPlansClientListResponse
- type DdosProtectionPlansClientUpdateTagsOptions
- type DdosProtectionPlansClientUpdateTagsResponse
- type DdosSettings
- type DdosSettingsProtectionCoverage
- type DefaultSecurityRulesClient
- func (client *DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (DefaultSecurityRulesClientGetResponse, error)
- func (client *DefaultSecurityRulesClient) NewListPager(resourceGroupName string, networkSecurityGroupName string, ...) *runtime.Pager[DefaultSecurityRulesClientListResponse]
- type DefaultSecurityRulesClientGetOptions
- type DefaultSecurityRulesClientGetResponse
- type DefaultSecurityRulesClientListOptions
- type DefaultSecurityRulesClientListResponse
- type Delegation
- type DeleteOptions
- type DestinationPortBehavior
- type DeviceProperties
- type DhGroup
- type DhcpOptions
- type Dimension
- type Direction
- type DscpConfiguration
- type DscpConfigurationClient
- func (client *DscpConfigurationClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, dscpConfigurationName string, ...) (*runtime.Poller[DscpConfigurationClientCreateOrUpdateResponse], error)
- func (client *DscpConfigurationClient) BeginDelete(ctx context.Context, resourceGroupName string, dscpConfigurationName string, ...) (*runtime.Poller[DscpConfigurationClientDeleteResponse], error)
- func (client *DscpConfigurationClient) Get(ctx context.Context, resourceGroupName string, dscpConfigurationName string, ...) (DscpConfigurationClientGetResponse, error)
- func (client *DscpConfigurationClient) NewListAllPager(options *DscpConfigurationClientListAllOptions) *runtime.Pager[DscpConfigurationClientListAllResponse]
- func (client *DscpConfigurationClient) NewListPager(resourceGroupName string, options *DscpConfigurationClientListOptions) *runtime.Pager[DscpConfigurationClientListResponse]
- type DscpConfigurationClientBeginCreateOrUpdateOptions
- type DscpConfigurationClientBeginDeleteOptions
- type DscpConfigurationClientCreateOrUpdateResponse
- type DscpConfigurationClientDeleteResponse
- type DscpConfigurationClientGetOptions
- type DscpConfigurationClientGetResponse
- type DscpConfigurationClientListAllOptions
- type DscpConfigurationClientListAllResponse
- type DscpConfigurationClientListOptions
- type DscpConfigurationClientListResponse
- type DscpConfigurationListResult
- type DscpConfigurationPropertiesFormat
- type EffectiveNetworkSecurityGroup
- type EffectiveNetworkSecurityGroupAssociation
- type EffectiveNetworkSecurityGroupListResult
- type EffectiveNetworkSecurityRule
- type EffectiveRoute
- type EffectiveRouteListResult
- type EffectiveRouteSource
- type EffectiveRouteState
- type EffectiveRoutesParameters
- type EffectiveSecurityRuleProtocol
- type EndpointServiceResult
- type EndpointServicesListResult
- type EndpointType
- type Error
- type ErrorDetails
- type ErrorResponse
- type EvaluatedNetworkSecurityGroup
- type EvaluationState
- type ExclusionManagedRule
- type ExclusionManagedRuleGroup
- type ExclusionManagedRuleSet
- type ExplicitProxySettings
- type ExpressRouteCircuit
- type ExpressRouteCircuitArpTable
- type ExpressRouteCircuitAuthorization
- type ExpressRouteCircuitAuthorizationsClient
- func (client *ExpressRouteCircuitAuthorizationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse], ...)
- func (client *ExpressRouteCircuitAuthorizationsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitAuthorizationsClientDeleteResponse], error)
- func (client *ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitAuthorizationsClientGetResponse, error)
- func (client *ExpressRouteCircuitAuthorizationsClient) NewListPager(resourceGroupName string, circuitName string, ...) *runtime.Pager[ExpressRouteCircuitAuthorizationsClientListResponse]
- type ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions
- type ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions
- type ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse
- type ExpressRouteCircuitAuthorizationsClientDeleteResponse
- type ExpressRouteCircuitAuthorizationsClientGetOptions
- type ExpressRouteCircuitAuthorizationsClientGetResponse
- type ExpressRouteCircuitAuthorizationsClientListOptions
- type ExpressRouteCircuitAuthorizationsClientListResponse
- type ExpressRouteCircuitConnection
- type ExpressRouteCircuitConnectionListResult
- type ExpressRouteCircuitConnectionPropertiesFormat
- type ExpressRouteCircuitConnectionsClient
- func (client *ExpressRouteCircuitConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse], ...)
- func (client *ExpressRouteCircuitConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitConnectionsClientDeleteResponse], error)
- func (client *ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitConnectionsClientGetResponse, error)
- func (client *ExpressRouteCircuitConnectionsClient) NewListPager(resourceGroupName string, circuitName string, peeringName string, ...) *runtime.Pager[ExpressRouteCircuitConnectionsClientListResponse]
- type ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions
- type ExpressRouteCircuitConnectionsClientBeginDeleteOptions
- type ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse
- type ExpressRouteCircuitConnectionsClientDeleteResponse
- type ExpressRouteCircuitConnectionsClientGetOptions
- type ExpressRouteCircuitConnectionsClientGetResponse
- type ExpressRouteCircuitConnectionsClientListOptions
- type ExpressRouteCircuitConnectionsClientListResponse
- type ExpressRouteCircuitListResult
- type ExpressRouteCircuitPeering
- type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState
- type ExpressRouteCircuitPeeringConfig
- type ExpressRouteCircuitPeeringID
- type ExpressRouteCircuitPeeringListResult
- type ExpressRouteCircuitPeeringPropertiesFormat
- type ExpressRouteCircuitPeeringState
- type ExpressRouteCircuitPeeringsClient
- func (client *ExpressRouteCircuitPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse], ...)
- func (client *ExpressRouteCircuitPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitPeeringsClientDeleteResponse], error)
- func (client *ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitPeeringsClientGetResponse, error)
- func (client *ExpressRouteCircuitPeeringsClient) NewListPager(resourceGroupName string, circuitName string, ...) *runtime.Pager[ExpressRouteCircuitPeeringsClientListResponse]
- type ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions
- type ExpressRouteCircuitPeeringsClientBeginDeleteOptions
- type ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse
- type ExpressRouteCircuitPeeringsClientDeleteResponse
- type ExpressRouteCircuitPeeringsClientGetOptions
- type ExpressRouteCircuitPeeringsClientGetResponse
- type ExpressRouteCircuitPeeringsClientListOptions
- type ExpressRouteCircuitPeeringsClientListResponse
- type ExpressRouteCircuitPropertiesFormat
- type ExpressRouteCircuitReference
- type ExpressRouteCircuitRoutesTable
- type ExpressRouteCircuitRoutesTableSummary
- type ExpressRouteCircuitSKU
- type ExpressRouteCircuitSKUFamily
- type ExpressRouteCircuitSKUTier
- type ExpressRouteCircuitServiceProviderProperties
- type ExpressRouteCircuitStats
- type ExpressRouteCircuitsArpTableListResult
- type ExpressRouteCircuitsClient
- func (client *ExpressRouteCircuitsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitsClientCreateOrUpdateResponse], error)
- func (client *ExpressRouteCircuitsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitsClientDeleteResponse], error)
- func (client *ExpressRouteCircuitsClient) BeginListArpTable(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitsClientListArpTableResponse], error)
- func (client *ExpressRouteCircuitsClient) BeginListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitsClientListRoutesTableResponse], error)
- func (client *ExpressRouteCircuitsClient) BeginListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, ...) (*runtime.Poller[ExpressRouteCircuitsClientListRoutesTableSummaryResponse], ...)
- func (client *ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitsClientGetResponse, error)
- func (client *ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitsClientGetPeeringStatsResponse, error)
- func (client *ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitsClientGetStatsResponse, error)
- func (client *ExpressRouteCircuitsClient) NewListAllPager(options *ExpressRouteCircuitsClientListAllOptions) *runtime.Pager[ExpressRouteCircuitsClientListAllResponse]
- func (client *ExpressRouteCircuitsClient) NewListPager(resourceGroupName string, options *ExpressRouteCircuitsClientListOptions) *runtime.Pager[ExpressRouteCircuitsClientListResponse]
- func (client *ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourceGroupName string, circuitName string, ...) (ExpressRouteCircuitsClientUpdateTagsResponse, error)
- type ExpressRouteCircuitsClientBeginCreateOrUpdateOptions
- type ExpressRouteCircuitsClientBeginDeleteOptions
- type ExpressRouteCircuitsClientBeginListArpTableOptions
- type ExpressRouteCircuitsClientBeginListRoutesTableOptions
- type ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions
- type ExpressRouteCircuitsClientCreateOrUpdateResponse
- type ExpressRouteCircuitsClientDeleteResponse
- type ExpressRouteCircuitsClientGetOptions
- type ExpressRouteCircuitsClientGetPeeringStatsOptions
- type ExpressRouteCircuitsClientGetPeeringStatsResponse
- type ExpressRouteCircuitsClientGetResponse
- type ExpressRouteCircuitsClientGetStatsOptions
- type ExpressRouteCircuitsClientGetStatsResponse
- type ExpressRouteCircuitsClientListAllOptions
- type ExpressRouteCircuitsClientListAllResponse
- type ExpressRouteCircuitsClientListArpTableResponse
- type ExpressRouteCircuitsClientListOptions
- type ExpressRouteCircuitsClientListResponse
- type ExpressRouteCircuitsClientListRoutesTableResponse
- type ExpressRouteCircuitsClientListRoutesTableSummaryResponse
- type ExpressRouteCircuitsClientUpdateTagsOptions
- type ExpressRouteCircuitsClientUpdateTagsResponse
- type ExpressRouteCircuitsRoutesTableListResult
- type ExpressRouteCircuitsRoutesTableSummaryListResult
- type ExpressRouteConnection
- type ExpressRouteConnectionID
- type ExpressRouteConnectionList
- type ExpressRouteConnectionProperties
- type ExpressRouteConnectionsClient
- func (client *ExpressRouteConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (*runtime.Poller[ExpressRouteConnectionsClientCreateOrUpdateResponse], error)
- func (client *ExpressRouteConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (*runtime.Poller[ExpressRouteConnectionsClientDeleteResponse], error)
- func (client *ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (ExpressRouteConnectionsClientGetResponse, error)
- func (client *ExpressRouteConnectionsClient) List(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (ExpressRouteConnectionsClientListResponse, error)
- type ExpressRouteConnectionsClientBeginCreateOrUpdateOptions
- type ExpressRouteConnectionsClientBeginDeleteOptions
- type ExpressRouteConnectionsClientCreateOrUpdateResponse
- type ExpressRouteConnectionsClientDeleteResponse
- type ExpressRouteConnectionsClientGetOptions
- type ExpressRouteConnectionsClientGetResponse
- type ExpressRouteConnectionsClientListOptions
- type ExpressRouteConnectionsClientListResponse
- type ExpressRouteCrossConnection
- type ExpressRouteCrossConnectionListResult
- type ExpressRouteCrossConnectionPeering
- type ExpressRouteCrossConnectionPeeringList
- type ExpressRouteCrossConnectionPeeringProperties
- type ExpressRouteCrossConnectionPeeringsClient
- func (client *ExpressRouteCrossConnectionPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (...)
- func (client *ExpressRouteCrossConnectionPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (*runtime.Poller[ExpressRouteCrossConnectionPeeringsClientDeleteResponse], ...)
- func (client *ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (ExpressRouteCrossConnectionPeeringsClientGetResponse, error)
- func (client *ExpressRouteCrossConnectionPeeringsClient) NewListPager(resourceGroupName string, crossConnectionName string, ...) *runtime.Pager[ExpressRouteCrossConnectionPeeringsClientListResponse]
- type ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions
- type ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions
- type ExpressRouteCrossConnectionPeeringsClientCreateOrUpdateResponse
- type ExpressRouteCrossConnectionPeeringsClientDeleteResponse
- type ExpressRouteCrossConnectionPeeringsClientGetOptions
- type ExpressRouteCrossConnectionPeeringsClientGetResponse
- type ExpressRouteCrossConnectionPeeringsClientListOptions
- type ExpressRouteCrossConnectionPeeringsClientListResponse
- type ExpressRouteCrossConnectionProperties
- type ExpressRouteCrossConnectionRoutesTableSummary
- type ExpressRouteCrossConnectionsClient
- func (client *ExpressRouteCrossConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (*runtime.Poller[ExpressRouteCrossConnectionsClientCreateOrUpdateResponse], ...)
- func (client *ExpressRouteCrossConnectionsClient) BeginListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (*runtime.Poller[ExpressRouteCrossConnectionsClientListArpTableResponse], error)
- func (client *ExpressRouteCrossConnectionsClient) BeginListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (*runtime.Poller[ExpressRouteCrossConnectionsClientListRoutesTableResponse], ...)
- func (client *ExpressRouteCrossConnectionsClient) BeginListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (...)
- func (client *ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (ExpressRouteCrossConnectionsClientGetResponse, error)
- func (client *ExpressRouteCrossConnectionsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ExpressRouteCrossConnectionsClientListByResourceGroupResponse]
- func (client *ExpressRouteCrossConnectionsClient) NewListPager(options *ExpressRouteCrossConnectionsClientListOptions) *runtime.Pager[ExpressRouteCrossConnectionsClientListResponse]
- func (client *ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, ...) (ExpressRouteCrossConnectionsClientUpdateTagsResponse, error)
- type ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions
- type ExpressRouteCrossConnectionsClientBeginListArpTableOptions
- type ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions
- type ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions
- type ExpressRouteCrossConnectionsClientCreateOrUpdateResponse
- type ExpressRouteCrossConnectionsClientGetOptions
- type ExpressRouteCrossConnectionsClientGetResponse
- type ExpressRouteCrossConnectionsClientListArpTableResponse
- type ExpressRouteCrossConnectionsClientListByResourceGroupOptions
- type ExpressRouteCrossConnectionsClientListByResourceGroupResponse
- type ExpressRouteCrossConnectionsClientListOptions
- type ExpressRouteCrossConnectionsClientListResponse
- type ExpressRouteCrossConnectionsClientListRoutesTableResponse
- type ExpressRouteCrossConnectionsClientListRoutesTableSummaryResponse
- type ExpressRouteCrossConnectionsClientUpdateTagsOptions
- type ExpressRouteCrossConnectionsClientUpdateTagsResponse
- type ExpressRouteCrossConnectionsRoutesTableSummaryListResult
- type ExpressRouteGateway
- type ExpressRouteGatewayList
- type ExpressRouteGatewayProperties
- type ExpressRouteGatewayPropertiesAutoScaleConfiguration
- type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds
- type ExpressRouteGatewaysClient
- func (client *ExpressRouteGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (*runtime.Poller[ExpressRouteGatewaysClientCreateOrUpdateResponse], error)
- func (client *ExpressRouteGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (*runtime.Poller[ExpressRouteGatewaysClientDeleteResponse], error)
- func (client *ExpressRouteGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (*runtime.Poller[ExpressRouteGatewaysClientUpdateTagsResponse], error)
- func (client *ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, ...) (ExpressRouteGatewaysClientGetResponse, error)
- func (client *ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, ...) (ExpressRouteGatewaysClientListByResourceGroupResponse, error)
- func (client *ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context, ...) (ExpressRouteGatewaysClientListBySubscriptionResponse, error)
- type ExpressRouteGatewaysClientBeginCreateOrUpdateOptions
- type ExpressRouteGatewaysClientBeginDeleteOptions
- type ExpressRouteGatewaysClientBeginUpdateTagsOptions
- type ExpressRouteGatewaysClientCreateOrUpdateResponse
- type ExpressRouteGatewaysClientDeleteResponse
- type ExpressRouteGatewaysClientGetOptions
- type ExpressRouteGatewaysClientGetResponse
- type ExpressRouteGatewaysClientListByResourceGroupOptions
- type ExpressRouteGatewaysClientListByResourceGroupResponse
- type ExpressRouteGatewaysClientListBySubscriptionOptions
- type ExpressRouteGatewaysClientListBySubscriptionResponse
- type ExpressRouteGatewaysClientUpdateTagsResponse
- type ExpressRouteLink
- type ExpressRouteLinkAdminState
- type ExpressRouteLinkConnectorType
- type ExpressRouteLinkListResult
- type ExpressRouteLinkMacSecCipher
- type ExpressRouteLinkMacSecConfig
- type ExpressRouteLinkMacSecSciState
- type ExpressRouteLinkPropertiesFormat
- type ExpressRouteLinksClient
- func (client *ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (ExpressRouteLinksClientGetResponse, error)
- func (client *ExpressRouteLinksClient) NewListPager(resourceGroupName string, expressRoutePortName string, ...) *runtime.Pager[ExpressRouteLinksClientListResponse]
- type ExpressRouteLinksClientGetOptions
- type ExpressRouteLinksClientGetResponse
- type ExpressRouteLinksClientListOptions
- type ExpressRouteLinksClientListResponse
- type ExpressRoutePeeringState
- type ExpressRoutePeeringType
- type ExpressRoutePort
- type ExpressRoutePortAuthorization
- type ExpressRoutePortAuthorizationListResult
- type ExpressRoutePortAuthorizationPropertiesFormat
- type ExpressRoutePortAuthorizationUseStatus
- type ExpressRoutePortAuthorizationsClient
- func (client *ExpressRoutePortAuthorizationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (*runtime.Poller[ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse], ...)
- func (client *ExpressRoutePortAuthorizationsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (*runtime.Poller[ExpressRoutePortAuthorizationsClientDeleteResponse], error)
- func (client *ExpressRoutePortAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (ExpressRoutePortAuthorizationsClientGetResponse, error)
- func (client *ExpressRoutePortAuthorizationsClient) NewListPager(resourceGroupName string, expressRoutePortName string, ...) *runtime.Pager[ExpressRoutePortAuthorizationsClientListResponse]
- type ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions
- type ExpressRoutePortAuthorizationsClientBeginDeleteOptions
- type ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse
- type ExpressRoutePortAuthorizationsClientDeleteResponse
- type ExpressRoutePortAuthorizationsClientGetOptions
- type ExpressRoutePortAuthorizationsClientGetResponse
- type ExpressRoutePortAuthorizationsClientListOptions
- type ExpressRoutePortAuthorizationsClientListResponse
- type ExpressRoutePortListResult
- type ExpressRoutePortPropertiesFormat
- type ExpressRoutePortsClient
- func (client *ExpressRoutePortsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (*runtime.Poller[ExpressRoutePortsClientCreateOrUpdateResponse], error)
- func (client *ExpressRoutePortsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (*runtime.Poller[ExpressRoutePortsClientDeleteResponse], error)
- func (client *ExpressRoutePortsClient) GenerateLOA(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (ExpressRoutePortsClientGenerateLOAResponse, error)
- func (client *ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (ExpressRoutePortsClientGetResponse, error)
- func (client *ExpressRoutePortsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ExpressRoutePortsClientListByResourceGroupResponse]
- func (client *ExpressRoutePortsClient) NewListPager(options *ExpressRoutePortsClientListOptions) *runtime.Pager[ExpressRoutePortsClientListResponse]
- func (client *ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, ...) (ExpressRoutePortsClientUpdateTagsResponse, error)
- type ExpressRoutePortsClientBeginCreateOrUpdateOptions
- type ExpressRoutePortsClientBeginDeleteOptions
- type ExpressRoutePortsClientCreateOrUpdateResponse
- type ExpressRoutePortsClientDeleteResponse
- type ExpressRoutePortsClientGenerateLOAOptions
- type ExpressRoutePortsClientGenerateLOAResponse
- type ExpressRoutePortsClientGetOptions
- type ExpressRoutePortsClientGetResponse
- type ExpressRoutePortsClientListByResourceGroupOptions
- type ExpressRoutePortsClientListByResourceGroupResponse
- type ExpressRoutePortsClientListOptions
- type ExpressRoutePortsClientListResponse
- type ExpressRoutePortsClientUpdateTagsOptions
- type ExpressRoutePortsClientUpdateTagsResponse
- type ExpressRoutePortsEncapsulation
- type ExpressRoutePortsLocation
- type ExpressRoutePortsLocationBandwidths
- type ExpressRoutePortsLocationListResult
- type ExpressRoutePortsLocationPropertiesFormat
- type ExpressRoutePortsLocationsClient
- func (client *ExpressRoutePortsLocationsClient) Get(ctx context.Context, locationName string, ...) (ExpressRoutePortsLocationsClientGetResponse, error)
- func (client *ExpressRoutePortsLocationsClient) NewListPager(options *ExpressRoutePortsLocationsClientListOptions) *runtime.Pager[ExpressRoutePortsLocationsClientListResponse]
- type ExpressRoutePortsLocationsClientGetOptions
- type ExpressRoutePortsLocationsClientGetResponse
- type ExpressRoutePortsLocationsClientListOptions
- type ExpressRoutePortsLocationsClientListResponse
- type ExpressRouteServiceProvider
- type ExpressRouteServiceProviderBandwidthsOffered
- type ExpressRouteServiceProviderListResult
- type ExpressRouteServiceProviderPropertiesFormat
- type ExpressRouteServiceProvidersClient
- type ExpressRouteServiceProvidersClientListOptions
- type ExpressRouteServiceProvidersClientListResponse
- type ExtendedLocation
- type ExtendedLocationTypes
- type FilterItems
- type FirewallPoliciesClient
- func (client *FirewallPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (*runtime.Poller[FirewallPoliciesClientCreateOrUpdateResponse], error)
- func (client *FirewallPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (*runtime.Poller[FirewallPoliciesClientDeleteResponse], error)
- func (client *FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPoliciesClientGetResponse, error)
- func (client *FirewallPoliciesClient) NewListAllPager(options *FirewallPoliciesClientListAllOptions) *runtime.Pager[FirewallPoliciesClientListAllResponse]
- func (client *FirewallPoliciesClient) NewListPager(resourceGroupName string, options *FirewallPoliciesClientListOptions) *runtime.Pager[FirewallPoliciesClientListResponse]
- func (client *FirewallPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPoliciesClientUpdateTagsResponse, error)
- type FirewallPoliciesClientBeginCreateOrUpdateOptions
- type FirewallPoliciesClientBeginDeleteOptions
- type FirewallPoliciesClientCreateOrUpdateResponse
- type FirewallPoliciesClientDeleteResponse
- type FirewallPoliciesClientGetOptions
- type FirewallPoliciesClientGetResponse
- type FirewallPoliciesClientListAllOptions
- type FirewallPoliciesClientListAllResponse
- type FirewallPoliciesClientListOptions
- type FirewallPoliciesClientListResponse
- type FirewallPoliciesClientUpdateTagsOptions
- type FirewallPoliciesClientUpdateTagsResponse
- type FirewallPolicy
- type FirewallPolicyCertificateAuthority
- type FirewallPolicyFilterRuleCollection
- type FirewallPolicyFilterRuleCollectionAction
- type FirewallPolicyFilterRuleCollectionActionType
- type FirewallPolicyIDPSQuerySortOrder
- type FirewallPolicyIDPSSignatureDirection
- type FirewallPolicyIDPSSignatureMode
- type FirewallPolicyIDPSSignatureSeverity
- type FirewallPolicyIdpsSignaturesClient
- type FirewallPolicyIdpsSignaturesClientListOptions
- type FirewallPolicyIdpsSignaturesClientListResponse
- type FirewallPolicyIdpsSignaturesFilterValuesClient
- type FirewallPolicyIdpsSignaturesFilterValuesClientListOptions
- type FirewallPolicyIdpsSignaturesFilterValuesClientListResponse
- type FirewallPolicyIdpsSignaturesOverridesClient
- func (client *FirewallPolicyIdpsSignaturesOverridesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPolicyIdpsSignaturesOverridesClientGetResponse, error)
- func (client *FirewallPolicyIdpsSignaturesOverridesClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPolicyIdpsSignaturesOverridesClientListResponse, error)
- func (client *FirewallPolicyIdpsSignaturesOverridesClient) Patch(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPolicyIdpsSignaturesOverridesClientPatchResponse, error)
- func (client *FirewallPolicyIdpsSignaturesOverridesClient) Put(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPolicyIdpsSignaturesOverridesClientPutResponse, error)
- type FirewallPolicyIdpsSignaturesOverridesClientGetOptions
- type FirewallPolicyIdpsSignaturesOverridesClientGetResponse
- type FirewallPolicyIdpsSignaturesOverridesClientListOptions
- type FirewallPolicyIdpsSignaturesOverridesClientListResponse
- type FirewallPolicyIdpsSignaturesOverridesClientPatchOptions
- type FirewallPolicyIdpsSignaturesOverridesClientPatchResponse
- type FirewallPolicyIdpsSignaturesOverridesClientPutOptions
- type FirewallPolicyIdpsSignaturesOverridesClientPutResponse
- type FirewallPolicyInsights
- type FirewallPolicyIntrusionDetection
- type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
- type FirewallPolicyIntrusionDetectionConfiguration
- type FirewallPolicyIntrusionDetectionProtocol
- type FirewallPolicyIntrusionDetectionSignatureSpecification
- type FirewallPolicyIntrusionDetectionStateType
- type FirewallPolicyListResult
- type FirewallPolicyLogAnalyticsResources
- type FirewallPolicyLogAnalyticsWorkspace
- type FirewallPolicyNatRuleCollection
- type FirewallPolicyNatRuleCollectionAction
- type FirewallPolicyNatRuleCollectionActionType
- type FirewallPolicyPropertiesFormat
- type FirewallPolicyRule
- type FirewallPolicyRuleApplicationProtocol
- type FirewallPolicyRuleApplicationProtocolType
- type FirewallPolicyRuleClassification
- type FirewallPolicyRuleCollection
- type FirewallPolicyRuleCollectionClassification
- type FirewallPolicyRuleCollectionGroup
- type FirewallPolicyRuleCollectionGroupListResult
- type FirewallPolicyRuleCollectionGroupProperties
- type FirewallPolicyRuleCollectionGroupsClient
- func (client *FirewallPolicyRuleCollectionGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (...)
- func (client *FirewallPolicyRuleCollectionGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (*runtime.Poller[FirewallPolicyRuleCollectionGroupsClientDeleteResponse], error)
- func (client *FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ...) (FirewallPolicyRuleCollectionGroupsClientGetResponse, error)
- func (client *FirewallPolicyRuleCollectionGroupsClient) NewListPager(resourceGroupName string, firewallPolicyName string, ...) *runtime.Pager[FirewallPolicyRuleCollectionGroupsClientListResponse]
- type FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions
- type FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions
- type FirewallPolicyRuleCollectionGroupsClientCreateOrUpdateResponse
- type FirewallPolicyRuleCollectionGroupsClientDeleteResponse
- type FirewallPolicyRuleCollectionGroupsClientGetOptions
- type FirewallPolicyRuleCollectionGroupsClientGetResponse
- type FirewallPolicyRuleCollectionGroupsClientListOptions
- type FirewallPolicyRuleCollectionGroupsClientListResponse
- type FirewallPolicyRuleCollectionType
- type FirewallPolicyRuleNetworkProtocol
- type FirewallPolicyRuleType
- type FirewallPolicySKU
- type FirewallPolicySKUTier
- type FirewallPolicySNAT
- type FirewallPolicySQL
- type FirewallPolicyThreatIntelWhitelist
- type FirewallPolicyTransportSecurity
- type FlowLog
- type FlowLogFormatParameters
- type FlowLogFormatType
- type FlowLogInformation
- type FlowLogListResult
- type FlowLogProperties
- type FlowLogPropertiesFormat
- type FlowLogStatusParameters
- type FlowLogsClient
- func (client *FlowLogsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[FlowLogsClientCreateOrUpdateResponse], error)
- func (client *FlowLogsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[FlowLogsClientDeleteResponse], error)
- func (client *FlowLogsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (FlowLogsClientGetResponse, error)
- func (client *FlowLogsClient) NewListPager(resourceGroupName string, networkWatcherName string, ...) *runtime.Pager[FlowLogsClientListResponse]
- func (client *FlowLogsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (FlowLogsClientUpdateTagsResponse, error)
- type FlowLogsClientBeginCreateOrUpdateOptions
- type FlowLogsClientBeginDeleteOptions
- type FlowLogsClientCreateOrUpdateResponse
- type FlowLogsClientDeleteResponse
- type FlowLogsClientGetOptions
- type FlowLogsClientGetResponse
- type FlowLogsClientListOptions
- type FlowLogsClientListResponse
- type FlowLogsClientUpdateTagsOptions
- type FlowLogsClientUpdateTagsResponse
- type FrontendIPConfiguration
- type FrontendIPConfigurationPropertiesFormat
- type GatewayCustomBgpIPAddressIPConfiguration
- type GatewayLoadBalancerTunnelInterface
- type GatewayLoadBalancerTunnelInterfaceType
- type GatewayLoadBalancerTunnelProtocol
- type GatewayRoute
- type GatewayRouteListResult
- type GenerateExpressRoutePortsLOARequest
- type GenerateExpressRoutePortsLOAResult
- type GetVPNSitesConfigurationRequest
- type HTTPConfiguration
- type HTTPConfigurationMethod
- type HTTPHeader
- type HTTPMethod
- type HopLink
- type HopLinkProperties
- type HubBgpConnectionStatus
- type HubIPAddresses
- type HubIPConfiguration
- type HubIPConfigurationPropertiesFormat
- type HubPublicIPAddresses
- type HubRoute
- type HubRouteTable
- type HubRouteTableProperties
- type HubRouteTablesClient
- func (client *HubRouteTablesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[HubRouteTablesClientCreateOrUpdateResponse], error)
- func (client *HubRouteTablesClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[HubRouteTablesClientDeleteResponse], error)
- func (client *HubRouteTablesClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (HubRouteTablesClientGetResponse, error)
- func (client *HubRouteTablesClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[HubRouteTablesClientListResponse]
- type HubRouteTablesClientBeginCreateOrUpdateOptions
- type HubRouteTablesClientBeginDeleteOptions
- type HubRouteTablesClientCreateOrUpdateResponse
- type HubRouteTablesClientDeleteResponse
- type HubRouteTablesClientGetOptions
- type HubRouteTablesClientGetResponse
- type HubRouteTablesClientListOptions
- type HubRouteTablesClientListResponse
- type HubRoutingPreference
- type HubVirtualNetworkConnection
- type HubVirtualNetworkConnectionProperties
- type HubVirtualNetworkConnectionStatus
- type HubVirtualNetworkConnectionsClient
- func (client *HubVirtualNetworkConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[HubVirtualNetworkConnectionsClientCreateOrUpdateResponse], ...)
- func (client *HubVirtualNetworkConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[HubVirtualNetworkConnectionsClientDeleteResponse], error)
- func (client *HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (HubVirtualNetworkConnectionsClientGetResponse, error)
- func (client *HubVirtualNetworkConnectionsClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[HubVirtualNetworkConnectionsClientListResponse]
- type HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions
- type HubVirtualNetworkConnectionsClientBeginDeleteOptions
- type HubVirtualNetworkConnectionsClientCreateOrUpdateResponse
- type HubVirtualNetworkConnectionsClientDeleteResponse
- type HubVirtualNetworkConnectionsClientGetOptions
- type HubVirtualNetworkConnectionsClientGetResponse
- type HubVirtualNetworkConnectionsClientListOptions
- type HubVirtualNetworkConnectionsClientListResponse
- type IDPSQueryObject
- type IPAddressAvailabilityResult
- type IPAllocation
- type IPAllocationListResult
- type IPAllocationMethod
- type IPAllocationPropertiesFormat
- type IPAllocationType
- type IPAllocationsClient
- func (client *IPAllocationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ipAllocationName string, ...) (*runtime.Poller[IPAllocationsClientCreateOrUpdateResponse], error)
- func (client *IPAllocationsClient) BeginDelete(ctx context.Context, resourceGroupName string, ipAllocationName string, ...) (*runtime.Poller[IPAllocationsClientDeleteResponse], error)
- func (client *IPAllocationsClient) Get(ctx context.Context, resourceGroupName string, ipAllocationName string, ...) (IPAllocationsClientGetResponse, error)
- func (client *IPAllocationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[IPAllocationsClientListByResourceGroupResponse]
- func (client *IPAllocationsClient) NewListPager(options *IPAllocationsClientListOptions) *runtime.Pager[IPAllocationsClientListResponse]
- func (client *IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupName string, ipAllocationName string, ...) (IPAllocationsClientUpdateTagsResponse, error)
- type IPAllocationsClientBeginCreateOrUpdateOptions
- type IPAllocationsClientBeginDeleteOptions
- type IPAllocationsClientCreateOrUpdateResponse
- type IPAllocationsClientDeleteResponse
- type IPAllocationsClientGetOptions
- type IPAllocationsClientGetResponse
- type IPAllocationsClientListByResourceGroupOptions
- type IPAllocationsClientListByResourceGroupResponse
- type IPAllocationsClientListOptions
- type IPAllocationsClientListResponse
- type IPAllocationsClientUpdateTagsOptions
- type IPAllocationsClientUpdateTagsResponse
- type IPConfiguration
- type IPConfigurationBgpPeeringAddress
- type IPConfigurationProfile
- type IPConfigurationProfilePropertiesFormat
- type IPConfigurationPropertiesFormat
- type IPFlowProtocol
- type IPGroup
- type IPGroupListResult
- type IPGroupPropertiesFormat
- type IPGroupsClient
- func (client *IPGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ipGroupsName string, ...) (*runtime.Poller[IPGroupsClientCreateOrUpdateResponse], error)
- func (client *IPGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ipGroupsName string, ...) (*runtime.Poller[IPGroupsClientDeleteResponse], error)
- func (client *IPGroupsClient) Get(ctx context.Context, resourceGroupName string, ipGroupsName string, ...) (IPGroupsClientGetResponse, error)
- func (client *IPGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *IPGroupsClientListByResourceGroupOptions) *runtime.Pager[IPGroupsClientListByResourceGroupResponse]
- func (client *IPGroupsClient) NewListPager(options *IPGroupsClientListOptions) *runtime.Pager[IPGroupsClientListResponse]
- func (client *IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName string, ipGroupsName string, ...) (IPGroupsClientUpdateGroupsResponse, error)
- type IPGroupsClientBeginCreateOrUpdateOptions
- type IPGroupsClientBeginDeleteOptions
- type IPGroupsClientCreateOrUpdateResponse
- type IPGroupsClientDeleteResponse
- type IPGroupsClientGetOptions
- type IPGroupsClientGetResponse
- type IPGroupsClientListByResourceGroupOptions
- type IPGroupsClientListByResourceGroupResponse
- type IPGroupsClientListOptions
- type IPGroupsClientListResponse
- type IPGroupsClientUpdateGroupsOptions
- type IPGroupsClientUpdateGroupsResponse
- type IPSecEncryption
- type IPSecIntegrity
- type IPSecPolicy
- type IPTag
- type IPVersion
- type IPv6CircuitConnectionConfig
- type IPv6ExpressRouteCircuitPeeringConfig
- type IkeEncryption
- type IkeIntegrity
- type InboundNatPool
- type InboundNatPoolPropertiesFormat
- type InboundNatRule
- type InboundNatRuleListResult
- type InboundNatRulePortMapping
- type InboundNatRulePropertiesFormat
- type InboundNatRulesClient
- func (client *InboundNatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[InboundNatRulesClientCreateOrUpdateResponse], error)
- func (client *InboundNatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[InboundNatRulesClientDeleteResponse], error)
- func (client *InboundNatRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (InboundNatRulesClientGetResponse, error)
- func (client *InboundNatRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[InboundNatRulesClientListResponse]
- type InboundNatRulesClientBeginCreateOrUpdateOptions
- type InboundNatRulesClientBeginDeleteOptions
- type InboundNatRulesClientCreateOrUpdateResponse
- type InboundNatRulesClientDeleteResponse
- type InboundNatRulesClientGetOptions
- type InboundNatRulesClientGetResponse
- type InboundNatRulesClientListOptions
- type InboundNatRulesClientListResponse
- type InboundSecurityRule
- type InboundSecurityRuleClient
- type InboundSecurityRuleClientBeginCreateOrUpdateOptions
- type InboundSecurityRuleClientCreateOrUpdateResponse
- type InboundSecurityRuleProperties
- type InboundSecurityRules
- type InboundSecurityRulesProtocol
- type IntentPolicy
- type IntentPolicyConfiguration
- type Interface
- type InterfaceAssociation
- type InterfaceDNSSettings
- type InterfaceIPConfiguration
- type InterfaceIPConfigurationListResult
- type InterfaceIPConfigurationPrivateLinkConnectionProperties
- type InterfaceIPConfigurationPropertiesFormat
- type InterfaceIPConfigurationsClient
- func (client *InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (InterfaceIPConfigurationsClientGetResponse, error)
- func (client *InterfaceIPConfigurationsClient) NewListPager(resourceGroupName string, networkInterfaceName string, ...) *runtime.Pager[InterfaceIPConfigurationsClientListResponse]
- type InterfaceIPConfigurationsClientGetOptions
- type InterfaceIPConfigurationsClientGetResponse
- type InterfaceIPConfigurationsClientListOptions
- type InterfaceIPConfigurationsClientListResponse
- type InterfaceListResult
- type InterfaceLoadBalancerListResult
- type InterfaceLoadBalancersClient
- type InterfaceLoadBalancersClientListOptions
- type InterfaceLoadBalancersClientListResponse
- type InterfacePropertiesFormat
- type InterfaceTapConfiguration
- type InterfaceTapConfigurationListResult
- type InterfaceTapConfigurationPropertiesFormat
- type InterfaceTapConfigurationsClient
- func (client *InterfaceTapConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfaceTapConfigurationsClientCreateOrUpdateResponse], error)
- func (client *InterfaceTapConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfaceTapConfigurationsClientDeleteResponse], error)
- func (client *InterfaceTapConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (InterfaceTapConfigurationsClientGetResponse, error)
- func (client *InterfaceTapConfigurationsClient) NewListPager(resourceGroupName string, networkInterfaceName string, ...) *runtime.Pager[InterfaceTapConfigurationsClientListResponse]
- type InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions
- type InterfaceTapConfigurationsClientBeginDeleteOptions
- type InterfaceTapConfigurationsClientCreateOrUpdateResponse
- type InterfaceTapConfigurationsClientDeleteResponse
- type InterfaceTapConfigurationsClientGetOptions
- type InterfaceTapConfigurationsClientGetResponse
- type InterfaceTapConfigurationsClientListOptions
- type InterfaceTapConfigurationsClientListResponse
- type InterfacesClient
- func (client *InterfacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfacesClientCreateOrUpdateResponse], error)
- func (client *InterfacesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfacesClientDeleteResponse], error)
- func (client *InterfacesClient) BeginGetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfacesClientGetEffectiveRouteTableResponse], error)
- func (client *InterfacesClient) BeginListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (*runtime.Poller[InterfacesClientListEffectiveNetworkSecurityGroupsResponse], ...)
- func (client *InterfacesClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (InterfacesClientGetResponse, error)
- func (client *InterfacesClient) GetCloudServiceNetworkInterface(ctx context.Context, resourceGroupName string, cloudServiceName string, ...) (InterfacesClientGetCloudServiceNetworkInterfaceResponse, error)
- func (client *InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, ...) (InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse, error)
- func (client *InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, ...) (InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse, error)
- func (client *InterfacesClient) NewListAllPager(options *InterfacesClientListAllOptions) *runtime.Pager[InterfacesClientListAllResponse]
- func (client *InterfacesClient) NewListCloudServiceNetworkInterfacesPager(resourceGroupName string, cloudServiceName string, ...) *runtime.Pager[InterfacesClientListCloudServiceNetworkInterfacesResponse]
- func (client *InterfacesClient) NewListCloudServiceRoleInstanceNetworkInterfacesPager(resourceGroupName string, cloudServiceName string, roleInstanceName string, ...) ...
- func (client *InterfacesClient) NewListPager(resourceGroupName string, options *InterfacesClientListOptions) *runtime.Pager[InterfacesClientListResponse]
- func (client *InterfacesClient) NewListVirtualMachineScaleSetIPConfigurationsPager(resourceGroupName string, virtualMachineScaleSetName string, ...) ...
- func (client *InterfacesClient) NewListVirtualMachineScaleSetNetworkInterfacesPager(resourceGroupName string, virtualMachineScaleSetName string, ...) ...
- func (client *InterfacesClient) NewListVirtualMachineScaleSetVMNetworkInterfacesPager(resourceGroupName string, virtualMachineScaleSetName string, ...) ...
- func (client *InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, ...) (InterfacesClientUpdateTagsResponse, error)
- type InterfacesClientBeginCreateOrUpdateOptions
- type InterfacesClientBeginDeleteOptions
- type InterfacesClientBeginGetEffectiveRouteTableOptions
- type InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions
- type InterfacesClientCreateOrUpdateResponse
- type InterfacesClientDeleteResponse
- type InterfacesClientGetCloudServiceNetworkInterfaceOptions
- type InterfacesClientGetCloudServiceNetworkInterfaceResponse
- type InterfacesClientGetEffectiveRouteTableResponse
- type InterfacesClientGetOptions
- type InterfacesClientGetResponse
- type InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions
- type InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse
- type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions
- type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse
- type InterfacesClientListAllOptions
- type InterfacesClientListAllResponse
- type InterfacesClientListCloudServiceNetworkInterfacesOptions
- type InterfacesClientListCloudServiceNetworkInterfacesResponse
- type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions
- type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesResponse
- type InterfacesClientListEffectiveNetworkSecurityGroupsResponse
- type InterfacesClientListOptions
- type InterfacesClientListResponse
- type InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions
- type InterfacesClientListVirtualMachineScaleSetIPConfigurationsResponse
- type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions
- type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesResponse
- type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions
- type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesResponse
- type InterfacesClientUpdateTagsOptions
- type InterfacesClientUpdateTagsResponse
- type IssueType
- type ListHubRouteTablesResult
- type ListHubVirtualNetworkConnectionsResult
- type ListP2SVPNGatewaysResult
- type ListRoutingIntentResult
- type ListVPNConnectionsResult
- type ListVPNGatewayNatRulesResult
- type ListVPNGatewaysResult
- type ListVPNServerConfigurationPolicyGroupsResult
- type ListVPNServerConfigurationsResult
- type ListVPNSiteLinkConnectionsResult
- type ListVPNSiteLinksResult
- type ListVPNSitesResult
- type ListVirtualHubBgpConnectionResults
- type ListVirtualHubIPConfigurationResults
- type ListVirtualHubRouteTableV2SResult
- type ListVirtualHubsResult
- type ListVirtualNetworkGatewayNatRulesResult
- type ListVirtualWANsResult
- type LoadBalancer
- type LoadBalancerBackendAddress
- type LoadBalancerBackendAddressAdminState
- type LoadBalancerBackendAddressPoolListResult
- type LoadBalancerBackendAddressPoolsClient
- func (client *LoadBalancerBackendAddressPoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse], ...)
- func (client *LoadBalancerBackendAddressPoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancerBackendAddressPoolsClientDeleteResponse], error)
- func (client *LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancerBackendAddressPoolsClientGetResponse, error)
- func (client *LoadBalancerBackendAddressPoolsClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[LoadBalancerBackendAddressPoolsClientListResponse]
- type LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions
- type LoadBalancerBackendAddressPoolsClientBeginDeleteOptions
- type LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse
- type LoadBalancerBackendAddressPoolsClientDeleteResponse
- type LoadBalancerBackendAddressPoolsClientGetOptions
- type LoadBalancerBackendAddressPoolsClientGetResponse
- type LoadBalancerBackendAddressPoolsClientListOptions
- type LoadBalancerBackendAddressPoolsClientListResponse
- type LoadBalancerBackendAddressPropertiesFormat
- type LoadBalancerFrontendIPConfigurationListResult
- type LoadBalancerFrontendIPConfigurationsClient
- func (client *LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancerFrontendIPConfigurationsClientGetResponse, error)
- func (client *LoadBalancerFrontendIPConfigurationsClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[LoadBalancerFrontendIPConfigurationsClientListResponse]
- type LoadBalancerFrontendIPConfigurationsClientGetOptions
- type LoadBalancerFrontendIPConfigurationsClientGetResponse
- type LoadBalancerFrontendIPConfigurationsClientListOptions
- type LoadBalancerFrontendIPConfigurationsClientListResponse
- type LoadBalancerListResult
- type LoadBalancerLoadBalancingRuleListResult
- type LoadBalancerLoadBalancingRulesClient
- func (client *LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancerLoadBalancingRulesClientGetResponse, error)
- func (client *LoadBalancerLoadBalancingRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[LoadBalancerLoadBalancingRulesClientListResponse]
- type LoadBalancerLoadBalancingRulesClientGetOptions
- type LoadBalancerLoadBalancingRulesClientGetResponse
- type LoadBalancerLoadBalancingRulesClientListOptions
- type LoadBalancerLoadBalancingRulesClientListResponse
- type LoadBalancerNetworkInterfacesClient
- type LoadBalancerNetworkInterfacesClientListOptions
- type LoadBalancerNetworkInterfacesClientListResponse
- type LoadBalancerOutboundRuleListResult
- type LoadBalancerOutboundRuleProtocol
- type LoadBalancerOutboundRulesClient
- func (client *LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancerOutboundRulesClientGetResponse, error)
- func (client *LoadBalancerOutboundRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[LoadBalancerOutboundRulesClientListResponse]
- type LoadBalancerOutboundRulesClientGetOptions
- type LoadBalancerOutboundRulesClientGetResponse
- type LoadBalancerOutboundRulesClientListOptions
- type LoadBalancerOutboundRulesClientListResponse
- type LoadBalancerProbeListResult
- type LoadBalancerProbesClient
- func (client *LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancerProbesClientGetResponse, error)
- func (client *LoadBalancerProbesClient) NewListPager(resourceGroupName string, loadBalancerName string, ...) *runtime.Pager[LoadBalancerProbesClientListResponse]
- type LoadBalancerProbesClientGetOptions
- type LoadBalancerProbesClientGetResponse
- type LoadBalancerProbesClientListOptions
- type LoadBalancerProbesClientListResponse
- type LoadBalancerPropertiesFormat
- type LoadBalancerSKU
- type LoadBalancerSKUName
- type LoadBalancerSKUTier
- type LoadBalancerVipSwapRequest
- type LoadBalancerVipSwapRequestFrontendIPConfiguration
- type LoadBalancerVipSwapRequestFrontendIPConfigurationProperties
- type LoadBalancersClient
- func (client *LoadBalancersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancersClientCreateOrUpdateResponse], error)
- func (client *LoadBalancersClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancersClientDeleteResponse], error)
- func (client *LoadBalancersClient) BeginListInboundNatRulePortMappings(ctx context.Context, groupName string, loadBalancerName string, ...) (*runtime.Poller[LoadBalancersClientListInboundNatRulePortMappingsResponse], ...)
- func (client *LoadBalancersClient) BeginSwapPublicIPAddresses(ctx context.Context, location string, parameters LoadBalancerVipSwapRequest, ...) (*runtime.Poller[LoadBalancersClientSwapPublicIPAddressesResponse], error)
- func (client *LoadBalancersClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancersClientGetResponse, error)
- func (client *LoadBalancersClient) NewListAllPager(options *LoadBalancersClientListAllOptions) *runtime.Pager[LoadBalancersClientListAllResponse]
- func (client *LoadBalancersClient) NewListPager(resourceGroupName string, options *LoadBalancersClientListOptions) *runtime.Pager[LoadBalancersClientListResponse]
- func (client *LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, ...) (LoadBalancersClientUpdateTagsResponse, error)
- type LoadBalancersClientBeginCreateOrUpdateOptions
- type LoadBalancersClientBeginDeleteOptions
- type LoadBalancersClientBeginListInboundNatRulePortMappingsOptions
- type LoadBalancersClientBeginSwapPublicIPAddressesOptions
- type LoadBalancersClientCreateOrUpdateResponse
- type LoadBalancersClientDeleteResponse
- type LoadBalancersClientGetOptions
- type LoadBalancersClientGetResponse
- type LoadBalancersClientListAllOptions
- type LoadBalancersClientListAllResponse
- type LoadBalancersClientListInboundNatRulePortMappingsResponse
- type LoadBalancersClientListOptions
- type LoadBalancersClientListResponse
- type LoadBalancersClientSwapPublicIPAddressesResponse
- type LoadBalancersClientUpdateTagsOptions
- type LoadBalancersClientUpdateTagsResponse
- type LoadBalancingRule
- type LoadBalancingRulePropertiesFormat
- type LoadDistribution
- type LocalNetworkGateway
- type LocalNetworkGatewayListResult
- type LocalNetworkGatewayPropertiesFormat
- type LocalNetworkGatewaysClient
- func (client *LocalNetworkGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, ...) (*runtime.Poller[LocalNetworkGatewaysClientCreateOrUpdateResponse], error)
- func (client *LocalNetworkGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, ...) (*runtime.Poller[LocalNetworkGatewaysClientDeleteResponse], error)
- func (client *LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, ...) (LocalNetworkGatewaysClientGetResponse, error)
- func (client *LocalNetworkGatewaysClient) NewListPager(resourceGroupName string, options *LocalNetworkGatewaysClientListOptions) *runtime.Pager[LocalNetworkGatewaysClientListResponse]
- func (client *LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, ...) (LocalNetworkGatewaysClientUpdateTagsResponse, error)
- type LocalNetworkGatewaysClientBeginCreateOrUpdateOptions
- type LocalNetworkGatewaysClientBeginDeleteOptions
- type LocalNetworkGatewaysClientCreateOrUpdateResponse
- type LocalNetworkGatewaysClientDeleteResponse
- type LocalNetworkGatewaysClientGetOptions
- type LocalNetworkGatewaysClientGetResponse
- type LocalNetworkGatewaysClientListOptions
- type LocalNetworkGatewaysClientListResponse
- type LocalNetworkGatewaysClientUpdateTagsOptions
- type LocalNetworkGatewaysClientUpdateTagsResponse
- type LogSpecification
- type ManagedRuleEnabledState
- type ManagedRuleGroupOverride
- type ManagedRuleOverride
- type ManagedRuleSet
- type ManagedRulesDefinition
- type ManagedServiceIdentity
- type ManagementClient
- func (client *ManagementClient) BeginDeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (*runtime.Poller[ManagementClientDeleteBastionShareableLinkResponse], error)
- func (client *ManagementClient) BeginGeneratevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (...)
- func (client *ManagementClient) BeginGetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (*runtime.Poller[*runtime.Pager[ManagementClientGetActiveSessionsResponse]], ...)
- func (client *ManagementClient) BeginPutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, ...) (...)
- func (client *ManagementClient) CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string, ...) (ManagementClientCheckDNSNameAvailabilityResponse, error)
- func (client *ManagementClient) NewDisconnectActiveSessionsPager(resourceGroupName string, bastionHostName string, sessionIDs SessionIDs, ...) *runtime.Pager[ManagementClientDisconnectActiveSessionsResponse]
- func (client *ManagementClient) NewGetBastionShareableLinkPager(resourceGroupName string, bastionHostName string, ...) *runtime.Pager[ManagementClientGetBastionShareableLinkResponse]
- func (client *ManagementClient) SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (ManagementClientSupportedSecurityProvidersResponse, error)
- type ManagementClientBeginDeleteBastionShareableLinkOptions
- type ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions
- type ManagementClientBeginGetActiveSessionsOptions
- type ManagementClientBeginPutBastionShareableLinkOptions
- type ManagementClientCheckDNSNameAvailabilityOptions
- type ManagementClientCheckDNSNameAvailabilityResponse
- type ManagementClientDeleteBastionShareableLinkResponse
- type ManagementClientDisconnectActiveSessionsOptions
- type ManagementClientDisconnectActiveSessionsResponse
- type ManagementClientGeneratevirtualwanvpnserverconfigurationvpnprofileResponse
- type ManagementClientGetActiveSessionsResponse
- type ManagementClientGetBastionShareableLinkOptions
- type ManagementClientGetBastionShareableLinkResponse
- type ManagementClientPutBastionShareableLinkResponse
- type ManagementClientSupportedSecurityProvidersOptions
- type ManagementClientSupportedSecurityProvidersResponse
- type MatchCondition
- type MatchVariable
- type MatchedRule
- type MetricSpecification
- type NatGateway
- type NatGatewayListResult
- type NatGatewayPropertiesFormat
- type NatGatewaySKU
- type NatGatewaySKUName
- type NatGatewaysClient
- func (client *NatGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, natGatewayName string, ...) (*runtime.Poller[NatGatewaysClientCreateOrUpdateResponse], error)
- func (client *NatGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, natGatewayName string, ...) (*runtime.Poller[NatGatewaysClientDeleteResponse], error)
- func (client *NatGatewaysClient) Get(ctx context.Context, resourceGroupName string, natGatewayName string, ...) (NatGatewaysClientGetResponse, error)
- func (client *NatGatewaysClient) NewListAllPager(options *NatGatewaysClientListAllOptions) *runtime.Pager[NatGatewaysClientListAllResponse]
- func (client *NatGatewaysClient) NewListPager(resourceGroupName string, options *NatGatewaysClientListOptions) *runtime.Pager[NatGatewaysClientListResponse]
- func (client *NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, ...) (NatGatewaysClientUpdateTagsResponse, error)
- type NatGatewaysClientBeginCreateOrUpdateOptions
- type NatGatewaysClientBeginDeleteOptions
- type NatGatewaysClientCreateOrUpdateResponse
- type NatGatewaysClientDeleteResponse
- type NatGatewaysClientGetOptions
- type NatGatewaysClientGetResponse
- type NatGatewaysClientListAllOptions
- type NatGatewaysClientListAllResponse
- type NatGatewaysClientListOptions
- type NatGatewaysClientListResponse
- type NatGatewaysClientUpdateTagsOptions
- type NatGatewaysClientUpdateTagsResponse
- type NatRule
- type NatRulePortMapping
- type NatRulesClient
- func (client *NatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[NatRulesClientCreateOrUpdateResponse], error)
- func (client *NatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[NatRulesClientDeleteResponse], error)
- func (client *NatRulesClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, ...) (NatRulesClientGetResponse, error)
- func (client *NatRulesClient) NewListByVPNGatewayPager(resourceGroupName string, gatewayName string, ...) *runtime.Pager[NatRulesClientListByVPNGatewayResponse]
- type NatRulesClientBeginCreateOrUpdateOptions
- type NatRulesClientBeginDeleteOptions
- type NatRulesClientCreateOrUpdateResponse
- type NatRulesClientDeleteResponse
- type NatRulesClientGetOptions
- type NatRulesClientGetResponse
- type NatRulesClientListByVPNGatewayOptions
- type NatRulesClientListByVPNGatewayResponse
- type NetworkInterfaceAuxiliaryMode
- type NetworkInterfaceMigrationPhase
- type NetworkInterfaceNicType
- type NetworkOperationStatus
- type NextHopParameters
- type NextHopResult
- type NextHopType
- type O365BreakOutCategoryPolicies
- type O365PolicyProperties
- type Office365PolicyProperties
- type OfficeTrafficCategory
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationPropertiesFormat
- type OperationPropertiesFormatServiceSpecification
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OrderBy
- type Origin
- type OutboundRule
- type OutboundRulePropertiesFormat
- type OutputType
- type OwaspCrsExclusionEntry
- type OwaspCrsExclusionEntryMatchVariable
- type OwaspCrsExclusionEntrySelectorMatchOperator
- type P2SConnectionConfiguration
- type P2SConnectionConfigurationProperties
- type P2SVPNConnectionHealth
- type P2SVPNConnectionHealthRequest
- type P2SVPNConnectionRequest
- type P2SVPNGateway
- type P2SVPNGatewayProperties
- type P2SVPNGatewaysClient
- func (client *P2SVPNGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientCreateOrUpdateResponse], error)
- func (client *P2SVPNGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientDeleteResponse], error)
- func (client *P2SVPNGatewaysClient) BeginDisconnectP2SVPNConnections(ctx context.Context, resourceGroupName string, p2SVPNGatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse], ...)
- func (client *P2SVPNGatewaysClient) BeginGenerateVPNProfile(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientGenerateVPNProfileResponse], error)
- func (client *P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse], error)
- func (client *P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse], ...)
- func (client *P2SVPNGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientResetResponse], error)
- func (client *P2SVPNGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[P2SVPNGatewaysClientUpdateTagsResponse], error)
- func (client *P2SVPNGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, ...) (P2SVPNGatewaysClientGetResponse, error)
- func (client *P2SVPNGatewaysClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[P2SVPNGatewaysClientListByResourceGroupResponse]
- func (client *P2SVPNGatewaysClient) NewListPager(options *P2SVPNGatewaysClientListOptions) *runtime.Pager[P2SVPNGatewaysClientListResponse]
- type P2SVPNGatewaysClientBeginCreateOrUpdateOptions
- type P2SVPNGatewaysClientBeginDeleteOptions
- type P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions
- type P2SVPNGatewaysClientBeginGenerateVPNProfileOptions
- type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions
- type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions
- type P2SVPNGatewaysClientBeginResetOptions
- type P2SVPNGatewaysClientBeginUpdateTagsOptions
- type P2SVPNGatewaysClientCreateOrUpdateResponse
- type P2SVPNGatewaysClientDeleteResponse
- type P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse
- type P2SVPNGatewaysClientGenerateVPNProfileResponse
- type P2SVPNGatewaysClientGetOptions
- type P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse
- type P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse
- type P2SVPNGatewaysClientGetResponse
- type P2SVPNGatewaysClientListByResourceGroupOptions
- type P2SVPNGatewaysClientListByResourceGroupResponse
- type P2SVPNGatewaysClientListOptions
- type P2SVPNGatewaysClientListResponse
- type P2SVPNGatewaysClientResetResponse
- type P2SVPNGatewaysClientUpdateTagsResponse
- type P2SVPNProfileParameters
- type PacketCapture
- type PacketCaptureFilter
- type PacketCaptureListResult
- type PacketCaptureParameters
- type PacketCaptureQueryStatusResult
- type PacketCaptureResult
- type PacketCaptureResultProperties
- type PacketCaptureStorageLocation
- type PacketCapturesClient
- func (client *PacketCapturesClient) BeginCreate(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[PacketCapturesClientCreateResponse], error)
- func (client *PacketCapturesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[PacketCapturesClientDeleteResponse], error)
- func (client *PacketCapturesClient) BeginGetStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[PacketCapturesClientGetStatusResponse], error)
- func (client *PacketCapturesClient) BeginStop(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[PacketCapturesClientStopResponse], error)
- func (client *PacketCapturesClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (PacketCapturesClientGetResponse, error)
- func (client *PacketCapturesClient) NewListPager(resourceGroupName string, networkWatcherName string, ...) *runtime.Pager[PacketCapturesClientListResponse]
- type PacketCapturesClientBeginCreateOptions
- type PacketCapturesClientBeginDeleteOptions
- type PacketCapturesClientBeginGetStatusOptions
- type PacketCapturesClientBeginStopOptions
- type PacketCapturesClientCreateResponse
- type PacketCapturesClientDeleteResponse
- type PacketCapturesClientGetOptions
- type PacketCapturesClientGetResponse
- type PacketCapturesClientGetStatusResponse
- type PacketCapturesClientListOptions
- type PacketCapturesClientListResponse
- type PacketCapturesClientStopResponse
- type PatchRouteFilter
- type PatchRouteFilterRule
- type PcError
- type PcProtocol
- type PcStatus
- type PeerExpressRouteCircuitConnection
- type PeerExpressRouteCircuitConnectionListResult
- type PeerExpressRouteCircuitConnectionPropertiesFormat
- type PeerExpressRouteCircuitConnectionsClient
- func (client *PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, ...) (PeerExpressRouteCircuitConnectionsClientGetResponse, error)
- func (client *PeerExpressRouteCircuitConnectionsClient) NewListPager(resourceGroupName string, circuitName string, peeringName string, ...) *runtime.Pager[PeerExpressRouteCircuitConnectionsClientListResponse]
- type PeerExpressRouteCircuitConnectionsClientGetOptions
- type PeerExpressRouteCircuitConnectionsClientGetResponse
- type PeerExpressRouteCircuitConnectionsClientListOptions
- type PeerExpressRouteCircuitConnectionsClientListResponse
- type PeerRoute
- type PeerRouteList
- type PfsGroup
- type PolicySettings
- type PreferredIPVersion
- type PreferredRoutingGateway
- type PrepareNetworkPoliciesRequest
- type PrivateDNSZoneConfig
- type PrivateDNSZoneGroup
- type PrivateDNSZoneGroupListResult
- type PrivateDNSZoneGroupPropertiesFormat
- type PrivateDNSZoneGroupsClient
- func (client *PrivateDNSZoneGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (*runtime.Poller[PrivateDNSZoneGroupsClientCreateOrUpdateResponse], error)
- func (client *PrivateDNSZoneGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (*runtime.Poller[PrivateDNSZoneGroupsClientDeleteResponse], error)
- func (client *PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (PrivateDNSZoneGroupsClientGetResponse, error)
- func (client *PrivateDNSZoneGroupsClient) NewListPager(privateEndpointName string, resourceGroupName string, ...) *runtime.Pager[PrivateDNSZoneGroupsClientListResponse]
- type PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions
- type PrivateDNSZoneGroupsClientBeginDeleteOptions
- type PrivateDNSZoneGroupsClientCreateOrUpdateResponse
- type PrivateDNSZoneGroupsClientDeleteResponse
- type PrivateDNSZoneGroupsClientGetOptions
- type PrivateDNSZoneGroupsClientGetResponse
- type PrivateDNSZoneGroupsClientListOptions
- type PrivateDNSZoneGroupsClientListResponse
- type PrivateDNSZonePropertiesFormat
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointIPConfiguration
- type PrivateEndpointIPConfigurationProperties
- type PrivateEndpointListResult
- type PrivateEndpointProperties
- type PrivateEndpointsClient
- func (client *PrivateEndpointsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (*runtime.Poller[PrivateEndpointsClientCreateOrUpdateResponse], error)
- func (client *PrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (*runtime.Poller[PrivateEndpointsClientDeleteResponse], error)
- func (client *PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, ...) (PrivateEndpointsClientGetResponse, error)
- func (client *PrivateEndpointsClient) NewListBySubscriptionPager(options *PrivateEndpointsClientListBySubscriptionOptions) *runtime.Pager[PrivateEndpointsClientListBySubscriptionResponse]
- func (client *PrivateEndpointsClient) NewListPager(resourceGroupName string, options *PrivateEndpointsClientListOptions) *runtime.Pager[PrivateEndpointsClientListResponse]
- type PrivateEndpointsClientBeginCreateOrUpdateOptions
- type PrivateEndpointsClientBeginDeleteOptions
- type PrivateEndpointsClientCreateOrUpdateResponse
- type PrivateEndpointsClientDeleteResponse
- type PrivateEndpointsClientGetOptions
- type PrivateEndpointsClientGetResponse
- type PrivateEndpointsClientListBySubscriptionOptions
- type PrivateEndpointsClientListBySubscriptionResponse
- type PrivateEndpointsClientListOptions
- type PrivateEndpointsClientListResponse
- type PrivateLinkService
- type PrivateLinkServiceConnection
- type PrivateLinkServiceConnectionProperties
- type PrivateLinkServiceConnectionState
- type PrivateLinkServiceIPConfiguration
- type PrivateLinkServiceIPConfigurationProperties
- type PrivateLinkServiceListResult
- type PrivateLinkServiceProperties
- type PrivateLinkServicePropertiesAutoApproval
- type PrivateLinkServicePropertiesVisibility
- type PrivateLinkServiceVisibility
- type PrivateLinkServicesClient
- func (client *PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibility(ctx context.Context, location string, ...) (...)
- func (client *PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, location string, resourceGroupName string, ...) (...)
- func (client *PrivateLinkServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[PrivateLinkServicesClientCreateOrUpdateResponse], error)
- func (client *PrivateLinkServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, ...) (*runtime.Poller[PrivateLinkServicesClientDeleteResponse], error)
- func (client *PrivateLinkServicesClient) BeginDeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, ...) (...)
- func (client *PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, ...) (PrivateLinkServicesClientGetResponse, error)
- func (client *PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, ...) (PrivateLinkServicesClientGetPrivateEndpointConnectionResponse, error)
- func (client *PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesByResourceGroupPager(location string, resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesPager(location string, ...) ...
- func (client *PrivateLinkServicesClient) NewListBySubscriptionPager(options *PrivateLinkServicesClientListBySubscriptionOptions) *runtime.Pager[PrivateLinkServicesClientListBySubscriptionResponse]
- func (client *PrivateLinkServicesClient) NewListPager(resourceGroupName string, options *PrivateLinkServicesClientListOptions) *runtime.Pager[PrivateLinkServicesClientListResponse]
- func (client *PrivateLinkServicesClient) NewListPrivateEndpointConnectionsPager(resourceGroupName string, serviceName string, ...) ...
- func (client *PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, ...) (PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse, error)
- type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions
- type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions
- type PrivateLinkServicesClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesClientBeginDeleteOptions
- type PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions
- type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityByResourceGroupResponse
- type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityResponse
- type PrivateLinkServicesClientCreateOrUpdateResponse
- type PrivateLinkServicesClientDeletePrivateEndpointConnectionResponse
- type PrivateLinkServicesClientDeleteResponse
- type PrivateLinkServicesClientGetOptions
- type PrivateLinkServicesClientGetPrivateEndpointConnectionOptions
- type PrivateLinkServicesClientGetPrivateEndpointConnectionResponse
- type PrivateLinkServicesClientGetResponse
- type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions
- type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupResponse
- type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions
- type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesResponse
- type PrivateLinkServicesClientListBySubscriptionOptions
- type PrivateLinkServicesClientListBySubscriptionResponse
- type PrivateLinkServicesClientListOptions
- type PrivateLinkServicesClientListPrivateEndpointConnectionsOptions
- type PrivateLinkServicesClientListPrivateEndpointConnectionsResponse
- type PrivateLinkServicesClientListResponse
- type PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions
- type PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse
- type Probe
- type ProbePropertiesFormat
- type ProbeProtocol
- type ProcessorArchitecture
- type Profile
- type ProfileListResult
- type ProfilePropertiesFormat
- type ProfilesClient
- func (client *ProfilesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkProfileName string, ...) (*runtime.Poller[ProfilesClientDeleteResponse], error)
- func (client *ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkProfileName string, ...) (ProfilesClientCreateOrUpdateResponse, error)
- func (client *ProfilesClient) Get(ctx context.Context, resourceGroupName string, networkProfileName string, ...) (ProfilesClientGetResponse, error)
- func (client *ProfilesClient) NewListAllPager(options *ProfilesClientListAllOptions) *runtime.Pager[ProfilesClientListAllResponse]
- func (client *ProfilesClient) NewListPager(resourceGroupName string, options *ProfilesClientListOptions) *runtime.Pager[ProfilesClientListResponse]
- func (client *ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, ...) (ProfilesClientUpdateTagsResponse, error)
- type ProfilesClientBeginDeleteOptions
- type ProfilesClientCreateOrUpdateOptions
- type ProfilesClientCreateOrUpdateResponse
- type ProfilesClientDeleteResponse
- type ProfilesClientGetOptions
- type ProfilesClientGetResponse
- type ProfilesClientListAllOptions
- type ProfilesClientListAllResponse
- type ProfilesClientListOptions
- type ProfilesClientListResponse
- type ProfilesClientUpdateTagsOptions
- type ProfilesClientUpdateTagsResponse
- type PropagatedRouteTable
- type Protocol
- type ProtocolConfiguration
- type ProtocolCustomSettingsFormat
- type ProtocolType
- type ProvisioningState
- type PublicIPAddress
- type PublicIPAddressDNSSettings
- type PublicIPAddressListResult
- type PublicIPAddressMigrationPhase
- type PublicIPAddressPropertiesFormat
- type PublicIPAddressSKU
- type PublicIPAddressSKUName
- type PublicIPAddressSKUTier
- type PublicIPAddressesClient
- func (client *PublicIPAddressesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPAddressName string, ...) (*runtime.Poller[PublicIPAddressesClientCreateOrUpdateResponse], error)
- func (client *PublicIPAddressesClient) BeginDelete(ctx context.Context, resourceGroupName string, publicIPAddressName string, ...) (*runtime.Poller[PublicIPAddressesClientDeleteResponse], error)
- func (client *PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, ...) (PublicIPAddressesClientGetResponse, error)
- func (client *PublicIPAddressesClient) GetCloudServicePublicIPAddress(ctx context.Context, resourceGroupName string, cloudServiceName string, ...) (PublicIPAddressesClientGetCloudServicePublicIPAddressResponse, error)
- func (client *PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, ...) (PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse, error)
- func (client *PublicIPAddressesClient) NewListAllPager(options *PublicIPAddressesClientListAllOptions) *runtime.Pager[PublicIPAddressesClientListAllResponse]
- func (client *PublicIPAddressesClient) NewListCloudServicePublicIPAddressesPager(resourceGroupName string, cloudServiceName string, ...) ...
- func (client *PublicIPAddressesClient) NewListCloudServiceRoleInstancePublicIPAddressesPager(resourceGroupName string, cloudServiceName string, roleInstanceName string, ...) ...
- func (client *PublicIPAddressesClient) NewListPager(resourceGroupName string, options *PublicIPAddressesClientListOptions) *runtime.Pager[PublicIPAddressesClientListResponse]
- func (client *PublicIPAddressesClient) NewListVirtualMachineScaleSetPublicIPAddressesPager(resourceGroupName string, virtualMachineScaleSetName string, ...) ...
- func (client *PublicIPAddressesClient) NewListVirtualMachineScaleSetVMPublicIPAddressesPager(resourceGroupName string, virtualMachineScaleSetName string, ...) ...
- func (client *PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, ...) (PublicIPAddressesClientUpdateTagsResponse, error)
- type PublicIPAddressesClientBeginCreateOrUpdateOptions
- type PublicIPAddressesClientBeginDeleteOptions
- type PublicIPAddressesClientCreateOrUpdateResponse
- type PublicIPAddressesClientDeleteResponse
- type PublicIPAddressesClientGetCloudServicePublicIPAddressOptions
- type PublicIPAddressesClientGetCloudServicePublicIPAddressResponse
- type PublicIPAddressesClientGetOptions
- type PublicIPAddressesClientGetResponse
- type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions
- type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse
- type PublicIPAddressesClientListAllOptions
- type PublicIPAddressesClientListAllResponse
- type PublicIPAddressesClientListCloudServicePublicIPAddressesOptions
- type PublicIPAddressesClientListCloudServicePublicIPAddressesResponse
- type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions
- type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesResponse
- type PublicIPAddressesClientListOptions
- type PublicIPAddressesClientListResponse
- type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions
- type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesResponse
- type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions
- type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesResponse
- type PublicIPAddressesClientUpdateTagsOptions
- type PublicIPAddressesClientUpdateTagsResponse
- type PublicIPPrefix
- type PublicIPPrefixListResult
- type PublicIPPrefixPropertiesFormat
- type PublicIPPrefixSKU
- type PublicIPPrefixSKUName
- type PublicIPPrefixSKUTier
- type PublicIPPrefixesClient
- func (client *PublicIPPrefixesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPPrefixName string, ...) (*runtime.Poller[PublicIPPrefixesClientCreateOrUpdateResponse], error)
- func (client *PublicIPPrefixesClient) BeginDelete(ctx context.Context, resourceGroupName string, publicIPPrefixName string, ...) (*runtime.Poller[PublicIPPrefixesClientDeleteResponse], error)
- func (client *PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, ...) (PublicIPPrefixesClientGetResponse, error)
- func (client *PublicIPPrefixesClient) NewListAllPager(options *PublicIPPrefixesClientListAllOptions) *runtime.Pager[PublicIPPrefixesClientListAllResponse]
- func (client *PublicIPPrefixesClient) NewListPager(resourceGroupName string, options *PublicIPPrefixesClientListOptions) *runtime.Pager[PublicIPPrefixesClientListResponse]
- func (client *PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, ...) (PublicIPPrefixesClientUpdateTagsResponse, error)
- type PublicIPPrefixesClientBeginCreateOrUpdateOptions
- type PublicIPPrefixesClientBeginDeleteOptions
- type PublicIPPrefixesClientCreateOrUpdateResponse
- type PublicIPPrefixesClientDeleteResponse
- type PublicIPPrefixesClientGetOptions
- type PublicIPPrefixesClientGetResponse
- type PublicIPPrefixesClientListAllOptions
- type PublicIPPrefixesClientListAllResponse
- type PublicIPPrefixesClientListOptions
- type PublicIPPrefixesClientListResponse
- type PublicIPPrefixesClientUpdateTagsOptions
- type PublicIPPrefixesClientUpdateTagsResponse
- type QosDefinition
- type QosIPRange
- type QosPortRange
- type QueryInboundNatRulePortMappingRequest
- type QueryResults
- type QueryTroubleshootingParameters
- type RadiusServer
- type RecordSet
- type ReferencedPublicIPAddress
- type Resource
- type ResourceIdentityType
- type ResourceNavigationLink
- type ResourceNavigationLinkFormat
- type ResourceNavigationLinksClient
- type ResourceNavigationLinksClientListOptions
- type ResourceNavigationLinksClientListResponse
- type ResourceNavigationLinksListResult
- type ResourceSet
- type RetentionPolicyParameters
- type Route
- type RouteFilter
- type RouteFilterListResult
- type RouteFilterPropertiesFormat
- type RouteFilterRule
- type RouteFilterRuleListResult
- type RouteFilterRulePropertiesFormat
- type RouteFilterRuleType
- type RouteFilterRulesClient
- func (client *RouteFilterRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (*runtime.Poller[RouteFilterRulesClientCreateOrUpdateResponse], error)
- func (client *RouteFilterRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (*runtime.Poller[RouteFilterRulesClientDeleteResponse], error)
- func (client *RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (RouteFilterRulesClientGetResponse, error)
- func (client *RouteFilterRulesClient) NewListByRouteFilterPager(resourceGroupName string, routeFilterName string, ...) *runtime.Pager[RouteFilterRulesClientListByRouteFilterResponse]
- type RouteFilterRulesClientBeginCreateOrUpdateOptions
- type RouteFilterRulesClientBeginDeleteOptions
- type RouteFilterRulesClientCreateOrUpdateResponse
- type RouteFilterRulesClientDeleteResponse
- type RouteFilterRulesClientGetOptions
- type RouteFilterRulesClientGetResponse
- type RouteFilterRulesClientListByRouteFilterOptions
- type RouteFilterRulesClientListByRouteFilterResponse
- type RouteFiltersClient
- func (client *RouteFiltersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (*runtime.Poller[RouteFiltersClientCreateOrUpdateResponse], error)
- func (client *RouteFiltersClient) BeginDelete(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (*runtime.Poller[RouteFiltersClientDeleteResponse], error)
- func (client *RouteFiltersClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (RouteFiltersClientGetResponse, error)
- func (client *RouteFiltersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[RouteFiltersClientListByResourceGroupResponse]
- func (client *RouteFiltersClient) NewListPager(options *RouteFiltersClientListOptions) *runtime.Pager[RouteFiltersClientListResponse]
- func (client *RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupName string, routeFilterName string, ...) (RouteFiltersClientUpdateTagsResponse, error)
- type RouteFiltersClientBeginCreateOrUpdateOptions
- type RouteFiltersClientBeginDeleteOptions
- type RouteFiltersClientCreateOrUpdateResponse
- type RouteFiltersClientDeleteResponse
- type RouteFiltersClientGetOptions
- type RouteFiltersClientGetResponse
- type RouteFiltersClientListByResourceGroupOptions
- type RouteFiltersClientListByResourceGroupResponse
- type RouteFiltersClientListOptions
- type RouteFiltersClientListResponse
- type RouteFiltersClientUpdateTagsOptions
- type RouteFiltersClientUpdateTagsResponse
- type RouteListResult
- type RouteNextHopType
- type RoutePropertiesFormat
- type RouteTable
- type RouteTableListResult
- type RouteTablePropertiesFormat
- type RouteTablesClient
- func (client *RouteTablesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, ...) (*runtime.Poller[RouteTablesClientCreateOrUpdateResponse], error)
- func (client *RouteTablesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeTableName string, ...) (*runtime.Poller[RouteTablesClientDeleteResponse], error)
- func (client *RouteTablesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, ...) (RouteTablesClientGetResponse, error)
- func (client *RouteTablesClient) NewListAllPager(options *RouteTablesClientListAllOptions) *runtime.Pager[RouteTablesClientListAllResponse]
- func (client *RouteTablesClient) NewListPager(resourceGroupName string, options *RouteTablesClientListOptions) *runtime.Pager[RouteTablesClientListResponse]
- func (client *RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, ...) (RouteTablesClientUpdateTagsResponse, error)
- type RouteTablesClientBeginCreateOrUpdateOptions
- type RouteTablesClientBeginDeleteOptions
- type RouteTablesClientCreateOrUpdateResponse
- type RouteTablesClientDeleteResponse
- type RouteTablesClientGetOptions
- type RouteTablesClientGetResponse
- type RouteTablesClientListAllOptions
- type RouteTablesClientListAllResponse
- type RouteTablesClientListOptions
- type RouteTablesClientListResponse
- type RouteTablesClientUpdateTagsOptions
- type RouteTablesClientUpdateTagsResponse
- type RoutesClient
- func (client *RoutesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, ...) (*runtime.Poller[RoutesClientCreateOrUpdateResponse], error)
- func (client *RoutesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeTableName string, ...) (*runtime.Poller[RoutesClientDeleteResponse], error)
- func (client *RoutesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, ...) (RoutesClientGetResponse, error)
- func (client *RoutesClient) NewListPager(resourceGroupName string, routeTableName string, ...) *runtime.Pager[RoutesClientListResponse]
- type RoutesClientBeginCreateOrUpdateOptions
- type RoutesClientBeginDeleteOptions
- type RoutesClientCreateOrUpdateResponse
- type RoutesClientDeleteResponse
- type RoutesClientGetOptions
- type RoutesClientGetResponse
- type RoutesClientListOptions
- type RoutesClientListResponse
- type RoutingConfiguration
- type RoutingIntent
- type RoutingIntentClient
- func (client *RoutingIntentClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[RoutingIntentClientCreateOrUpdateResponse], error)
- func (client *RoutingIntentClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[RoutingIntentClientDeleteResponse], error)
- func (client *RoutingIntentClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (RoutingIntentClientGetResponse, error)
- func (client *RoutingIntentClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[RoutingIntentClientListResponse]
- type RoutingIntentClientBeginCreateOrUpdateOptions
- type RoutingIntentClientBeginDeleteOptions
- type RoutingIntentClientCreateOrUpdateResponse
- type RoutingIntentClientDeleteResponse
- type RoutingIntentClientGetOptions
- type RoutingIntentClientGetResponse
- type RoutingIntentClientListOptions
- type RoutingIntentClientListResponse
- type RoutingIntentProperties
- type RoutingPolicy
- type RoutingState
- type Rule
- type SKU
- type SecurityGroup
- type SecurityGroupListResult
- type SecurityGroupNetworkInterface
- type SecurityGroupPropertiesFormat
- type SecurityGroupResult
- type SecurityGroupViewParameters
- type SecurityGroupViewResult
- type SecurityGroupsClient
- func (client *SecurityGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (*runtime.Poller[SecurityGroupsClientCreateOrUpdateResponse], error)
- func (client *SecurityGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (*runtime.Poller[SecurityGroupsClientDeleteResponse], error)
- func (client *SecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (SecurityGroupsClientGetResponse, error)
- func (client *SecurityGroupsClient) NewListAllPager(options *SecurityGroupsClientListAllOptions) *runtime.Pager[SecurityGroupsClientListAllResponse]
- func (client *SecurityGroupsClient) NewListPager(resourceGroupName string, options *SecurityGroupsClientListOptions) *runtime.Pager[SecurityGroupsClientListResponse]
- func (client *SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (SecurityGroupsClientUpdateTagsResponse, error)
- type SecurityGroupsClientBeginCreateOrUpdateOptions
- type SecurityGroupsClientBeginDeleteOptions
- type SecurityGroupsClientCreateOrUpdateResponse
- type SecurityGroupsClientDeleteResponse
- type SecurityGroupsClientGetOptions
- type SecurityGroupsClientGetResponse
- type SecurityGroupsClientListAllOptions
- type SecurityGroupsClientListAllResponse
- type SecurityGroupsClientListOptions
- type SecurityGroupsClientListResponse
- type SecurityGroupsClientUpdateTagsOptions
- type SecurityGroupsClientUpdateTagsResponse
- type SecurityPartnerProvider
- type SecurityPartnerProviderConnectionStatus
- type SecurityPartnerProviderListResult
- type SecurityPartnerProviderPropertiesFormat
- type SecurityPartnerProvidersClient
- func (client *SecurityPartnerProvidersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[SecurityPartnerProvidersClientCreateOrUpdateResponse], error)
- func (client *SecurityPartnerProvidersClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[SecurityPartnerProvidersClientDeleteResponse], error)
- func (client *SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGroupName string, ...) (SecurityPartnerProvidersClientGetResponse, error)
- func (client *SecurityPartnerProvidersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[SecurityPartnerProvidersClientListByResourceGroupResponse]
- func (client *SecurityPartnerProvidersClient) NewListPager(options *SecurityPartnerProvidersClientListOptions) *runtime.Pager[SecurityPartnerProvidersClientListResponse]
- func (client *SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, resourceGroupName string, ...) (SecurityPartnerProvidersClientUpdateTagsResponse, error)
- type SecurityPartnerProvidersClientBeginCreateOrUpdateOptions
- type SecurityPartnerProvidersClientBeginDeleteOptions
- type SecurityPartnerProvidersClientCreateOrUpdateResponse
- type SecurityPartnerProvidersClientDeleteResponse
- type SecurityPartnerProvidersClientGetOptions
- type SecurityPartnerProvidersClientGetResponse
- type SecurityPartnerProvidersClientListByResourceGroupOptions
- type SecurityPartnerProvidersClientListByResourceGroupResponse
- type SecurityPartnerProvidersClientListOptions
- type SecurityPartnerProvidersClientListResponse
- type SecurityPartnerProvidersClientUpdateTagsOptions
- type SecurityPartnerProvidersClientUpdateTagsResponse
- type SecurityProviderName
- type SecurityRule
- type SecurityRuleAccess
- type SecurityRuleAssociations
- type SecurityRuleDirection
- type SecurityRuleListResult
- type SecurityRulePropertiesFormat
- type SecurityRuleProtocol
- type SecurityRulesClient
- func (client *SecurityRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (*runtime.Poller[SecurityRulesClientCreateOrUpdateResponse], error)
- func (client *SecurityRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (*runtime.Poller[SecurityRulesClientDeleteResponse], error)
- func (client *SecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, ...) (SecurityRulesClientGetResponse, error)
- func (client *SecurityRulesClient) NewListPager(resourceGroupName string, networkSecurityGroupName string, ...) *runtime.Pager[SecurityRulesClientListResponse]
- type SecurityRulesClientBeginCreateOrUpdateOptions
- type SecurityRulesClientBeginDeleteOptions
- type SecurityRulesClientCreateOrUpdateResponse
- type SecurityRulesClientDeleteResponse
- type SecurityRulesClientGetOptions
- type SecurityRulesClientGetResponse
- type SecurityRulesClientListOptions
- type SecurityRulesClientListResponse
- type SecurityRulesEvaluationResult
- type ServiceAssociationLink
- type ServiceAssociationLinkPropertiesFormat
- type ServiceAssociationLinksClient
- type ServiceAssociationLinksClientListOptions
- type ServiceAssociationLinksClientListResponse
- type ServiceAssociationLinksListResult
- type ServiceDelegationPropertiesFormat
- type ServiceEndpointPoliciesClient
- func (client *ServiceEndpointPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ServiceEndpointPoliciesClientCreateOrUpdateResponse], error)
- func (client *ServiceEndpointPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ServiceEndpointPoliciesClientDeleteResponse], error)
- func (client *ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGroupName string, ...) (ServiceEndpointPoliciesClientGetResponse, error)
- func (client *ServiceEndpointPoliciesClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ServiceEndpointPoliciesClientListByResourceGroupResponse]
- func (client *ServiceEndpointPoliciesClient) NewListPager(options *ServiceEndpointPoliciesClientListOptions) *runtime.Pager[ServiceEndpointPoliciesClientListResponse]
- func (client *ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, ...) (ServiceEndpointPoliciesClientUpdateTagsResponse, error)
- type ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions
- type ServiceEndpointPoliciesClientBeginDeleteOptions
- type ServiceEndpointPoliciesClientCreateOrUpdateResponse
- type ServiceEndpointPoliciesClientDeleteResponse
- type ServiceEndpointPoliciesClientGetOptions
- type ServiceEndpointPoliciesClientGetResponse
- type ServiceEndpointPoliciesClientListByResourceGroupOptions
- type ServiceEndpointPoliciesClientListByResourceGroupResponse
- type ServiceEndpointPoliciesClientListOptions
- type ServiceEndpointPoliciesClientListResponse
- type ServiceEndpointPoliciesClientUpdateTagsOptions
- type ServiceEndpointPoliciesClientUpdateTagsResponse
- type ServiceEndpointPolicy
- type ServiceEndpointPolicyDefinition
- type ServiceEndpointPolicyDefinitionListResult
- type ServiceEndpointPolicyDefinitionPropertiesFormat
- type ServiceEndpointPolicyDefinitionsClient
- func (client *ServiceEndpointPolicyDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse], ...)
- func (client *ServiceEndpointPolicyDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ServiceEndpointPolicyDefinitionsClientDeleteResponse], error)
- func (client *ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, resourceGroupName string, ...) (ServiceEndpointPolicyDefinitionsClientGetResponse, error)
- func (client *ServiceEndpointPolicyDefinitionsClient) NewListByResourceGroupPager(resourceGroupName string, serviceEndpointPolicyName string, ...) ...
- type ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions
- type ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions
- type ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse
- type ServiceEndpointPolicyDefinitionsClientDeleteResponse
- type ServiceEndpointPolicyDefinitionsClientGetOptions
- type ServiceEndpointPolicyDefinitionsClientGetResponse
- type ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions
- type ServiceEndpointPolicyDefinitionsClientListByResourceGroupResponse
- type ServiceEndpointPolicyListResult
- type ServiceEndpointPolicyPropertiesFormat
- type ServiceEndpointPropertiesFormat
- type ServiceProviderProvisioningState
- type ServiceTagInformation
- type ServiceTagInformationClient
- type ServiceTagInformationClientListOptions
- type ServiceTagInformationClientListResponse
- type ServiceTagInformationListResult
- type ServiceTagInformationPropertiesFormat
- type ServiceTagsClient
- type ServiceTagsClientListOptions
- type ServiceTagsClientListResponse
- type ServiceTagsListResult
- type SessionIDs
- type Severity
- type SignatureOverridesFilterValuesQuery
- type SignatureOverridesFilterValuesResponse
- type SignaturesOverrides
- type SignaturesOverridesList
- type SignaturesOverridesProperties
- type SingleQueryResult
- type StaticRoute
- type SubResource
- type Subnet
- type SubnetAssociation
- type SubnetListResult
- type SubnetPropertiesFormat
- type SubnetsClient
- func (client *SubnetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[SubnetsClientCreateOrUpdateResponse], error)
- func (client *SubnetsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[SubnetsClientDeleteResponse], error)
- func (client *SubnetsClient) BeginPrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[SubnetsClientPrepareNetworkPoliciesResponse], error)
- func (client *SubnetsClient) BeginUnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[SubnetsClientUnprepareNetworkPoliciesResponse], error)
- func (client *SubnetsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (SubnetsClientGetResponse, error)
- func (client *SubnetsClient) NewListPager(resourceGroupName string, virtualNetworkName string, ...) *runtime.Pager[SubnetsClientListResponse]
- type SubnetsClientBeginCreateOrUpdateOptions
- type SubnetsClientBeginDeleteOptions
- type SubnetsClientBeginPrepareNetworkPoliciesOptions
- type SubnetsClientBeginUnprepareNetworkPoliciesOptions
- type SubnetsClientCreateOrUpdateResponse
- type SubnetsClientDeleteResponse
- type SubnetsClientGetOptions
- type SubnetsClientGetResponse
- type SubnetsClientListOptions
- type SubnetsClientListResponse
- type SubnetsClientPrepareNetworkPoliciesResponse
- type SubnetsClientUnprepareNetworkPoliciesResponse
- type SyncRemoteAddressSpace
- type TagsObject
- type Topology
- type TopologyAssociation
- type TopologyParameters
- type TopologyResource
- type TrafficAnalyticsConfigurationProperties
- type TrafficAnalyticsProperties
- type TrafficSelectorPolicy
- type TransportProtocol
- type TroubleshootingDetails
- type TroubleshootingParameters
- type TroubleshootingProperties
- type TroubleshootingRecommendedActions
- type TroubleshootingResult
- type TunnelConnectionHealth
- type TunnelConnectionStatus
- type UnprepareNetworkPoliciesRequest
- type Usage
- type UsageName
- type UsageUnit
- type UsagesClient
- type UsagesClientListOptions
- type UsagesClientListResponse
- type UsagesListResult
- type VM
- type VPNAuthenticationType
- type VPNClientConfiguration
- type VPNClientConnectionHealth
- type VPNClientConnectionHealthDetail
- type VPNClientConnectionHealthDetailListResult
- type VPNClientIPsecParameters
- type VPNClientParameters
- type VPNClientProtocol
- type VPNClientRevokedCertificate
- type VPNClientRevokedCertificatePropertiesFormat
- type VPNClientRootCertificate
- type VPNClientRootCertificatePropertiesFormat
- type VPNConnection
- type VPNConnectionPacketCaptureStartParameters
- type VPNConnectionPacketCaptureStopParameters
- type VPNConnectionProperties
- type VPNConnectionStatus
- type VPNConnectionsClient
- func (client *VPNConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNConnectionsClientCreateOrUpdateResponse], error)
- func (client *VPNConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNConnectionsClientDeleteResponse], error)
- func (client *VPNConnectionsClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNConnectionsClientStartPacketCaptureResponse], error)
- func (client *VPNConnectionsClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNConnectionsClientStopPacketCaptureResponse], error)
- func (client *VPNConnectionsClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, ...) (VPNConnectionsClientGetResponse, error)
- func (client *VPNConnectionsClient) NewListByVPNGatewayPager(resourceGroupName string, gatewayName string, ...) *runtime.Pager[VPNConnectionsClientListByVPNGatewayResponse]
- type VPNConnectionsClientBeginCreateOrUpdateOptions
- type VPNConnectionsClientBeginDeleteOptions
- type VPNConnectionsClientBeginStartPacketCaptureOptions
- type VPNConnectionsClientBeginStopPacketCaptureOptions
- type VPNConnectionsClientCreateOrUpdateResponse
- type VPNConnectionsClientDeleteResponse
- type VPNConnectionsClientGetOptions
- type VPNConnectionsClientGetResponse
- type VPNConnectionsClientListByVPNGatewayOptions
- type VPNConnectionsClientListByVPNGatewayResponse
- type VPNConnectionsClientStartPacketCaptureResponse
- type VPNConnectionsClientStopPacketCaptureResponse
- type VPNDeviceScriptParameters
- type VPNGateway
- type VPNGatewayGeneration
- type VPNGatewayIPConfiguration
- type VPNGatewayNatRule
- type VPNGatewayNatRuleProperties
- type VPNGatewayPacketCaptureStartParameters
- type VPNGatewayPacketCaptureStopParameters
- type VPNGatewayProperties
- type VPNGatewayTunnelingProtocol
- type VPNGatewaysClient
- func (client *VPNGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientCreateOrUpdateResponse], error)
- func (client *VPNGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientDeleteResponse], error)
- func (client *VPNGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientResetResponse], error)
- func (client *VPNGatewaysClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientStartPacketCaptureResponse], error)
- func (client *VPNGatewaysClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientStopPacketCaptureResponse], error)
- func (client *VPNGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNGatewaysClientUpdateTagsResponse], error)
- func (client *VPNGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, ...) (VPNGatewaysClientGetResponse, error)
- func (client *VPNGatewaysClient) NewListByResourceGroupPager(resourceGroupName string, options *VPNGatewaysClientListByResourceGroupOptions) *runtime.Pager[VPNGatewaysClientListByResourceGroupResponse]
- func (client *VPNGatewaysClient) NewListPager(options *VPNGatewaysClientListOptions) *runtime.Pager[VPNGatewaysClientListResponse]
- type VPNGatewaysClientBeginCreateOrUpdateOptions
- type VPNGatewaysClientBeginDeleteOptions
- type VPNGatewaysClientBeginResetOptions
- type VPNGatewaysClientBeginStartPacketCaptureOptions
- type VPNGatewaysClientBeginStopPacketCaptureOptions
- type VPNGatewaysClientBeginUpdateTagsOptions
- type VPNGatewaysClientCreateOrUpdateResponse
- type VPNGatewaysClientDeleteResponse
- type VPNGatewaysClientGetOptions
- type VPNGatewaysClientGetResponse
- type VPNGatewaysClientListByResourceGroupOptions
- type VPNGatewaysClientListByResourceGroupResponse
- type VPNGatewaysClientListOptions
- type VPNGatewaysClientListResponse
- type VPNGatewaysClientResetResponse
- type VPNGatewaysClientStartPacketCaptureResponse
- type VPNGatewaysClientStopPacketCaptureResponse
- type VPNGatewaysClientUpdateTagsResponse
- type VPNLinkBgpSettings
- type VPNLinkConnectionMode
- type VPNLinkConnectionsClient
- func (client *VPNLinkConnectionsClient) BeginGetIkeSas(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNLinkConnectionsClientGetIkeSasResponse], error)
- func (client *VPNLinkConnectionsClient) BeginResetConnection(ctx context.Context, resourceGroupName string, gatewayName string, ...) (*runtime.Poller[VPNLinkConnectionsClientResetConnectionResponse], error)
- func (client *VPNLinkConnectionsClient) NewListByVPNConnectionPager(resourceGroupName string, gatewayName string, connectionName string, ...) *runtime.Pager[VPNLinkConnectionsClientListByVPNConnectionResponse]
- type VPNLinkConnectionsClientBeginGetIkeSasOptions
- type VPNLinkConnectionsClientBeginResetConnectionOptions
- type VPNLinkConnectionsClientGetIkeSasResponse
- type VPNLinkConnectionsClientListByVPNConnectionOptions
- type VPNLinkConnectionsClientListByVPNConnectionResponse
- type VPNLinkConnectionsClientResetConnectionResponse
- type VPNLinkProviderProperties
- type VPNNatRuleMapping
- type VPNNatRuleMode
- type VPNNatRuleType
- type VPNPacketCaptureStartParameters
- type VPNPacketCaptureStopParameters
- type VPNPolicyMemberAttributeType
- type VPNProfileResponse
- type VPNServerConfigRadiusClientRootCertificate
- type VPNServerConfigRadiusServerRootCertificate
- type VPNServerConfigVPNClientRevokedCertificate
- type VPNServerConfigVPNClientRootCertificate
- type VPNServerConfiguration
- type VPNServerConfigurationPolicyGroup
- type VPNServerConfigurationPolicyGroupMember
- type VPNServerConfigurationPolicyGroupProperties
- type VPNServerConfigurationProperties
- type VPNServerConfigurationsAssociatedWithVirtualWanClient
- type VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions
- type VPNServerConfigurationsAssociatedWithVirtualWanClientListResponse
- type VPNServerConfigurationsClient
- func (client *VPNServerConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VPNServerConfigurationsClientCreateOrUpdateResponse], error)
- func (client *VPNServerConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VPNServerConfigurationsClientDeleteResponse], error)
- func (client *VPNServerConfigurationsClient) Get(ctx context.Context, resourceGroupName string, ...) (VPNServerConfigurationsClientGetResponse, error)
- func (client *VPNServerConfigurationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[VPNServerConfigurationsClientListByResourceGroupResponse]
- func (client *VPNServerConfigurationsClient) NewListPager(options *VPNServerConfigurationsClientListOptions) *runtime.Pager[VPNServerConfigurationsClientListResponse]
- func (client *VPNServerConfigurationsClient) UpdateTags(ctx context.Context, resourceGroupName string, ...) (VPNServerConfigurationsClientUpdateTagsResponse, error)
- type VPNServerConfigurationsClientBeginCreateOrUpdateOptions
- type VPNServerConfigurationsClientBeginDeleteOptions
- type VPNServerConfigurationsClientCreateOrUpdateResponse
- type VPNServerConfigurationsClientDeleteResponse
- type VPNServerConfigurationsClientGetOptions
- type VPNServerConfigurationsClientGetResponse
- type VPNServerConfigurationsClientListByResourceGroupOptions
- type VPNServerConfigurationsClientListByResourceGroupResponse
- type VPNServerConfigurationsClientListOptions
- type VPNServerConfigurationsClientListResponse
- type VPNServerConfigurationsClientUpdateTagsOptions
- type VPNServerConfigurationsClientUpdateTagsResponse
- type VPNServerConfigurationsResponse
- type VPNSite
- type VPNSiteID
- type VPNSiteLink
- type VPNSiteLinkConnection
- type VPNSiteLinkConnectionProperties
- type VPNSiteLinkConnectionsClient
- type VPNSiteLinkConnectionsClientGetOptions
- type VPNSiteLinkConnectionsClientGetResponse
- type VPNSiteLinkProperties
- type VPNSiteLinksClient
- func (client *VPNSiteLinksClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string, ...) (VPNSiteLinksClientGetResponse, error)
- func (client *VPNSiteLinksClient) NewListByVPNSitePager(resourceGroupName string, vpnSiteName string, ...) *runtime.Pager[VPNSiteLinksClientListByVPNSiteResponse]
- type VPNSiteLinksClientGetOptions
- type VPNSiteLinksClientGetResponse
- type VPNSiteLinksClientListByVPNSiteOptions
- type VPNSiteLinksClientListByVPNSiteResponse
- type VPNSiteProperties
- type VPNSitesClient
- func (client *VPNSitesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, ...) (*runtime.Poller[VPNSitesClientCreateOrUpdateResponse], error)
- func (client *VPNSitesClient) BeginDelete(ctx context.Context, resourceGroupName string, vpnSiteName string, ...) (*runtime.Poller[VPNSitesClientDeleteResponse], error)
- func (client *VPNSitesClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string, ...) (VPNSitesClientGetResponse, error)
- func (client *VPNSitesClient) NewListByResourceGroupPager(resourceGroupName string, options *VPNSitesClientListByResourceGroupOptions) *runtime.Pager[VPNSitesClientListByResourceGroupResponse]
- func (client *VPNSitesClient) NewListPager(options *VPNSitesClientListOptions) *runtime.Pager[VPNSitesClientListResponse]
- func (client *VPNSitesClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, ...) (VPNSitesClientUpdateTagsResponse, error)
- type VPNSitesClientBeginCreateOrUpdateOptions
- type VPNSitesClientBeginDeleteOptions
- type VPNSitesClientCreateOrUpdateResponse
- type VPNSitesClientDeleteResponse
- type VPNSitesClientGetOptions
- type VPNSitesClientGetResponse
- type VPNSitesClientListByResourceGroupOptions
- type VPNSitesClientListByResourceGroupResponse
- type VPNSitesClientListOptions
- type VPNSitesClientListResponse
- type VPNSitesClientUpdateTagsOptions
- type VPNSitesClientUpdateTagsResponse
- type VPNSitesConfigurationClient
- type VPNSitesConfigurationClientBeginDownloadOptions
- type VPNSitesConfigurationClientDownloadResponse
- type VPNType
- type VerbosityLevel
- type VerificationIPFlowParameters
- type VerificationIPFlowResult
- type VirtualAppliance
- type VirtualApplianceListResult
- type VirtualApplianceNicProperties
- type VirtualAppliancePropertiesFormat
- type VirtualApplianceSKU
- type VirtualApplianceSKUInstances
- type VirtualApplianceSKUListResult
- type VirtualApplianceSKUProperties
- type VirtualApplianceSKUPropertiesFormat
- type VirtualApplianceSKUsClient
- type VirtualApplianceSKUsClientGetOptions
- type VirtualApplianceSKUsClientGetResponse
- type VirtualApplianceSKUsClientListOptions
- type VirtualApplianceSKUsClientListResponse
- type VirtualApplianceSite
- type VirtualApplianceSiteListResult
- type VirtualApplianceSiteProperties
- type VirtualApplianceSitesClient
- func (client *VirtualApplianceSitesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualApplianceSitesClientCreateOrUpdateResponse], error)
- func (client *VirtualApplianceSitesClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualApplianceSitesClientDeleteResponse], error)
- func (client *VirtualApplianceSitesClient) Get(ctx context.Context, resourceGroupName string, ...) (VirtualApplianceSitesClientGetResponse, error)
- func (client *VirtualApplianceSitesClient) NewListPager(resourceGroupName string, networkVirtualApplianceName string, ...) *runtime.Pager[VirtualApplianceSitesClientListResponse]
- type VirtualApplianceSitesClientBeginCreateOrUpdateOptions
- type VirtualApplianceSitesClientBeginDeleteOptions
- type VirtualApplianceSitesClientCreateOrUpdateResponse
- type VirtualApplianceSitesClientDeleteResponse
- type VirtualApplianceSitesClientGetOptions
- type VirtualApplianceSitesClientGetResponse
- type VirtualApplianceSitesClientListOptions
- type VirtualApplianceSitesClientListResponse
- type VirtualAppliancesClient
- func (client *VirtualAppliancesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualAppliancesClientCreateOrUpdateResponse], error)
- func (client *VirtualAppliancesClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualAppliancesClientDeleteResponse], error)
- func (client *VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName string, ...) (VirtualAppliancesClientGetResponse, error)
- func (client *VirtualAppliancesClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[VirtualAppliancesClientListByResourceGroupResponse]
- func (client *VirtualAppliancesClient) NewListPager(options *VirtualAppliancesClientListOptions) *runtime.Pager[VirtualAppliancesClientListResponse]
- func (client *VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGroupName string, ...) (VirtualAppliancesClientUpdateTagsResponse, error)
- type VirtualAppliancesClientBeginCreateOrUpdateOptions
- type VirtualAppliancesClientBeginDeleteOptions
- type VirtualAppliancesClientCreateOrUpdateResponse
- type VirtualAppliancesClientDeleteResponse
- type VirtualAppliancesClientGetOptions
- type VirtualAppliancesClientGetResponse
- type VirtualAppliancesClientListByResourceGroupOptions
- type VirtualAppliancesClientListByResourceGroupResponse
- type VirtualAppliancesClientListOptions
- type VirtualAppliancesClientListResponse
- type VirtualAppliancesClientUpdateTagsOptions
- type VirtualAppliancesClientUpdateTagsResponse
- type VirtualHub
- type VirtualHubBgpConnectionClient
- func (client *VirtualHubBgpConnectionClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubBgpConnectionClientCreateOrUpdateResponse], error)
- func (client *VirtualHubBgpConnectionClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubBgpConnectionClientDeleteResponse], error)
- func (client *VirtualHubBgpConnectionClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (VirtualHubBgpConnectionClientGetResponse, error)
- type VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions
- type VirtualHubBgpConnectionClientBeginDeleteOptions
- type VirtualHubBgpConnectionClientCreateOrUpdateResponse
- type VirtualHubBgpConnectionClientDeleteResponse
- type VirtualHubBgpConnectionClientGetOptions
- type VirtualHubBgpConnectionClientGetResponse
- type VirtualHubBgpConnectionsClient
- func (client *VirtualHubBgpConnectionsClient) BeginListAdvertisedRoutes(ctx context.Context, resourceGroupName string, hubName string, ...) (*runtime.Poller[VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse], ...)
- func (client *VirtualHubBgpConnectionsClient) BeginListLearnedRoutes(ctx context.Context, resourceGroupName string, hubName string, ...) (*runtime.Poller[VirtualHubBgpConnectionsClientListLearnedRoutesResponse], ...)
- func (client *VirtualHubBgpConnectionsClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[VirtualHubBgpConnectionsClientListResponse]
- type VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions
- type VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions
- type VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse
- type VirtualHubBgpConnectionsClientListLearnedRoutesResponse
- type VirtualHubBgpConnectionsClientListOptions
- type VirtualHubBgpConnectionsClientListResponse
- type VirtualHubEffectiveRoute
- type VirtualHubEffectiveRouteList
- type VirtualHubID
- type VirtualHubIPConfigurationClient
- func (client *VirtualHubIPConfigurationClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubIPConfigurationClientCreateOrUpdateResponse], error)
- func (client *VirtualHubIPConfigurationClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubIPConfigurationClientDeleteResponse], error)
- func (client *VirtualHubIPConfigurationClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (VirtualHubIPConfigurationClientGetResponse, error)
- func (client *VirtualHubIPConfigurationClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[VirtualHubIPConfigurationClientListResponse]
- type VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions
- type VirtualHubIPConfigurationClientBeginDeleteOptions
- type VirtualHubIPConfigurationClientCreateOrUpdateResponse
- type VirtualHubIPConfigurationClientDeleteResponse
- type VirtualHubIPConfigurationClientGetOptions
- type VirtualHubIPConfigurationClientGetResponse
- type VirtualHubIPConfigurationClientListOptions
- type VirtualHubIPConfigurationClientListResponse
- type VirtualHubProperties
- type VirtualHubRoute
- type VirtualHubRouteTable
- type VirtualHubRouteTableV2
- type VirtualHubRouteTableV2Properties
- type VirtualHubRouteTableV2SClient
- func (client *VirtualHubRouteTableV2SClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubRouteTableV2SClientCreateOrUpdateResponse], error)
- func (client *VirtualHubRouteTableV2SClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubRouteTableV2SClientDeleteResponse], error)
- func (client *VirtualHubRouteTableV2SClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (VirtualHubRouteTableV2SClientGetResponse, error)
- func (client *VirtualHubRouteTableV2SClient) NewListPager(resourceGroupName string, virtualHubName string, ...) *runtime.Pager[VirtualHubRouteTableV2SClientListResponse]
- type VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions
- type VirtualHubRouteTableV2SClientBeginDeleteOptions
- type VirtualHubRouteTableV2SClientCreateOrUpdateResponse
- type VirtualHubRouteTableV2SClientDeleteResponse
- type VirtualHubRouteTableV2SClientGetOptions
- type VirtualHubRouteTableV2SClientGetResponse
- type VirtualHubRouteTableV2SClientListOptions
- type VirtualHubRouteTableV2SClientListResponse
- type VirtualHubRouteV2
- type VirtualHubsClient
- func (client *VirtualHubsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubsClientCreateOrUpdateResponse], error)
- func (client *VirtualHubsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubsClientDeleteResponse], error)
- func (client *VirtualHubsClient) BeginGetEffectiveVirtualHubRoutes(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (*runtime.Poller[VirtualHubsClientGetEffectiveVirtualHubRoutesResponse], error)
- func (client *VirtualHubsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (VirtualHubsClientGetResponse, error)
- func (client *VirtualHubsClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualHubsClientListByResourceGroupOptions) *runtime.Pager[VirtualHubsClientListByResourceGroupResponse]
- func (client *VirtualHubsClient) NewListPager(options *VirtualHubsClientListOptions) *runtime.Pager[VirtualHubsClientListResponse]
- func (client *VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, ...) (VirtualHubsClientUpdateTagsResponse, error)
- type VirtualHubsClientBeginCreateOrUpdateOptions
- type VirtualHubsClientBeginDeleteOptions
- type VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions
- type VirtualHubsClientCreateOrUpdateResponse
- type VirtualHubsClientDeleteResponse
- type VirtualHubsClientGetEffectiveVirtualHubRoutesResponse
- type VirtualHubsClientGetOptions
- type VirtualHubsClientGetResponse
- type VirtualHubsClientListByResourceGroupOptions
- type VirtualHubsClientListByResourceGroupResponse
- type VirtualHubsClientListOptions
- type VirtualHubsClientListResponse
- type VirtualHubsClientUpdateTagsOptions
- type VirtualHubsClientUpdateTagsResponse
- type VirtualNetwork
- type VirtualNetworkBgpCommunities
- type VirtualNetworkConnectionGatewayReference
- type VirtualNetworkEncryption
- type VirtualNetworkEncryptionEnforcement
- type VirtualNetworkGateway
- type VirtualNetworkGatewayConnection
- type VirtualNetworkGatewayConnectionListEntity
- type VirtualNetworkGatewayConnectionListEntityPropertiesFormat
- type VirtualNetworkGatewayConnectionListResult
- type VirtualNetworkGatewayConnectionMode
- type VirtualNetworkGatewayConnectionPropertiesFormat
- type VirtualNetworkGatewayConnectionProtocol
- type VirtualNetworkGatewayConnectionStatus
- type VirtualNetworkGatewayConnectionType
- type VirtualNetworkGatewayConnectionsClient
- func (client *VirtualNetworkGatewayConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientDeleteResponse], error)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginGetIkeSas(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientGetIkeSasResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginResetConnection(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientResetConnectionResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginResetSharedKey(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginSetSharedKey(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewayConnectionsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientUpdateTagsResponse], ...)
- func (client *VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewayConnectionsClientGetResponse, error)
- func (client *VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse, error)
- func (client *VirtualNetworkGatewayConnectionsClient) NewListPager(resourceGroupName string, ...) *runtime.Pager[VirtualNetworkGatewayConnectionsClientListResponse]
- type VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions
- type VirtualNetworkGatewayConnectionsClientBeginDeleteOptions
- type VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions
- type VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions
- type VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions
- type VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions
- type VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions
- type VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions
- type VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions
- type VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse
- type VirtualNetworkGatewayConnectionsClientDeleteResponse
- type VirtualNetworkGatewayConnectionsClientGetIkeSasResponse
- type VirtualNetworkGatewayConnectionsClientGetOptions
- type VirtualNetworkGatewayConnectionsClientGetResponse
- type VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions
- type VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse
- type VirtualNetworkGatewayConnectionsClientListOptions
- type VirtualNetworkGatewayConnectionsClientListResponse
- type VirtualNetworkGatewayConnectionsClientResetConnectionResponse
- type VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse
- type VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse
- type VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse
- type VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse
- type VirtualNetworkGatewayConnectionsClientUpdateTagsResponse
- type VirtualNetworkGatewayIPConfiguration
- type VirtualNetworkGatewayIPConfigurationPropertiesFormat
- type VirtualNetworkGatewayListConnectionsResult
- type VirtualNetworkGatewayListResult
- type VirtualNetworkGatewayNatRule
- type VirtualNetworkGatewayNatRuleProperties
- type VirtualNetworkGatewayNatRulesClient
- func (client *VirtualNetworkGatewayNatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse], ...)
- func (client *VirtualNetworkGatewayNatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewayNatRulesClientDeleteResponse], error)
- func (client *VirtualNetworkGatewayNatRulesClient) Get(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewayNatRulesClientGetResponse, error)
- func (client *VirtualNetworkGatewayNatRulesClient) NewListByVirtualNetworkGatewayPager(resourceGroupName string, virtualNetworkGatewayName string, ...) ...
- type VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions
- type VirtualNetworkGatewayNatRulesClientBeginDeleteOptions
- type VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse
- type VirtualNetworkGatewayNatRulesClientDeleteResponse
- type VirtualNetworkGatewayNatRulesClientGetOptions
- type VirtualNetworkGatewayNatRulesClientGetResponse
- type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions
- type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayResponse
- type VirtualNetworkGatewayPropertiesFormat
- type VirtualNetworkGatewaySKU
- type VirtualNetworkGatewaySKUName
- type VirtualNetworkGatewaySKUTier
- type VirtualNetworkGatewayType
- type VirtualNetworkGatewaysClient
- func (client *VirtualNetworkGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientCreateOrUpdateResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientDeleteResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginDisconnectVirtualNetworkGatewayVPNConnections(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewaysClient) BeginGenerateVPNProfile(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGenerateVPNProfileResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginGeneratevpnclientpackage(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse], ...)
- func (client *VirtualNetworkGatewaysClient) BeginGetAdvertisedRoutes(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse], ...)
- func (client *VirtualNetworkGatewaysClient) BeginGetBgpPeerStatus(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGetBgpPeerStatusResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginGetLearnedRoutes(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGetLearnedRoutesResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginGetVPNProfilePackageURL(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse], ...)
- func (client *VirtualNetworkGatewaysClient) BeginGetVpnclientConnectionHealth(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewaysClient) BeginGetVpnclientIPSecParameters(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientResetResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginResetVPNClientSharedKey(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse], ...)
- func (client *VirtualNetworkGatewaysClient) BeginSetVpnclientIPSecParameters(ctx context.Context, resourceGroupName string, ...) (...)
- func (client *VirtualNetworkGatewaysClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientStartPacketCaptureResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientStopPacketCaptureResponse], error)
- func (client *VirtualNetworkGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[VirtualNetworkGatewaysClientUpdateTagsResponse], error)
- func (client *VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewaysClientGetResponse, error)
- func (client *VirtualNetworkGatewaysClient) NewListConnectionsPager(resourceGroupName string, virtualNetworkGatewayName string, ...) *runtime.Pager[VirtualNetworkGatewaysClientListConnectionsResponse]
- func (client *VirtualNetworkGatewaysClient) NewListPager(resourceGroupName string, options *VirtualNetworkGatewaysClientListOptions) *runtime.Pager[VirtualNetworkGatewaysClientListResponse]
- func (client *VirtualNetworkGatewaysClient) SupportedVPNDevices(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewaysClientSupportedVPNDevicesResponse, error)
- func (client *VirtualNetworkGatewaysClient) VPNDeviceConfigurationScript(ctx context.Context, resourceGroupName string, ...) (VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse, error)
- type VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions
- type VirtualNetworkGatewaysClientBeginDeleteOptions
- type VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions
- type VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions
- type VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions
- type VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions
- type VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions
- type VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions
- type VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions
- type VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions
- type VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions
- type VirtualNetworkGatewaysClientBeginResetOptions
- type VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions
- type VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions
- type VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions
- type VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions
- type VirtualNetworkGatewaysClientBeginUpdateTagsOptions
- type VirtualNetworkGatewaysClientCreateOrUpdateResponse
- type VirtualNetworkGatewaysClientDeleteResponse
- type VirtualNetworkGatewaysClientDisconnectVirtualNetworkGatewayVPNConnectionsResponse
- type VirtualNetworkGatewaysClientGenerateVPNProfileResponse
- type VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse
- type VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse
- type VirtualNetworkGatewaysClientGetBgpPeerStatusResponse
- type VirtualNetworkGatewaysClientGetLearnedRoutesResponse
- type VirtualNetworkGatewaysClientGetOptions
- type VirtualNetworkGatewaysClientGetResponse
- type VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse
- type VirtualNetworkGatewaysClientGetVpnclientConnectionHealthResponse
- type VirtualNetworkGatewaysClientGetVpnclientIPSecParametersResponse
- type VirtualNetworkGatewaysClientListConnectionsOptions
- type VirtualNetworkGatewaysClientListConnectionsResponse
- type VirtualNetworkGatewaysClientListOptions
- type VirtualNetworkGatewaysClientListResponse
- type VirtualNetworkGatewaysClientResetResponse
- type VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse
- type VirtualNetworkGatewaysClientSetVpnclientIPSecParametersResponse
- type VirtualNetworkGatewaysClientStartPacketCaptureResponse
- type VirtualNetworkGatewaysClientStopPacketCaptureResponse
- type VirtualNetworkGatewaysClientSupportedVPNDevicesOptions
- type VirtualNetworkGatewaysClientSupportedVPNDevicesResponse
- type VirtualNetworkGatewaysClientUpdateTagsResponse
- type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions
- type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse
- type VirtualNetworkListResult
- type VirtualNetworkListUsageResult
- type VirtualNetworkPeering
- type VirtualNetworkPeeringLevel
- type VirtualNetworkPeeringListResult
- type VirtualNetworkPeeringPropertiesFormat
- type VirtualNetworkPeeringState
- type VirtualNetworkPeeringsClient
- func (client *VirtualNetworkPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[VirtualNetworkPeeringsClientCreateOrUpdateResponse], error)
- func (client *VirtualNetworkPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[VirtualNetworkPeeringsClientDeleteResponse], error)
- func (client *VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (VirtualNetworkPeeringsClientGetResponse, error)
- func (client *VirtualNetworkPeeringsClient) NewListPager(resourceGroupName string, virtualNetworkName string, ...) *runtime.Pager[VirtualNetworkPeeringsClientListResponse]
- type VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions
- type VirtualNetworkPeeringsClientBeginDeleteOptions
- type VirtualNetworkPeeringsClientCreateOrUpdateResponse
- type VirtualNetworkPeeringsClientDeleteResponse
- type VirtualNetworkPeeringsClientGetOptions
- type VirtualNetworkPeeringsClientGetResponse
- type VirtualNetworkPeeringsClientListOptions
- type VirtualNetworkPeeringsClientListResponse
- type VirtualNetworkPrivateEndpointNetworkPolicies
- type VirtualNetworkPrivateLinkServiceNetworkPolicies
- type VirtualNetworkPropertiesFormat
- type VirtualNetworkTap
- type VirtualNetworkTapListResult
- type VirtualNetworkTapPropertiesFormat
- type VirtualNetworkTapsClient
- func (client *VirtualNetworkTapsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, tapName string, ...) (*runtime.Poller[VirtualNetworkTapsClientCreateOrUpdateResponse], error)
- func (client *VirtualNetworkTapsClient) BeginDelete(ctx context.Context, resourceGroupName string, tapName string, ...) (*runtime.Poller[VirtualNetworkTapsClientDeleteResponse], error)
- func (client *VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupName string, tapName string, ...) (VirtualNetworkTapsClientGetResponse, error)
- func (client *VirtualNetworkTapsClient) NewListAllPager(options *VirtualNetworkTapsClientListAllOptions) *runtime.Pager[VirtualNetworkTapsClientListAllResponse]
- func (client *VirtualNetworkTapsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[VirtualNetworkTapsClientListByResourceGroupResponse]
- func (client *VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceGroupName string, tapName string, ...) (VirtualNetworkTapsClientUpdateTagsResponse, error)
- type VirtualNetworkTapsClientBeginCreateOrUpdateOptions
- type VirtualNetworkTapsClientBeginDeleteOptions
- type VirtualNetworkTapsClientCreateOrUpdateResponse
- type VirtualNetworkTapsClientDeleteResponse
- type VirtualNetworkTapsClientGetOptions
- type VirtualNetworkTapsClientGetResponse
- type VirtualNetworkTapsClientListAllOptions
- type VirtualNetworkTapsClientListAllResponse
- type VirtualNetworkTapsClientListByResourceGroupOptions
- type VirtualNetworkTapsClientListByResourceGroupResponse
- type VirtualNetworkTapsClientUpdateTagsOptions
- type VirtualNetworkTapsClientUpdateTagsResponse
- type VirtualNetworkUsage
- type VirtualNetworkUsageName
- type VirtualNetworksClient
- func (client *VirtualNetworksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[VirtualNetworksClientCreateOrUpdateResponse], error)
- func (client *VirtualNetworksClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (*runtime.Poller[VirtualNetworksClientDeleteResponse], error)
- func (client *VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (VirtualNetworksClientCheckIPAddressAvailabilityResponse, error)
- func (client *VirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (VirtualNetworksClientGetResponse, error)
- func (client *VirtualNetworksClient) NewListAllPager(options *VirtualNetworksClientListAllOptions) *runtime.Pager[VirtualNetworksClientListAllResponse]
- func (client *VirtualNetworksClient) NewListPager(resourceGroupName string, options *VirtualNetworksClientListOptions) *runtime.Pager[VirtualNetworksClientListResponse]
- func (client *VirtualNetworksClient) NewListUsagePager(resourceGroupName string, virtualNetworkName string, ...) *runtime.Pager[VirtualNetworksClientListUsageResponse]
- func (client *VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, ...) (VirtualNetworksClientUpdateTagsResponse, error)
- type VirtualNetworksClientBeginCreateOrUpdateOptions
- type VirtualNetworksClientBeginDeleteOptions
- type VirtualNetworksClientCheckIPAddressAvailabilityOptions
- type VirtualNetworksClientCheckIPAddressAvailabilityResponse
- type VirtualNetworksClientCreateOrUpdateResponse
- type VirtualNetworksClientDeleteResponse
- type VirtualNetworksClientGetOptions
- type VirtualNetworksClientGetResponse
- type VirtualNetworksClientListAllOptions
- type VirtualNetworksClientListAllResponse
- type VirtualNetworksClientListOptions
- type VirtualNetworksClientListResponse
- type VirtualNetworksClientListUsageOptions
- type VirtualNetworksClientListUsageResponse
- type VirtualNetworksClientUpdateTagsOptions
- type VirtualNetworksClientUpdateTagsResponse
- type VirtualRouter
- type VirtualRouterListResult
- type VirtualRouterPeering
- type VirtualRouterPeeringListResult
- type VirtualRouterPeeringProperties
- type VirtualRouterPeeringsClient
- func (client *VirtualRouterPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (*runtime.Poller[VirtualRouterPeeringsClientCreateOrUpdateResponse], error)
- func (client *VirtualRouterPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (*runtime.Poller[VirtualRouterPeeringsClientDeleteResponse], error)
- func (client *VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (VirtualRouterPeeringsClientGetResponse, error)
- func (client *VirtualRouterPeeringsClient) NewListPager(resourceGroupName string, virtualRouterName string, ...) *runtime.Pager[VirtualRouterPeeringsClientListResponse]
- type VirtualRouterPeeringsClientBeginCreateOrUpdateOptions
- type VirtualRouterPeeringsClientBeginDeleteOptions
- type VirtualRouterPeeringsClientCreateOrUpdateResponse
- type VirtualRouterPeeringsClientDeleteResponse
- type VirtualRouterPeeringsClientGetOptions
- type VirtualRouterPeeringsClientGetResponse
- type VirtualRouterPeeringsClientListOptions
- type VirtualRouterPeeringsClientListResponse
- type VirtualRouterPropertiesFormat
- type VirtualRoutersClient
- func (client *VirtualRoutersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (*runtime.Poller[VirtualRoutersClientCreateOrUpdateResponse], error)
- func (client *VirtualRoutersClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (*runtime.Poller[VirtualRoutersClientDeleteResponse], error)
- func (client *VirtualRoutersClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, ...) (VirtualRoutersClientGetResponse, error)
- func (client *VirtualRoutersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[VirtualRoutersClientListByResourceGroupResponse]
- func (client *VirtualRoutersClient) NewListPager(options *VirtualRoutersClientListOptions) *runtime.Pager[VirtualRoutersClientListResponse]
- type VirtualRoutersClientBeginCreateOrUpdateOptions
- type VirtualRoutersClientBeginDeleteOptions
- type VirtualRoutersClientCreateOrUpdateResponse
- type VirtualRoutersClientDeleteResponse
- type VirtualRoutersClientGetOptions
- type VirtualRoutersClientGetResponse
- type VirtualRoutersClientListByResourceGroupOptions
- type VirtualRoutersClientListByResourceGroupResponse
- type VirtualRoutersClientListOptions
- type VirtualRoutersClientListResponse
- type VirtualWAN
- type VirtualWanProperties
- type VirtualWanSecurityProvider
- type VirtualWanSecurityProviderType
- type VirtualWanSecurityProviders
- type VirtualWanVPNProfileParameters
- type VirtualWansClient
- func (client *VirtualWansClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (*runtime.Poller[VirtualWansClientCreateOrUpdateResponse], error)
- func (client *VirtualWansClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (*runtime.Poller[VirtualWansClientDeleteResponse], error)
- func (client *VirtualWansClient) Get(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (VirtualWansClientGetResponse, error)
- func (client *VirtualWansClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualWansClientListByResourceGroupOptions) *runtime.Pager[VirtualWansClientListByResourceGroupResponse]
- func (client *VirtualWansClient) NewListPager(options *VirtualWansClientListOptions) *runtime.Pager[VirtualWansClientListResponse]
- func (client *VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, ...) (VirtualWansClientUpdateTagsResponse, error)
- type VirtualWansClientBeginCreateOrUpdateOptions
- type VirtualWansClientBeginDeleteOptions
- type VirtualWansClientCreateOrUpdateResponse
- type VirtualWansClientDeleteResponse
- type VirtualWansClientGetOptions
- type VirtualWansClientGetResponse
- type VirtualWansClientListByResourceGroupOptions
- type VirtualWansClientListByResourceGroupResponse
- type VirtualWansClientListOptions
- type VirtualWansClientListResponse
- type VirtualWansClientUpdateTagsOptions
- type VirtualWansClientUpdateTagsResponse
- type VnetRoute
- type Watcher
- type WatcherListResult
- type WatcherPropertiesFormat
- type WatchersClient
- func (client *WatchersClient) BeginCheckConnectivity(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientCheckConnectivityResponse], error)
- func (client *WatchersClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientDeleteResponse], error)
- func (client *WatchersClient) BeginGetAzureReachabilityReport(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetAzureReachabilityReportResponse], error)
- func (client *WatchersClient) BeginGetFlowLogStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetFlowLogStatusResponse], error)
- func (client *WatchersClient) BeginGetNetworkConfigurationDiagnostic(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetNetworkConfigurationDiagnosticResponse], ...)
- func (client *WatchersClient) BeginGetNextHop(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetNextHopResponse], error)
- func (client *WatchersClient) BeginGetTroubleshooting(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetTroubleshootingResponse], error)
- func (client *WatchersClient) BeginGetTroubleshootingResult(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetTroubleshootingResultResponse], error)
- func (client *WatchersClient) BeginGetVMSecurityRules(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientGetVMSecurityRulesResponse], error)
- func (client *WatchersClient) BeginListAvailableProviders(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientListAvailableProvidersResponse], error)
- func (client *WatchersClient) BeginSetFlowLogConfiguration(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientSetFlowLogConfigurationResponse], error)
- func (client *WatchersClient) BeginVerifyIPFlow(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (*runtime.Poller[WatchersClientVerifyIPFlowResponse], error)
- func (client *WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (WatchersClientCreateOrUpdateResponse, error)
- func (client *WatchersClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (WatchersClientGetResponse, error)
- func (client *WatchersClient) GetTopology(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (WatchersClientGetTopologyResponse, error)
- func (client *WatchersClient) NewListAllPager(options *WatchersClientListAllOptions) *runtime.Pager[WatchersClientListAllResponse]
- func (client *WatchersClient) NewListPager(resourceGroupName string, options *WatchersClientListOptions) *runtime.Pager[WatchersClientListResponse]
- func (client *WatchersClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, ...) (WatchersClientUpdateTagsResponse, error)
- type WatchersClientBeginCheckConnectivityOptions
- type WatchersClientBeginDeleteOptions
- type WatchersClientBeginGetAzureReachabilityReportOptions
- type WatchersClientBeginGetFlowLogStatusOptions
- type WatchersClientBeginGetNetworkConfigurationDiagnosticOptions
- type WatchersClientBeginGetNextHopOptions
- type WatchersClientBeginGetTroubleshootingOptions
- type WatchersClientBeginGetTroubleshootingResultOptions
- type WatchersClientBeginGetVMSecurityRulesOptions
- type WatchersClientBeginListAvailableProvidersOptions
- type WatchersClientBeginSetFlowLogConfigurationOptions
- type WatchersClientBeginVerifyIPFlowOptions
- type WatchersClientCheckConnectivityResponse
- type WatchersClientCreateOrUpdateOptions
- type WatchersClientCreateOrUpdateResponse
- type WatchersClientDeleteResponse
- type WatchersClientGetAzureReachabilityReportResponse
- type WatchersClientGetFlowLogStatusResponse
- type WatchersClientGetNetworkConfigurationDiagnosticResponse
- type WatchersClientGetNextHopResponse
- type WatchersClientGetOptions
- type WatchersClientGetResponse
- type WatchersClientGetTopologyOptions
- type WatchersClientGetTopologyResponse
- type WatchersClientGetTroubleshootingResponse
- type WatchersClientGetTroubleshootingResultResponse
- type WatchersClientGetVMSecurityRulesResponse
- type WatchersClientListAllOptions
- type WatchersClientListAllResponse
- type WatchersClientListAvailableProvidersResponse
- type WatchersClientListOptions
- type WatchersClientListResponse
- type WatchersClientSetFlowLogConfigurationResponse
- type WatchersClientUpdateTagsOptions
- type WatchersClientUpdateTagsResponse
- type WatchersClientVerifyIPFlowResponse
- type WebApplicationFirewallAction
- type WebApplicationFirewallCustomRule
- type WebApplicationFirewallEnabledState
- type WebApplicationFirewallMatchVariable
- type WebApplicationFirewallMode
- type WebApplicationFirewallOperator
- type WebApplicationFirewallPoliciesClient
- func (client *WebApplicationFirewallPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, policyName string, ...) (*runtime.Poller[WebApplicationFirewallPoliciesClientDeleteResponse], error)
- func (client *WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, ...) (WebApplicationFirewallPoliciesClientCreateOrUpdateResponse, error)
- func (client *WebApplicationFirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string, ...) (WebApplicationFirewallPoliciesClientGetResponse, error)
- func (client *WebApplicationFirewallPoliciesClient) NewListAllPager(options *WebApplicationFirewallPoliciesClientListAllOptions) *runtime.Pager[WebApplicationFirewallPoliciesClientListAllResponse]
- func (client *WebApplicationFirewallPoliciesClient) NewListPager(resourceGroupName string, ...) *runtime.Pager[WebApplicationFirewallPoliciesClientListResponse]
- type WebApplicationFirewallPoliciesClientBeginDeleteOptions
- type WebApplicationFirewallPoliciesClientCreateOrUpdateOptions
- type WebApplicationFirewallPoliciesClientCreateOrUpdateResponse
- type WebApplicationFirewallPoliciesClientDeleteResponse
- type WebApplicationFirewallPoliciesClientGetOptions
- type WebApplicationFirewallPoliciesClientGetResponse
- type WebApplicationFirewallPoliciesClientListAllOptions
- type WebApplicationFirewallPoliciesClientListAllResponse
- type WebApplicationFirewallPoliciesClientListOptions
- type WebApplicationFirewallPoliciesClientListResponse
- type WebApplicationFirewallPolicy
- type WebApplicationFirewallPolicyListResult
- type WebApplicationFirewallPolicyPropertiesFormat
- type WebApplicationFirewallPolicyResourceState
- type WebApplicationFirewallRuleType
- type WebApplicationFirewallTransform
- type WebCategoriesClient
- func (client *WebCategoriesClient) Get(ctx context.Context, name string, options *WebCategoriesClientGetOptions) (WebCategoriesClientGetResponse, error)
- func (client *WebCategoriesClient) NewListBySubscriptionPager(options *WebCategoriesClientListBySubscriptionOptions) *runtime.Pager[WebCategoriesClientListBySubscriptionResponse]
- type WebCategoriesClientGetOptions
- type WebCategoriesClientGetResponse
- type WebCategoriesClientListBySubscriptionOptions
- type WebCategoriesClientListBySubscriptionResponse
Examples ¶
- ApplicationGatewayPrivateEndpointConnectionsClient.BeginDelete
- ApplicationGatewayPrivateEndpointConnectionsClient.BeginUpdate
- ApplicationGatewayPrivateEndpointConnectionsClient.Get
- ApplicationGatewayPrivateEndpointConnectionsClient.NewListPager
- ApplicationGatewayPrivateLinkResourcesClient.NewListPager
- ApplicationGatewaysClient.BeginBackendHealth
- ApplicationGatewaysClient.BeginBackendHealthOnDemand
- ApplicationGatewaysClient.BeginCreateOrUpdate
- ApplicationGatewaysClient.BeginDelete
- ApplicationGatewaysClient.BeginStart
- ApplicationGatewaysClient.BeginStop
- ApplicationGatewaysClient.Get
- ApplicationGatewaysClient.ListAvailableRequestHeaders
- ApplicationGatewaysClient.ListAvailableResponseHeaders
- ApplicationGatewaysClient.ListAvailableServerVariables
- ApplicationGatewaysClient.ListAvailableWafRuleSets
- ApplicationGatewaysClient.NewListAllPager
- ApplicationGatewaysClient.NewListPager
- ApplicationGatewaysClient.UpdateTags
- ApplicationSecurityGroupsClient.BeginCreateOrUpdate
- ApplicationSecurityGroupsClient.BeginDelete
- ApplicationSecurityGroupsClient.Get
- ApplicationSecurityGroupsClient.NewListAllPager
- ApplicationSecurityGroupsClient.NewListPager
- ApplicationSecurityGroupsClient.UpdateTags
- AvailableDelegationsClient.NewListPager
- AvailableEndpointServicesClient.NewListPager
- AvailablePrivateEndpointTypesClient.NewListByResourceGroupPager
- AvailablePrivateEndpointTypesClient.NewListPager
- AvailableResourceGroupDelegationsClient.NewListPager
- AvailableServiceAliasesClient.NewListByResourceGroupPager
- AvailableServiceAliasesClient.NewListPager
- AzureFirewallFqdnTagsClient.NewListAllPager
- AzureFirewallsClient.BeginCreateOrUpdate
- AzureFirewallsClient.BeginDelete
- AzureFirewallsClient.BeginUpdateTags
- AzureFirewallsClient.Get
- AzureFirewallsClient.NewListAllPager
- AzureFirewallsClient.NewListPager
- BastionHostsClient.BeginCreateOrUpdate
- BastionHostsClient.BeginDelete
- BastionHostsClient.BeginUpdateTags
- BastionHostsClient.Get
- BastionHostsClient.NewListByResourceGroupPager
- BastionHostsClient.NewListPager
- BgpServiceCommunitiesClient.NewListPager
- ConfigurationPolicyGroupsClient.BeginCreateOrUpdate
- ConfigurationPolicyGroupsClient.BeginDelete
- ConfigurationPolicyGroupsClient.Get
- ConnectionMonitorsClient.BeginCreateOrUpdate
- ConnectionMonitorsClient.BeginDelete
- ConnectionMonitorsClient.BeginQuery
- ConnectionMonitorsClient.BeginStart
- ConnectionMonitorsClient.BeginStop
- ConnectionMonitorsClient.Get
- ConnectionMonitorsClient.NewListPager
- ConnectionMonitorsClient.UpdateTags
- CustomIPPrefixesClient.BeginCreateOrUpdate
- CustomIPPrefixesClient.BeginDelete
- CustomIPPrefixesClient.Get
- CustomIPPrefixesClient.NewListAllPager
- CustomIPPrefixesClient.NewListPager
- CustomIPPrefixesClient.UpdateTags
- DdosCustomPoliciesClient.BeginCreateOrUpdate
- DdosCustomPoliciesClient.BeginDelete
- DdosCustomPoliciesClient.Get
- DdosCustomPoliciesClient.UpdateTags
- DdosProtectionPlansClient.BeginCreateOrUpdate
- DdosProtectionPlansClient.BeginDelete
- DdosProtectionPlansClient.Get
- DdosProtectionPlansClient.NewListByResourceGroupPager
- DdosProtectionPlansClient.NewListPager
- DdosProtectionPlansClient.UpdateTags
- DefaultSecurityRulesClient.Get
- DefaultSecurityRulesClient.NewListPager
- DscpConfigurationClient.BeginCreateOrUpdate
- DscpConfigurationClient.BeginDelete
- DscpConfigurationClient.Get
- DscpConfigurationClient.NewListAllPager
- DscpConfigurationClient.NewListPager
- ExpressRouteCircuitAuthorizationsClient.BeginCreateOrUpdate
- ExpressRouteCircuitAuthorizationsClient.BeginDelete
- ExpressRouteCircuitAuthorizationsClient.Get
- ExpressRouteCircuitAuthorizationsClient.NewListPager
- ExpressRouteCircuitConnectionsClient.BeginCreateOrUpdate
- ExpressRouteCircuitConnectionsClient.BeginDelete
- ExpressRouteCircuitConnectionsClient.Get
- ExpressRouteCircuitConnectionsClient.NewListPager
- ExpressRouteCircuitPeeringsClient.BeginCreateOrUpdate
- ExpressRouteCircuitPeeringsClient.BeginDelete
- ExpressRouteCircuitPeeringsClient.Get
- ExpressRouteCircuitPeeringsClient.NewListPager
- ExpressRouteCircuitsClient.BeginCreateOrUpdate
- ExpressRouteCircuitsClient.BeginDelete
- ExpressRouteCircuitsClient.BeginListArpTable
- ExpressRouteCircuitsClient.BeginListRoutesTable
- ExpressRouteCircuitsClient.BeginListRoutesTableSummary
- ExpressRouteCircuitsClient.Get
- ExpressRouteCircuitsClient.GetPeeringStats
- ExpressRouteCircuitsClient.GetStats
- ExpressRouteCircuitsClient.NewListAllPager
- ExpressRouteCircuitsClient.NewListPager
- ExpressRouteCircuitsClient.UpdateTags
- ExpressRouteConnectionsClient.BeginCreateOrUpdate
- ExpressRouteConnectionsClient.BeginDelete
- ExpressRouteConnectionsClient.Get
- ExpressRouteConnectionsClient.List
- ExpressRouteCrossConnectionPeeringsClient.BeginCreateOrUpdate
- ExpressRouteCrossConnectionPeeringsClient.BeginDelete
- ExpressRouteCrossConnectionPeeringsClient.Get
- ExpressRouteCrossConnectionPeeringsClient.NewListPager
- ExpressRouteCrossConnectionsClient.BeginCreateOrUpdate
- ExpressRouteCrossConnectionsClient.BeginListArpTable
- ExpressRouteCrossConnectionsClient.BeginListRoutesTable
- ExpressRouteCrossConnectionsClient.BeginListRoutesTableSummary
- ExpressRouteCrossConnectionsClient.Get
- ExpressRouteCrossConnectionsClient.NewListByResourceGroupPager
- ExpressRouteCrossConnectionsClient.NewListPager
- ExpressRouteCrossConnectionsClient.UpdateTags
- ExpressRouteGatewaysClient.BeginCreateOrUpdate
- ExpressRouteGatewaysClient.BeginDelete
- ExpressRouteGatewaysClient.BeginUpdateTags
- ExpressRouteGatewaysClient.Get
- ExpressRouteGatewaysClient.ListByResourceGroup
- ExpressRouteGatewaysClient.ListBySubscription
- ExpressRouteLinksClient.Get
- ExpressRouteLinksClient.NewListPager
- ExpressRoutePortAuthorizationsClient.BeginCreateOrUpdate
- ExpressRoutePortAuthorizationsClient.BeginDelete
- ExpressRoutePortAuthorizationsClient.Get
- ExpressRoutePortAuthorizationsClient.NewListPager
- ExpressRoutePortsClient.BeginCreateOrUpdate
- ExpressRoutePortsClient.BeginDelete
- ExpressRoutePortsClient.GenerateLOA
- ExpressRoutePortsClient.Get
- ExpressRoutePortsClient.NewListByResourceGroupPager
- ExpressRoutePortsClient.NewListPager
- ExpressRoutePortsClient.UpdateTags
- ExpressRoutePortsLocationsClient.Get
- ExpressRoutePortsLocationsClient.NewListPager
- ExpressRouteServiceProvidersClient.NewListPager
- FirewallPoliciesClient.BeginCreateOrUpdate
- FirewallPoliciesClient.BeginDelete
- FirewallPoliciesClient.Get
- FirewallPoliciesClient.NewListAllPager
- FirewallPoliciesClient.NewListPager
- FirewallPoliciesClient.UpdateTags
- FirewallPolicyIdpsSignaturesClient.List
- FirewallPolicyIdpsSignaturesFilterValuesClient.List
- FirewallPolicyIdpsSignaturesOverridesClient.Get
- FirewallPolicyIdpsSignaturesOverridesClient.List
- FirewallPolicyIdpsSignaturesOverridesClient.Patch
- FirewallPolicyIdpsSignaturesOverridesClient.Put
- FirewallPolicyRuleCollectionGroupsClient.BeginCreateOrUpdate
- FirewallPolicyRuleCollectionGroupsClient.BeginDelete
- FirewallPolicyRuleCollectionGroupsClient.Get
- FirewallPolicyRuleCollectionGroupsClient.NewListPager
- FlowLogsClient.BeginCreateOrUpdate
- FlowLogsClient.BeginDelete
- FlowLogsClient.Get
- FlowLogsClient.NewListPager
- FlowLogsClient.UpdateTags
- HubRouteTablesClient.BeginCreateOrUpdate
- HubRouteTablesClient.BeginDelete
- HubRouteTablesClient.Get
- HubRouteTablesClient.NewListPager
- HubVirtualNetworkConnectionsClient.BeginCreateOrUpdate
- HubVirtualNetworkConnectionsClient.BeginDelete
- HubVirtualNetworkConnectionsClient.Get
- HubVirtualNetworkConnectionsClient.NewListPager
- IPAllocationsClient.BeginCreateOrUpdate
- IPAllocationsClient.BeginDelete
- IPAllocationsClient.Get
- IPAllocationsClient.NewListByResourceGroupPager
- IPAllocationsClient.NewListPager
- IPAllocationsClient.UpdateTags
- IPGroupsClient.BeginCreateOrUpdate
- IPGroupsClient.BeginDelete
- IPGroupsClient.Get
- IPGroupsClient.NewListByResourceGroupPager
- IPGroupsClient.NewListPager
- IPGroupsClient.UpdateGroups
- InboundNatRulesClient.BeginCreateOrUpdate
- InboundNatRulesClient.BeginDelete
- InboundNatRulesClient.Get
- InboundNatRulesClient.NewListPager
- InboundSecurityRuleClient.BeginCreateOrUpdate
- InterfaceIPConfigurationsClient.Get
- InterfaceIPConfigurationsClient.NewListPager
- InterfaceLoadBalancersClient.NewListPager
- InterfaceTapConfigurationsClient.BeginCreateOrUpdate
- InterfaceTapConfigurationsClient.BeginDelete
- InterfaceTapConfigurationsClient.Get
- InterfaceTapConfigurationsClient.NewListPager
- InterfacesClient.BeginCreateOrUpdate
- InterfacesClient.BeginDelete
- InterfacesClient.BeginGetEffectiveRouteTable
- InterfacesClient.BeginListEffectiveNetworkSecurityGroups
- InterfacesClient.Get
- InterfacesClient.GetCloudServiceNetworkInterface
- InterfacesClient.GetVirtualMachineScaleSetNetworkInterface
- InterfacesClient.NewListAllPager
- InterfacesClient.NewListCloudServiceNetworkInterfacesPager
- InterfacesClient.NewListCloudServiceRoleInstanceNetworkInterfacesPager
- InterfacesClient.NewListPager
- InterfacesClient.NewListVirtualMachineScaleSetNetworkInterfacesPager
- InterfacesClient.NewListVirtualMachineScaleSetVMNetworkInterfacesPager
- InterfacesClient.UpdateTags
- LoadBalancerBackendAddressPoolsClient.BeginCreateOrUpdate
- LoadBalancerBackendAddressPoolsClient.BeginDelete
- LoadBalancerBackendAddressPoolsClient.Get
- LoadBalancerBackendAddressPoolsClient.NewListPager
- LoadBalancerFrontendIPConfigurationsClient.Get
- LoadBalancerFrontendIPConfigurationsClient.NewListPager
- LoadBalancerLoadBalancingRulesClient.Get
- LoadBalancerLoadBalancingRulesClient.NewListPager
- LoadBalancerNetworkInterfacesClient.NewListPager
- LoadBalancerOutboundRulesClient.Get
- LoadBalancerOutboundRulesClient.NewListPager
- LoadBalancerProbesClient.Get
- LoadBalancerProbesClient.NewListPager
- LoadBalancersClient.BeginCreateOrUpdate
- LoadBalancersClient.BeginDelete
- LoadBalancersClient.BeginListInboundNatRulePortMappings
- LoadBalancersClient.Get
- LoadBalancersClient.NewListAllPager
- LoadBalancersClient.NewListPager
- LoadBalancersClient.UpdateTags
- LocalNetworkGatewaysClient.BeginCreateOrUpdate
- LocalNetworkGatewaysClient.BeginDelete
- LocalNetworkGatewaysClient.Get
- LocalNetworkGatewaysClient.NewListPager
- LocalNetworkGatewaysClient.UpdateTags
- ManagementClient.BeginDeleteBastionShareableLink
- ManagementClient.BeginGeneratevirtualwanvpnserverconfigurationvpnprofile
- ManagementClient.BeginGetActiveSessions
- ManagementClient.BeginPutBastionShareableLink
- ManagementClient.NewDisconnectActiveSessionsPager
- ManagementClient.NewGetBastionShareableLinkPager
- ManagementClient.SupportedSecurityProviders
- NatGatewaysClient.BeginCreateOrUpdate
- NatGatewaysClient.BeginDelete
- NatGatewaysClient.Get
- NatGatewaysClient.NewListAllPager
- NatGatewaysClient.NewListPager
- NatGatewaysClient.UpdateTags
- NatRulesClient.BeginCreateOrUpdate
- NatRulesClient.BeginDelete
- NatRulesClient.Get
- OperationsClient.NewListPager
- P2SVPNGatewaysClient.BeginCreateOrUpdate
- P2SVPNGatewaysClient.BeginDelete
- P2SVPNGatewaysClient.BeginReset
- P2SVPNGatewaysClient.BeginUpdateTags
- P2SVPNGatewaysClient.Get
- P2SVPNGatewaysClient.NewListByResourceGroupPager
- P2SVPNGatewaysClient.NewListPager
- PacketCapturesClient.BeginCreate
- PacketCapturesClient.BeginDelete
- PacketCapturesClient.BeginGetStatus
- PacketCapturesClient.BeginStop
- PacketCapturesClient.Get
- PacketCapturesClient.NewListPager
- PeerExpressRouteCircuitConnectionsClient.Get
- PeerExpressRouteCircuitConnectionsClient.NewListPager
- PrivateDNSZoneGroupsClient.BeginCreateOrUpdate
- PrivateDNSZoneGroupsClient.BeginDelete
- PrivateDNSZoneGroupsClient.Get
- PrivateDNSZoneGroupsClient.NewListPager
- PrivateEndpointsClient.BeginCreateOrUpdate
- PrivateEndpointsClient.BeginDelete
- PrivateEndpointsClient.Get
- PrivateEndpointsClient.NewListBySubscriptionPager
- PrivateEndpointsClient.NewListPager
- PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibility
- PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibilityByResourceGroup
- PrivateLinkServicesClient.BeginCreateOrUpdate
- PrivateLinkServicesClient.BeginDelete
- PrivateLinkServicesClient.BeginDeletePrivateEndpointConnection
- PrivateLinkServicesClient.Get
- PrivateLinkServicesClient.GetPrivateEndpointConnection
- PrivateLinkServicesClient.NewListAutoApprovedPrivateLinkServicesByResourceGroupPager
- PrivateLinkServicesClient.NewListAutoApprovedPrivateLinkServicesPager
- PrivateLinkServicesClient.NewListBySubscriptionPager
- PrivateLinkServicesClient.NewListPager
- PrivateLinkServicesClient.NewListPrivateEndpointConnectionsPager
- PrivateLinkServicesClient.UpdatePrivateEndpointConnection
- ProfilesClient.BeginDelete
- ProfilesClient.CreateOrUpdate
- ProfilesClient.Get
- ProfilesClient.NewListAllPager
- ProfilesClient.NewListPager
- ProfilesClient.UpdateTags
- PublicIPAddressesClient.BeginCreateOrUpdate
- PublicIPAddressesClient.BeginDelete
- PublicIPAddressesClient.Get
- PublicIPAddressesClient.GetCloudServicePublicIPAddress
- PublicIPAddressesClient.GetVirtualMachineScaleSetPublicIPAddress
- PublicIPAddressesClient.NewListAllPager
- PublicIPAddressesClient.NewListCloudServicePublicIPAddressesPager
- PublicIPAddressesClient.NewListCloudServiceRoleInstancePublicIPAddressesPager
- PublicIPAddressesClient.NewListPager
- PublicIPAddressesClient.NewListVirtualMachineScaleSetPublicIPAddressesPager
- PublicIPAddressesClient.NewListVirtualMachineScaleSetVMPublicIPAddressesPager
- PublicIPAddressesClient.UpdateTags
- PublicIPPrefixesClient.BeginCreateOrUpdate
- PublicIPPrefixesClient.BeginDelete
- PublicIPPrefixesClient.Get
- PublicIPPrefixesClient.NewListAllPager
- PublicIPPrefixesClient.NewListPager
- PublicIPPrefixesClient.UpdateTags
- ResourceNavigationLinksClient.List
- RouteFilterRulesClient.BeginCreateOrUpdate
- RouteFilterRulesClient.BeginDelete
- RouteFilterRulesClient.Get
- RouteFilterRulesClient.NewListByRouteFilterPager
- RouteFiltersClient.BeginCreateOrUpdate
- RouteFiltersClient.BeginDelete
- RouteFiltersClient.Get
- RouteFiltersClient.NewListByResourceGroupPager
- RouteFiltersClient.NewListPager
- RouteFiltersClient.UpdateTags
- RouteTablesClient.BeginCreateOrUpdate
- RouteTablesClient.BeginDelete
- RouteTablesClient.Get
- RouteTablesClient.NewListAllPager
- RouteTablesClient.NewListPager
- RouteTablesClient.UpdateTags
- RoutesClient.BeginCreateOrUpdate
- RoutesClient.BeginDelete
- RoutesClient.Get
- RoutesClient.NewListPager
- RoutingIntentClient.BeginCreateOrUpdate
- RoutingIntentClient.BeginDelete
- RoutingIntentClient.Get
- RoutingIntentClient.NewListPager
- SecurityGroupsClient.BeginCreateOrUpdate
- SecurityGroupsClient.BeginDelete
- SecurityGroupsClient.Get
- SecurityGroupsClient.NewListAllPager
- SecurityGroupsClient.NewListPager
- SecurityGroupsClient.UpdateTags
- SecurityPartnerProvidersClient.BeginCreateOrUpdate
- SecurityPartnerProvidersClient.BeginDelete
- SecurityPartnerProvidersClient.Get
- SecurityPartnerProvidersClient.NewListByResourceGroupPager
- SecurityPartnerProvidersClient.NewListPager
- SecurityPartnerProvidersClient.UpdateTags
- SecurityRulesClient.BeginCreateOrUpdate
- SecurityRulesClient.BeginDelete
- SecurityRulesClient.Get
- SecurityRulesClient.NewListPager
- ServiceAssociationLinksClient.List
- ServiceEndpointPoliciesClient.BeginCreateOrUpdate
- ServiceEndpointPoliciesClient.BeginDelete
- ServiceEndpointPoliciesClient.Get
- ServiceEndpointPoliciesClient.NewListByResourceGroupPager
- ServiceEndpointPoliciesClient.NewListPager
- ServiceEndpointPoliciesClient.UpdateTags
- ServiceEndpointPolicyDefinitionsClient.BeginCreateOrUpdate
- ServiceEndpointPolicyDefinitionsClient.BeginDelete
- ServiceEndpointPolicyDefinitionsClient.Get
- ServiceEndpointPolicyDefinitionsClient.NewListByResourceGroupPager
- ServiceTagInformationClient.NewListPager
- ServiceTagsClient.List
- SubnetsClient.BeginCreateOrUpdate
- SubnetsClient.BeginDelete
- SubnetsClient.BeginPrepareNetworkPolicies
- SubnetsClient.BeginUnprepareNetworkPolicies
- SubnetsClient.Get
- SubnetsClient.NewListPager
- UsagesClient.NewListPager
- VPNConnectionsClient.BeginCreateOrUpdate
- VPNConnectionsClient.BeginDelete
- VPNConnectionsClient.BeginStartPacketCapture
- VPNConnectionsClient.BeginStopPacketCapture
- VPNConnectionsClient.Get
- VPNGatewaysClient.BeginCreateOrUpdate
- VPNGatewaysClient.BeginDelete
- VPNGatewaysClient.BeginReset
- VPNGatewaysClient.BeginStartPacketCapture
- VPNGatewaysClient.BeginStopPacketCapture
- VPNGatewaysClient.BeginUpdateTags
- VPNGatewaysClient.Get
- VPNGatewaysClient.NewListByResourceGroupPager
- VPNGatewaysClient.NewListPager
- VPNLinkConnectionsClient.BeginGetIkeSas
- VPNLinkConnectionsClient.BeginResetConnection
- VPNServerConfigurationsAssociatedWithVirtualWanClient.BeginList
- VPNServerConfigurationsClient.BeginCreateOrUpdate
- VPNServerConfigurationsClient.BeginDelete
- VPNServerConfigurationsClient.Get
- VPNServerConfigurationsClient.NewListByResourceGroupPager
- VPNServerConfigurationsClient.NewListPager
- VPNServerConfigurationsClient.UpdateTags
- VPNSiteLinkConnectionsClient.Get
- VPNSiteLinksClient.Get
- VPNSitesClient.BeginCreateOrUpdate
- VPNSitesClient.BeginDelete
- VPNSitesClient.Get
- VPNSitesClient.NewListByResourceGroupPager
- VPNSitesClient.NewListPager
- VPNSitesClient.UpdateTags
- VPNSitesConfigurationClient.BeginDownload
- VirtualApplianceSKUsClient.Get
- VirtualApplianceSKUsClient.NewListPager
- VirtualApplianceSitesClient.BeginCreateOrUpdate
- VirtualApplianceSitesClient.BeginDelete
- VirtualApplianceSitesClient.Get
- VirtualApplianceSitesClient.NewListPager
- VirtualAppliancesClient.BeginCreateOrUpdate
- VirtualAppliancesClient.BeginDelete
- VirtualAppliancesClient.Get
- VirtualAppliancesClient.NewListByResourceGroupPager
- VirtualAppliancesClient.NewListPager
- VirtualAppliancesClient.UpdateTags
- VirtualHubBgpConnectionClient.BeginCreateOrUpdate
- VirtualHubBgpConnectionClient.BeginDelete
- VirtualHubBgpConnectionClient.Get
- VirtualHubBgpConnectionsClient.BeginListAdvertisedRoutes
- VirtualHubBgpConnectionsClient.BeginListLearnedRoutes
- VirtualHubBgpConnectionsClient.NewListPager
- VirtualHubIPConfigurationClient.BeginCreateOrUpdate
- VirtualHubIPConfigurationClient.BeginDelete
- VirtualHubIPConfigurationClient.Get
- VirtualHubIPConfigurationClient.NewListPager
- VirtualHubRouteTableV2SClient.BeginCreateOrUpdate
- VirtualHubRouteTableV2SClient.BeginDelete
- VirtualHubRouteTableV2SClient.Get
- VirtualHubRouteTableV2SClient.NewListPager
- VirtualHubsClient.BeginCreateOrUpdate
- VirtualHubsClient.BeginDelete
- VirtualHubsClient.BeginGetEffectiveVirtualHubRoutes
- VirtualHubsClient.Get
- VirtualHubsClient.NewListByResourceGroupPager
- VirtualHubsClient.NewListPager
- VirtualHubsClient.UpdateTags
- VirtualNetworkGatewayConnectionsClient.BeginCreateOrUpdate
- VirtualNetworkGatewayConnectionsClient.BeginDelete
- VirtualNetworkGatewayConnectionsClient.BeginGetIkeSas
- VirtualNetworkGatewayConnectionsClient.BeginResetConnection
- VirtualNetworkGatewayConnectionsClient.BeginResetSharedKey
- VirtualNetworkGatewayConnectionsClient.BeginSetSharedKey
- VirtualNetworkGatewayConnectionsClient.BeginStartPacketCapture
- VirtualNetworkGatewayConnectionsClient.BeginStopPacketCapture
- VirtualNetworkGatewayConnectionsClient.BeginUpdateTags
- VirtualNetworkGatewayConnectionsClient.Get
- VirtualNetworkGatewayConnectionsClient.GetSharedKey
- VirtualNetworkGatewayConnectionsClient.NewListPager
- VirtualNetworkGatewayNatRulesClient.BeginCreateOrUpdate
- VirtualNetworkGatewayNatRulesClient.BeginDelete
- VirtualNetworkGatewayNatRulesClient.Get
- VirtualNetworkGatewayNatRulesClient.NewListByVirtualNetworkGatewayPager
- VirtualNetworkGatewaysClient.BeginCreateOrUpdate
- VirtualNetworkGatewaysClient.BeginDelete
- VirtualNetworkGatewaysClient.BeginGeneratevpnclientpackage
- VirtualNetworkGatewaysClient.BeginGetAdvertisedRoutes
- VirtualNetworkGatewaysClient.BeginGetBgpPeerStatus
- VirtualNetworkGatewaysClient.BeginGetLearnedRoutes
- VirtualNetworkGatewaysClient.BeginGetVpnclientConnectionHealth
- VirtualNetworkGatewaysClient.BeginReset
- VirtualNetworkGatewaysClient.BeginStartPacketCapture
- VirtualNetworkGatewaysClient.BeginStopPacketCapture
- VirtualNetworkGatewaysClient.BeginUpdateTags
- VirtualNetworkGatewaysClient.Get
- VirtualNetworkGatewaysClient.NewListConnectionsPager
- VirtualNetworkGatewaysClient.NewListPager
- VirtualNetworkPeeringsClient.BeginCreateOrUpdate
- VirtualNetworkPeeringsClient.BeginDelete
- VirtualNetworkPeeringsClient.Get
- VirtualNetworkPeeringsClient.NewListPager
- VirtualNetworkTapsClient.BeginCreateOrUpdate
- VirtualNetworkTapsClient.BeginDelete
- VirtualNetworkTapsClient.Get
- VirtualNetworkTapsClient.NewListAllPager
- VirtualNetworkTapsClient.NewListByResourceGroupPager
- VirtualNetworkTapsClient.UpdateTags
- VirtualNetworksClient.BeginCreateOrUpdate
- VirtualNetworksClient.BeginDelete
- VirtualNetworksClient.CheckIPAddressAvailability
- VirtualNetworksClient.Get
- VirtualNetworksClient.NewListAllPager
- VirtualNetworksClient.NewListPager
- VirtualNetworksClient.NewListUsagePager
- VirtualNetworksClient.UpdateTags
- VirtualRouterPeeringsClient.BeginCreateOrUpdate
- VirtualRouterPeeringsClient.BeginDelete
- VirtualRouterPeeringsClient.Get
- VirtualRouterPeeringsClient.NewListPager
- VirtualRoutersClient.BeginCreateOrUpdate
- VirtualRoutersClient.BeginDelete
- VirtualRoutersClient.Get
- VirtualRoutersClient.NewListByResourceGroupPager
- VirtualRoutersClient.NewListPager
- VirtualWansClient.BeginCreateOrUpdate
- VirtualWansClient.BeginDelete
- VirtualWansClient.Get
- VirtualWansClient.NewListByResourceGroupPager
- VirtualWansClient.NewListPager
- VirtualWansClient.UpdateTags
- WatchersClient.BeginCheckConnectivity
- WatchersClient.BeginDelete
- WatchersClient.BeginGetAzureReachabilityReport
- WatchersClient.BeginGetFlowLogStatus
- WatchersClient.BeginGetNetworkConfigurationDiagnostic
- WatchersClient.BeginGetNextHop
- WatchersClient.BeginGetTroubleshooting
- WatchersClient.BeginGetTroubleshootingResult
- WatchersClient.BeginGetVMSecurityRules
- WatchersClient.BeginListAvailableProviders
- WatchersClient.BeginSetFlowLogConfiguration
- WatchersClient.BeginVerifyIPFlow
- WatchersClient.CreateOrUpdate
- WatchersClient.Get
- WatchersClient.GetTopology
- WatchersClient.NewListAllPager
- WatchersClient.NewListPager
- WatchersClient.UpdateTags
- WebApplicationFirewallPoliciesClient.BeginDelete
- WebApplicationFirewallPoliciesClient.CreateOrUpdate
- WebApplicationFirewallPoliciesClient.Get
- WebApplicationFirewallPoliciesClient.NewListAllPager
- WebApplicationFirewallPoliciesClient.NewListPager
- WebCategoriesClient.Get
- WebCategoriesClient.NewListBySubscriptionPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AADAuthenticationParameters ¶
type AADAuthenticationParameters struct { // AAD Vpn authentication parameter AAD audience. AADAudience *string `json:"aadAudience,omitempty"` // AAD Vpn authentication parameter AAD issuer. AADIssuer *string `json:"aadIssuer,omitempty"` // AAD Vpn authentication parameter AAD tenant. AADTenant *string `json:"aadTenant,omitempty"` }
AADAuthenticationParameters - AAD Vpn authentication type related parameters.
type Access ¶
type Access string
Access - Access to be allowed or denied.
func PossibleAccessValues ¶
func PossibleAccessValues() []Access
PossibleAccessValues returns the possible values for the Access const type.
type AddressSpace ¶
type AddressSpace struct { // A list of address blocks reserved for this virtual network in CIDR notation. AddressPrefixes []*string `json:"addressPrefixes,omitempty"` }
AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.
func (AddressSpace) MarshalJSON ¶
func (a AddressSpace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AddressSpace.
type ApplicationGateway ¶
type ApplicationGateway struct { // Resource ID. ID *string `json:"id,omitempty"` // The identity of the application gateway, if configured. Identity *ManagedServiceIdentity `json:"identity,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the application gateway. Properties *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting where the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGateway - Application gateway resource.
func (ApplicationGateway) MarshalJSON ¶
func (a ApplicationGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGateway.
type ApplicationGatewayAuthenticationCertificate ¶
type ApplicationGatewayAuthenticationCertificate struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the authentication certificate that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway authentication certificate. Properties *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayAuthenticationCertificate - Authentication certificates of an application gateway.
type ApplicationGatewayAuthenticationCertificatePropertiesFormat ¶
type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { // Certificate public data. Data *string `json:"data,omitempty"` // READ-ONLY; The provisioning state of the authentication certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayAuthenticationCertificatePropertiesFormat - Authentication certificates properties of an application gateway.
type ApplicationGatewayAutoscaleConfiguration ¶
type ApplicationGatewayAutoscaleConfiguration struct { // REQUIRED; Lower bound on number of Application Gateway capacity. MinCapacity *int32 `json:"minCapacity,omitempty"` // Upper bound on number of Application Gateway capacity. MaxCapacity *int32 `json:"maxCapacity,omitempty"` }
ApplicationGatewayAutoscaleConfiguration - Application Gateway autoscale configuration.
type ApplicationGatewayAvailableSSLOptions ¶
type ApplicationGatewayAvailableSSLOptions struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the application gateway available SSL options. Properties *ApplicationGatewayAvailableSSLOptionsPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayAvailableSSLOptions - Response for ApplicationGatewayAvailableSslOptions API service call.
func (ApplicationGatewayAvailableSSLOptions) MarshalJSON ¶
func (a ApplicationGatewayAvailableSSLOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayAvailableSSLOptions.
type ApplicationGatewayAvailableSSLOptionsPropertiesFormat ¶
type ApplicationGatewayAvailableSSLOptionsPropertiesFormat struct { // List of available Ssl cipher suites. AvailableCipherSuites []*ApplicationGatewaySSLCipherSuite `json:"availableCipherSuites,omitempty"` // List of available Ssl protocols. AvailableProtocols []*ApplicationGatewaySSLProtocol `json:"availableProtocols,omitempty"` // Name of the Ssl predefined policy applied by default to application gateway. DefaultPolicy *ApplicationGatewaySSLPolicyName `json:"defaultPolicy,omitempty"` // List of available Ssl predefined policy. PredefinedPolicies []*SubResource `json:"predefinedPolicies,omitempty"` }
ApplicationGatewayAvailableSSLOptionsPropertiesFormat - Properties of ApplicationGatewayAvailableSslOptions.
func (ApplicationGatewayAvailableSSLOptionsPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayAvailableSSLOptionsPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayAvailableSSLOptionsPropertiesFormat.
type ApplicationGatewayAvailableSSLPredefinedPolicies ¶
type ApplicationGatewayAvailableSSLPredefinedPolicies struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of available Ssl predefined policy. Value []*ApplicationGatewaySSLPredefinedPolicy `json:"value,omitempty"` }
ApplicationGatewayAvailableSSLPredefinedPolicies - Response for ApplicationGatewayAvailableSslOptions API service call.
type ApplicationGatewayAvailableWafRuleSetsResult ¶
type ApplicationGatewayAvailableWafRuleSetsResult struct { // The list of application gateway rule sets. Value []*ApplicationGatewayFirewallRuleSet `json:"value,omitempty"` }
ApplicationGatewayAvailableWafRuleSetsResult - Response for ApplicationGatewayAvailableWafRuleSets API service call.
type ApplicationGatewayBackendAddress ¶
type ApplicationGatewayBackendAddress struct { // Fully qualified domain name (FQDN). Fqdn *string `json:"fqdn,omitempty"` // IP address. IPAddress *string `json:"ipAddress,omitempty"` }
ApplicationGatewayBackendAddress - Backend address of an application gateway.
type ApplicationGatewayBackendAddressPool ¶
type ApplicationGatewayBackendAddressPool struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the backend address pool that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway backend address pool. Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayBackendAddressPool - Backend Address Pool of an application gateway.
type ApplicationGatewayBackendAddressPoolPropertiesFormat ¶
type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { // Backend addresses. BackendAddresses []*ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` // READ-ONLY; Collection of references to IPs defined in network interfaces. BackendIPConfigurations []*InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the backend address pool resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayBackendAddressPoolPropertiesFormat - Properties of Backend Address Pool of an application gateway.
func (ApplicationGatewayBackendAddressPoolPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayBackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayBackendAddressPoolPropertiesFormat.
type ApplicationGatewayBackendHTTPSettings ¶
type ApplicationGatewayBackendHTTPSettings struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the backend http settings that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway backend HTTP settings. Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayBackendHTTPSettings - Backend address pool settings of an application gateway.
type ApplicationGatewayBackendHTTPSettingsPropertiesFormat ¶
type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { // Cookie name to use for the affinity cookie. AffinityCookieName *string `json:"affinityCookieName,omitempty"` // Array of references to application gateway authentication certificates. AuthenticationCertificates []*SubResource `json:"authenticationCertificates,omitempty"` // Connection draining of the backend http settings resource. ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` // Cookie based affinity. CookieBasedAffinity *ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` // Host header to be sent to the backend servers. HostName *string `json:"hostName,omitempty"` // Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null. Path *string `json:"path,omitempty"` // Whether to pick host header should be picked from the host name of the backend server. Default value is false. PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` // The destination port on the backend. Port *int32 `json:"port,omitempty"` // Probe resource of an application gateway. Probe *SubResource `json:"probe,omitempty"` // Whether the probe is enabled. Default value is false. ProbeEnabled *bool `json:"probeEnabled,omitempty"` // The protocol used to communicate with the backend. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. // Acceptable values are from 1 second to 86400 seconds. RequestTimeout *int32 `json:"requestTimeout,omitempty"` // Array of references to application gateway trusted root certificates. TrustedRootCertificates []*SubResource `json:"trustedRootCertificates,omitempty"` // READ-ONLY; The provisioning state of the backend HTTP settings resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayBackendHTTPSettingsPropertiesFormat - Properties of Backend address pool settings of an application gateway.
func (ApplicationGatewayBackendHTTPSettingsPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayBackendHTTPSettingsPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayBackendHTTPSettingsPropertiesFormat.
type ApplicationGatewayBackendHealth ¶
type ApplicationGatewayBackendHealth struct { // A list of ApplicationGatewayBackendHealthPool resources. BackendAddressPools []*ApplicationGatewayBackendHealthPool `json:"backendAddressPools,omitempty"` }
ApplicationGatewayBackendHealth - Response for ApplicationGatewayBackendHealth API service call.
type ApplicationGatewayBackendHealthHTTPSettings ¶
type ApplicationGatewayBackendHealthHTTPSettings struct { // Reference to an ApplicationGatewayBackendHttpSettings resource. BackendHTTPSettings *ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettings,omitempty"` // List of ApplicationGatewayBackendHealthServer resources. Servers []*ApplicationGatewayBackendHealthServer `json:"servers,omitempty"` }
ApplicationGatewayBackendHealthHTTPSettings - Application gateway BackendHealthHttp settings.
type ApplicationGatewayBackendHealthOnDemand ¶
type ApplicationGatewayBackendHealthOnDemand struct { // Reference to an ApplicationGatewayBackendAddressPool resource. BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` // Application gateway BackendHealthHttp settings. BackendHealthHTTPSettings *ApplicationGatewayBackendHealthHTTPSettings `json:"backendHealthHttpSettings,omitempty"` }
ApplicationGatewayBackendHealthOnDemand - Result of on demand test probe.
type ApplicationGatewayBackendHealthPool ¶
type ApplicationGatewayBackendHealthPool struct { // Reference to an ApplicationGatewayBackendAddressPool resource. BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` // List of ApplicationGatewayBackendHealthHttpSettings resources. BackendHTTPSettingsCollection []*ApplicationGatewayBackendHealthHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` }
ApplicationGatewayBackendHealthPool - Application gateway BackendHealth pool.
type ApplicationGatewayBackendHealthServer ¶
type ApplicationGatewayBackendHealthServer struct { // IP address or FQDN of backend server. Address *string `json:"address,omitempty"` // Health of backend server. Health *ApplicationGatewayBackendHealthServerHealth `json:"health,omitempty"` // Health Probe Log. HealthProbeLog *string `json:"healthProbeLog,omitempty"` // Reference to IP configuration of backend server. IPConfiguration *InterfaceIPConfiguration `json:"ipConfiguration,omitempty"` }
ApplicationGatewayBackendHealthServer - Application gateway backendhealth http settings.
type ApplicationGatewayBackendHealthServerHealth ¶
type ApplicationGatewayBackendHealthServerHealth string
ApplicationGatewayBackendHealthServerHealth - Health of backend server.
const ( ApplicationGatewayBackendHealthServerHealthDown ApplicationGatewayBackendHealthServerHealth = "Down" ApplicationGatewayBackendHealthServerHealthDraining ApplicationGatewayBackendHealthServerHealth = "Draining" ApplicationGatewayBackendHealthServerHealthPartial ApplicationGatewayBackendHealthServerHealth = "Partial" ApplicationGatewayBackendHealthServerHealthUnknown ApplicationGatewayBackendHealthServerHealth = "Unknown" ApplicationGatewayBackendHealthServerHealthUp ApplicationGatewayBackendHealthServerHealth = "Up" )
func PossibleApplicationGatewayBackendHealthServerHealthValues ¶
func PossibleApplicationGatewayBackendHealthServerHealthValues() []ApplicationGatewayBackendHealthServerHealth
PossibleApplicationGatewayBackendHealthServerHealthValues returns the possible values for the ApplicationGatewayBackendHealthServerHealth const type.
type ApplicationGatewayBackendSettings ¶ added in v1.0.0
type ApplicationGatewayBackendSettings struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the backend settings that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway backend settings. Properties *ApplicationGatewayBackendSettingsPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayBackendSettings - Backend address pool settings of an application gateway.
type ApplicationGatewayBackendSettingsPropertiesFormat ¶ added in v1.0.0
type ApplicationGatewayBackendSettingsPropertiesFormat struct { // Server name indication to be sent to the backend servers for Tls protocol. HostName *string `json:"hostName,omitempty"` // Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false. PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` // The destination port on the backend. Port *int32 `json:"port,omitempty"` // Probe resource of an application gateway. Probe *SubResource `json:"probe,omitempty"` // The protocol used to communicate with the backend. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. // Acceptable values are from 1 second to 86400 seconds. Timeout *int32 `json:"timeout,omitempty"` // Array of references to application gateway trusted root certificates. TrustedRootCertificates []*SubResource `json:"trustedRootCertificates,omitempty"` // READ-ONLY; The provisioning state of the backend HTTP settings resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayBackendSettingsPropertiesFormat - Properties of Backend address pool settings of an application gateway.
func (ApplicationGatewayBackendSettingsPropertiesFormat) MarshalJSON ¶ added in v1.0.0
func (a ApplicationGatewayBackendSettingsPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayBackendSettingsPropertiesFormat.
type ApplicationGatewayClientAuthConfiguration ¶
type ApplicationGatewayClientAuthConfiguration struct { // Verify client certificate issuer name on the application gateway. VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` }
ApplicationGatewayClientAuthConfiguration - Application gateway client authentication configuration.
type ApplicationGatewayConnectionDraining ¶
type ApplicationGatewayConnectionDraining struct { // REQUIRED; The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds. DrainTimeoutInSec *int32 `json:"drainTimeoutInSec,omitempty"` // REQUIRED; Whether connection draining is enabled or not. Enabled *bool `json:"enabled,omitempty"` }
ApplicationGatewayConnectionDraining - Connection draining allows open connections to a backend server to be active for a specified time after the backend server got removed from the configuration.
type ApplicationGatewayCookieBasedAffinity ¶
type ApplicationGatewayCookieBasedAffinity string
ApplicationGatewayCookieBasedAffinity - Cookie based affinity.
const ( ApplicationGatewayCookieBasedAffinityDisabled ApplicationGatewayCookieBasedAffinity = "Disabled" ApplicationGatewayCookieBasedAffinityEnabled ApplicationGatewayCookieBasedAffinity = "Enabled" )
func PossibleApplicationGatewayCookieBasedAffinityValues ¶
func PossibleApplicationGatewayCookieBasedAffinityValues() []ApplicationGatewayCookieBasedAffinity
PossibleApplicationGatewayCookieBasedAffinityValues returns the possible values for the ApplicationGatewayCookieBasedAffinity const type.
type ApplicationGatewayCustomError ¶
type ApplicationGatewayCustomError struct { // Error page URL of the application gateway customer error. CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` // Status code of the application gateway customer error. StatusCode *ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` }
ApplicationGatewayCustomError - Customer error of an application gateway.
type ApplicationGatewayCustomErrorStatusCode ¶
type ApplicationGatewayCustomErrorStatusCode string
ApplicationGatewayCustomErrorStatusCode - Status code of the application gateway customer error.
const ( ApplicationGatewayCustomErrorStatusCodeHTTPStatus403 ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" ApplicationGatewayCustomErrorStatusCodeHTTPStatus502 ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" )
func PossibleApplicationGatewayCustomErrorStatusCodeValues ¶
func PossibleApplicationGatewayCustomErrorStatusCodeValues() []ApplicationGatewayCustomErrorStatusCode
PossibleApplicationGatewayCustomErrorStatusCodeValues returns the possible values for the ApplicationGatewayCustomErrorStatusCode const type.
type ApplicationGatewayFirewallDisabledRuleGroup ¶
type ApplicationGatewayFirewallDisabledRuleGroup struct { // REQUIRED; The name of the rule group that will be disabled. RuleGroupName *string `json:"ruleGroupName,omitempty"` // The list of rules that will be disabled. If null, all rules of the rule group will be disabled. Rules []*int32 `json:"rules,omitempty"` }
ApplicationGatewayFirewallDisabledRuleGroup - Allows to disable rules within a rule group or an entire rule group.
func (ApplicationGatewayFirewallDisabledRuleGroup) MarshalJSON ¶
func (a ApplicationGatewayFirewallDisabledRuleGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayFirewallDisabledRuleGroup.
type ApplicationGatewayFirewallExclusion ¶
type ApplicationGatewayFirewallExclusion struct { // REQUIRED; The variable to be excluded. MatchVariable *string `json:"matchVariable,omitempty"` // REQUIRED; When matchVariable is a collection, operator used to specify which elements in the collection this exclusion // applies to. Selector *string `json:"selector,omitempty"` // REQUIRED; When matchVariable is a collection, operate on the selector to specify which elements in the collection this // exclusion applies to. SelectorMatchOperator *string `json:"selectorMatchOperator,omitempty"` }
ApplicationGatewayFirewallExclusion - Allow to exclude some variable satisfy the condition for the WAF check.
type ApplicationGatewayFirewallMode ¶
type ApplicationGatewayFirewallMode string
ApplicationGatewayFirewallMode - Web application firewall mode.
const ( ApplicationGatewayFirewallModeDetection ApplicationGatewayFirewallMode = "Detection" ApplicationGatewayFirewallModePrevention ApplicationGatewayFirewallMode = "Prevention" )
func PossibleApplicationGatewayFirewallModeValues ¶
func PossibleApplicationGatewayFirewallModeValues() []ApplicationGatewayFirewallMode
PossibleApplicationGatewayFirewallModeValues returns the possible values for the ApplicationGatewayFirewallMode const type.
type ApplicationGatewayFirewallRule ¶
type ApplicationGatewayFirewallRule struct { // REQUIRED; The identifier of the web application firewall rule. RuleID *int32 `json:"ruleId,omitempty"` // The description of the web application firewall rule. Description *string `json:"description,omitempty"` }
ApplicationGatewayFirewallRule - A web application firewall rule.
type ApplicationGatewayFirewallRuleGroup ¶
type ApplicationGatewayFirewallRuleGroup struct { // REQUIRED; The name of the web application firewall rule group. RuleGroupName *string `json:"ruleGroupName,omitempty"` // REQUIRED; The rules of the web application firewall rule group. Rules []*ApplicationGatewayFirewallRule `json:"rules,omitempty"` // The description of the web application firewall rule group. Description *string `json:"description,omitempty"` }
ApplicationGatewayFirewallRuleGroup - A web application firewall rule group.
func (ApplicationGatewayFirewallRuleGroup) MarshalJSON ¶
func (a ApplicationGatewayFirewallRuleGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayFirewallRuleGroup.
type ApplicationGatewayFirewallRuleSet ¶
type ApplicationGatewayFirewallRuleSet struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the application gateway firewall rule set. Properties *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayFirewallRuleSet - A web application firewall rule set.
func (ApplicationGatewayFirewallRuleSet) MarshalJSON ¶
func (a ApplicationGatewayFirewallRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayFirewallRuleSet.
type ApplicationGatewayFirewallRuleSetPropertiesFormat ¶
type ApplicationGatewayFirewallRuleSetPropertiesFormat struct { // REQUIRED; The rule groups of the web application firewall rule set. RuleGroups []*ApplicationGatewayFirewallRuleGroup `json:"ruleGroups,omitempty"` // REQUIRED; The type of the web application firewall rule set. RuleSetType *string `json:"ruleSetType,omitempty"` // REQUIRED; The version of the web application firewall rule set type. RuleSetVersion *string `json:"ruleSetVersion,omitempty"` // READ-ONLY; The provisioning state of the web application firewall rule set. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayFirewallRuleSetPropertiesFormat - Properties of the web application firewall rule set.
func (ApplicationGatewayFirewallRuleSetPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayFirewallRuleSetPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayFirewallRuleSetPropertiesFormat.
type ApplicationGatewayFrontendIPConfiguration ¶
type ApplicationGatewayFrontendIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the frontend IP configuration that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway frontend IP configuration. Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayFrontendIPConfiguration - Frontend IP configuration of an application gateway.
type ApplicationGatewayFrontendIPConfigurationPropertiesFormat ¶
type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { // PrivateIPAddress of the network interface IP Configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // Reference to the application gateway private link configuration. PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` // Reference to the PublicIP resource. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` // Reference to the subnet resource. Subnet *SubResource `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the frontend IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayFrontendIPConfigurationPropertiesFormat - Properties of Frontend IP configuration of an application gateway.
type ApplicationGatewayFrontendPort ¶
type ApplicationGatewayFrontendPort struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the frontend port that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway frontend port. Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayFrontendPort - Frontend port of an application gateway.
type ApplicationGatewayFrontendPortPropertiesFormat ¶
type ApplicationGatewayFrontendPortPropertiesFormat struct { // Frontend port. Port *int32 `json:"port,omitempty"` // READ-ONLY; The provisioning state of the frontend port resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayFrontendPortPropertiesFormat - Properties of Frontend port of an application gateway.
type ApplicationGatewayGlobalConfiguration ¶
type ApplicationGatewayGlobalConfiguration struct { // Enable request buffering. EnableRequestBuffering *bool `json:"enableRequestBuffering,omitempty"` // Enable response buffering. EnableResponseBuffering *bool `json:"enableResponseBuffering,omitempty"` }
ApplicationGatewayGlobalConfiguration - Application Gateway global configuration.
type ApplicationGatewayHTTPListener ¶
type ApplicationGatewayHTTPListener struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the HTTP listener that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway HTTP listener. Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayHTTPListener - Http listener of an application gateway.
type ApplicationGatewayHTTPListenerPropertiesFormat ¶
type ApplicationGatewayHTTPListenerPropertiesFormat struct { // Custom error configurations of the HTTP listener. CustomErrorConfigurations []*ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` // Reference to the FirewallPolicy resource. FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` // Frontend IP configuration resource of an application gateway. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` // Frontend port resource of an application gateway. FrontendPort *SubResource `json:"frontendPort,omitempty"` // Host name of HTTP listener. HostName *string `json:"hostName,omitempty"` // List of Host names for HTTP Listener that allows special wildcard characters as well. HostNames []*string `json:"hostNames,omitempty"` // Protocol of the HTTP listener. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // Applicable only if protocol is https. Enables SNI for multi-hosting. RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` // SSL certificate resource of an application gateway. SSLCertificate *SubResource `json:"sslCertificate,omitempty"` // SSL profile resource of the application gateway. SSLProfile *SubResource `json:"sslProfile,omitempty"` // READ-ONLY; The provisioning state of the HTTP listener resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayHTTPListenerPropertiesFormat - Properties of HTTP listener of an application gateway.
func (ApplicationGatewayHTTPListenerPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayHTTPListenerPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayHTTPListenerPropertiesFormat.
type ApplicationGatewayHeaderConfiguration ¶
type ApplicationGatewayHeaderConfiguration struct { // Header name of the header configuration. HeaderName *string `json:"headerName,omitempty"` // Header value of the header configuration. HeaderValue *string `json:"headerValue,omitempty"` }
ApplicationGatewayHeaderConfiguration - Header configuration of the Actions set in Application Gateway.
type ApplicationGatewayIPConfiguration ¶
type ApplicationGatewayIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the IP configuration that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway IP configuration. Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayIPConfiguration - IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed.
type ApplicationGatewayIPConfigurationPropertiesFormat ¶
type ApplicationGatewayIPConfigurationPropertiesFormat struct { // Reference to the subnet resource. A subnet from where application gateway gets its private address. Subnet *SubResource `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the application gateway IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayIPConfigurationPropertiesFormat - Properties of IP configuration of an application gateway.
type ApplicationGatewayListResult ¶
type ApplicationGatewayListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of an application gateways in a resource group. Value []*ApplicationGateway `json:"value,omitempty"` }
ApplicationGatewayListResult - Response for ListApplicationGateways API service call.
type ApplicationGatewayListener ¶ added in v1.0.0
type ApplicationGatewayListener struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the listener that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway listener. Properties *ApplicationGatewayListenerPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayListener - Listener of an application gateway.
type ApplicationGatewayListenerPropertiesFormat ¶ added in v1.0.0
type ApplicationGatewayListenerPropertiesFormat struct { // Frontend IP configuration resource of an application gateway. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` // Frontend port resource of an application gateway. FrontendPort *SubResource `json:"frontendPort,omitempty"` // Protocol of the listener. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // SSL certificate resource of an application gateway. SSLCertificate *SubResource `json:"sslCertificate,omitempty"` // SSL profile resource of the application gateway. SSLProfile *SubResource `json:"sslProfile,omitempty"` // READ-ONLY; The provisioning state of the listener resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayListenerPropertiesFormat - Properties of listener of an application gateway.
type ApplicationGatewayLoadDistributionAlgorithm ¶
type ApplicationGatewayLoadDistributionAlgorithm string
ApplicationGatewayLoadDistributionAlgorithm - Load Distribution Algorithm enums.
const ( ApplicationGatewayLoadDistributionAlgorithmIPHash ApplicationGatewayLoadDistributionAlgorithm = "IpHash" ApplicationGatewayLoadDistributionAlgorithmLeastConnections ApplicationGatewayLoadDistributionAlgorithm = "LeastConnections" ApplicationGatewayLoadDistributionAlgorithmRoundRobin ApplicationGatewayLoadDistributionAlgorithm = "RoundRobin" )
func PossibleApplicationGatewayLoadDistributionAlgorithmValues ¶
func PossibleApplicationGatewayLoadDistributionAlgorithmValues() []ApplicationGatewayLoadDistributionAlgorithm
PossibleApplicationGatewayLoadDistributionAlgorithmValues returns the possible values for the ApplicationGatewayLoadDistributionAlgorithm const type.
type ApplicationGatewayLoadDistributionPolicy ¶
type ApplicationGatewayLoadDistributionPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the load distribution policy that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway load distribution policy. Properties *ApplicationGatewayLoadDistributionPolicyPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayLoadDistributionPolicy - Load Distribution Policy of an application gateway.
type ApplicationGatewayLoadDistributionPolicyPropertiesFormat ¶
type ApplicationGatewayLoadDistributionPolicyPropertiesFormat struct { // Load Distribution Targets resource of an application gateway. LoadDistributionAlgorithm *ApplicationGatewayLoadDistributionAlgorithm `json:"loadDistributionAlgorithm,omitempty"` // Load Distribution Targets resource of an application gateway. LoadDistributionTargets []*ApplicationGatewayLoadDistributionTarget `json:"loadDistributionTargets,omitempty"` // READ-ONLY; The provisioning state of the Load Distribution Policy resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayLoadDistributionPolicyPropertiesFormat - Properties of Load Distribution Policy of an application gateway.
func (ApplicationGatewayLoadDistributionPolicyPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayLoadDistributionPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayLoadDistributionPolicyPropertiesFormat.
type ApplicationGatewayLoadDistributionTarget ¶
type ApplicationGatewayLoadDistributionTarget struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the load distribution policy that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway load distribution target. Properties *ApplicationGatewayLoadDistributionTargetPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayLoadDistributionTarget - Load Distribution Target of an application gateway.
type ApplicationGatewayLoadDistributionTargetPropertiesFormat ¶
type ApplicationGatewayLoadDistributionTargetPropertiesFormat struct { // Backend address pool resource of the application gateway. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // Weight per server. Range between 1 and 100. WeightPerServer *int32 `json:"weightPerServer,omitempty"` }
type ApplicationGatewayOnDemandProbe ¶
type ApplicationGatewayOnDemandProbe struct { // Reference to backend pool of application gateway to which probe request will be sent. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // Reference to backend http setting of application gateway to be used for test probe. BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` // Host name to send the probe to. Host *string `json:"host,omitempty"` // Criterion for classifying a healthy probe response. Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` // Relative path of probe. Valid path starts from '/'. Probe is sent to ://:. Path *string `json:"path,omitempty"` // Whether the host header should be picked from the backend http settings. Default value is false. PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` // The protocol used for the probe. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable // values are from 1 second to 86400 seconds. Timeout *int32 `json:"timeout,omitempty"` }
ApplicationGatewayOnDemandProbe - Details of on demand test probe request.
type ApplicationGatewayOperationalState ¶
type ApplicationGatewayOperationalState string
ApplicationGatewayOperationalState - Operational state of the application gateway resource.
const ( ApplicationGatewayOperationalStateRunning ApplicationGatewayOperationalState = "Running" ApplicationGatewayOperationalStateStarting ApplicationGatewayOperationalState = "Starting" ApplicationGatewayOperationalStateStopped ApplicationGatewayOperationalState = "Stopped" ApplicationGatewayOperationalStateStopping ApplicationGatewayOperationalState = "Stopping" )
func PossibleApplicationGatewayOperationalStateValues ¶
func PossibleApplicationGatewayOperationalStateValues() []ApplicationGatewayOperationalState
PossibleApplicationGatewayOperationalStateValues returns the possible values for the ApplicationGatewayOperationalState const type.
type ApplicationGatewayPathRule ¶
type ApplicationGatewayPathRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the path rule that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway path rule. Properties *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayPathRule - Path rule of URL path map of an application gateway.
type ApplicationGatewayPathRulePropertiesFormat ¶
type ApplicationGatewayPathRulePropertiesFormat struct { // Backend address pool resource of URL path map path rule. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // Backend http settings resource of URL path map path rule. BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` // Reference to the FirewallPolicy resource. FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` // Load Distribution Policy resource of URL path map path rule. LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` // Path rules of URL path map. Paths []*string `json:"paths,omitempty"` // Redirect configuration resource of URL path map path rule. RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` // Rewrite rule set resource of URL path map path rule. RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` // READ-ONLY; The provisioning state of the path rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayPathRulePropertiesFormat - Properties of path rule of an application gateway.
func (ApplicationGatewayPathRulePropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayPathRulePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayPathRulePropertiesFormat.
type ApplicationGatewayPrivateEndpointConnection ¶
type ApplicationGatewayPrivateEndpointConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the private endpoint connection on an application gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway private endpoint connection. Properties *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayPrivateEndpointConnection - Private Endpoint connection on an application gateway.
type ApplicationGatewayPrivateEndpointConnectionListResult ¶
type ApplicationGatewayPrivateEndpointConnectionListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of private endpoint connections on an application gateway. Value []*ApplicationGatewayPrivateEndpointConnection `json:"value,omitempty"` }
ApplicationGatewayPrivateEndpointConnectionListResult - Response for ListApplicationGatewayPrivateEndpointConnection API service call. Gets all private endpoint connections for an application gateway.
type ApplicationGatewayPrivateEndpointConnectionProperties ¶
type ApplicationGatewayPrivateEndpointConnectionProperties struct { // A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // READ-ONLY; The consumer link id. LinkIdentifier *string `json:"linkIdentifier,omitempty" azure:"ro"` // READ-ONLY; The resource of private end point. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the application gateway private endpoint connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayPrivateEndpointConnectionProperties - Properties of Private Link Resource of an application gateway.
type ApplicationGatewayPrivateEndpointConnectionsClient ¶
type ApplicationGatewayPrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
ApplicationGatewayPrivateEndpointConnectionsClient contains the methods for the ApplicationGatewayPrivateEndpointConnections group. Don't use this type directly, use NewApplicationGatewayPrivateEndpointConnectionsClient() instead.
func NewApplicationGatewayPrivateEndpointConnectionsClient ¶
func NewApplicationGatewayPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationGatewayPrivateEndpointConnectionsClient, error)
NewApplicationGatewayPrivateEndpointConnectionsClient creates a new instance of ApplicationGatewayPrivateEndpointConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ApplicationGatewayPrivateEndpointConnectionsClient) BeginDelete ¶
func (client *ApplicationGatewayPrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, options *ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[ApplicationGatewayPrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Deletes the specified private endpoint connection on application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. connectionName - The name of the application gateway private endpoint connection. options - ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewayPrivateEndpointConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "appgw", "connection1", 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 (*ApplicationGatewayPrivateEndpointConnectionsClient) BeginUpdate ¶
func (client *ApplicationGatewayPrivateEndpointConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, parameters ApplicationGatewayPrivateEndpointConnection, options *ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions) (*runtime.Poller[ApplicationGatewayPrivateEndpointConnectionsClientUpdateResponse], error)
BeginUpdate - Updates the specified private endpoint connection on application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. connectionName - The name of the application gateway private endpoint connection. parameters - Parameters supplied to update application gateway private endpoint connection operation. options - ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewayPrivateEndpointConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "appgw", "connection1", armnetwork.ApplicationGatewayPrivateEndpointConnection{ Name: to.Ptr("connection1"), Properties: &armnetwork.ApplicationGatewayPrivateEndpointConnectionProperties{ PrivateEndpoint: &armnetwork.PrivateEndpoint{ ID: to.Ptr("/subscriptions/subId2/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe"), }, PrivateLinkServiceConnectionState: &armnetwork.PrivateLinkServiceConnectionState{ Description: to.Ptr("approved it for some reason."), Status: to.Ptr("Approved"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewayPrivateEndpointConnectionsClient) Get ¶
func (client *ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, connectionName string, options *ApplicationGatewayPrivateEndpointConnectionsClientGetOptions) (ApplicationGatewayPrivateEndpointConnectionsClientGetResponse, error)
Get - Gets the specified private endpoint connection on application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. connectionName - The name of the application gateway private endpoint connection. options - ApplicationGatewayPrivateEndpointConnectionsClientGetOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewayPrivateEndpointConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "appgw", "connection1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewayPrivateEndpointConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *ApplicationGatewayPrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, applicationGatewayName string, options *ApplicationGatewayPrivateEndpointConnectionsClientListOptions) *runtime.Pager[ApplicationGatewayPrivateEndpointConnectionsClientListResponse]
NewListPager - Lists all private endpoint connections on an application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewayPrivateEndpointConnectionsClientListOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewayPrivateEndpointConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "appgw", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewayPrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.BeginDelete method.
type ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewayPrivateEndpointConnectionsClientBeginUpdateOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.BeginUpdate method.
type ApplicationGatewayPrivateEndpointConnectionsClientDeleteResponse ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientDeleteResponse struct { }
ApplicationGatewayPrivateEndpointConnectionsClientDeleteResponse contains the response from method ApplicationGatewayPrivateEndpointConnectionsClient.Delete.
type ApplicationGatewayPrivateEndpointConnectionsClientGetOptions ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientGetOptions struct { }
ApplicationGatewayPrivateEndpointConnectionsClientGetOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.Get method.
type ApplicationGatewayPrivateEndpointConnectionsClientGetResponse ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientGetResponse struct {
ApplicationGatewayPrivateEndpointConnection
}
ApplicationGatewayPrivateEndpointConnectionsClientGetResponse contains the response from method ApplicationGatewayPrivateEndpointConnectionsClient.Get.
type ApplicationGatewayPrivateEndpointConnectionsClientListOptions ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientListOptions struct { }
ApplicationGatewayPrivateEndpointConnectionsClientListOptions contains the optional parameters for the ApplicationGatewayPrivateEndpointConnectionsClient.List method.
type ApplicationGatewayPrivateEndpointConnectionsClientListResponse ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientListResponse struct {
ApplicationGatewayPrivateEndpointConnectionListResult
}
ApplicationGatewayPrivateEndpointConnectionsClientListResponse contains the response from method ApplicationGatewayPrivateEndpointConnectionsClient.List.
type ApplicationGatewayPrivateEndpointConnectionsClientUpdateResponse ¶ added in v0.3.0
type ApplicationGatewayPrivateEndpointConnectionsClientUpdateResponse struct {
ApplicationGatewayPrivateEndpointConnection
}
ApplicationGatewayPrivateEndpointConnectionsClientUpdateResponse contains the response from method ApplicationGatewayPrivateEndpointConnectionsClient.Update.
type ApplicationGatewayPrivateLinkConfiguration ¶
type ApplicationGatewayPrivateLinkConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the private link configuration that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway private link configuration. Properties *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkConfiguration - Private Link Configuration on an application gateway.
type ApplicationGatewayPrivateLinkConfigurationProperties ¶
type ApplicationGatewayPrivateLinkConfigurationProperties struct { // An array of application gateway private link ip configurations. IPConfigurations []*ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` // READ-ONLY; The provisioning state of the application gateway private link configuration. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkConfigurationProperties - Properties of private link configuration on an application gateway.
func (ApplicationGatewayPrivateLinkConfigurationProperties) MarshalJSON ¶
func (a ApplicationGatewayPrivateLinkConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayPrivateLinkConfigurationProperties.
type ApplicationGatewayPrivateLinkIPConfiguration ¶
type ApplicationGatewayPrivateLinkIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of application gateway private link ip configuration. Name *string `json:"name,omitempty"` // Properties of an application gateway private link ip configuration. Properties *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkIPConfiguration - The application gateway private link ip configuration.
type ApplicationGatewayPrivateLinkIPConfigurationProperties ¶
type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { // Whether the ip configuration is primary or not. Primary *bool `json:"primary,omitempty"` // The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // Reference to the subnet resource. Subnet *SubResource `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the application gateway private link IP configuration. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkIPConfigurationProperties - Properties of an application gateway private link IP configuration.
type ApplicationGatewayPrivateLinkResource ¶
type ApplicationGatewayPrivateLinkResource struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the private link resource that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway private link resource. Properties *ApplicationGatewayPrivateLinkResourceProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkResource - PrivateLink Resource of an application gateway.
type ApplicationGatewayPrivateLinkResourceListResult ¶
type ApplicationGatewayPrivateLinkResourceListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of private link resources of an application gateway. Value []*ApplicationGatewayPrivateLinkResource `json:"value,omitempty"` }
ApplicationGatewayPrivateLinkResourceListResult - Response for ListApplicationGatewayPrivateLinkResources API service call. Gets all private link resources for an application gateway.
type ApplicationGatewayPrivateLinkResourceProperties ¶
type ApplicationGatewayPrivateLinkResourceProperties struct { // Required DNS zone names of the the private link resource. RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` // READ-ONLY; Group identifier of private link resource. GroupID *string `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; Required member names of private link resource. RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` }
ApplicationGatewayPrivateLinkResourceProperties - Properties of a private link resource.
func (ApplicationGatewayPrivateLinkResourceProperties) MarshalJSON ¶
func (a ApplicationGatewayPrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayPrivateLinkResourceProperties.
type ApplicationGatewayPrivateLinkResourcesClient ¶
type ApplicationGatewayPrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
ApplicationGatewayPrivateLinkResourcesClient contains the methods for the ApplicationGatewayPrivateLinkResources group. Don't use this type directly, use NewApplicationGatewayPrivateLinkResourcesClient() instead.
func NewApplicationGatewayPrivateLinkResourcesClient ¶
func NewApplicationGatewayPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationGatewayPrivateLinkResourcesClient, error)
NewApplicationGatewayPrivateLinkResourcesClient creates a new instance of ApplicationGatewayPrivateLinkResourcesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ApplicationGatewayPrivateLinkResourcesClient) NewListPager ¶ added in v0.5.0
func (client *ApplicationGatewayPrivateLinkResourcesClient) NewListPager(resourceGroupName string, applicationGatewayName string, options *ApplicationGatewayPrivateLinkResourcesClientListOptions) *runtime.Pager[ApplicationGatewayPrivateLinkResourcesClientListResponse]
NewListPager - Lists all private link resources on an application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewayPrivateLinkResourcesClientListOptions contains the optional parameters for the ApplicationGatewayPrivateLinkResourcesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayPrivateLinkResourceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewayPrivateLinkResourcesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "appgw", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ApplicationGatewayPrivateLinkResourcesClientListOptions ¶ added in v0.3.0
type ApplicationGatewayPrivateLinkResourcesClientListOptions struct { }
ApplicationGatewayPrivateLinkResourcesClientListOptions contains the optional parameters for the ApplicationGatewayPrivateLinkResourcesClient.List method.
type ApplicationGatewayPrivateLinkResourcesClientListResponse ¶ added in v0.3.0
type ApplicationGatewayPrivateLinkResourcesClientListResponse struct {
ApplicationGatewayPrivateLinkResourceListResult
}
ApplicationGatewayPrivateLinkResourcesClientListResponse contains the response from method ApplicationGatewayPrivateLinkResourcesClient.List.
type ApplicationGatewayProbe ¶
type ApplicationGatewayProbe struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the probe that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway probe. Properties *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayProbe - Probe of the application gateway.
type ApplicationGatewayProbeHealthResponseMatch ¶
type ApplicationGatewayProbeHealthResponseMatch struct { // Body that must be contained in the health response. Default value is empty. Body *string `json:"body,omitempty"` // Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399. StatusCodes []*string `json:"statusCodes,omitempty"` }
ApplicationGatewayProbeHealthResponseMatch - Application gateway probe health response match.
func (ApplicationGatewayProbeHealthResponseMatch) MarshalJSON ¶
func (a ApplicationGatewayProbeHealthResponseMatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayProbeHealthResponseMatch.
type ApplicationGatewayProbePropertiesFormat ¶
type ApplicationGatewayProbePropertiesFormat struct { // Host name to send the probe to. Host *string `json:"host,omitempty"` // The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 // second to 86400 seconds. Interval *int32 `json:"interval,omitempty"` // Criterion for classifying a healthy probe response. Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` // Minimum number of servers that are always marked healthy. Default value is 0. MinServers *int32 `json:"minServers,omitempty"` // Relative path of probe. Valid path starts from '/'. Probe is sent to ://:. Path *string `json:"path,omitempty"` // Whether the host header should be picked from the backend http settings. Default value is false. PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` // Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is false. PickHostNameFromBackendSettings *bool `json:"pickHostNameFromBackendSettings,omitempty"` // Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, // port from http settings will be used. This property is valid for Standardv2 and // WAFv2 only. Port *int32 `json:"port,omitempty"` // The protocol used for the probe. Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` // The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable // values are from 1 second to 86400 seconds. Timeout *int32 `json:"timeout,omitempty"` // The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. // Acceptable values are from 1 second to 20. UnhealthyThreshold *int32 `json:"unhealthyThreshold,omitempty"` // READ-ONLY; The provisioning state of the probe resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayProbePropertiesFormat - Properties of probe of an application gateway.
type ApplicationGatewayPropertiesFormat ¶
type ApplicationGatewayPropertiesFormat struct { // Authentication certificates of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. AuthenticationCertificates []*ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` // Autoscale Configuration. AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` // Backend address pool of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. BackendAddressPools []*ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` // Backend http settings of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. BackendHTTPSettingsCollection []*ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` // Backend settings of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits] // . BackendSettingsCollection []*ApplicationGatewayBackendSettings `json:"backendSettingsCollection,omitempty"` // Custom error configurations of the application gateway resource. CustomErrorConfigurations []*ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` // Whether FIPS is enabled on the application gateway resource. EnableFips *bool `json:"enableFips,omitempty"` // Whether HTTP2 is enabled on the application gateway resource. EnableHTTP2 *bool `json:"enableHttp2,omitempty"` // Reference to the FirewallPolicy resource. FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` // If true, associates a firewall policy with an application gateway regardless whether the policy differs from the WAF Config. ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` // Frontend IP addresses of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. FrontendIPConfigurations []*ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` // Frontend ports of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. FrontendPorts []*ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` // Subnets of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. GatewayIPConfigurations []*ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` // Global Configuration. GlobalConfiguration *ApplicationGatewayGlobalConfiguration `json:"globalConfiguration,omitempty"` // Http listeners of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. HTTPListeners []*ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` // Listeners of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. Listeners []*ApplicationGatewayListener `json:"listeners,omitempty"` // Load distribution policies of the application gateway resource. LoadDistributionPolicies []*ApplicationGatewayLoadDistributionPolicy `json:"loadDistributionPolicies,omitempty"` // PrivateLink configurations on application gateway. PrivateLinkConfigurations []*ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` // Probes of the application gateway resource. Probes []*ApplicationGatewayProbe `json:"probes,omitempty"` // Redirect configurations of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. RedirectConfigurations []*ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` // Request routing rules of the application gateway resource. RequestRoutingRules []*ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` // Rewrite rules for the application gateway resource. RewriteRuleSets []*ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` // Routing rules of the application gateway resource. RoutingRules []*ApplicationGatewayRoutingRule `json:"routingRules,omitempty"` // SKU of the application gateway resource. SKU *ApplicationGatewaySKU `json:"sku,omitempty"` // SSL certificates of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits] // . SSLCertificates []*ApplicationGatewaySSLCertificate `json:"sslCertificates,omitempty"` // SSL policy of the application gateway resource. SSLPolicy *ApplicationGatewaySSLPolicy `json:"sslPolicy,omitempty"` // SSL profiles of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. SSLProfiles []*ApplicationGatewaySSLProfile `json:"sslProfiles,omitempty"` // Trusted client certificates of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. TrustedClientCertificates []*ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` // Trusted Root certificates of the application gateway resource. For default limits, see Application Gateway limits // [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. TrustedRootCertificates []*ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` // URL path map of the application gateway resource. For default limits, see Application Gateway limits [https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits]. URLPathMaps []*ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` // Web application firewall configuration. WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` // READ-ONLY; Operational state of the application gateway resource. OperationalState *ApplicationGatewayOperationalState `json:"operationalState,omitempty" azure:"ro"` // READ-ONLY; Private Endpoint connections on application gateway. PrivateEndpointConnections []*ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the application gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the application gateway resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
ApplicationGatewayPropertiesFormat - Properties of the application gateway.
func (ApplicationGatewayPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayPropertiesFormat.
type ApplicationGatewayProtocol ¶
type ApplicationGatewayProtocol string
ApplicationGatewayProtocol - Application Gateway protocol.
const ( ApplicationGatewayProtocolHTTP ApplicationGatewayProtocol = "Http" ApplicationGatewayProtocolHTTPS ApplicationGatewayProtocol = "Https" ApplicationGatewayProtocolTCP ApplicationGatewayProtocol = "Tcp" ApplicationGatewayProtocolTLS ApplicationGatewayProtocol = "Tls" )
func PossibleApplicationGatewayProtocolValues ¶
func PossibleApplicationGatewayProtocolValues() []ApplicationGatewayProtocol
PossibleApplicationGatewayProtocolValues returns the possible values for the ApplicationGatewayProtocol const type.
type ApplicationGatewayRedirectConfiguration ¶
type ApplicationGatewayRedirectConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the redirect configuration that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway redirect configuration. Properties *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayRedirectConfiguration - Redirect configuration of an application gateway.
type ApplicationGatewayRedirectConfigurationPropertiesFormat ¶
type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { // Include path in the redirected url. IncludePath *bool `json:"includePath,omitempty"` // Include query string in the redirected url. IncludeQueryString *bool `json:"includeQueryString,omitempty"` // Path rules specifying redirect configuration. PathRules []*SubResource `json:"pathRules,omitempty"` // HTTP redirection type. RedirectType *ApplicationGatewayRedirectType `json:"redirectType,omitempty"` // Request routing specifying redirect configuration. RequestRoutingRules []*SubResource `json:"requestRoutingRules,omitempty"` // Reference to a listener to redirect the request to. TargetListener *SubResource `json:"targetListener,omitempty"` // Url to redirect the request to. TargetURL *string `json:"targetUrl,omitempty"` // Url path maps specifying default redirect configuration. URLPathMaps []*SubResource `json:"urlPathMaps,omitempty"` }
ApplicationGatewayRedirectConfigurationPropertiesFormat - Properties of redirect configuration of the application gateway.
func (ApplicationGatewayRedirectConfigurationPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayRedirectConfigurationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayRedirectConfigurationPropertiesFormat.
type ApplicationGatewayRedirectType ¶
type ApplicationGatewayRedirectType string
ApplicationGatewayRedirectType - Redirect type enum.
const ( ApplicationGatewayRedirectTypeFound ApplicationGatewayRedirectType = "Found" ApplicationGatewayRedirectTypePermanent ApplicationGatewayRedirectType = "Permanent" ApplicationGatewayRedirectTypeSeeOther ApplicationGatewayRedirectType = "SeeOther" ApplicationGatewayRedirectTypeTemporary ApplicationGatewayRedirectType = "Temporary" )
func PossibleApplicationGatewayRedirectTypeValues ¶
func PossibleApplicationGatewayRedirectTypeValues() []ApplicationGatewayRedirectType
PossibleApplicationGatewayRedirectTypeValues returns the possible values for the ApplicationGatewayRedirectType const type.
type ApplicationGatewayRequestRoutingRule ¶
type ApplicationGatewayRequestRoutingRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the request routing rule that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway request routing rule. Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayRequestRoutingRule - Request routing rule of an application gateway.
type ApplicationGatewayRequestRoutingRulePropertiesFormat ¶
type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { // Backend address pool resource of the application gateway. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // Backend http settings resource of the application gateway. BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` // Http listener resource of the application gateway. HTTPListener *SubResource `json:"httpListener,omitempty"` // Load Distribution Policy resource of the application gateway. LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` // Priority of the request routing rule. Priority *int32 `json:"priority,omitempty"` // Redirect configuration resource of the application gateway. RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` // Rewrite Rule Set resource in Basic rule of the application gateway. RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` // Rule type. RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` // URL path map resource of the application gateway. URLPathMap *SubResource `json:"urlPathMap,omitempty"` // READ-ONLY; The provisioning state of the request routing rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayRequestRoutingRulePropertiesFormat - Properties of request routing rule of the application gateway.
type ApplicationGatewayRequestRoutingRuleType ¶
type ApplicationGatewayRequestRoutingRuleType string
ApplicationGatewayRequestRoutingRuleType - Rule type.
const ( ApplicationGatewayRequestRoutingRuleTypeBasic ApplicationGatewayRequestRoutingRuleType = "Basic" ApplicationGatewayRequestRoutingRuleTypePathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" )
func PossibleApplicationGatewayRequestRoutingRuleTypeValues ¶
func PossibleApplicationGatewayRequestRoutingRuleTypeValues() []ApplicationGatewayRequestRoutingRuleType
PossibleApplicationGatewayRequestRoutingRuleTypeValues returns the possible values for the ApplicationGatewayRequestRoutingRuleType const type.
type ApplicationGatewayRewriteRule ¶
type ApplicationGatewayRewriteRule struct { // Set of actions to be done as part of the rewrite Rule. ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` // Conditions based on which the action set execution will be evaluated. Conditions []*ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` // Name of the rewrite rule that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet. RuleSequence *int32 `json:"ruleSequence,omitempty"` }
ApplicationGatewayRewriteRule - Rewrite rule of an application gateway.
func (ApplicationGatewayRewriteRule) MarshalJSON ¶
func (a ApplicationGatewayRewriteRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayRewriteRule.
type ApplicationGatewayRewriteRuleActionSet ¶
type ApplicationGatewayRewriteRuleActionSet struct { // Request Header Actions in the Action Set. RequestHeaderConfigurations []*ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` // Response Header Actions in the Action Set. ResponseHeaderConfigurations []*ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` // Url Configuration Action in the Action Set. URLConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` }
ApplicationGatewayRewriteRuleActionSet - Set of actions in the Rewrite Rule in Application Gateway.
func (ApplicationGatewayRewriteRuleActionSet) MarshalJSON ¶
func (a ApplicationGatewayRewriteRuleActionSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayRewriteRuleActionSet.
type ApplicationGatewayRewriteRuleCondition ¶
type ApplicationGatewayRewriteRuleCondition struct { // Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison. IgnoreCase *bool `json:"ignoreCase,omitempty"` // Setting this value as truth will force to check the negation of the condition given by the user. Negate *bool `json:"negate,omitempty"` // The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition. Pattern *string `json:"pattern,omitempty"` // The condition parameter of the RewriteRuleCondition. Variable *string `json:"variable,omitempty"` }
ApplicationGatewayRewriteRuleCondition - Set of conditions in the Rewrite Rule in Application Gateway.
type ApplicationGatewayRewriteRuleSet ¶
type ApplicationGatewayRewriteRuleSet struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the rewrite rule set that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway rewrite rule set. Properties *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
ApplicationGatewayRewriteRuleSet - Rewrite rule set of an application gateway.
type ApplicationGatewayRewriteRuleSetPropertiesFormat ¶
type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { // Rewrite rules in the rewrite rule set. RewriteRules []*ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` // READ-ONLY; The provisioning state of the rewrite rule set resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayRewriteRuleSetPropertiesFormat - Properties of rewrite rule set of the application gateway.
func (ApplicationGatewayRewriteRuleSetPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayRewriteRuleSetPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayRewriteRuleSetPropertiesFormat.
type ApplicationGatewayRoutingRule ¶ added in v1.0.0
type ApplicationGatewayRoutingRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the routing rule that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway routing rule. Properties *ApplicationGatewayRoutingRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayRoutingRule - Routing rule of an application gateway.
type ApplicationGatewayRoutingRulePropertiesFormat ¶ added in v1.0.0
type ApplicationGatewayRoutingRulePropertiesFormat struct { // Backend address pool resource of the application gateway. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // Backend settings resource of the application gateway. BackendSettings *SubResource `json:"backendSettings,omitempty"` // Listener resource of the application gateway. Listener *SubResource `json:"listener,omitempty"` // Rule type. RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` // READ-ONLY; The provisioning state of the request routing rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayRoutingRulePropertiesFormat - Properties of routing rule of the application gateway.
type ApplicationGatewaySKU ¶
type ApplicationGatewaySKU struct { // Capacity (instance count) of an application gateway. Capacity *int32 `json:"capacity,omitempty"` // Name of an application gateway SKU. Name *ApplicationGatewaySKUName `json:"name,omitempty"` // Tier of an application gateway. Tier *ApplicationGatewayTier `json:"tier,omitempty"` }
ApplicationGatewaySKU - SKU of an application gateway.
type ApplicationGatewaySKUName ¶
type ApplicationGatewaySKUName string
ApplicationGatewaySKUName - Name of an application gateway SKU.
const ( ApplicationGatewaySKUNameStandardLarge ApplicationGatewaySKUName = "Standard_Large" ApplicationGatewaySKUNameStandardMedium ApplicationGatewaySKUName = "Standard_Medium" ApplicationGatewaySKUNameStandardSmall ApplicationGatewaySKUName = "Standard_Small" ApplicationGatewaySKUNameStandardV2 ApplicationGatewaySKUName = "Standard_v2" ApplicationGatewaySKUNameWAFLarge ApplicationGatewaySKUName = "WAF_Large" ApplicationGatewaySKUNameWAFMedium ApplicationGatewaySKUName = "WAF_Medium" ApplicationGatewaySKUNameWAFV2 ApplicationGatewaySKUName = "WAF_v2" )
func PossibleApplicationGatewaySKUNameValues ¶
func PossibleApplicationGatewaySKUNameValues() []ApplicationGatewaySKUName
PossibleApplicationGatewaySKUNameValues returns the possible values for the ApplicationGatewaySKUName const type.
type ApplicationGatewaySSLCertificate ¶
type ApplicationGatewaySSLCertificate struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the SSL certificate that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway SSL certificate. Properties *ApplicationGatewaySSLCertificatePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewaySSLCertificate - SSL certificates of an application gateway.
type ApplicationGatewaySSLCertificatePropertiesFormat ¶
type ApplicationGatewaySSLCertificatePropertiesFormat struct { // Base-64 encoded pfx certificate. Only applicable in PUT Request. Data *string `json:"data,omitempty"` // Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` // Password for the pfx file specified in data. Only applicable in PUT request. Password *string `json:"password,omitempty"` // READ-ONLY; The provisioning state of the SSL certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Base-64 encoded Public cert data corresponding to pfx specified in data. Only applicable in GET request. PublicCertData *string `json:"publicCertData,omitempty" azure:"ro"` }
ApplicationGatewaySSLCertificatePropertiesFormat - Properties of SSL certificates of an application gateway.
type ApplicationGatewaySSLCipherSuite ¶
type ApplicationGatewaySSLCipherSuite string
ApplicationGatewaySSLCipherSuite - Ssl cipher suites enums.
const ( ApplicationGatewaySSLCipherSuiteTLSDHEDSSWITH3DESEDECBCSHA ApplicationGatewaySSLCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSDHEDSSWITHAES128CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSDHEDSSWITHAES128CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSDHEDSSWITHAES256CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSDHEDSSWITHAES256CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSDHERSAWITHAES128CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSDHERSAWITHAES128GCMSHA256 ApplicationGatewaySSLCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" ApplicationGatewaySSLCipherSuiteTLSDHERSAWITHAES256CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSDHERSAWITHAES256GCMSHA384 ApplicationGatewaySSLCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES128CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES128CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES128GCMSHA256 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES256CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES256CBCSHA384 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" ApplicationGatewaySSLCipherSuiteTLSECDHEECDSAWITHAES256GCMSHA384 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES128CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES128CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES128GCMSHA256 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES256CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES256CBCSHA384 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES256GCMSHA384 ApplicationGatewaySSLCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" ApplicationGatewaySSLCipherSuiteTLSRSAWITH3DESEDECBCSHA ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES128CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES128CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES128GCMSHA256 ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES256CBCSHA ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES256CBCSHA256 ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" ApplicationGatewaySSLCipherSuiteTLSRSAWITHAES256GCMSHA384 ApplicationGatewaySSLCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" )
func PossibleApplicationGatewaySSLCipherSuiteValues ¶
func PossibleApplicationGatewaySSLCipherSuiteValues() []ApplicationGatewaySSLCipherSuite
PossibleApplicationGatewaySSLCipherSuiteValues returns the possible values for the ApplicationGatewaySSLCipherSuite const type.
type ApplicationGatewaySSLPolicy ¶
type ApplicationGatewaySSLPolicy struct { // Ssl cipher suites to be enabled in the specified order to application gateway. CipherSuites []*ApplicationGatewaySSLCipherSuite `json:"cipherSuites,omitempty"` // Ssl protocols to be disabled on application gateway. DisabledSSLProtocols []*ApplicationGatewaySSLProtocol `json:"disabledSslProtocols,omitempty"` // Minimum version of Ssl protocol to be supported on application gateway. MinProtocolVersion *ApplicationGatewaySSLProtocol `json:"minProtocolVersion,omitempty"` // Name of Ssl predefined policy. PolicyName *ApplicationGatewaySSLPolicyName `json:"policyName,omitempty"` // Type of Ssl Policy. PolicyType *ApplicationGatewaySSLPolicyType `json:"policyType,omitempty"` }
ApplicationGatewaySSLPolicy - Application Gateway Ssl policy.
func (ApplicationGatewaySSLPolicy) MarshalJSON ¶
func (a ApplicationGatewaySSLPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewaySSLPolicy.
type ApplicationGatewaySSLPolicyName ¶
type ApplicationGatewaySSLPolicyName string
ApplicationGatewaySSLPolicyName - Ssl predefined policy name enums.
const ( ApplicationGatewaySSLPolicyNameAppGwSSLPolicy20150501 ApplicationGatewaySSLPolicyName = "AppGwSslPolicy20150501" ApplicationGatewaySSLPolicyNameAppGwSSLPolicy20170401 ApplicationGatewaySSLPolicyName = "AppGwSslPolicy20170401" ApplicationGatewaySSLPolicyNameAppGwSSLPolicy20170401S ApplicationGatewaySSLPolicyName = "AppGwSslPolicy20170401S" )
func PossibleApplicationGatewaySSLPolicyNameValues ¶
func PossibleApplicationGatewaySSLPolicyNameValues() []ApplicationGatewaySSLPolicyName
PossibleApplicationGatewaySSLPolicyNameValues returns the possible values for the ApplicationGatewaySSLPolicyName const type.
type ApplicationGatewaySSLPolicyType ¶
type ApplicationGatewaySSLPolicyType string
ApplicationGatewaySSLPolicyType - Type of Ssl Policy.
const ( ApplicationGatewaySSLPolicyTypeCustom ApplicationGatewaySSLPolicyType = "Custom" ApplicationGatewaySSLPolicyTypePredefined ApplicationGatewaySSLPolicyType = "Predefined" )
func PossibleApplicationGatewaySSLPolicyTypeValues ¶
func PossibleApplicationGatewaySSLPolicyTypeValues() []ApplicationGatewaySSLPolicyType
PossibleApplicationGatewaySSLPolicyTypeValues returns the possible values for the ApplicationGatewaySSLPolicyType const type.
type ApplicationGatewaySSLPredefinedPolicy ¶
type ApplicationGatewaySSLPredefinedPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the Ssl predefined policy. Name *string `json:"name,omitempty"` // Properties of the application gateway SSL predefined policy. Properties *ApplicationGatewaySSLPredefinedPolicyPropertiesFormat `json:"properties,omitempty"` }
ApplicationGatewaySSLPredefinedPolicy - An Ssl predefined policy.
type ApplicationGatewaySSLPredefinedPolicyPropertiesFormat ¶
type ApplicationGatewaySSLPredefinedPolicyPropertiesFormat struct { // Ssl cipher suites to be enabled in the specified order for application gateway. CipherSuites []*ApplicationGatewaySSLCipherSuite `json:"cipherSuites,omitempty"` // Minimum version of Ssl protocol to be supported on application gateway. MinProtocolVersion *ApplicationGatewaySSLProtocol `json:"minProtocolVersion,omitempty"` }
ApplicationGatewaySSLPredefinedPolicyPropertiesFormat - Properties of ApplicationGatewaySslPredefinedPolicy.
func (ApplicationGatewaySSLPredefinedPolicyPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewaySSLPredefinedPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewaySSLPredefinedPolicyPropertiesFormat.
type ApplicationGatewaySSLProfile ¶
type ApplicationGatewaySSLProfile struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the SSL profile that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway SSL profile. Properties *ApplicationGatewaySSLProfilePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewaySSLProfile - SSL profile of an application gateway.
type ApplicationGatewaySSLProfilePropertiesFormat ¶
type ApplicationGatewaySSLProfilePropertiesFormat struct { // Client authentication configuration of the application gateway resource. ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` // SSL policy of the application gateway resource. SSLPolicy *ApplicationGatewaySSLPolicy `json:"sslPolicy,omitempty"` // Array of references to application gateway trusted client certificates. TrustedClientCertificates []*SubResource `json:"trustedClientCertificates,omitempty"` // READ-ONLY; The provisioning state of the HTTP listener resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewaySSLProfilePropertiesFormat - Properties of SSL profile of an application gateway.
func (ApplicationGatewaySSLProfilePropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewaySSLProfilePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewaySSLProfilePropertiesFormat.
type ApplicationGatewaySSLProtocol ¶
type ApplicationGatewaySSLProtocol string
ApplicationGatewaySSLProtocol - Ssl protocol enums.
const ( ApplicationGatewaySSLProtocolTLSv10 ApplicationGatewaySSLProtocol = "TLSv1_0" ApplicationGatewaySSLProtocolTLSv11 ApplicationGatewaySSLProtocol = "TLSv1_1" ApplicationGatewaySSLProtocolTLSv12 ApplicationGatewaySSLProtocol = "TLSv1_2" )
func PossibleApplicationGatewaySSLProtocolValues ¶
func PossibleApplicationGatewaySSLProtocolValues() []ApplicationGatewaySSLProtocol
PossibleApplicationGatewaySSLProtocolValues returns the possible values for the ApplicationGatewaySSLProtocol const type.
type ApplicationGatewayTier ¶
type ApplicationGatewayTier string
ApplicationGatewayTier - Tier of an application gateway.
const ( ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" ApplicationGatewayTierStandardV2 ApplicationGatewayTier = "Standard_v2" ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" ApplicationGatewayTierWAFV2 ApplicationGatewayTier = "WAF_v2" )
func PossibleApplicationGatewayTierValues ¶
func PossibleApplicationGatewayTierValues() []ApplicationGatewayTier
PossibleApplicationGatewayTierValues returns the possible values for the ApplicationGatewayTier const type.
type ApplicationGatewayTrustedClientCertificate ¶
type ApplicationGatewayTrustedClientCertificate struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the trusted client certificate that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway trusted client certificate. Properties *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayTrustedClientCertificate - Trusted client certificates of an application gateway.
type ApplicationGatewayTrustedClientCertificatePropertiesFormat ¶
type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { // Certificate public data. Data *string `json:"data,omitempty"` // READ-ONLY; Distinguished name of client certificate issuer. ClientCertIssuerDN *string `json:"clientCertIssuerDN,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the trusted client certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Validated certificate data. ValidatedCertData *string `json:"validatedCertData,omitempty" azure:"ro"` }
ApplicationGatewayTrustedClientCertificatePropertiesFormat - Trusted client certificates properties of an application gateway.
type ApplicationGatewayTrustedRootCertificate ¶
type ApplicationGatewayTrustedRootCertificate struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the trusted root certificate that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway trusted root certificate. Properties *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayTrustedRootCertificate - Trusted Root certificates of an application gateway.
type ApplicationGatewayTrustedRootCertificatePropertiesFormat ¶
type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { // Certificate public data. Data *string `json:"data,omitempty"` // Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` // READ-ONLY; The provisioning state of the trusted root certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayTrustedRootCertificatePropertiesFormat - Trusted Root certificates properties of an application gateway.
type ApplicationGatewayURLConfiguration ¶
type ApplicationGatewayURLConfiguration struct { // Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null. ModifiedPath *string `json:"modifiedPath,omitempty"` // Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null. ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` // If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. // Default value is false. Reroute *bool `json:"reroute,omitempty"` }
ApplicationGatewayURLConfiguration - Url configuration of the Actions set in Application Gateway.
type ApplicationGatewayURLPathMap ¶
type ApplicationGatewayURLPathMap struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the URL path map that is unique within an Application Gateway. Name *string `json:"name,omitempty"` // Properties of the application gateway URL path map. Properties *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationGatewayURLPathMap - UrlPathMaps give a url path to the backend mapping information for PathBasedRouting.
type ApplicationGatewayURLPathMapPropertiesFormat ¶
type ApplicationGatewayURLPathMapPropertiesFormat struct { // Default backend address pool resource of URL path map. DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` // Default backend http settings resource of URL path map. DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` // Default Load Distribution Policy resource of URL path map. DefaultLoadDistributionPolicy *SubResource `json:"defaultLoadDistributionPolicy,omitempty"` // Default redirect configuration resource of URL path map. DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` // Default Rewrite rule set resource of URL path map. DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` // Path rule of URL path map resource. PathRules []*ApplicationGatewayPathRule `json:"pathRules,omitempty"` // READ-ONLY; The provisioning state of the URL path map resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ApplicationGatewayURLPathMapPropertiesFormat - Properties of UrlPathMap of the application gateway.
func (ApplicationGatewayURLPathMapPropertiesFormat) MarshalJSON ¶
func (a ApplicationGatewayURLPathMapPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayURLPathMapPropertiesFormat.
type ApplicationGatewayWebApplicationFirewallConfiguration ¶
type ApplicationGatewayWebApplicationFirewallConfiguration struct { // REQUIRED; Whether the web application firewall is enabled or not. Enabled *bool `json:"enabled,omitempty"` // REQUIRED; Web application firewall mode. FirewallMode *ApplicationGatewayFirewallMode `json:"firewallMode,omitempty"` // REQUIRED; The type of the web application firewall rule set. Possible values are: 'OWASP'. RuleSetType *string `json:"ruleSetType,omitempty"` // REQUIRED; The version of the rule set type. RuleSetVersion *string `json:"ruleSetVersion,omitempty"` // The disabled rule groups. DisabledRuleGroups []*ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` // The exclusion list. Exclusions []*ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` // Maximum file upload size in Mb for WAF. FileUploadLimitInMb *int32 `json:"fileUploadLimitInMb,omitempty"` // Maximum request body size for WAF. MaxRequestBodySize *int32 `json:"maxRequestBodySize,omitempty"` // Maximum request body size in Kb for WAF. MaxRequestBodySizeInKb *int32 `json:"maxRequestBodySizeInKb,omitempty"` // Whether allow WAF to check request Body. RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` }
ApplicationGatewayWebApplicationFirewallConfiguration - Application gateway web application firewall configuration.
func (ApplicationGatewayWebApplicationFirewallConfiguration) MarshalJSON ¶
func (a ApplicationGatewayWebApplicationFirewallConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationGatewayWebApplicationFirewallConfiguration.
type ApplicationGatewaysClient ¶
type ApplicationGatewaysClient struct {
// contains filtered or unexported fields
}
ApplicationGatewaysClient contains the methods for the ApplicationGateways group. Don't use this type directly, use NewApplicationGatewaysClient() instead.
func NewApplicationGatewaysClient ¶
func NewApplicationGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationGatewaysClient, error)
NewApplicationGatewaysClient creates a new instance of ApplicationGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ApplicationGatewaysClient) BeginBackendHealth ¶
func (client *ApplicationGatewaysClient) BeginBackendHealth(ctx context.Context, resourceGroupName string, applicationGatewayName string, options *ApplicationGatewaysClientBeginBackendHealthOptions) (*runtime.Poller[ApplicationGatewaysClientBackendHealthResponse], error)
BeginBackendHealth - Gets the backend health of the specified application gateway in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewaysClientBeginBackendHealthOptions contains the optional parameters for the ApplicationGatewaysClient.BeginBackendHealth method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayBackendHealthGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginBackendHealth(ctx, "appgw", "appgw", &armnetwork.ApplicationGatewaysClientBeginBackendHealthOptions{Expand: 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) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) BeginBackendHealthOnDemand ¶
func (client *ApplicationGatewaysClient) BeginBackendHealthOnDemand(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest ApplicationGatewayOnDemandProbe, options *ApplicationGatewaysClientBeginBackendHealthOnDemandOptions) (*runtime.Poller[ApplicationGatewaysClientBackendHealthOnDemandResponse], error)
BeginBackendHealthOnDemand - Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. probeRequest - Request body for on-demand test probe operation. options - ApplicationGatewaysClientBeginBackendHealthOnDemandOptions contains the optional parameters for the ApplicationGatewaysClient.BeginBackendHealthOnDemand method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayBackendHealthTest.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginBackendHealthOnDemand(ctx, "rg1", "appgw", armnetwork.ApplicationGatewayOnDemandProbe{ Path: to.Ptr("/"), BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool"), }, BackendHTTPSettings: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"), }, PickHostNameFromBackendHTTPSettings: to.Ptr(true), Timeout: to.Ptr[int32](30), Protocol: to.Ptr(armnetwork.ApplicationGatewayProtocolHTTP), }, &armnetwork.ApplicationGatewaysClientBeginBackendHealthOnDemandOptions{Expand: 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) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) BeginCreateOrUpdate ¶
func (client *ApplicationGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway, options *ApplicationGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. parameters - Parameters supplied to the create or update application gateway operation. options - ApplicationGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "appgw", armnetwork.ApplicationGateway{ Location: to.Ptr("eastus"), Identity: &armnetwork.ManagedServiceIdentity{ Type: to.Ptr(armnetwork.ResourceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armnetwork.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, }, }, Properties: &armnetwork.ApplicationGatewayPropertiesFormat{ BackendAddressPools: []*armnetwork.ApplicationGatewayBackendAddressPool{ { Name: to.Ptr("appgwpool"), Properties: &armnetwork.ApplicationGatewayBackendAddressPoolPropertiesFormat{ BackendAddresses: []*armnetwork.ApplicationGatewayBackendAddress{ { IPAddress: to.Ptr("10.0.1.1"), }, { IPAddress: to.Ptr("10.0.1.2"), }}, }, }, { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool1"), Name: to.Ptr("appgwpool1"), Properties: &armnetwork.ApplicationGatewayBackendAddressPoolPropertiesFormat{ BackendAddresses: []*armnetwork.ApplicationGatewayBackendAddress{ {}, {}}, }, }}, BackendHTTPSettingsCollection: []*armnetwork.ApplicationGatewayBackendHTTPSettings{ { Name: to.Ptr("appgwbhs"), Properties: &armnetwork.ApplicationGatewayBackendHTTPSettingsPropertiesFormat{ CookieBasedAffinity: to.Ptr(armnetwork.ApplicationGatewayCookieBasedAffinityDisabled), Port: to.Ptr[int32](80), RequestTimeout: to.Ptr[int32](30), Protocol: to.Ptr(armnetwork.ApplicationGatewayProtocolHTTP), }, }}, FrontendIPConfigurations: []*armnetwork.ApplicationGatewayFrontendIPConfiguration{ { Name: to.Ptr("appgwfip"), Properties: &armnetwork.ApplicationGatewayFrontendIPConfigurationPropertiesFormat{ PublicIPAddress: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip"), }, }, }}, FrontendPorts: []*armnetwork.ApplicationGatewayFrontendPort{ { Name: to.Ptr("appgwfp"), Properties: &armnetwork.ApplicationGatewayFrontendPortPropertiesFormat{ Port: to.Ptr[int32](443), }, }, { Name: to.Ptr("appgwfp80"), Properties: &armnetwork.ApplicationGatewayFrontendPortPropertiesFormat{ Port: to.Ptr[int32](80), }, }}, GatewayIPConfigurations: []*armnetwork.ApplicationGatewayIPConfiguration{ { Name: to.Ptr("appgwipc"), Properties: &armnetwork.ApplicationGatewayIPConfigurationPropertiesFormat{ Subnet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet"), }, }, }}, GlobalConfiguration: &armnetwork.ApplicationGatewayGlobalConfiguration{ EnableRequestBuffering: to.Ptr(true), EnableResponseBuffering: to.Ptr(true), }, HTTPListeners: []*armnetwork.ApplicationGatewayHTTPListener{ { Name: to.Ptr("appgwhl"), Properties: &armnetwork.ApplicationGatewayHTTPListenerPropertiesFormat{ FrontendIPConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip"), }, FrontendPort: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp"), }, RequireServerNameIndication: to.Ptr(false), SSLCertificate: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert"), }, SSLProfile: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslProfiles/sslProfile1"), }, Protocol: to.Ptr(armnetwork.ApplicationGatewayProtocolHTTPS), }, }, { Name: to.Ptr("appgwhttplistener"), Properties: &armnetwork.ApplicationGatewayHTTPListenerPropertiesFormat{ FrontendIPConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip"), }, FrontendPort: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80"), }, Protocol: to.Ptr(armnetwork.ApplicationGatewayProtocolHTTP), }, }}, LoadDistributionPolicies: []*armnetwork.ApplicationGatewayLoadDistributionPolicy{ { Name: to.Ptr("ldp1"), Properties: &armnetwork.ApplicationGatewayLoadDistributionPolicyPropertiesFormat{ LoadDistributionAlgorithm: to.Ptr(armnetwork.ApplicationGatewayLoadDistributionAlgorithmRoundRobin), LoadDistributionTargets: []*armnetwork.ApplicationGatewayLoadDistributionTarget{ { Name: to.Ptr("ld11"), Properties: &armnetwork.ApplicationGatewayLoadDistributionTargetPropertiesFormat{ BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool"), }, WeightPerServer: to.Ptr[int32](40), }, }, { Name: to.Ptr("ld11"), Properties: &armnetwork.ApplicationGatewayLoadDistributionTargetPropertiesFormat{ BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool1"), }, WeightPerServer: to.Ptr[int32](60), }, }}, }, }}, RequestRoutingRules: []*armnetwork.ApplicationGatewayRequestRoutingRule{ { Name: to.Ptr("appgwrule"), Properties: &armnetwork.ApplicationGatewayRequestRoutingRulePropertiesFormat{ BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool"), }, BackendHTTPSettings: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs"), }, HTTPListener: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl"), }, LoadDistributionPolicy: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/loadDistributionPolicies/ldp1"), }, Priority: to.Ptr[int32](10), RewriteRuleSet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1"), }, RuleType: to.Ptr(armnetwork.ApplicationGatewayRequestRoutingRuleTypeBasic), }, }, { Name: to.Ptr("appgwPathBasedRule"), Properties: &armnetwork.ApplicationGatewayRequestRoutingRulePropertiesFormat{ HTTPListener: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener"), }, Priority: to.Ptr[int32](20), RuleType: to.Ptr(armnetwork.ApplicationGatewayRequestRoutingRuleTypePathBasedRouting), URLPathMap: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1"), }, }, }}, RewriteRuleSets: []*armnetwork.ApplicationGatewayRewriteRuleSet{ { Name: to.Ptr("rewriteRuleSet1"), Properties: &armnetwork.ApplicationGatewayRewriteRuleSetPropertiesFormat{ RewriteRules: []*armnetwork.ApplicationGatewayRewriteRule{ { Name: to.Ptr("Set X-Forwarded-For"), ActionSet: &armnetwork.ApplicationGatewayRewriteRuleActionSet{ RequestHeaderConfigurations: []*armnetwork.ApplicationGatewayHeaderConfiguration{ { HeaderName: to.Ptr("X-Forwarded-For"), HeaderValue: to.Ptr("{var_add_x_forwarded_for_proxy}"), }}, ResponseHeaderConfigurations: []*armnetwork.ApplicationGatewayHeaderConfiguration{ { HeaderName: to.Ptr("Strict-Transport-Security"), HeaderValue: to.Ptr("max-age=31536000"), }}, URLConfiguration: &armnetwork.ApplicationGatewayURLConfiguration{ ModifiedPath: to.Ptr("/abc"), }, }, Conditions: []*armnetwork.ApplicationGatewayRewriteRuleCondition{ { IgnoreCase: to.Ptr(true), Negate: to.Ptr(false), Pattern: to.Ptr("^Bearer"), Variable: to.Ptr("http_req_Authorization"), }}, RuleSequence: to.Ptr[int32](102), }}, }, }}, SKU: &armnetwork.ApplicationGatewaySKU{ Name: to.Ptr(armnetwork.ApplicationGatewaySKUNameStandardV2), Capacity: to.Ptr[int32](3), Tier: to.Ptr(armnetwork.ApplicationGatewayTierStandardV2), }, SSLCertificates: []*armnetwork.ApplicationGatewaySSLCertificate{ { Name: to.Ptr("sslcert"), Properties: &armnetwork.ApplicationGatewaySSLCertificatePropertiesFormat{ Data: to.Ptr("****"), Password: to.Ptr("****"), }, }, { Name: to.Ptr("sslcert2"), Properties: &armnetwork.ApplicationGatewaySSLCertificatePropertiesFormat{ KeyVaultSecretID: to.Ptr("https://kv/secret"), }, }}, SSLProfiles: []*armnetwork.ApplicationGatewaySSLProfile{ { Name: to.Ptr("sslProfile1"), Properties: &armnetwork.ApplicationGatewaySSLProfilePropertiesFormat{ ClientAuthConfiguration: &armnetwork.ApplicationGatewayClientAuthConfiguration{ VerifyClientCertIssuerDN: to.Ptr(true), }, SSLPolicy: &armnetwork.ApplicationGatewaySSLPolicy{ CipherSuites: []*armnetwork.ApplicationGatewaySSLCipherSuite{ to.Ptr(armnetwork.ApplicationGatewaySSLCipherSuiteTLSECDHERSAWITHAES128CBCSHA256)}, MinProtocolVersion: to.Ptr(armnetwork.ApplicationGatewaySSLProtocolTLSv11), PolicyType: to.Ptr(armnetwork.ApplicationGatewaySSLPolicyTypeCustom), }, TrustedClientCertificates: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/trustedClientCertificates/clientcert"), }}, }, }}, TrustedClientCertificates: []*armnetwork.ApplicationGatewayTrustedClientCertificate{ { Name: to.Ptr("clientcert"), Properties: &armnetwork.ApplicationGatewayTrustedClientCertificatePropertiesFormat{ Data: to.Ptr("****"), }, }}, TrustedRootCertificates: []*armnetwork.ApplicationGatewayTrustedRootCertificate{ { Name: to.Ptr("rootcert"), Properties: &armnetwork.ApplicationGatewayTrustedRootCertificatePropertiesFormat{ Data: to.Ptr("****"), }, }, { Name: to.Ptr("rootcert1"), Properties: &armnetwork.ApplicationGatewayTrustedRootCertificatePropertiesFormat{ KeyVaultSecretID: to.Ptr("https://kv/secret"), }, }}, URLPathMaps: []*armnetwork.ApplicationGatewayURLPathMap{ { Name: to.Ptr("pathMap1"), Properties: &armnetwork.ApplicationGatewayURLPathMapPropertiesFormat{ DefaultBackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool"), }, DefaultBackendHTTPSettings: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs"), }, DefaultLoadDistributionPolicy: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/loadDistributionPolicies/ldp1"), }, DefaultRewriteRuleSet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1"), }, PathRules: []*armnetwork.ApplicationGatewayPathRule{ { Name: to.Ptr("apiPaths"), Properties: &armnetwork.ApplicationGatewayPathRulePropertiesFormat{ BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool"), }, BackendHTTPSettings: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs"), }, LoadDistributionPolicy: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/loadDistributionPolicies/ldp1"), }, Paths: []*string{ to.Ptr("/api"), to.Ptr("/v1/api")}, RewriteRuleSet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1"), }, }, }}, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) BeginDelete ¶
func (client *ApplicationGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationGatewayName string, options *ApplicationGatewaysClientBeginDeleteOptions) (*runtime.Poller[ApplicationGatewaysClientDeleteResponse], error)
BeginDelete - Deletes the specified application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewaysClientBeginDeleteOptions contains the optional parameters for the ApplicationGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "appgw", 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 (*ApplicationGatewaysClient) BeginStart ¶
func (client *ApplicationGatewaysClient) BeginStart(ctx context.Context, resourceGroupName string, applicationGatewayName string, options *ApplicationGatewaysClientBeginStartOptions) (*runtime.Poller[ApplicationGatewaysClientStartResponse], error)
BeginStart - Starts the specified application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewaysClientBeginStartOptions contains the optional parameters for the ApplicationGatewaysClient.BeginStart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayStart.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStart(ctx, "rg1", "appgw", 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 (*ApplicationGatewaysClient) BeginStop ¶
func (client *ApplicationGatewaysClient) BeginStop(ctx context.Context, resourceGroupName string, applicationGatewayName string, options *ApplicationGatewaysClientBeginStopOptions) (*runtime.Poller[ApplicationGatewaysClientStopResponse], error)
BeginStop - Stops the specified application gateway in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewaysClientBeginStopOptions contains the optional parameters for the ApplicationGatewaysClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayStop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStop(ctx, "rg1", "appgw", 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 (*ApplicationGatewaysClient) Get ¶
func (client *ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string, options *ApplicationGatewaysClientGetOptions) (ApplicationGatewaysClientGetResponse, error)
Get - Gets the specified application gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. options - ApplicationGatewaysClientGetOptions contains the optional parameters for the ApplicationGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "appgw", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) GetSSLPredefinedPolicy ¶
func (client *ApplicationGatewaysClient) GetSSLPredefinedPolicy(ctx context.Context, predefinedPolicyName string, options *ApplicationGatewaysClientGetSSLPredefinedPolicyOptions) (ApplicationGatewaysClientGetSSLPredefinedPolicyResponse, error)
GetSSLPredefinedPolicy - Gets Ssl predefined policy with the specified policy name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 predefinedPolicyName - Name of Ssl predefined policy. options - ApplicationGatewaysClientGetSSLPredefinedPolicyOptions contains the optional parameters for the ApplicationGatewaysClient.GetSSLPredefinedPolicy method.
func (*ApplicationGatewaysClient) ListAvailableRequestHeaders ¶
func (client *ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context, options *ApplicationGatewaysClientListAvailableRequestHeadersOptions) (ApplicationGatewaysClientListAvailableRequestHeadersResponse, error)
ListAvailableRequestHeaders - Lists all available request headers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableRequestHeadersOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableRequestHeaders method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("72f988bf-86f1-41af-91ab-2d7cd0dddd4", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListAvailableRequestHeaders(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) ListAvailableResponseHeaders ¶
func (client *ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context, options *ApplicationGatewaysClientListAvailableResponseHeadersOptions) (ApplicationGatewaysClientListAvailableResponseHeadersResponse, error)
ListAvailableResponseHeaders - Lists all available response headers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableResponseHeadersOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableResponseHeaders method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("72f988bf-86f1-41af-91ab-2d7cd0dddd4", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListAvailableResponseHeaders(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) ListAvailableSSLOptions ¶
func (client *ApplicationGatewaysClient) ListAvailableSSLOptions(ctx context.Context, options *ApplicationGatewaysClientListAvailableSSLOptionsOptions) (ApplicationGatewaysClientListAvailableSSLOptionsResponse, error)
ListAvailableSSLOptions - Lists available Ssl options for configuring Ssl policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableSSLOptionsOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableSSLOptions method.
func (*ApplicationGatewaysClient) ListAvailableServerVariables ¶
func (client *ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context, options *ApplicationGatewaysClientListAvailableServerVariablesOptions) (ApplicationGatewaysClientListAvailableServerVariablesResponse, error)
ListAvailableServerVariables - Lists all available server variables. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableServerVariablesOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableServerVariables method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayAvailableServerVariablesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("72f988bf-86f1-41af-91ab-2d7cd0dddd4", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListAvailableServerVariables(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) ListAvailableWafRuleSets ¶
func (client *ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context, options *ApplicationGatewaysClientListAvailableWafRuleSetsOptions) (ApplicationGatewaysClientListAvailableWafRuleSetsResponse, error)
ListAvailableWafRuleSets - Lists all available web application firewall rule sets. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableWafRuleSetsOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableWafRuleSets method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListAvailableWafRuleSets(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationGatewaysClient) NewListAllPager ¶ added in v0.5.0
func (client *ApplicationGatewaysClient) NewListAllPager(options *ApplicationGatewaysClientListAllOptions) *runtime.Pager[ApplicationGatewaysClientListAllResponse]
NewListAllPager - Gets all the application gateways in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAllOptions contains the optional parameters for the ApplicationGatewaysClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ApplicationGatewaysClient) NewListAvailableSSLPredefinedPoliciesPager ¶ added in v0.5.0
func (client *ApplicationGatewaysClient) NewListAvailableSSLPredefinedPoliciesPager(options *ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions) *runtime.Pager[ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesResponse]
NewListAvailableSSLPredefinedPoliciesPager - Lists all SSL predefined policies for configuring Ssl policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableSSLPredefinedPolicies method.
func (*ApplicationGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *ApplicationGatewaysClient) NewListPager(resourceGroupName string, options *ApplicationGatewaysClientListOptions) *runtime.Pager[ApplicationGatewaysClientListResponse]
NewListPager - Lists all application gateways in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ApplicationGatewaysClientListOptions contains the optional parameters for the ApplicationGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ApplicationGatewaysClient) UpdateTags ¶
func (client *ApplicationGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters TagsObject, options *ApplicationGatewaysClientUpdateTagsOptions) (ApplicationGatewaysClientUpdateTagsResponse, error)
UpdateTags - Updates the specified application gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationGatewayName - The name of the application gateway. parameters - Parameters supplied to update application gateway tags. options - ApplicationGatewaysClientUpdateTagsOptions contains the optional parameters for the ApplicationGatewaysClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "AppGw", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ApplicationGatewaysClientBackendHealthOnDemandResponse ¶ added in v0.3.0
type ApplicationGatewaysClientBackendHealthOnDemandResponse struct {
ApplicationGatewayBackendHealthOnDemand
}
ApplicationGatewaysClientBackendHealthOnDemandResponse contains the response from method ApplicationGatewaysClient.BackendHealthOnDemand.
type ApplicationGatewaysClientBackendHealthResponse ¶ added in v0.3.0
type ApplicationGatewaysClientBackendHealthResponse struct {
ApplicationGatewayBackendHealth
}
ApplicationGatewaysClientBackendHealthResponse contains the response from method ApplicationGatewaysClient.BackendHealth.
type ApplicationGatewaysClientBeginBackendHealthOnDemandOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginBackendHealthOnDemandOptions struct { // Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Expand *string // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginBackendHealthOnDemandOptions contains the optional parameters for the ApplicationGatewaysClient.BeginBackendHealthOnDemand method.
type ApplicationGatewaysClientBeginBackendHealthOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginBackendHealthOptions struct { // Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Expand *string // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginBackendHealthOptions contains the optional parameters for the ApplicationGatewaysClient.BeginBackendHealth method.
type ApplicationGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationGatewaysClient.BeginCreateOrUpdate method.
type ApplicationGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginDeleteOptions contains the optional parameters for the ApplicationGatewaysClient.BeginDelete method.
type ApplicationGatewaysClientBeginStartOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginStartOptions contains the optional parameters for the ApplicationGatewaysClient.BeginStart method.
type ApplicationGatewaysClientBeginStopOptions ¶ added in v0.3.0
type ApplicationGatewaysClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationGatewaysClientBeginStopOptions contains the optional parameters for the ApplicationGatewaysClient.BeginStop method.
type ApplicationGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type ApplicationGatewaysClientCreateOrUpdateResponse struct {
ApplicationGateway
}
ApplicationGatewaysClientCreateOrUpdateResponse contains the response from method ApplicationGatewaysClient.CreateOrUpdate.
type ApplicationGatewaysClientDeleteResponse ¶ added in v0.3.0
type ApplicationGatewaysClientDeleteResponse struct { }
ApplicationGatewaysClientDeleteResponse contains the response from method ApplicationGatewaysClient.Delete.
type ApplicationGatewaysClientGetOptions ¶ added in v0.3.0
type ApplicationGatewaysClientGetOptions struct { }
ApplicationGatewaysClientGetOptions contains the optional parameters for the ApplicationGatewaysClient.Get method.
type ApplicationGatewaysClientGetResponse ¶ added in v0.3.0
type ApplicationGatewaysClientGetResponse struct {
ApplicationGateway
}
ApplicationGatewaysClientGetResponse contains the response from method ApplicationGatewaysClient.Get.
type ApplicationGatewaysClientGetSSLPredefinedPolicyOptions ¶ added in v0.3.0
type ApplicationGatewaysClientGetSSLPredefinedPolicyOptions struct { }
ApplicationGatewaysClientGetSSLPredefinedPolicyOptions contains the optional parameters for the ApplicationGatewaysClient.GetSSLPredefinedPolicy method.
type ApplicationGatewaysClientGetSSLPredefinedPolicyResponse ¶ added in v0.3.0
type ApplicationGatewaysClientGetSSLPredefinedPolicyResponse struct {
ApplicationGatewaySSLPredefinedPolicy
}
ApplicationGatewaysClientGetSSLPredefinedPolicyResponse contains the response from method ApplicationGatewaysClient.GetSSLPredefinedPolicy.
type ApplicationGatewaysClientListAllOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAllOptions struct { }
ApplicationGatewaysClientListAllOptions contains the optional parameters for the ApplicationGatewaysClient.ListAll method.
type ApplicationGatewaysClientListAllResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAllResponse struct {
ApplicationGatewayListResult
}
ApplicationGatewaysClientListAllResponse contains the response from method ApplicationGatewaysClient.ListAll.
type ApplicationGatewaysClientListAvailableRequestHeadersOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableRequestHeadersOptions struct { }
ApplicationGatewaysClientListAvailableRequestHeadersOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableRequestHeaders method.
type ApplicationGatewaysClientListAvailableRequestHeadersResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableRequestHeadersResponse struct { // Response for ApplicationGatewayAvailableRequestHeaders API service call. StringArray []*string }
ApplicationGatewaysClientListAvailableRequestHeadersResponse contains the response from method ApplicationGatewaysClient.ListAvailableRequestHeaders.
type ApplicationGatewaysClientListAvailableResponseHeadersOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableResponseHeadersOptions struct { }
ApplicationGatewaysClientListAvailableResponseHeadersOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableResponseHeaders method.
type ApplicationGatewaysClientListAvailableResponseHeadersResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableResponseHeadersResponse struct { // Response for ApplicationGatewayAvailableResponseHeaders API service call. StringArray []*string }
ApplicationGatewaysClientListAvailableResponseHeadersResponse contains the response from method ApplicationGatewaysClient.ListAvailableResponseHeaders.
type ApplicationGatewaysClientListAvailableSSLOptionsOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableSSLOptionsOptions struct { }
ApplicationGatewaysClientListAvailableSSLOptionsOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableSSLOptions method.
type ApplicationGatewaysClientListAvailableSSLOptionsResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableSSLOptionsResponse struct {
ApplicationGatewayAvailableSSLOptions
}
ApplicationGatewaysClientListAvailableSSLOptionsResponse contains the response from method ApplicationGatewaysClient.ListAvailableSSLOptions.
type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions struct { }
ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableSSLPredefinedPolicies method.
type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesResponse struct {
ApplicationGatewayAvailableSSLPredefinedPolicies
}
ApplicationGatewaysClientListAvailableSSLPredefinedPoliciesResponse contains the response from method ApplicationGatewaysClient.ListAvailableSSLPredefinedPolicies.
type ApplicationGatewaysClientListAvailableServerVariablesOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableServerVariablesOptions struct { }
ApplicationGatewaysClientListAvailableServerVariablesOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableServerVariables method.
type ApplicationGatewaysClientListAvailableServerVariablesResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableServerVariablesResponse struct { // Response for ApplicationGatewayAvailableServerVariables API service call. StringArray []*string }
ApplicationGatewaysClientListAvailableServerVariablesResponse contains the response from method ApplicationGatewaysClient.ListAvailableServerVariables.
type ApplicationGatewaysClientListAvailableWafRuleSetsOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableWafRuleSetsOptions struct { }
ApplicationGatewaysClientListAvailableWafRuleSetsOptions contains the optional parameters for the ApplicationGatewaysClient.ListAvailableWafRuleSets method.
type ApplicationGatewaysClientListAvailableWafRuleSetsResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListAvailableWafRuleSetsResponse struct {
ApplicationGatewayAvailableWafRuleSetsResult
}
ApplicationGatewaysClientListAvailableWafRuleSetsResponse contains the response from method ApplicationGatewaysClient.ListAvailableWafRuleSets.
type ApplicationGatewaysClientListOptions ¶ added in v0.3.0
type ApplicationGatewaysClientListOptions struct { }
ApplicationGatewaysClientListOptions contains the optional parameters for the ApplicationGatewaysClient.List method.
type ApplicationGatewaysClientListResponse ¶ added in v0.3.0
type ApplicationGatewaysClientListResponse struct {
ApplicationGatewayListResult
}
ApplicationGatewaysClientListResponse contains the response from method ApplicationGatewaysClient.List.
type ApplicationGatewaysClientStartResponse ¶ added in v0.3.0
type ApplicationGatewaysClientStartResponse struct { }
ApplicationGatewaysClientStartResponse contains the response from method ApplicationGatewaysClient.Start.
type ApplicationGatewaysClientStopResponse ¶ added in v0.3.0
type ApplicationGatewaysClientStopResponse struct { }
ApplicationGatewaysClientStopResponse contains the response from method ApplicationGatewaysClient.Stop.
type ApplicationGatewaysClientUpdateTagsOptions ¶ added in v0.3.0
type ApplicationGatewaysClientUpdateTagsOptions struct { }
ApplicationGatewaysClientUpdateTagsOptions contains the optional parameters for the ApplicationGatewaysClient.UpdateTags method.
type ApplicationGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type ApplicationGatewaysClientUpdateTagsResponse struct {
ApplicationGateway
}
ApplicationGatewaysClientUpdateTagsResponse contains the response from method ApplicationGatewaysClient.UpdateTags.
type ApplicationRule ¶
type ApplicationRule struct { // REQUIRED; Rule Type. RuleType *FirewallPolicyRuleType `json:"ruleType,omitempty"` // Description of the rule. Description *string `json:"description,omitempty"` // List of destination IP addresses or Service Tags. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of FQDN Tags for this rule. FqdnTags []*string `json:"fqdnTags,omitempty"` // Name of the rule. Name *string `json:"name,omitempty"` // Array of Application Protocols. Protocols []*FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` // List of FQDNs for this rule. TargetFqdns []*string `json:"targetFqdns,omitempty"` // List of Urls for this rule condition. TargetUrls []*string `json:"targetUrls,omitempty"` // Terminate TLS connections for this rule. TerminateTLS *bool `json:"terminateTLS,omitempty"` // List of destination azure web categories. WebCategories []*string `json:"webCategories,omitempty"` }
ApplicationRule - Rule of type application.
func (*ApplicationRule) GetFirewallPolicyRule ¶ added in v0.3.0
func (a *ApplicationRule) GetFirewallPolicyRule() *FirewallPolicyRule
GetFirewallPolicyRule implements the FirewallPolicyRuleClassification interface for type ApplicationRule.
func (ApplicationRule) MarshalJSON ¶
func (a ApplicationRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationRule.
func (*ApplicationRule) UnmarshalJSON ¶
func (a *ApplicationRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationRule.
type ApplicationSecurityGroup ¶
type ApplicationSecurityGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the application security group. Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ApplicationSecurityGroup - An application security group in a resource group.
func (ApplicationSecurityGroup) MarshalJSON ¶
func (a ApplicationSecurityGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationSecurityGroup.
type ApplicationSecurityGroupListResult ¶
type ApplicationSecurityGroupListResult struct { // A list of application security groups. Value []*ApplicationSecurityGroup `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ApplicationSecurityGroupListResult - A list of application security groups.
type ApplicationSecurityGroupPropertiesFormat ¶
type ApplicationSecurityGroupPropertiesFormat struct { // READ-ONLY; The provisioning state of the application security group resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the application security group resource. It uniquely identifies a resource, even // if the user changes its name or migrate the resource across subscriptions or resource // groups. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
ApplicationSecurityGroupPropertiesFormat - Application security group properties.
type ApplicationSecurityGroupsClient ¶
type ApplicationSecurityGroupsClient struct {
// contains filtered or unexported fields
}
ApplicationSecurityGroupsClient contains the methods for the ApplicationSecurityGroups group. Don't use this type directly, use NewApplicationSecurityGroupsClient() instead.
func NewApplicationSecurityGroupsClient ¶
func NewApplicationSecurityGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationSecurityGroupsClient, error)
NewApplicationSecurityGroupsClient creates a new instance of ApplicationSecurityGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ApplicationSecurityGroupsClient) BeginCreateOrUpdate ¶
func (client *ApplicationSecurityGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters ApplicationSecurityGroup, options *ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationSecurityGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an application security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationSecurityGroupName - The name of the application security group. parameters - Parameters supplied to the create or update ApplicationSecurityGroup operation. options - ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationSecurityGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-asg", armnetwork.ApplicationSecurityGroup{ Location: to.Ptr("westus"), Properties: &armnetwork.ApplicationSecurityGroupPropertiesFormat{}, }, 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) } // TODO: use response item _ = res }
Output:
func (*ApplicationSecurityGroupsClient) BeginDelete ¶
func (client *ApplicationSecurityGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, options *ApplicationSecurityGroupsClientBeginDeleteOptions) (*runtime.Poller[ApplicationSecurityGroupsClientDeleteResponse], error)
BeginDelete - Deletes the specified application security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationSecurityGroupName - The name of the application security group. options - ApplicationSecurityGroupsClientBeginDeleteOptions contains the optional parameters for the ApplicationSecurityGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-asg", 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 (*ApplicationSecurityGroupsClient) Get ¶
func (client *ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, options *ApplicationSecurityGroupsClientGetOptions) (ApplicationSecurityGroupsClientGetResponse, error)
Get - Gets information about the specified application security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationSecurityGroupName - The name of the application security group. options - ApplicationSecurityGroupsClientGetOptions contains the optional parameters for the ApplicationSecurityGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-asg", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ApplicationSecurityGroupsClient) NewListAllPager ¶ added in v0.5.0
func (client *ApplicationSecurityGroupsClient) NewListAllPager(options *ApplicationSecurityGroupsClientListAllOptions) *runtime.Pager[ApplicationSecurityGroupsClientListAllResponse]
NewListAllPager - Gets all application security groups in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ApplicationSecurityGroupsClientListAllOptions contains the optional parameters for the ApplicationSecurityGroupsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ApplicationSecurityGroupsClient) NewListPager ¶ added in v0.5.0
func (client *ApplicationSecurityGroupsClient) NewListPager(resourceGroupName string, options *ApplicationSecurityGroupsClientListOptions) *runtime.Pager[ApplicationSecurityGroupsClientListResponse]
NewListPager - Gets all the application security groups in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ApplicationSecurityGroupsClientListOptions contains the optional parameters for the ApplicationSecurityGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ApplicationSecurityGroupsClient) UpdateTags ¶
func (client *ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters TagsObject, options *ApplicationSecurityGroupsClientUpdateTagsOptions) (ApplicationSecurityGroupsClientUpdateTagsResponse, error)
UpdateTags - Updates an application security group's tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. applicationSecurityGroupName - The name of the application security group. parameters - Parameters supplied to update application security group tags. options - ApplicationSecurityGroupsClientUpdateTagsOptions contains the optional parameters for the ApplicationSecurityGroupsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ApplicationSecurityGroupUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewApplicationSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-asg", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationSecurityGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationSecurityGroupsClient.BeginCreateOrUpdate method.
type ApplicationSecurityGroupsClientBeginDeleteOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationSecurityGroupsClientBeginDeleteOptions contains the optional parameters for the ApplicationSecurityGroupsClient.BeginDelete method.
type ApplicationSecurityGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientCreateOrUpdateResponse struct {
ApplicationSecurityGroup
}
ApplicationSecurityGroupsClientCreateOrUpdateResponse contains the response from method ApplicationSecurityGroupsClient.CreateOrUpdate.
type ApplicationSecurityGroupsClientDeleteResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientDeleteResponse struct { }
ApplicationSecurityGroupsClientDeleteResponse contains the response from method ApplicationSecurityGroupsClient.Delete.
type ApplicationSecurityGroupsClientGetOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientGetOptions struct { }
ApplicationSecurityGroupsClientGetOptions contains the optional parameters for the ApplicationSecurityGroupsClient.Get method.
type ApplicationSecurityGroupsClientGetResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientGetResponse struct {
ApplicationSecurityGroup
}
ApplicationSecurityGroupsClientGetResponse contains the response from method ApplicationSecurityGroupsClient.Get.
type ApplicationSecurityGroupsClientListAllOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientListAllOptions struct { }
ApplicationSecurityGroupsClientListAllOptions contains the optional parameters for the ApplicationSecurityGroupsClient.ListAll method.
type ApplicationSecurityGroupsClientListAllResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientListAllResponse struct {
ApplicationSecurityGroupListResult
}
ApplicationSecurityGroupsClientListAllResponse contains the response from method ApplicationSecurityGroupsClient.ListAll.
type ApplicationSecurityGroupsClientListOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientListOptions struct { }
ApplicationSecurityGroupsClientListOptions contains the optional parameters for the ApplicationSecurityGroupsClient.List method.
type ApplicationSecurityGroupsClientListResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientListResponse struct {
ApplicationSecurityGroupListResult
}
ApplicationSecurityGroupsClientListResponse contains the response from method ApplicationSecurityGroupsClient.List.
type ApplicationSecurityGroupsClientUpdateTagsOptions ¶ added in v0.3.0
type ApplicationSecurityGroupsClientUpdateTagsOptions struct { }
ApplicationSecurityGroupsClientUpdateTagsOptions contains the optional parameters for the ApplicationSecurityGroupsClient.UpdateTags method.
type ApplicationSecurityGroupsClientUpdateTagsResponse ¶ added in v0.3.0
type ApplicationSecurityGroupsClientUpdateTagsResponse struct {
ApplicationSecurityGroup
}
ApplicationSecurityGroupsClientUpdateTagsResponse contains the response from method ApplicationSecurityGroupsClient.UpdateTags.
type AssociationType ¶
type AssociationType string
AssociationType - The association type of the child resource to the parent resource.
const ( AssociationTypeAssociated AssociationType = "Associated" AssociationTypeContains AssociationType = "Contains" )
func PossibleAssociationTypeValues ¶
func PossibleAssociationTypeValues() []AssociationType
PossibleAssociationTypeValues returns the possible values for the AssociationType const type.
type AuthenticationMethod ¶
type AuthenticationMethod string
AuthenticationMethod - VPN client authentication method.
const ( AuthenticationMethodEAPMSCHAPv2 AuthenticationMethod = "EAPMSCHAPv2" AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" )
func PossibleAuthenticationMethodValues ¶
func PossibleAuthenticationMethodValues() []AuthenticationMethod
PossibleAuthenticationMethodValues returns the possible values for the AuthenticationMethod const type.
type AuthorizationListResult ¶
type AuthorizationListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The authorizations in an ExpressRoute Circuit. Value []*ExpressRouteCircuitAuthorization `json:"value,omitempty"` }
AuthorizationListResult - Response for ListAuthorizations API service call retrieves all authorizations that belongs to an ExpressRouteCircuit.
type AuthorizationPropertiesFormat ¶
type AuthorizationPropertiesFormat struct { // The authorization key. AuthorizationKey *string `json:"authorizationKey,omitempty"` // The authorization use status. AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` // READ-ONLY; The provisioning state of the authorization resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AuthorizationPropertiesFormat - Properties of ExpressRouteCircuitAuthorization.
type AuthorizationUseStatus ¶
type AuthorizationUseStatus string
AuthorizationUseStatus - The authorization use status.
const ( AuthorizationUseStatusAvailable AuthorizationUseStatus = "Available" AuthorizationUseStatusInUse AuthorizationUseStatus = "InUse" )
func PossibleAuthorizationUseStatusValues ¶
func PossibleAuthorizationUseStatusValues() []AuthorizationUseStatus
PossibleAuthorizationUseStatusValues returns the possible values for the AuthorizationUseStatus const type.
type AutoApprovedPrivateLinkService ¶
type AutoApprovedPrivateLinkService struct { // The id of the private link service resource. PrivateLinkService *string `json:"privateLinkService,omitempty"` }
AutoApprovedPrivateLinkService - The information of an AutoApprovedPrivateLinkService.
type AutoApprovedPrivateLinkServicesResult ¶
type AutoApprovedPrivateLinkServicesResult struct { // An array of auto approved private link service. Value []*AutoApprovedPrivateLinkService `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AutoApprovedPrivateLinkServicesResult - An array of private link service id that can be linked to a private end point with auto approved.
type Availability ¶
type Availability struct { // Duration of the availability blob. BlobDuration *string `json:"blobDuration,omitempty"` // The retention of the availability. Retention *string `json:"retention,omitempty"` // The time grain of the availability. TimeGrain *string `json:"timeGrain,omitempty"` }
Availability of the metric.
type AvailableDelegation ¶
type AvailableDelegation struct { // The actions permitted to the service upon delegation. Actions []*string `json:"actions,omitempty"` // A unique identifier of the AvailableDelegation resource. ID *string `json:"id,omitempty"` // The name of the AvailableDelegation resource. Name *string `json:"name,omitempty"` // The name of the service and resource. ServiceName *string `json:"serviceName,omitempty"` // Resource type. Type *string `json:"type,omitempty"` }
AvailableDelegation - The serviceName of an AvailableDelegation indicates a possible delegation for a subnet.
type AvailableDelegationsClient ¶
type AvailableDelegationsClient struct {
// contains filtered or unexported fields
}
AvailableDelegationsClient contains the methods for the AvailableDelegations group. Don't use this type directly, use NewAvailableDelegationsClient() instead.
func NewAvailableDelegationsClient ¶
func NewAvailableDelegationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableDelegationsClient, error)
NewAvailableDelegationsClient creates a new instance of AvailableDelegationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailableDelegationsClient) NewListPager ¶ added in v0.5.0
func (client *AvailableDelegationsClient) NewListPager(location string, options *AvailableDelegationsClientListOptions) *runtime.Pager[AvailableDelegationsClientListResponse]
NewListPager - Gets all of the available subnet delegations for this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the subnet. options - AvailableDelegationsClientListOptions contains the optional parameters for the AvailableDelegationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailableDelegationsSubscriptionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailableDelegationsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westcentralus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AvailableDelegationsClientListOptions ¶ added in v0.3.0
type AvailableDelegationsClientListOptions struct { }
AvailableDelegationsClientListOptions contains the optional parameters for the AvailableDelegationsClient.List method.
type AvailableDelegationsClientListResponse ¶ added in v0.3.0
type AvailableDelegationsClientListResponse struct {
AvailableDelegationsResult
}
AvailableDelegationsClientListResponse contains the response from method AvailableDelegationsClient.List.
type AvailableDelegationsResult ¶
type AvailableDelegationsResult struct { // An array of available delegations. Value []*AvailableDelegation `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AvailableDelegationsResult - An array of available delegations.
type AvailableEndpointServicesClient ¶
type AvailableEndpointServicesClient struct {
// contains filtered or unexported fields
}
AvailableEndpointServicesClient contains the methods for the AvailableEndpointServices group. Don't use this type directly, use NewAvailableEndpointServicesClient() instead.
func NewAvailableEndpointServicesClient ¶
func NewAvailableEndpointServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableEndpointServicesClient, error)
NewAvailableEndpointServicesClient creates a new instance of AvailableEndpointServicesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailableEndpointServicesClient) NewListPager ¶ added in v0.5.0
func (client *AvailableEndpointServicesClient) NewListPager(location string, options *AvailableEndpointServicesClientListOptions) *runtime.Pager[AvailableEndpointServicesClientListResponse]
NewListPager - List what values of endpoint services are available for use. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location to check available endpoint services. options - AvailableEndpointServicesClientListOptions contains the optional parameters for the AvailableEndpointServicesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/EndpointServicesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailableEndpointServicesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AvailableEndpointServicesClientListOptions ¶ added in v0.3.0
type AvailableEndpointServicesClientListOptions struct { }
AvailableEndpointServicesClientListOptions contains the optional parameters for the AvailableEndpointServicesClient.List method.
type AvailableEndpointServicesClientListResponse ¶ added in v0.3.0
type AvailableEndpointServicesClientListResponse struct {
EndpointServicesListResult
}
AvailableEndpointServicesClientListResponse contains the response from method AvailableEndpointServicesClient.List.
type AvailablePrivateEndpointType ¶
type AvailablePrivateEndpointType struct { // Display name of the resource. DisplayName *string `json:"displayName,omitempty"` // A unique identifier of the AvailablePrivateEndpoint Type resource. ID *string `json:"id,omitempty"` // The name of the service and resource. Name *string `json:"name,omitempty"` // The name of the service and resource. ResourceName *string `json:"resourceName,omitempty"` // Resource type. Type *string `json:"type,omitempty"` }
AvailablePrivateEndpointType - The information of an AvailablePrivateEndpointType.
type AvailablePrivateEndpointTypesClient ¶
type AvailablePrivateEndpointTypesClient struct {
// contains filtered or unexported fields
}
AvailablePrivateEndpointTypesClient contains the methods for the AvailablePrivateEndpointTypes group. Don't use this type directly, use NewAvailablePrivateEndpointTypesClient() instead.
func NewAvailablePrivateEndpointTypesClient ¶
func NewAvailablePrivateEndpointTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailablePrivateEndpointTypesClient, error)
NewAvailablePrivateEndpointTypesClient creates a new instance of AvailablePrivateEndpointTypesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailablePrivateEndpointTypesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *AvailablePrivateEndpointTypesClient) NewListByResourceGroupPager(location string, resourceGroupName string, options *AvailablePrivateEndpointTypesClientListByResourceGroupOptions) *runtime.Pager[AvailablePrivateEndpointTypesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. resourceGroupName - The name of the resource group. options - AvailablePrivateEndpointTypesClientListByResourceGroupOptions contains the optional parameters for the AvailablePrivateEndpointTypesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailablePrivateEndpointTypesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("regionName", "rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AvailablePrivateEndpointTypesClient) NewListPager ¶ added in v0.5.0
func (client *AvailablePrivateEndpointTypesClient) NewListPager(location string, options *AvailablePrivateEndpointTypesClientListOptions) *runtime.Pager[AvailablePrivateEndpointTypesClientListResponse]
NewListPager - Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. options - AvailablePrivateEndpointTypesClientListOptions contains the optional parameters for the AvailablePrivateEndpointTypesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailablePrivateEndpointTypesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailablePrivateEndpointTypesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("regionName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AvailablePrivateEndpointTypesClientListByResourceGroupOptions ¶ added in v0.3.0
type AvailablePrivateEndpointTypesClientListByResourceGroupOptions struct { }
AvailablePrivateEndpointTypesClientListByResourceGroupOptions contains the optional parameters for the AvailablePrivateEndpointTypesClient.ListByResourceGroup method.
type AvailablePrivateEndpointTypesClientListByResourceGroupResponse ¶ added in v0.3.0
type AvailablePrivateEndpointTypesClientListByResourceGroupResponse struct {
AvailablePrivateEndpointTypesResult
}
AvailablePrivateEndpointTypesClientListByResourceGroupResponse contains the response from method AvailablePrivateEndpointTypesClient.ListByResourceGroup.
type AvailablePrivateEndpointTypesClientListOptions ¶ added in v0.3.0
type AvailablePrivateEndpointTypesClientListOptions struct { }
AvailablePrivateEndpointTypesClientListOptions contains the optional parameters for the AvailablePrivateEndpointTypesClient.List method.
type AvailablePrivateEndpointTypesClientListResponse ¶ added in v0.3.0
type AvailablePrivateEndpointTypesClientListResponse struct {
AvailablePrivateEndpointTypesResult
}
AvailablePrivateEndpointTypesClientListResponse contains the response from method AvailablePrivateEndpointTypesClient.List.
type AvailablePrivateEndpointTypesResult ¶
type AvailablePrivateEndpointTypesResult struct { // An array of available privateEndpoint type. Value []*AvailablePrivateEndpointType `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AvailablePrivateEndpointTypesResult - An array of available PrivateEndpoint types.
type AvailableProvidersList ¶
type AvailableProvidersList struct { // REQUIRED; List of available countries. Countries []*AvailableProvidersListCountry `json:"countries,omitempty"` }
AvailableProvidersList - List of available countries with details.
type AvailableProvidersListCity ¶
type AvailableProvidersListCity struct { // The city or town name. CityName *string `json:"cityName,omitempty"` // A list of Internet service providers. Providers []*string `json:"providers,omitempty"` }
AvailableProvidersListCity - City or town details.
type AvailableProvidersListCountry ¶
type AvailableProvidersListCountry struct { // The country name. CountryName *string `json:"countryName,omitempty"` // A list of Internet service providers. Providers []*string `json:"providers,omitempty"` // List of available states in the country. States []*AvailableProvidersListState `json:"states,omitempty"` }
AvailableProvidersListCountry - Country details.
type AvailableProvidersListParameters ¶
type AvailableProvidersListParameters struct { // A list of Azure regions. AzureLocations []*string `json:"azureLocations,omitempty"` // The city or town for available providers list. City *string `json:"city,omitempty"` // The country for available providers list. Country *string `json:"country,omitempty"` // The state for available providers list. State *string `json:"state,omitempty"` }
AvailableProvidersListParameters - Constraints that determine the list of available Internet service providers.
func (AvailableProvidersListParameters) MarshalJSON ¶
func (a AvailableProvidersListParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableProvidersListParameters.
type AvailableProvidersListState ¶
type AvailableProvidersListState struct { // List of available cities or towns in the state. Cities []*AvailableProvidersListCity `json:"cities,omitempty"` // A list of Internet service providers. Providers []*string `json:"providers,omitempty"` // The state name. StateName *string `json:"stateName,omitempty"` }
AvailableProvidersListState - State details.
type AvailableResourceGroupDelegationsClient ¶
type AvailableResourceGroupDelegationsClient struct {
// contains filtered or unexported fields
}
AvailableResourceGroupDelegationsClient contains the methods for the AvailableResourceGroupDelegations group. Don't use this type directly, use NewAvailableResourceGroupDelegationsClient() instead.
func NewAvailableResourceGroupDelegationsClient ¶
func NewAvailableResourceGroupDelegationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableResourceGroupDelegationsClient, error)
NewAvailableResourceGroupDelegationsClient creates a new instance of AvailableResourceGroupDelegationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailableResourceGroupDelegationsClient) NewListPager ¶ added in v0.5.0
func (client *AvailableResourceGroupDelegationsClient) NewListPager(location string, resourceGroupName string, options *AvailableResourceGroupDelegationsClientListOptions) *runtime.Pager[AvailableResourceGroupDelegationsClientListResponse]
NewListPager - Gets all of the available subnet delegations for this resource group in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. resourceGroupName - The name of the resource group. options - AvailableResourceGroupDelegationsClientListOptions contains the optional parameters for the AvailableResourceGroupDelegationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailableDelegationsResourceGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailableResourceGroupDelegationsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westcentralus", "rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AvailableResourceGroupDelegationsClientListOptions ¶ added in v0.3.0
type AvailableResourceGroupDelegationsClientListOptions struct { }
AvailableResourceGroupDelegationsClientListOptions contains the optional parameters for the AvailableResourceGroupDelegationsClient.List method.
type AvailableResourceGroupDelegationsClientListResponse ¶ added in v0.3.0
type AvailableResourceGroupDelegationsClientListResponse struct {
AvailableDelegationsResult
}
AvailableResourceGroupDelegationsClientListResponse contains the response from method AvailableResourceGroupDelegationsClient.List.
type AvailableServiceAlias ¶
type AvailableServiceAlias struct { // The ID of the service alias. ID *string `json:"id,omitempty"` // The name of the service alias. Name *string `json:"name,omitempty"` // The resource name of the service alias. ResourceName *string `json:"resourceName,omitempty"` // The type of the resource. Type *string `json:"type,omitempty"` }
AvailableServiceAlias - The available service alias.
type AvailableServiceAliasesClient ¶
type AvailableServiceAliasesClient struct {
// contains filtered or unexported fields
}
AvailableServiceAliasesClient contains the methods for the AvailableServiceAliases group. Don't use this type directly, use NewAvailableServiceAliasesClient() instead.
func NewAvailableServiceAliasesClient ¶
func NewAvailableServiceAliasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableServiceAliasesClient, error)
NewAvailableServiceAliasesClient creates a new instance of AvailableServiceAliasesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AvailableServiceAliasesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *AvailableServiceAliasesClient) NewListByResourceGroupPager(resourceGroupName string, location string, options *AvailableServiceAliasesClientListByResourceGroupOptions) *runtime.Pager[AvailableServiceAliasesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all available service aliases for this resource group in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. location - The location. options - AvailableServiceAliasesClientListByResourceGroupOptions contains the optional parameters for the AvailableServiceAliasesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailableServiceAliasesListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailableServiceAliasesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", "westcentralus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AvailableServiceAliasesClient) NewListPager ¶ added in v0.5.0
func (client *AvailableServiceAliasesClient) NewListPager(location string, options *AvailableServiceAliasesClientListOptions) *runtime.Pager[AvailableServiceAliasesClientListResponse]
NewListPager - Gets all available service aliases for this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location. options - AvailableServiceAliasesClientListOptions contains the optional parameters for the AvailableServiceAliasesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AvailableServiceAliasesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAvailableServiceAliasesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westcentralus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AvailableServiceAliasesClientListByResourceGroupOptions ¶ added in v0.3.0
type AvailableServiceAliasesClientListByResourceGroupOptions struct { }
AvailableServiceAliasesClientListByResourceGroupOptions contains the optional parameters for the AvailableServiceAliasesClient.ListByResourceGroup method.
type AvailableServiceAliasesClientListByResourceGroupResponse ¶ added in v0.3.0
type AvailableServiceAliasesClientListByResourceGroupResponse struct {
AvailableServiceAliasesResult
}
AvailableServiceAliasesClientListByResourceGroupResponse contains the response from method AvailableServiceAliasesClient.ListByResourceGroup.
type AvailableServiceAliasesClientListOptions ¶ added in v0.3.0
type AvailableServiceAliasesClientListOptions struct { }
AvailableServiceAliasesClientListOptions contains the optional parameters for the AvailableServiceAliasesClient.List method.
type AvailableServiceAliasesClientListResponse ¶ added in v0.3.0
type AvailableServiceAliasesClientListResponse struct {
AvailableServiceAliasesResult
}
AvailableServiceAliasesClientListResponse contains the response from method AvailableServiceAliasesClient.List.
type AvailableServiceAliasesResult ¶
type AvailableServiceAliasesResult struct { // An array of available service aliases. Value []*AvailableServiceAlias `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AvailableServiceAliasesResult - An array of available service aliases.
type AzureAsyncOperationResult ¶
type AzureAsyncOperationResult struct { // Details of the error occurred during specified asynchronous operation. Error *Error `json:"error,omitempty"` // Status of the Azure async operation. Status *NetworkOperationStatus `json:"status,omitempty"` }
AzureAsyncOperationResult - The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.
type AzureFirewall ¶
type AzureFirewall struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the azure firewall. Properties *AzureFirewallPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting where the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
AzureFirewall - Azure Firewall resource.
func (AzureFirewall) MarshalJSON ¶
func (a AzureFirewall) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewall.
type AzureFirewallApplicationRule ¶
type AzureFirewallApplicationRule struct { // Description of the rule. Description *string `json:"description,omitempty"` // List of FQDN Tags for this rule. FqdnTags []*string `json:"fqdnTags,omitempty"` // Name of the application rule. Name *string `json:"name,omitempty"` // Array of ApplicationRuleProtocols. Protocols []*AzureFirewallApplicationRuleProtocol `json:"protocols,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` // List of FQDNs for this rule. TargetFqdns []*string `json:"targetFqdns,omitempty"` }
AzureFirewallApplicationRule - Properties of an application rule.
func (AzureFirewallApplicationRule) MarshalJSON ¶
func (a AzureFirewallApplicationRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallApplicationRule.
type AzureFirewallApplicationRuleCollection ¶
type AzureFirewallApplicationRuleCollection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the azure firewall application rule collection. Properties *AzureFirewallApplicationRuleCollectionPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
AzureFirewallApplicationRuleCollection - Application rule collection resource.
type AzureFirewallApplicationRuleCollectionPropertiesFormat ¶
type AzureFirewallApplicationRuleCollectionPropertiesFormat struct { // The action type of a rule collection. Action *AzureFirewallRCAction `json:"action,omitempty"` // Priority of the application rule collection resource. Priority *int32 `json:"priority,omitempty"` // Collection of rules used by a application rule collection. Rules []*AzureFirewallApplicationRule `json:"rules,omitempty"` // READ-ONLY; The provisioning state of the application rule collection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallApplicationRuleCollectionPropertiesFormat - Properties of the application rule collection.
func (AzureFirewallApplicationRuleCollectionPropertiesFormat) MarshalJSON ¶
func (a AzureFirewallApplicationRuleCollectionPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallApplicationRuleCollectionPropertiesFormat.
type AzureFirewallApplicationRuleProtocol ¶
type AzureFirewallApplicationRuleProtocol struct { // Port number for the protocol, cannot be greater than 64000. This field is optional. Port *int32 `json:"port,omitempty"` // Protocol type. ProtocolType *AzureFirewallApplicationRuleProtocolType `json:"protocolType,omitempty"` }
AzureFirewallApplicationRuleProtocol - Properties of the application rule protocol.
type AzureFirewallApplicationRuleProtocolType ¶
type AzureFirewallApplicationRuleProtocolType string
AzureFirewallApplicationRuleProtocolType - The protocol type of a Application Rule resource.
const ( AzureFirewallApplicationRuleProtocolTypeHTTP AzureFirewallApplicationRuleProtocolType = "Http" AzureFirewallApplicationRuleProtocolTypeHTTPS AzureFirewallApplicationRuleProtocolType = "Https" AzureFirewallApplicationRuleProtocolTypeMssql AzureFirewallApplicationRuleProtocolType = "Mssql" )
func PossibleAzureFirewallApplicationRuleProtocolTypeValues ¶
func PossibleAzureFirewallApplicationRuleProtocolTypeValues() []AzureFirewallApplicationRuleProtocolType
PossibleAzureFirewallApplicationRuleProtocolTypeValues returns the possible values for the AzureFirewallApplicationRuleProtocolType const type.
type AzureFirewallFqdnTag ¶
type AzureFirewallFqdnTag struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the azure firewall FQDN tag. Properties *AzureFirewallFqdnTagPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
AzureFirewallFqdnTag - Azure Firewall FQDN Tag Resource.
func (AzureFirewallFqdnTag) MarshalJSON ¶
func (a AzureFirewallFqdnTag) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallFqdnTag.
type AzureFirewallFqdnTagListResult ¶
type AzureFirewallFqdnTagListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Azure Firewall FQDN Tags in a resource group. Value []*AzureFirewallFqdnTag `json:"value,omitempty"` }
AzureFirewallFqdnTagListResult - Response for ListAzureFirewallFqdnTags API service call.
type AzureFirewallFqdnTagPropertiesFormat ¶
type AzureFirewallFqdnTagPropertiesFormat struct { // READ-ONLY; The name of this FQDN Tag. FqdnTagName *string `json:"fqdnTagName,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the Azure firewall FQDN tag resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallFqdnTagPropertiesFormat - Azure Firewall FQDN Tag Properties.
type AzureFirewallFqdnTagsClient ¶
type AzureFirewallFqdnTagsClient struct {
// contains filtered or unexported fields
}
AzureFirewallFqdnTagsClient contains the methods for the AzureFirewallFqdnTags group. Don't use this type directly, use NewAzureFirewallFqdnTagsClient() instead.
func NewAzureFirewallFqdnTagsClient ¶
func NewAzureFirewallFqdnTagsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureFirewallFqdnTagsClient, error)
NewAzureFirewallFqdnTagsClient creates a new instance of AzureFirewallFqdnTagsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AzureFirewallFqdnTagsClient) NewListAllPager ¶ added in v0.5.0
func (client *AzureFirewallFqdnTagsClient) NewListAllPager(options *AzureFirewallFqdnTagsClientListAllOptions) *runtime.Pager[AzureFirewallFqdnTagsClientListAllResponse]
NewListAllPager - Gets all the Azure Firewall FQDN Tags in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - AzureFirewallFqdnTagsClientListAllOptions contains the optional parameters for the AzureFirewallFqdnTagsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallFqdnTagsListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallFqdnTagsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AzureFirewallFqdnTagsClientListAllOptions ¶ added in v0.3.0
type AzureFirewallFqdnTagsClientListAllOptions struct { }
AzureFirewallFqdnTagsClientListAllOptions contains the optional parameters for the AzureFirewallFqdnTagsClient.ListAll method.
type AzureFirewallFqdnTagsClientListAllResponse ¶ added in v0.3.0
type AzureFirewallFqdnTagsClientListAllResponse struct {
AzureFirewallFqdnTagListResult
}
AzureFirewallFqdnTagsClientListAllResponse contains the response from method AzureFirewallFqdnTagsClient.ListAll.
type AzureFirewallIPConfiguration ¶
type AzureFirewallIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the azure firewall IP configuration. Properties *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
AzureFirewallIPConfiguration - IP configuration of an Azure Firewall.
type AzureFirewallIPConfigurationPropertiesFormat ¶
type AzureFirewallIPConfigurationPropertiesFormat struct { // Reference to the PublicIP resource. This field is a mandatory input if subnet is not null. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` // Reference to the subnet resource. This resource must be named 'AzureFirewallSubnet' or 'AzureFirewallManagementSubnet'. Subnet *SubResource `json:"subnet,omitempty"` // READ-ONLY; The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. PrivateIPAddress *string `json:"privateIPAddress,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the Azure firewall IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallIPConfigurationPropertiesFormat - Properties of IP configuration of an Azure Firewall.
type AzureFirewallIPGroups ¶
type AzureFirewallIPGroups struct { // READ-ONLY; The iteration number. ChangeNumber *string `json:"changeNumber,omitempty" azure:"ro"` // READ-ONLY; Resource ID. ID *string `json:"id,omitempty" azure:"ro"` }
AzureFirewallIPGroups - IpGroups associated with azure firewall.
type AzureFirewallListResult ¶
type AzureFirewallListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Azure Firewalls in a resource group. Value []*AzureFirewall `json:"value,omitempty"` }
AzureFirewallListResult - Response for ListAzureFirewalls API service call.
type AzureFirewallNatRCAction ¶
type AzureFirewallNatRCAction struct { // The type of action. Type *AzureFirewallNatRCActionType `json:"type,omitempty"` }
AzureFirewallNatRCAction - AzureFirewall NAT Rule Collection Action.
type AzureFirewallNatRCActionType ¶
type AzureFirewallNatRCActionType string
AzureFirewallNatRCActionType - The action type of a NAT rule collection.
const ( AzureFirewallNatRCActionTypeDnat AzureFirewallNatRCActionType = "Dnat" AzureFirewallNatRCActionTypeSnat AzureFirewallNatRCActionType = "Snat" )
func PossibleAzureFirewallNatRCActionTypeValues ¶
func PossibleAzureFirewallNatRCActionTypeValues() []AzureFirewallNatRCActionType
PossibleAzureFirewallNatRCActionTypeValues returns the possible values for the AzureFirewallNatRCActionType const type.
type AzureFirewallNatRule ¶
type AzureFirewallNatRule struct { // Description of the rule. Description *string `json:"description,omitempty"` // List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of destination ports. DestinationPorts []*string `json:"destinationPorts,omitempty"` // Name of the NAT rule. Name *string `json:"name,omitempty"` // Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. Protocols []*AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` // The translated address for this NAT rule. TranslatedAddress *string `json:"translatedAddress,omitempty"` // The translated FQDN for this NAT rule. TranslatedFqdn *string `json:"translatedFqdn,omitempty"` // The translated port for this NAT rule. TranslatedPort *string `json:"translatedPort,omitempty"` }
AzureFirewallNatRule - Properties of a NAT rule.
func (AzureFirewallNatRule) MarshalJSON ¶
func (a AzureFirewallNatRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallNatRule.
type AzureFirewallNatRuleCollection ¶
type AzureFirewallNatRuleCollection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the azure firewall NAT rule collection. Properties *AzureFirewallNatRuleCollectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
AzureFirewallNatRuleCollection - NAT rule collection resource.
type AzureFirewallNatRuleCollectionProperties ¶
type AzureFirewallNatRuleCollectionProperties struct { // The action type of a NAT rule collection. Action *AzureFirewallNatRCAction `json:"action,omitempty"` // Priority of the NAT rule collection resource. Priority *int32 `json:"priority,omitempty"` // Collection of rules used by a NAT rule collection. Rules []*AzureFirewallNatRule `json:"rules,omitempty"` // READ-ONLY; The provisioning state of the NAT rule collection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallNatRuleCollectionProperties - Properties of the NAT rule collection.
func (AzureFirewallNatRuleCollectionProperties) MarshalJSON ¶
func (a AzureFirewallNatRuleCollectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallNatRuleCollectionProperties.
type AzureFirewallNetworkRule ¶
type AzureFirewallNetworkRule struct { // Description of the rule. Description *string `json:"description,omitempty"` // List of destination IP addresses. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of destination FQDNs. DestinationFqdns []*string `json:"destinationFqdns,omitempty"` // List of destination IpGroups for this rule. DestinationIPGroups []*string `json:"destinationIpGroups,omitempty"` // List of destination ports. DestinationPorts []*string `json:"destinationPorts,omitempty"` // Name of the network rule. Name *string `json:"name,omitempty"` // Array of AzureFirewallNetworkRuleProtocols. Protocols []*AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` }
AzureFirewallNetworkRule - Properties of the network rule.
func (AzureFirewallNetworkRule) MarshalJSON ¶
func (a AzureFirewallNetworkRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallNetworkRule.
type AzureFirewallNetworkRuleCollection ¶
type AzureFirewallNetworkRuleCollection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the Azure firewall. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the azure firewall network rule collection. Properties *AzureFirewallNetworkRuleCollectionPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
AzureFirewallNetworkRuleCollection - Network rule collection resource.
type AzureFirewallNetworkRuleCollectionPropertiesFormat ¶
type AzureFirewallNetworkRuleCollectionPropertiesFormat struct { // The action type of a rule collection. Action *AzureFirewallRCAction `json:"action,omitempty"` // Priority of the network rule collection resource. Priority *int32 `json:"priority,omitempty"` // Collection of rules used by a network rule collection. Rules []*AzureFirewallNetworkRule `json:"rules,omitempty"` // READ-ONLY; The provisioning state of the network rule collection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallNetworkRuleCollectionPropertiesFormat - Properties of the network rule collection.
func (AzureFirewallNetworkRuleCollectionPropertiesFormat) MarshalJSON ¶
func (a AzureFirewallNetworkRuleCollectionPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallNetworkRuleCollectionPropertiesFormat.
type AzureFirewallNetworkRuleProtocol ¶
type AzureFirewallNetworkRuleProtocol string
AzureFirewallNetworkRuleProtocol - The protocol of a Network Rule resource.
const ( AzureFirewallNetworkRuleProtocolAny AzureFirewallNetworkRuleProtocol = "Any" AzureFirewallNetworkRuleProtocolICMP AzureFirewallNetworkRuleProtocol = "ICMP" AzureFirewallNetworkRuleProtocolTCP AzureFirewallNetworkRuleProtocol = "TCP" AzureFirewallNetworkRuleProtocolUDP AzureFirewallNetworkRuleProtocol = "UDP" )
func PossibleAzureFirewallNetworkRuleProtocolValues ¶
func PossibleAzureFirewallNetworkRuleProtocolValues() []AzureFirewallNetworkRuleProtocol
PossibleAzureFirewallNetworkRuleProtocolValues returns the possible values for the AzureFirewallNetworkRuleProtocol const type.
type AzureFirewallPropertiesFormat ¶
type AzureFirewallPropertiesFormat struct { // The additional properties used to further config this azure firewall. AdditionalProperties map[string]*string `json:"additionalProperties,omitempty"` // Collection of application rule collections used by Azure Firewall. ApplicationRuleCollections []*AzureFirewallApplicationRuleCollection `json:"applicationRuleCollections,omitempty"` // The firewallPolicy associated with this azure firewall. FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` // IP addresses associated with AzureFirewall. HubIPAddresses *HubIPAddresses `json:"hubIPAddresses,omitempty"` // IP configuration of the Azure Firewall resource. IPConfigurations []*AzureFirewallIPConfiguration `json:"ipConfigurations,omitempty"` // IP configuration of the Azure Firewall used for management traffic. ManagementIPConfiguration *AzureFirewallIPConfiguration `json:"managementIpConfiguration,omitempty"` // Collection of NAT rule collections used by Azure Firewall. NatRuleCollections []*AzureFirewallNatRuleCollection `json:"natRuleCollections,omitempty"` // Collection of network rule collections used by Azure Firewall. NetworkRuleCollections []*AzureFirewallNetworkRuleCollection `json:"networkRuleCollections,omitempty"` // The Azure Firewall Resource SKU. SKU *AzureFirewallSKU `json:"sku,omitempty"` // The operation mode for Threat Intelligence. ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` // The virtualHub to which the firewall belongs. VirtualHub *SubResource `json:"virtualHub,omitempty"` // READ-ONLY; IpGroups associated with AzureFirewall. IPGroups []*AzureFirewallIPGroups `json:"ipGroups,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the Azure firewall resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
AzureFirewallPropertiesFormat - Properties of the Azure Firewall.
func (AzureFirewallPropertiesFormat) MarshalJSON ¶
func (a AzureFirewallPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFirewallPropertiesFormat.
type AzureFirewallPublicIPAddress ¶
type AzureFirewallPublicIPAddress struct { // Public IP Address value. Address *string `json:"address,omitempty"` }
AzureFirewallPublicIPAddress - Public IP Address associated with azure firewall.
type AzureFirewallRCAction ¶
type AzureFirewallRCAction struct { // The type of action. Type *AzureFirewallRCActionType `json:"type,omitempty"` }
AzureFirewallRCAction - Properties of the AzureFirewallRCAction.
type AzureFirewallRCActionType ¶
type AzureFirewallRCActionType string
AzureFirewallRCActionType - The action type of a rule collection.
const ( AzureFirewallRCActionTypeAllow AzureFirewallRCActionType = "Allow" AzureFirewallRCActionTypeDeny AzureFirewallRCActionType = "Deny" )
func PossibleAzureFirewallRCActionTypeValues ¶
func PossibleAzureFirewallRCActionTypeValues() []AzureFirewallRCActionType
PossibleAzureFirewallRCActionTypeValues returns the possible values for the AzureFirewallRCActionType const type.
type AzureFirewallSKU ¶
type AzureFirewallSKU struct { // Name of an Azure Firewall SKU. Name *AzureFirewallSKUName `json:"name,omitempty"` // Tier of an Azure Firewall. Tier *AzureFirewallSKUTier `json:"tier,omitempty"` }
AzureFirewallSKU - SKU of an Azure Firewall.
type AzureFirewallSKUName ¶
type AzureFirewallSKUName string
AzureFirewallSKUName - Name of an Azure Firewall SKU.
const ( AzureFirewallSKUNameAZFWHub AzureFirewallSKUName = "AZFW_Hub" AzureFirewallSKUNameAZFWVnet AzureFirewallSKUName = "AZFW_VNet" )
func PossibleAzureFirewallSKUNameValues ¶
func PossibleAzureFirewallSKUNameValues() []AzureFirewallSKUName
PossibleAzureFirewallSKUNameValues returns the possible values for the AzureFirewallSKUName const type.
type AzureFirewallSKUTier ¶
type AzureFirewallSKUTier string
AzureFirewallSKUTier - Tier of an Azure Firewall.
const ( AzureFirewallSKUTierBasic AzureFirewallSKUTier = "Basic" AzureFirewallSKUTierPremium AzureFirewallSKUTier = "Premium" AzureFirewallSKUTierStandard AzureFirewallSKUTier = "Standard" )
func PossibleAzureFirewallSKUTierValues ¶
func PossibleAzureFirewallSKUTierValues() []AzureFirewallSKUTier
PossibleAzureFirewallSKUTierValues returns the possible values for the AzureFirewallSKUTier const type.
type AzureFirewallThreatIntelMode ¶
type AzureFirewallThreatIntelMode string
AzureFirewallThreatIntelMode - The operation mode for Threat Intel.
const ( AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" )
func PossibleAzureFirewallThreatIntelModeValues ¶
func PossibleAzureFirewallThreatIntelModeValues() []AzureFirewallThreatIntelMode
PossibleAzureFirewallThreatIntelModeValues returns the possible values for the AzureFirewallThreatIntelMode const type.
type AzureFirewallsClient ¶
type AzureFirewallsClient struct {
// contains filtered or unexported fields
}
AzureFirewallsClient contains the methods for the AzureFirewalls group. Don't use this type directly, use NewAzureFirewallsClient() instead.
func NewAzureFirewallsClient ¶
func NewAzureFirewallsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureFirewallsClient, error)
NewAzureFirewallsClient creates a new instance of AzureFirewallsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AzureFirewallsClient) BeginCreateOrUpdate ¶
func (client *AzureFirewallsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters AzureFirewall, options *AzureFirewallsClientBeginCreateOrUpdateOptions) (*runtime.Poller[AzureFirewallsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Azure Firewall. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. azureFirewallName - The name of the Azure Firewall. parameters - Parameters supplied to the create or update Azure Firewall operation. options - AzureFirewallsClientBeginCreateOrUpdateOptions contains the optional parameters for the AzureFirewallsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "azurefirewall", armnetwork.AzureFirewall{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.AzureFirewallPropertiesFormat{ ApplicationRuleCollections: []*armnetwork.AzureFirewallApplicationRuleCollection{ { Name: to.Ptr("apprulecoll"), Properties: &armnetwork.AzureFirewallApplicationRuleCollectionPropertiesFormat{ Action: &armnetwork.AzureFirewallRCAction{ Type: to.Ptr(armnetwork.AzureFirewallRCActionTypeDeny), }, Priority: to.Ptr[int32](110), Rules: []*armnetwork.AzureFirewallApplicationRule{ { Name: to.Ptr("rule1"), Description: to.Ptr("Deny inbound rule"), Protocols: []*armnetwork.AzureFirewallApplicationRuleProtocol{ { Port: to.Ptr[int32](443), ProtocolType: to.Ptr(armnetwork.AzureFirewallApplicationRuleProtocolTypeHTTPS), }}, SourceAddresses: []*string{ to.Ptr("216.58.216.164"), to.Ptr("10.0.0.0/24")}, TargetFqdns: []*string{ to.Ptr("www.test.com")}, }}, }, }}, IPConfigurations: []*armnetwork.AzureFirewallIPConfiguration{ { Name: to.Ptr("azureFirewallIpConfiguration"), Properties: &armnetwork.AzureFirewallIPConfigurationPropertiesFormat{ PublicIPAddress: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName"), }, Subnet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet"), }, }, }}, NatRuleCollections: []*armnetwork.AzureFirewallNatRuleCollection{ { Name: to.Ptr("natrulecoll"), Properties: &armnetwork.AzureFirewallNatRuleCollectionProperties{ Action: &armnetwork.AzureFirewallNatRCAction{ Type: to.Ptr(armnetwork.AzureFirewallNatRCActionTypeDnat), }, Priority: to.Ptr[int32](112), Rules: []*armnetwork.AzureFirewallNatRule{ { Name: to.Ptr("DNAT-HTTPS-traffic"), Description: to.Ptr("D-NAT all outbound web traffic for inspection"), DestinationAddresses: []*string{ to.Ptr("1.2.3.4")}, DestinationPorts: []*string{ to.Ptr("443")}, Protocols: []*armnetwork.AzureFirewallNetworkRuleProtocol{ to.Ptr(armnetwork.AzureFirewallNetworkRuleProtocolTCP)}, SourceAddresses: []*string{ to.Ptr("*")}, TranslatedAddress: to.Ptr("1.2.3.5"), TranslatedPort: to.Ptr("8443"), }, { Name: to.Ptr("DNAT-HTTP-traffic-With-FQDN"), Description: to.Ptr("D-NAT all inbound web traffic for inspection"), DestinationAddresses: []*string{ to.Ptr("1.2.3.4")}, DestinationPorts: []*string{ to.Ptr("80")}, Protocols: []*armnetwork.AzureFirewallNetworkRuleProtocol{ to.Ptr(armnetwork.AzureFirewallNetworkRuleProtocolTCP)}, SourceAddresses: []*string{ to.Ptr("*")}, TranslatedFqdn: to.Ptr("internalhttpserver"), TranslatedPort: to.Ptr("880"), }}, }, }}, NetworkRuleCollections: []*armnetwork.AzureFirewallNetworkRuleCollection{ { Name: to.Ptr("netrulecoll"), Properties: &armnetwork.AzureFirewallNetworkRuleCollectionPropertiesFormat{ Action: &armnetwork.AzureFirewallRCAction{ Type: to.Ptr(armnetwork.AzureFirewallRCActionTypeDeny), }, Priority: to.Ptr[int32](112), Rules: []*armnetwork.AzureFirewallNetworkRule{ { Name: to.Ptr("L4-traffic"), Description: to.Ptr("Block traffic based on source IPs and ports"), DestinationAddresses: []*string{ to.Ptr("*")}, DestinationPorts: []*string{ to.Ptr("443-444"), to.Ptr("8443")}, Protocols: []*armnetwork.AzureFirewallNetworkRuleProtocol{ to.Ptr(armnetwork.AzureFirewallNetworkRuleProtocolTCP)}, SourceAddresses: []*string{ to.Ptr("192.168.1.1-192.168.1.12"), to.Ptr("10.1.4.12-10.1.4.255")}, }, { Name: to.Ptr("L4-traffic-with-FQDN"), Description: to.Ptr("Block traffic based on source IPs and ports to amazon"), DestinationFqdns: []*string{ to.Ptr("www.amazon.com")}, DestinationPorts: []*string{ to.Ptr("443-444"), to.Ptr("8443")}, Protocols: []*armnetwork.AzureFirewallNetworkRuleProtocol{ to.Ptr(armnetwork.AzureFirewallNetworkRuleProtocolTCP)}, SourceAddresses: []*string{ to.Ptr("10.2.4.12-10.2.4.255")}, }}, }, }}, SKU: &armnetwork.AzureFirewallSKU{ Name: to.Ptr(armnetwork.AzureFirewallSKUNameAZFWVnet), Tier: to.Ptr(armnetwork.AzureFirewallSKUTierStandard), }, ThreatIntelMode: to.Ptr(armnetwork.AzureFirewallThreatIntelModeAlert), }, Zones: []*string{}, }, 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) } // TODO: use response item _ = res }
Output:
func (*AzureFirewallsClient) BeginDelete ¶
func (client *AzureFirewallsClient) BeginDelete(ctx context.Context, resourceGroupName string, azureFirewallName string, options *AzureFirewallsClientBeginDeleteOptions) (*runtime.Poller[AzureFirewallsClientDeleteResponse], error)
BeginDelete - Deletes the specified Azure Firewall. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. azureFirewallName - The name of the Azure Firewall. options - AzureFirewallsClientBeginDeleteOptions contains the optional parameters for the AzureFirewallsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "azurefirewall", 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 (*AzureFirewallsClient) BeginUpdateTags ¶
func (client *AzureFirewallsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject, options *AzureFirewallsClientBeginUpdateTagsOptions) (*runtime.Poller[AzureFirewallsClientUpdateTagsResponse], error)
BeginUpdateTags - Updates tags of an Azure Firewall resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. azureFirewallName - The name of the Azure Firewall. parameters - Parameters supplied to update azure firewall tags. options - AzureFirewallsClientBeginUpdateTagsOptions contains the optional parameters for the AzureFirewallsClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "azfwtest", "fw1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*AzureFirewallsClient) Get ¶
func (client *AzureFirewallsClient) Get(ctx context.Context, resourceGroupName string, azureFirewallName string, options *AzureFirewallsClientGetOptions) (AzureFirewallsClientGetResponse, error)
Get - Gets the specified Azure Firewall. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. azureFirewallName - The name of the Azure Firewall. options - AzureFirewallsClientGetOptions contains the optional parameters for the AzureFirewallsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "azurefirewall", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*AzureFirewallsClient) NewListAllPager ¶ added in v0.5.0
func (client *AzureFirewallsClient) NewListAllPager(options *AzureFirewallsClientListAllOptions) *runtime.Pager[AzureFirewallsClientListAllResponse]
NewListAllPager - Gets all the Azure Firewalls in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - AzureFirewallsClientListAllOptions contains the optional parameters for the AzureFirewallsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AzureFirewallsClient) NewListPager ¶ added in v0.5.0
func (client *AzureFirewallsClient) NewListPager(resourceGroupName string, options *AzureFirewallsClientListOptions) *runtime.Pager[AzureFirewallsClientListResponse]
NewListPager - Lists all Azure Firewalls in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - AzureFirewallsClientListOptions contains the optional parameters for the AzureFirewallsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureFirewallListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewAzureFirewallsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AzureFirewallsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type AzureFirewallsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AzureFirewallsClientBeginCreateOrUpdateOptions contains the optional parameters for the AzureFirewallsClient.BeginCreateOrUpdate method.
type AzureFirewallsClientBeginDeleteOptions ¶ added in v0.3.0
type AzureFirewallsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AzureFirewallsClientBeginDeleteOptions contains the optional parameters for the AzureFirewallsClient.BeginDelete method.
type AzureFirewallsClientBeginUpdateTagsOptions ¶ added in v0.3.0
type AzureFirewallsClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AzureFirewallsClientBeginUpdateTagsOptions contains the optional parameters for the AzureFirewallsClient.BeginUpdateTags method.
type AzureFirewallsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AzureFirewallsClientCreateOrUpdateResponse struct {
AzureFirewall
}
AzureFirewallsClientCreateOrUpdateResponse contains the response from method AzureFirewallsClient.CreateOrUpdate.
type AzureFirewallsClientDeleteResponse ¶ added in v0.3.0
type AzureFirewallsClientDeleteResponse struct { }
AzureFirewallsClientDeleteResponse contains the response from method AzureFirewallsClient.Delete.
type AzureFirewallsClientGetOptions ¶ added in v0.3.0
type AzureFirewallsClientGetOptions struct { }
AzureFirewallsClientGetOptions contains the optional parameters for the AzureFirewallsClient.Get method.
type AzureFirewallsClientGetResponse ¶ added in v0.3.0
type AzureFirewallsClientGetResponse struct {
AzureFirewall
}
AzureFirewallsClientGetResponse contains the response from method AzureFirewallsClient.Get.
type AzureFirewallsClientListAllOptions ¶ added in v0.3.0
type AzureFirewallsClientListAllOptions struct { }
AzureFirewallsClientListAllOptions contains the optional parameters for the AzureFirewallsClient.ListAll method.
type AzureFirewallsClientListAllResponse ¶ added in v0.3.0
type AzureFirewallsClientListAllResponse struct {
AzureFirewallListResult
}
AzureFirewallsClientListAllResponse contains the response from method AzureFirewallsClient.ListAll.
type AzureFirewallsClientListOptions ¶ added in v0.3.0
type AzureFirewallsClientListOptions struct { }
AzureFirewallsClientListOptions contains the optional parameters for the AzureFirewallsClient.List method.
type AzureFirewallsClientListResponse ¶ added in v0.3.0
type AzureFirewallsClientListResponse struct {
AzureFirewallListResult
}
AzureFirewallsClientListResponse contains the response from method AzureFirewallsClient.List.
type AzureFirewallsClientUpdateTagsResponse ¶ added in v0.3.0
type AzureFirewallsClientUpdateTagsResponse struct {
AzureFirewall
}
AzureFirewallsClientUpdateTagsResponse contains the response from method AzureFirewallsClient.UpdateTags.
type AzureReachabilityReport ¶
type AzureReachabilityReport struct { // REQUIRED; The aggregation level of Azure reachability report. Can be Country, State or City. AggregationLevel *string `json:"aggregationLevel,omitempty"` // REQUIRED; Parameters that define a geographic location. ProviderLocation *AzureReachabilityReportLocation `json:"providerLocation,omitempty"` // REQUIRED; List of Azure reachability report items. ReachabilityReport []*AzureReachabilityReportItem `json:"reachabilityReport,omitempty"` }
AzureReachabilityReport - Azure reachability report details.
type AzureReachabilityReportItem ¶
type AzureReachabilityReportItem struct { // The Azure region. AzureLocation *string `json:"azureLocation,omitempty"` // List of latency details for each of the time series. Latencies []*AzureReachabilityReportLatencyInfo `json:"latencies,omitempty"` // The Internet service provider. Provider *string `json:"provider,omitempty"` }
AzureReachabilityReportItem - Azure reachability report details for a given provider location.
type AzureReachabilityReportLatencyInfo ¶
type AzureReachabilityReportLatencyInfo struct { // The relative latency score between 1 and 100, higher values indicating a faster connection. Score *int32 `json:"score,omitempty"` // The time stamp. TimeStamp *time.Time `json:"timeStamp,omitempty"` }
AzureReachabilityReportLatencyInfo - Details on latency for a time series.
func (*AzureReachabilityReportLatencyInfo) UnmarshalJSON ¶
func (a *AzureReachabilityReportLatencyInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureReachabilityReportLatencyInfo.
type AzureReachabilityReportLocation ¶
type AzureReachabilityReportLocation struct { // REQUIRED; The name of the country. Country *string `json:"country,omitempty"` // The name of the city or town. City *string `json:"city,omitempty"` // The name of the state. State *string `json:"state,omitempty"` }
AzureReachabilityReportLocation - Parameters that define a geographic location.
type AzureReachabilityReportParameters ¶
type AzureReachabilityReportParameters struct { // REQUIRED; The end time for the Azure reachability report. EndTime *time.Time `json:"endTime,omitempty"` // REQUIRED; Parameters that define a geographic location. ProviderLocation *AzureReachabilityReportLocation `json:"providerLocation,omitempty"` // REQUIRED; The start time for the Azure reachability report. StartTime *time.Time `json:"startTime,omitempty"` // Optional Azure regions to scope the query to. AzureLocations []*string `json:"azureLocations,omitempty"` // List of Internet service providers. Providers []*string `json:"providers,omitempty"` }
AzureReachabilityReportParameters - Geographic and time constraints for Azure reachability report.
func (AzureReachabilityReportParameters) MarshalJSON ¶
func (a AzureReachabilityReportParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureReachabilityReportParameters.
func (*AzureReachabilityReportParameters) UnmarshalJSON ¶
func (a *AzureReachabilityReportParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureReachabilityReportParameters.
type AzureWebCategory ¶
type AzureWebCategory struct { // Resource ID. ID *string `json:"id,omitempty"` // Properties of the Azure Web Category. Properties *AzureWebCategoryPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
AzureWebCategory - Azure Web Category Resource.
type AzureWebCategoryListResult ¶
type AzureWebCategoryListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Azure Web Categories for a given Subscription. Value []*AzureWebCategory `json:"value,omitempty"` }
AzureWebCategoryListResult - Response for ListAzureWebCategories API service call.
type AzureWebCategoryPropertiesFormat ¶
type AzureWebCategoryPropertiesFormat struct { // READ-ONLY; The name of the group that the category belongs to. Group *string `json:"group,omitempty" azure:"ro"` }
AzureWebCategoryPropertiesFormat - Azure Web Category Properties.
type BGPCommunity ¶
type BGPCommunity struct { // The name of the bgp community. e.g. Skype. CommunityName *string `json:"communityName,omitempty"` // The prefixes that the bgp community contains. CommunityPrefixes []*string `json:"communityPrefixes,omitempty"` // The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. CommunityValue *string `json:"communityValue,omitempty"` // Customer is authorized to use bgp community or not. IsAuthorizedToUse *bool `json:"isAuthorizedToUse,omitempty"` // The service group of the bgp community contains. ServiceGroup *string `json:"serviceGroup,omitempty"` // The region which the service support. e.g. For O365, region is Global. ServiceSupportedRegion *string `json:"serviceSupportedRegion,omitempty"` }
BGPCommunity - Contains bgp community information offered in Service Community resources.
func (BGPCommunity) MarshalJSON ¶
func (b BGPCommunity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BGPCommunity.
type BackendAddressInboundNatRulePortMappings ¶ added in v0.2.0
type BackendAddressInboundNatRulePortMappings struct { // Collection of inbound NAT rule port mappings. InboundNatRulePortMappings []*InboundNatRulePortMapping `json:"inboundNatRulePortMappings,omitempty"` }
BackendAddressInboundNatRulePortMappings - The response for a QueryInboundNatRulePortMapping API.
type BackendAddressPool ¶
type BackendAddressPool struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of backend address pools used by the load balancer. This name can // be used to access the resource. Name *string `json:"name,omitempty"` // Properties of load balancer backend address pool. Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
BackendAddressPool - Pool of backend IP addresses.
type BackendAddressPoolPropertiesFormat ¶
type BackendAddressPoolPropertiesFormat struct { // Amount of seconds Load Balancer waits for before sending RESET to client and backend address. DrainPeriodInSeconds *int32 `json:"drainPeriodInSeconds,omitempty"` // An array of backend addresses. LoadBalancerBackendAddresses []*LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` // The location of the backend address pool. Location *string `json:"location,omitempty"` // An array of gateway load balancer tunnel interfaces. TunnelInterfaces []*GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` // READ-ONLY; An array of references to IP addresses defined in network interfaces. BackendIPConfigurations []*InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty" azure:"ro"` // READ-ONLY; An array of references to inbound NAT rules that use this backend address pool. InboundNatRules []*SubResource `json:"inboundNatRules,omitempty" azure:"ro"` // READ-ONLY; An array of references to load balancing rules that use this backend address pool. LoadBalancingRules []*SubResource `json:"loadBalancingRules,omitempty" azure:"ro"` // READ-ONLY; A reference to an outbound rule that uses this backend address pool. OutboundRule *SubResource `json:"outboundRule,omitempty" azure:"ro"` // READ-ONLY; An array of references to outbound rules that use this backend address pool. OutboundRules []*SubResource `json:"outboundRules,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the backend address pool resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BackendAddressPoolPropertiesFormat - Properties of the backend address pool.
func (BackendAddressPoolPropertiesFormat) MarshalJSON ¶
func (b BackendAddressPoolPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackendAddressPoolPropertiesFormat.
type BastionActiveSession ¶
type BastionActiveSession struct { // READ-ONLY; The protocol used to connect to the target. Protocol *BastionConnectProtocol `json:"protocol,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; Duration in mins the session has been active. SessionDurationInMins *float32 `json:"sessionDurationInMins,omitempty" azure:"ro"` // READ-ONLY; A unique id for the session. SessionID *string `json:"sessionId,omitempty" azure:"ro"` // READ-ONLY; The time when the session started. StartTime interface{} `json:"startTime,omitempty" azure:"ro"` // READ-ONLY; The host name of the target. TargetHostName *string `json:"targetHostName,omitempty" azure:"ro"` // READ-ONLY; The IP Address of the target. TargetIPAddress *string `json:"targetIpAddress,omitempty" azure:"ro"` // READ-ONLY; The resource group of the target. TargetResourceGroup *string `json:"targetResourceGroup,omitempty" azure:"ro"` // READ-ONLY; The resource id of the target. TargetResourceID *string `json:"targetResourceId,omitempty" azure:"ro"` // READ-ONLY; The subscription id for the target virtual machine. TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty" azure:"ro"` // READ-ONLY; The user name who is active on this session. UserName *string `json:"userName,omitempty" azure:"ro"` }
BastionActiveSession - The session detail for a target.
type BastionActiveSessionListResult ¶
type BastionActiveSessionListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of active sessions on the bastion. Value []*BastionActiveSession `json:"value,omitempty"` }
BastionActiveSessionListResult - Response for GetActiveSessions.
type BastionConnectProtocol ¶
type BastionConnectProtocol string
BastionConnectProtocol - The protocol used to connect to the target.
const ( BastionConnectProtocolRDP BastionConnectProtocol = "RDP" BastionConnectProtocolSSH BastionConnectProtocol = "SSH" )
func PossibleBastionConnectProtocolValues ¶
func PossibleBastionConnectProtocolValues() []BastionConnectProtocol
PossibleBastionConnectProtocolValues returns the possible values for the BastionConnectProtocol const type.
type BastionHost ¶
type BastionHost struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Represents the bastion host resource. Properties *BastionHostPropertiesFormat `json:"properties,omitempty"` // The sku of this Bastion Host. SKU *SKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
BastionHost - Bastion Host resource.
func (BastionHost) MarshalJSON ¶
func (b BastionHost) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BastionHost.
type BastionHostIPConfiguration ¶
type BastionHostIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Represents the ip configuration associated with the resource. Properties *BastionHostIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Ip configuration type. Type *string `json:"type,omitempty" azure:"ro"` }
BastionHostIPConfiguration - IP configuration of an Bastion Host.
type BastionHostIPConfigurationPropertiesFormat ¶
type BastionHostIPConfigurationPropertiesFormat struct { // REQUIRED; Reference of the PublicIP resource. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` // REQUIRED; Reference of the subnet resource. Subnet *SubResource `json:"subnet,omitempty"` // Private IP allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // READ-ONLY; The provisioning state of the bastion host IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BastionHostIPConfigurationPropertiesFormat - Properties of IP configuration of an Bastion Host.
type BastionHostListResult ¶
type BastionHostListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Bastion Hosts in a resource group. Value []*BastionHost `json:"value,omitempty"` }
BastionHostListResult - Response for ListBastionHosts API service call.
type BastionHostPropertiesFormat ¶
type BastionHostPropertiesFormat struct { // FQDN for the endpoint on which bastion host is accessible. DNSName *string `json:"dnsName,omitempty"` // Enable/Disable Copy/Paste feature of the Bastion Host resource. DisableCopyPaste *bool `json:"disableCopyPaste,omitempty"` // Enable/Disable File Copy feature of the Bastion Host resource. EnableFileCopy *bool `json:"enableFileCopy,omitempty"` // Enable/Disable IP Connect feature of the Bastion Host resource. EnableIPConnect *bool `json:"enableIpConnect,omitempty"` EnableShareableLink *bool `json:"enableShareableLink,omitempty"` // Enable/Disable Tunneling feature of the Bastion Host resource. EnableTunneling *bool `json:"enableTunneling,omitempty"` // IP configuration of the Bastion Host resource. IPConfigurations []*BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` // The scale units for the Bastion Host resource. ScaleUnits *int32 `json:"scaleUnits,omitempty"` // READ-ONLY; The provisioning state of the bastion host resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BastionHostPropertiesFormat - Properties of the Bastion Host.
func (BastionHostPropertiesFormat) MarshalJSON ¶
func (b BastionHostPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BastionHostPropertiesFormat.
type BastionHostSKUName ¶
type BastionHostSKUName string
BastionHostSKUName - The name of this Bastion Host.
const ( BastionHostSKUNameBasic BastionHostSKUName = "Basic" BastionHostSKUNameStandard BastionHostSKUName = "Standard" )
func PossibleBastionHostSKUNameValues ¶
func PossibleBastionHostSKUNameValues() []BastionHostSKUName
PossibleBastionHostSKUNameValues returns the possible values for the BastionHostSKUName const type.
type BastionHostsClient ¶
type BastionHostsClient struct {
// contains filtered or unexported fields
}
BastionHostsClient contains the methods for the BastionHosts group. Don't use this type directly, use NewBastionHostsClient() instead.
func NewBastionHostsClient ¶
func NewBastionHostsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BastionHostsClient, error)
NewBastionHostsClient creates a new instance of BastionHostsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BastionHostsClient) BeginCreateOrUpdate ¶
func (client *BastionHostsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, bastionHostName string, parameters BastionHost, options *BastionHostsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BastionHostsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Bastion Host. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. parameters - Parameters supplied to the create or update Bastion Host operation. options - BastionHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the BastionHostsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "bastionhosttenant", armnetwork.BastionHost{ Properties: &armnetwork.BastionHostPropertiesFormat{ IPConfigurations: []*armnetwork.BastionHostIPConfiguration{ { Name: to.Ptr("bastionHostIpConfiguration"), Properties: &armnetwork.BastionHostIPConfigurationPropertiesFormat{ PublicIPAddress: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName"), }, Subnet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet"), }, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*BastionHostsClient) BeginDelete ¶
func (client *BastionHostsClient) BeginDelete(ctx context.Context, resourceGroupName string, bastionHostName string, options *BastionHostsClientBeginDeleteOptions) (*runtime.Poller[BastionHostsClientDeleteResponse], error)
BeginDelete - Deletes the specified Bastion Host. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. options - BastionHostsClientBeginDeleteOptions contains the optional parameters for the BastionHostsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "bastionhosttenant", 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 (*BastionHostsClient) BeginUpdateTags ¶
func (client *BastionHostsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, bastionHostName string, parameters TagsObject, options *BastionHostsClientBeginUpdateTagsOptions) (*runtime.Poller[BastionHostsClientUpdateTagsResponse], error)
BeginUpdateTags - Updates Tags for BastionHost resource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. parameters - Parameters supplied to update BastionHost tags. options - BastionHostsClientBeginUpdateTagsOptions contains the optional parameters for the BastionHostsClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostPatch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "rg1", "bastionhosttenant", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*BastionHostsClient) Get ¶
func (client *BastionHostsClient) Get(ctx context.Context, resourceGroupName string, bastionHostName string, options *BastionHostsClientGetOptions) (BastionHostsClientGetResponse, error)
Get - Gets the specified Bastion Host. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. options - BastionHostsClientGetOptions contains the optional parameters for the BastionHostsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "bastionhosttenant'", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*BastionHostsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *BastionHostsClient) NewListByResourceGroupPager(resourceGroupName string, options *BastionHostsClientListByResourceGroupOptions) *runtime.Pager[BastionHostsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all Bastion Hosts in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - BastionHostsClientListByResourceGroupOptions contains the optional parameters for the BastionHostsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*BastionHostsClient) NewListPager ¶ added in v0.5.0
func (client *BastionHostsClient) NewListPager(options *BastionHostsClientListOptions) *runtime.Pager[BastionHostsClientListResponse]
NewListPager - Lists all Bastion Hosts in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - BastionHostsClientListOptions contains the optional parameters for the BastionHostsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionHostListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBastionHostsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type BastionHostsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type BastionHostsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BastionHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the BastionHostsClient.BeginCreateOrUpdate method.
type BastionHostsClientBeginDeleteOptions ¶ added in v0.3.0
type BastionHostsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BastionHostsClientBeginDeleteOptions contains the optional parameters for the BastionHostsClient.BeginDelete method.
type BastionHostsClientBeginUpdateTagsOptions ¶ added in v0.3.0
type BastionHostsClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BastionHostsClientBeginUpdateTagsOptions contains the optional parameters for the BastionHostsClient.BeginUpdateTags method.
type BastionHostsClientCreateOrUpdateResponse ¶ added in v0.3.0
type BastionHostsClientCreateOrUpdateResponse struct {
BastionHost
}
BastionHostsClientCreateOrUpdateResponse contains the response from method BastionHostsClient.CreateOrUpdate.
type BastionHostsClientDeleteResponse ¶ added in v0.3.0
type BastionHostsClientDeleteResponse struct { }
BastionHostsClientDeleteResponse contains the response from method BastionHostsClient.Delete.
type BastionHostsClientGetOptions ¶ added in v0.3.0
type BastionHostsClientGetOptions struct { }
BastionHostsClientGetOptions contains the optional parameters for the BastionHostsClient.Get method.
type BastionHostsClientGetResponse ¶ added in v0.3.0
type BastionHostsClientGetResponse struct {
BastionHost
}
BastionHostsClientGetResponse contains the response from method BastionHostsClient.Get.
type BastionHostsClientListByResourceGroupOptions ¶ added in v0.3.0
type BastionHostsClientListByResourceGroupOptions struct { }
BastionHostsClientListByResourceGroupOptions contains the optional parameters for the BastionHostsClient.ListByResourceGroup method.
type BastionHostsClientListByResourceGroupResponse ¶ added in v0.3.0
type BastionHostsClientListByResourceGroupResponse struct {
BastionHostListResult
}
BastionHostsClientListByResourceGroupResponse contains the response from method BastionHostsClient.ListByResourceGroup.
type BastionHostsClientListOptions ¶ added in v0.3.0
type BastionHostsClientListOptions struct { }
BastionHostsClientListOptions contains the optional parameters for the BastionHostsClient.List method.
type BastionHostsClientListResponse ¶ added in v0.3.0
type BastionHostsClientListResponse struct {
BastionHostListResult
}
BastionHostsClientListResponse contains the response from method BastionHostsClient.List.
type BastionHostsClientUpdateTagsResponse ¶ added in v0.3.0
type BastionHostsClientUpdateTagsResponse struct {
BastionHost
}
BastionHostsClientUpdateTagsResponse contains the response from method BastionHostsClient.UpdateTags.
type BastionSessionDeleteResult ¶
type BastionSessionDeleteResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of sessions with their corresponding state. Value []*BastionSessionState `json:"value,omitempty"` }
BastionSessionDeleteResult - Response for DisconnectActiveSessions.
type BastionSessionState ¶
type BastionSessionState struct { // READ-ONLY; Used for extra information. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; A unique id for the session. SessionID *string `json:"sessionId,omitempty" azure:"ro"` // READ-ONLY; The state of the session. Disconnected/Failed/NotFound. State *string `json:"state,omitempty" azure:"ro"` }
BastionSessionState - The session state detail for a target.
type BastionShareableLink ¶
type BastionShareableLink struct { VM `json:"vm,omitempty"` Bsl *string `json:"bsl,omitempty" azure:"ro"` CreatedAt *string `json:"createdAt,omitempty" azure:"ro"` Message *string `json:"message,omitempty" azure:"ro"` }VM *
BastionShareableLink - Bastion Shareable Link.
type BastionShareableLinkListRequest ¶
type BastionShareableLinkListRequest struct { BastionShareableLink `json:"vms,omitempty"` }VMs []*
BastionShareableLinkListRequest - Post request for all the Bastion Shareable Link endpoints.
func (BastionShareableLinkListRequest) MarshalJSON ¶
func (b BastionShareableLinkListRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BastionShareableLinkListRequest.
type BastionShareableLinkListResult ¶
type BastionShareableLinkListResult struct { string `json:"nextLink,omitempty"` Value []*BastionShareableLink `json:"value,omitempty"` }NextLink *
BastionShareableLinkListResult - Response for all the Bastion Shareable Link endpoints.
type BgpConnection ¶
type BgpConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the connection. Name *string `json:"name,omitempty"` // The properties of the Bgp connections. Properties *BgpConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Connection type. Type *string `json:"type,omitempty" azure:"ro"` }
BgpConnection - Virtual Appliance Site resource.
type BgpConnectionProperties ¶
type BgpConnectionProperties struct { // The reference to the HubVirtualNetworkConnection resource. HubVirtualNetworkConnection *SubResource `json:"hubVirtualNetworkConnection,omitempty"` // Peer ASN. PeerAsn *int64 `json:"peerAsn,omitempty"` // Peer IP. PeerIP *string `json:"peerIp,omitempty"` // READ-ONLY; The current state of the VirtualHub to Peer. ConnectionState *HubBgpConnectionStatus `json:"connectionState,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
BgpConnectionProperties - Properties of the bgp connection.
type BgpPeerState ¶
type BgpPeerState string
BgpPeerState - The BGP peer state.
const ( BgpPeerStateConnected BgpPeerState = "Connected" BgpPeerStateConnecting BgpPeerState = "Connecting" BgpPeerStateIdle BgpPeerState = "Idle" BgpPeerStateStopped BgpPeerState = "Stopped" BgpPeerStateUnknown BgpPeerState = "Unknown" )
func PossibleBgpPeerStateValues ¶
func PossibleBgpPeerStateValues() []BgpPeerState
PossibleBgpPeerStateValues returns the possible values for the BgpPeerState const type.
type BgpPeerStatus ¶
type BgpPeerStatus struct { // READ-ONLY; The autonomous system number of the remote BGP peer. Asn *int64 `json:"asn,omitempty" azure:"ro"` // READ-ONLY; For how long the peering has been up. ConnectedDuration *string `json:"connectedDuration,omitempty" azure:"ro"` // READ-ONLY; The virtual network gateway's local address. LocalAddress *string `json:"localAddress,omitempty" azure:"ro"` // READ-ONLY; The number of BGP messages received. MessagesReceived *int64 `json:"messagesReceived,omitempty" azure:"ro"` // READ-ONLY; The number of BGP messages sent. MessagesSent *int64 `json:"messagesSent,omitempty" azure:"ro"` // READ-ONLY; The remote BGP peer. Neighbor *string `json:"neighbor,omitempty" azure:"ro"` // READ-ONLY; The number of routes learned from this peer. RoutesReceived *int64 `json:"routesReceived,omitempty" azure:"ro"` // READ-ONLY; The BGP peer state. State *BgpPeerState `json:"state,omitempty" azure:"ro"` }
BgpPeerStatus - BGP peer status details.
type BgpPeerStatusListResult ¶
type BgpPeerStatusListResult struct { // List of BGP peers. Value []*BgpPeerStatus `json:"value,omitempty"` }
BgpPeerStatusListResult - Response for list BGP peer status API service call.
type BgpServiceCommunitiesClient ¶
type BgpServiceCommunitiesClient struct {
// contains filtered or unexported fields
}
BgpServiceCommunitiesClient contains the methods for the BgpServiceCommunities group. Don't use this type directly, use NewBgpServiceCommunitiesClient() instead.
func NewBgpServiceCommunitiesClient ¶
func NewBgpServiceCommunitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BgpServiceCommunitiesClient, error)
NewBgpServiceCommunitiesClient creates a new instance of BgpServiceCommunitiesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BgpServiceCommunitiesClient) NewListPager ¶ added in v0.5.0
func (client *BgpServiceCommunitiesClient) NewListPager(options *BgpServiceCommunitiesClientListOptions) *runtime.Pager[BgpServiceCommunitiesClientListResponse]
NewListPager - Gets all the available bgp service communities. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - BgpServiceCommunitiesClientListOptions contains the optional parameters for the BgpServiceCommunitiesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceCommunityList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewBgpServiceCommunitiesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type BgpServiceCommunitiesClientListOptions ¶ added in v0.3.0
type BgpServiceCommunitiesClientListOptions struct { }
BgpServiceCommunitiesClientListOptions contains the optional parameters for the BgpServiceCommunitiesClient.List method.
type BgpServiceCommunitiesClientListResponse ¶ added in v0.3.0
type BgpServiceCommunitiesClientListResponse struct {
BgpServiceCommunityListResult
}
BgpServiceCommunitiesClientListResponse contains the response from method BgpServiceCommunitiesClient.List.
type BgpServiceCommunity ¶
type BgpServiceCommunity struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the BGP service community. Properties *BgpServiceCommunityPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
BgpServiceCommunity - Service Community Properties.
func (BgpServiceCommunity) MarshalJSON ¶
func (b BgpServiceCommunity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpServiceCommunity.
type BgpServiceCommunityListResult ¶
type BgpServiceCommunityListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of service community resources. Value []*BgpServiceCommunity `json:"value,omitempty"` }
BgpServiceCommunityListResult - Response for the ListServiceCommunity API service call.
type BgpServiceCommunityPropertiesFormat ¶
type BgpServiceCommunityPropertiesFormat struct { // A list of bgp communities. BgpCommunities []*BGPCommunity `json:"bgpCommunities,omitempty"` // The name of the bgp community. e.g. Skype. ServiceName *string `json:"serviceName,omitempty"` }
BgpServiceCommunityPropertiesFormat - Properties of Service Community.
func (BgpServiceCommunityPropertiesFormat) MarshalJSON ¶
func (b BgpServiceCommunityPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpServiceCommunityPropertiesFormat.
type BgpSettings ¶
type BgpSettings struct { // The BGP speaker's ASN. Asn *int64 `json:"asn,omitempty"` // The BGP peering address and BGP identifier of this BGP speaker. BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` // BGP peering address with IP configuration ID for virtual network gateway. BgpPeeringAddresses []*IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` // The weight added to routes learned from this BGP speaker. PeerWeight *int32 `json:"peerWeight,omitempty"` }
BgpSettings - BGP settings details.
func (BgpSettings) MarshalJSON ¶
func (b BgpSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpSettings.
type BreakOutCategoryPolicies ¶
type BreakOutCategoryPolicies struct { // Flag to control breakout of o365 allow category. Allow *bool `json:"allow,omitempty"` // Flag to control breakout of o365 default category. Default *bool `json:"default,omitempty"` // Flag to control breakout of o365 optimize category. Optimize *bool `json:"optimize,omitempty"` }
BreakOutCategoryPolicies - Network Virtual Appliance Sku Properties.
type CheckPrivateLinkServiceVisibilityRequest ¶
type CheckPrivateLinkServiceVisibilityRequest struct { // The alias of the private link service. PrivateLinkServiceAlias *string `json:"privateLinkServiceAlias,omitempty"` }
CheckPrivateLinkServiceVisibilityRequest - Request body of the CheckPrivateLinkServiceVisibility API service call.
type CircuitConnectionStatus ¶
type CircuitConnectionStatus string
CircuitConnectionStatus - Express Route Circuit connection state.
const ( CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" )
func PossibleCircuitConnectionStatusValues ¶
func PossibleCircuitConnectionStatusValues() []CircuitConnectionStatus
PossibleCircuitConnectionStatusValues returns the possible values for the CircuitConnectionStatus const type.
type CloudError ¶
type CloudError struct { // Cloud error body. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - An error response from the service.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from the service.
type CommissionedState ¶
type CommissionedState string
CommissionedState - The commissioned state of the Custom IP Prefix.
const ( CommissionedStateCommissioned CommissionedState = "Commissioned" CommissionedStateCommissioning CommissionedState = "Commissioning" CommissionedStateDecommissioning CommissionedState = "Decommissioning" CommissionedStateDeprovisioning CommissionedState = "Deprovisioning" CommissionedStateProvisioned CommissionedState = "Provisioned" CommissionedStateProvisioning CommissionedState = "Provisioning" )
func PossibleCommissionedStateValues ¶
func PossibleCommissionedStateValues() []CommissionedState
PossibleCommissionedStateValues returns the possible values for the CommissionedState const type.
type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties ¶
type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties struct { // READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
type ConfigurationDiagnosticParameters ¶ added in v0.3.0
type ConfigurationDiagnosticParameters struct { // REQUIRED; List of network configuration diagnostic profiles. Profiles []*ConfigurationDiagnosticProfile `json:"profiles,omitempty"` // REQUIRED; The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, // VMSS/NetworkInterface and Application Gateway. TargetResourceID *string `json:"targetResourceId,omitempty"` // Verbosity level. VerbosityLevel *VerbosityLevel `json:"verbosityLevel,omitempty"` }
ConfigurationDiagnosticParameters - Parameters to get network configuration diagnostic.
func (ConfigurationDiagnosticParameters) MarshalJSON ¶ added in v0.3.0
func (c ConfigurationDiagnosticParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationDiagnosticParameters.
type ConfigurationDiagnosticProfile ¶ added in v0.3.0
type ConfigurationDiagnosticProfile struct { // REQUIRED; Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag. Destination *string `json:"destination,omitempty"` // REQUIRED; Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535). DestinationPort *string `json:"destinationPort,omitempty"` // REQUIRED; The direction of the traffic. Direction *Direction `json:"direction,omitempty"` // REQUIRED; Protocol to be verified on. Accepted values are '*', TCP, UDP. Protocol *string `json:"protocol,omitempty"` // REQUIRED; Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. Source *string `json:"source,omitempty"` }
ConfigurationDiagnosticProfile - Parameters to compare with network configuration.
type ConfigurationDiagnosticResponse ¶ added in v0.3.0
type ConfigurationDiagnosticResponse struct { // READ-ONLY; List of network configuration diagnostic results. Results []*ConfigurationDiagnosticResult `json:"results,omitempty" azure:"ro"` }
ConfigurationDiagnosticResponse - Results of network configuration diagnostic on the target resource.
type ConfigurationDiagnosticResult ¶ added in v0.3.0
type ConfigurationDiagnosticResult struct { // Network security group result. NetworkSecurityGroupResult *SecurityGroupResult `json:"networkSecurityGroupResult,omitempty"` // Network configuration diagnostic profile. Profile *ConfigurationDiagnosticProfile `json:"profile,omitempty"` }
ConfigurationDiagnosticResult - Network configuration diagnostic result corresponded to provided traffic query.
type ConfigurationPolicyGroupsClient ¶ added in v1.0.0
type ConfigurationPolicyGroupsClient struct {
// contains filtered or unexported fields
}
ConfigurationPolicyGroupsClient contains the methods for the ConfigurationPolicyGroups group. Don't use this type directly, use NewConfigurationPolicyGroupsClient() instead.
func NewConfigurationPolicyGroupsClient ¶ added in v1.0.0
func NewConfigurationPolicyGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationPolicyGroupsClient, error)
NewConfigurationPolicyGroupsClient creates a new instance of ConfigurationPolicyGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConfigurationPolicyGroupsClient) BeginCreateOrUpdate ¶ added in v1.0.0
func (client *ConfigurationPolicyGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, configurationPolicyGroupName string, vpnServerConfigurationPolicyGroupParameters VPNServerConfigurationPolicyGroup, options *ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ConfigurationPolicyGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the ConfigurationPolicyGroup. vpnServerConfigurationName - The name of the VpnServerConfiguration. configurationPolicyGroupName - The name of the ConfigurationPolicyGroup. vpnServerConfigurationPolicyGroupParameters - Parameters supplied to create or update a VpnServerConfiguration PolicyGroup. options - ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ConfigurationPolicyGroupPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConfigurationPolicyGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "vpnServerConfiguration1", "policyGroup1", armnetwork.VPNServerConfigurationPolicyGroup{ Properties: &armnetwork.VPNServerConfigurationPolicyGroupProperties{ IsDefault: to.Ptr(true), PolicyMembers: []*armnetwork.VPNServerConfigurationPolicyGroupMember{ { Name: to.Ptr("policy1"), AttributeType: to.Ptr(armnetwork.VPNPolicyMemberAttributeTypeRadiusAzureGroupID), AttributeValue: to.Ptr("6ad1bd08"), }, { Name: to.Ptr("policy2"), AttributeType: to.Ptr(armnetwork.VPNPolicyMemberAttributeTypeCertificateGroupID), AttributeValue: to.Ptr("red.com"), }}, Priority: to.Ptr[int32](0), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ConfigurationPolicyGroupsClient) BeginDelete ¶ added in v1.0.0
func (client *ConfigurationPolicyGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, configurationPolicyGroupName string, options *ConfigurationPolicyGroupsClientBeginDeleteOptions) (*runtime.Poller[ConfigurationPolicyGroupsClientDeleteResponse], error)
BeginDelete - Deletes a ConfigurationPolicyGroup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the ConfigurationPolicyGroup. vpnServerConfigurationName - The name of the VpnServerConfiguration. configurationPolicyGroupName - The name of the ConfigurationPolicyGroup. options - ConfigurationPolicyGroupsClientBeginDeleteOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ConfigurationPolicyGroupDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConfigurationPolicyGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "vpnServerConfiguration1", "policyGroup1", 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 (*ConfigurationPolicyGroupsClient) Get ¶ added in v1.0.0
func (client *ConfigurationPolicyGroupsClient) Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, configurationPolicyGroupName string, options *ConfigurationPolicyGroupsClientGetOptions) (ConfigurationPolicyGroupsClientGetResponse, error)
Get - Retrieves the details of a ConfigurationPolicyGroup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration. configurationPolicyGroupName - The name of the ConfigurationPolicyGroup being retrieved. options - ConfigurationPolicyGroupsClientGetOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ConfigurationPolicyGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConfigurationPolicyGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "vpnServerConfiguration1", "policyGroup1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ConfigurationPolicyGroupsClient) NewListByVPNServerConfigurationPager ¶ added in v1.0.0
func (client *ConfigurationPolicyGroupsClient) NewListByVPNServerConfigurationPager(resourceGroupName string, vpnServerConfigurationName string, options *ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions) *runtime.Pager[ConfigurationPolicyGroupsClientListByVPNServerConfigurationResponse]
NewListByVPNServerConfigurationPager - Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration. options - ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.ListByVPNServerConfiguration method.
type ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationPolicyGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.BeginCreateOrUpdate method.
type ConfigurationPolicyGroupsClientBeginDeleteOptions ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationPolicyGroupsClientBeginDeleteOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.BeginDelete method.
type ConfigurationPolicyGroupsClientCreateOrUpdateResponse ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientCreateOrUpdateResponse struct {
VPNServerConfigurationPolicyGroup
}
ConfigurationPolicyGroupsClientCreateOrUpdateResponse contains the response from method ConfigurationPolicyGroupsClient.CreateOrUpdate.
type ConfigurationPolicyGroupsClientDeleteResponse ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientDeleteResponse struct { }
ConfigurationPolicyGroupsClientDeleteResponse contains the response from method ConfigurationPolicyGroupsClient.Delete.
type ConfigurationPolicyGroupsClientGetOptions ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientGetOptions struct { }
ConfigurationPolicyGroupsClientGetOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.Get method.
type ConfigurationPolicyGroupsClientGetResponse ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientGetResponse struct {
VPNServerConfigurationPolicyGroup
}
ConfigurationPolicyGroupsClientGetResponse contains the response from method ConfigurationPolicyGroupsClient.Get.
type ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions struct { }
ConfigurationPolicyGroupsClientListByVPNServerConfigurationOptions contains the optional parameters for the ConfigurationPolicyGroupsClient.ListByVPNServerConfiguration method.
type ConfigurationPolicyGroupsClientListByVPNServerConfigurationResponse ¶ added in v1.0.0
type ConfigurationPolicyGroupsClientListByVPNServerConfigurationResponse struct {
ListVPNServerConfigurationPolicyGroupsResult
}
ConfigurationPolicyGroupsClientListByVPNServerConfigurationResponse contains the response from method ConfigurationPolicyGroupsClient.ListByVPNServerConfiguration.
type ConnectionMonitor ¶
type ConnectionMonitor struct { // REQUIRED; Properties of the connection monitor. Properties *ConnectionMonitorParameters `json:"properties,omitempty"` // Connection monitor location. Location *string `json:"location,omitempty"` // Connection monitor tags. Tags map[string]*string `json:"tags,omitempty"` }
ConnectionMonitor - Parameters that define the operation to create a connection monitor.
func (ConnectionMonitor) MarshalJSON ¶
func (c ConnectionMonitor) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitor.
type ConnectionMonitorDestination ¶
type ConnectionMonitorDestination struct { // Address of the connection monitor destination (IP or domain name). Address *string `json:"address,omitempty"` // The destination port used by connection monitor. Port *int32 `json:"port,omitempty"` // The ID of the resource used as the destination by connection monitor. ResourceID *string `json:"resourceId,omitempty"` }
ConnectionMonitorDestination - Describes the destination of connection monitor.
type ConnectionMonitorEndpoint ¶
type ConnectionMonitorEndpoint struct { // REQUIRED; The name of the connection monitor endpoint. Name *string `json:"name,omitempty"` // Address of the connection monitor endpoint (IP or domain name). Address *string `json:"address,omitempty"` // Test coverage for the endpoint. CoverageLevel *CoverageLevel `json:"coverageLevel,omitempty"` // Filter for sub-items within the endpoint. Filter *ConnectionMonitorEndpointFilter `json:"filter,omitempty"` // Resource ID of the connection monitor endpoint. ResourceID *string `json:"resourceId,omitempty"` // Endpoint scope. Scope *ConnectionMonitorEndpointScope `json:"scope,omitempty"` // The endpoint type. Type *EndpointType `json:"type,omitempty"` }
ConnectionMonitorEndpoint - Describes the connection monitor endpoint.
type ConnectionMonitorEndpointFilter ¶
type ConnectionMonitorEndpointFilter struct { // List of items in the filter. Items []*ConnectionMonitorEndpointFilterItem `json:"items,omitempty"` // The behavior of the endpoint filter. Currently only 'Include' is supported. Type *ConnectionMonitorEndpointFilterType `json:"type,omitempty"` }
ConnectionMonitorEndpointFilter - Describes the connection monitor endpoint filter.
func (ConnectionMonitorEndpointFilter) MarshalJSON ¶
func (c ConnectionMonitorEndpointFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorEndpointFilter.
type ConnectionMonitorEndpointFilterItem ¶
type ConnectionMonitorEndpointFilterItem struct { // The address of the filter item. Address *string `json:"address,omitempty"` // The type of item included in the filter. Currently only 'AgentAddress' is supported. Type *ConnectionMonitorEndpointFilterItemType `json:"type,omitempty"` }
ConnectionMonitorEndpointFilterItem - Describes the connection monitor endpoint filter item.
type ConnectionMonitorEndpointFilterItemType ¶
type ConnectionMonitorEndpointFilterItemType string
ConnectionMonitorEndpointFilterItemType - The type of item included in the filter. Currently only 'AgentAddress' is supported.
const (
ConnectionMonitorEndpointFilterItemTypeAgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress"
)
func PossibleConnectionMonitorEndpointFilterItemTypeValues ¶
func PossibleConnectionMonitorEndpointFilterItemTypeValues() []ConnectionMonitorEndpointFilterItemType
PossibleConnectionMonitorEndpointFilterItemTypeValues returns the possible values for the ConnectionMonitorEndpointFilterItemType const type.
type ConnectionMonitorEndpointFilterType ¶
type ConnectionMonitorEndpointFilterType string
ConnectionMonitorEndpointFilterType - The behavior of the endpoint filter. Currently only 'Include' is supported.
const (
ConnectionMonitorEndpointFilterTypeInclude ConnectionMonitorEndpointFilterType = "Include"
)
func PossibleConnectionMonitorEndpointFilterTypeValues ¶
func PossibleConnectionMonitorEndpointFilterTypeValues() []ConnectionMonitorEndpointFilterType
PossibleConnectionMonitorEndpointFilterTypeValues returns the possible values for the ConnectionMonitorEndpointFilterType const type.
type ConnectionMonitorEndpointScope ¶
type ConnectionMonitorEndpointScope struct { // List of items which needs to be excluded from the endpoint scope. Exclude []*ConnectionMonitorEndpointScopeItem `json:"exclude,omitempty"` // List of items which needs to be included to the endpoint scope. Include []*ConnectionMonitorEndpointScopeItem `json:"include,omitempty"` }
ConnectionMonitorEndpointScope - Describes the connection monitor endpoint scope.
func (ConnectionMonitorEndpointScope) MarshalJSON ¶
func (c ConnectionMonitorEndpointScope) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorEndpointScope.
type ConnectionMonitorEndpointScopeItem ¶
type ConnectionMonitorEndpointScopeItem struct { // The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address. Address *string `json:"address,omitempty"` }
ConnectionMonitorEndpointScopeItem - Describes the connection monitor endpoint scope item.
type ConnectionMonitorHTTPConfiguration ¶
type ConnectionMonitorHTTPConfiguration struct { // The HTTP method to use. Method *HTTPConfigurationMethod `json:"method,omitempty"` // The path component of the URI. For instance, "/dir1/dir2". Path *string `json:"path,omitempty"` // The port to connect to. Port *int32 `json:"port,omitempty"` // Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit. PreferHTTPS *bool `json:"preferHTTPS,omitempty"` // The HTTP headers to transmit with the request. RequestHeaders []*HTTPHeader `json:"requestHeaders,omitempty"` // HTTP status codes to consider successful. For instance, "2xx,301-304,418". ValidStatusCodeRanges []*string `json:"validStatusCodeRanges,omitempty"` }
ConnectionMonitorHTTPConfiguration - Describes the HTTP configuration.
func (ConnectionMonitorHTTPConfiguration) MarshalJSON ¶
func (c ConnectionMonitorHTTPConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorHTTPConfiguration.
type ConnectionMonitorIcmpConfiguration ¶
type ConnectionMonitorIcmpConfiguration struct { // Value indicating whether path evaluation with trace route should be disabled. DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` }
ConnectionMonitorIcmpConfiguration - Describes the ICMP configuration.
type ConnectionMonitorListResult ¶
type ConnectionMonitorListResult struct { // Information about connection monitors. Value []*ConnectionMonitorResult `json:"value,omitempty"` }
ConnectionMonitorListResult - List of connection monitors.
type ConnectionMonitorOutput ¶
type ConnectionMonitorOutput struct { // Connection monitor output destination type. Currently, only "Workspace" is supported. Type *OutputType `json:"type,omitempty"` // Describes the settings for producing output into a log analytics workspace. WorkspaceSettings *ConnectionMonitorWorkspaceSettings `json:"workspaceSettings,omitempty"` }
ConnectionMonitorOutput - Describes a connection monitor output destination.
type ConnectionMonitorParameters ¶
type ConnectionMonitorParameters struct { // Determines if the connection monitor will start automatically once created. AutoStart *bool `json:"autoStart,omitempty"` // Describes the destination of connection monitor. Destination *ConnectionMonitorDestination `json:"destination,omitempty"` // List of connection monitor endpoints. Endpoints []*ConnectionMonitorEndpoint `json:"endpoints,omitempty"` // Monitoring interval in seconds. MonitoringIntervalInSeconds *int32 `json:"monitoringIntervalInSeconds,omitempty"` // Optional notes to be associated with the connection monitor. Notes *string `json:"notes,omitempty"` // List of connection monitor outputs. Outputs []*ConnectionMonitorOutput `json:"outputs,omitempty"` // Describes the source of connection monitor. Source *ConnectionMonitorSource `json:"source,omitempty"` // List of connection monitor test configurations. TestConfigurations []*ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` // List of connection monitor test groups. TestGroups []*ConnectionMonitorTestGroup `json:"testGroups,omitempty"` }
ConnectionMonitorParameters - Parameters that define the operation to create a connection monitor.
func (ConnectionMonitorParameters) MarshalJSON ¶
func (c ConnectionMonitorParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorParameters.
type ConnectionMonitorQueryResult ¶
type ConnectionMonitorQueryResult struct { // Status of connection monitor source. SourceStatus *ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` // Information about connection states. States []*ConnectionStateSnapshot `json:"states,omitempty"` }
ConnectionMonitorQueryResult - List of connection states snapshots.
type ConnectionMonitorResult ¶
type ConnectionMonitorResult struct { // Connection monitor location. Location *string `json:"location,omitempty"` // Properties of the connection monitor result. Properties *ConnectionMonitorResultProperties `json:"properties,omitempty"` // Connection monitor tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; ID of the connection monitor. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Name of the connection monitor. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Connection monitor type. Type *string `json:"type,omitempty" azure:"ro"` }
ConnectionMonitorResult - Information about the connection monitor.
type ConnectionMonitorResultProperties ¶
type ConnectionMonitorResultProperties struct { // Determines if the connection monitor will start automatically once created. AutoStart *bool `json:"autoStart,omitempty"` // Describes the destination of connection monitor. Destination *ConnectionMonitorDestination `json:"destination,omitempty"` // List of connection monitor endpoints. Endpoints []*ConnectionMonitorEndpoint `json:"endpoints,omitempty"` // Monitoring interval in seconds. MonitoringIntervalInSeconds *int32 `json:"monitoringIntervalInSeconds,omitempty"` // Optional notes to be associated with the connection monitor. Notes *string `json:"notes,omitempty"` // List of connection monitor outputs. Outputs []*ConnectionMonitorOutput `json:"outputs,omitempty"` // Describes the source of connection monitor. Source *ConnectionMonitorSource `json:"source,omitempty"` // List of connection monitor test configurations. TestConfigurations []*ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` // List of connection monitor test groups. TestGroups []*ConnectionMonitorTestGroup `json:"testGroups,omitempty"` // READ-ONLY; Type of connection monitor. ConnectionMonitorType *ConnectionMonitorType `json:"connectionMonitorType,omitempty" azure:"ro"` // READ-ONLY; The monitoring status of the connection monitor. MonitoringStatus *string `json:"monitoringStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the connection monitor. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The date and time when the connection monitor was started. StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` }
ConnectionMonitorResultProperties - Describes the properties of a connection monitor.
func (ConnectionMonitorResultProperties) MarshalJSON ¶
func (c ConnectionMonitorResultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorResultProperties.
func (*ConnectionMonitorResultProperties) UnmarshalJSON ¶
func (c *ConnectionMonitorResultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionMonitorResultProperties.
type ConnectionMonitorSource ¶
type ConnectionMonitorSource struct { // REQUIRED; The ID of the resource used as the source by connection monitor. ResourceID *string `json:"resourceId,omitempty"` // The source port used by connection monitor. Port *int32 `json:"port,omitempty"` }
ConnectionMonitorSource - Describes the source of connection monitor.
type ConnectionMonitorSourceStatus ¶
type ConnectionMonitorSourceStatus string
ConnectionMonitorSourceStatus - Status of connection monitor source.
const ( ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active" ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive" ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown" )
func PossibleConnectionMonitorSourceStatusValues ¶
func PossibleConnectionMonitorSourceStatusValues() []ConnectionMonitorSourceStatus
PossibleConnectionMonitorSourceStatusValues returns the possible values for the ConnectionMonitorSourceStatus const type.
type ConnectionMonitorSuccessThreshold ¶
type ConnectionMonitorSuccessThreshold struct { // The maximum percentage of failed checks permitted for a test to evaluate as successful. ChecksFailedPercent *int32 `json:"checksFailedPercent,omitempty"` // The maximum round-trip time in milliseconds permitted for a test to evaluate as successful. RoundTripTimeMs *float32 `json:"roundTripTimeMs,omitempty"` }
ConnectionMonitorSuccessThreshold - Describes the threshold for declaring a test successful.
type ConnectionMonitorTCPConfiguration ¶
type ConnectionMonitorTCPConfiguration struct { // Destination port behavior. DestinationPortBehavior *DestinationPortBehavior `json:"destinationPortBehavior,omitempty"` // Value indicating whether path evaluation with trace route should be disabled. DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` // The port to connect to. Port *int32 `json:"port,omitempty"` }
ConnectionMonitorTCPConfiguration - Describes the TCP configuration.
type ConnectionMonitorTestConfiguration ¶
type ConnectionMonitorTestConfiguration struct { // REQUIRED; The name of the connection monitor test configuration. Name *string `json:"name,omitempty"` // REQUIRED; The protocol to use in test evaluation. Protocol *ConnectionMonitorTestConfigurationProtocol `json:"protocol,omitempty"` // The parameters used to perform test evaluation over HTTP. HTTPConfiguration *ConnectionMonitorHTTPConfiguration `json:"httpConfiguration,omitempty"` // The parameters used to perform test evaluation over ICMP. IcmpConfiguration *ConnectionMonitorIcmpConfiguration `json:"icmpConfiguration,omitempty"` // The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending // on other parameters. PreferredIPVersion *PreferredIPVersion `json:"preferredIPVersion,omitempty"` // The threshold for declaring a test successful. SuccessThreshold *ConnectionMonitorSuccessThreshold `json:"successThreshold,omitempty"` // The parameters used to perform test evaluation over TCP. TCPConfiguration *ConnectionMonitorTCPConfiguration `json:"tcpConfiguration,omitempty"` // The frequency of test evaluation, in seconds. TestFrequencySec *int32 `json:"testFrequencySec,omitempty"` }
ConnectionMonitorTestConfiguration - Describes a connection monitor test configuration.
type ConnectionMonitorTestConfigurationProtocol ¶
type ConnectionMonitorTestConfigurationProtocol string
ConnectionMonitorTestConfigurationProtocol - The protocol to use in test evaluation.
const ( ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http" ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp" ConnectionMonitorTestConfigurationProtocolTCP ConnectionMonitorTestConfigurationProtocol = "Tcp" )
func PossibleConnectionMonitorTestConfigurationProtocolValues ¶
func PossibleConnectionMonitorTestConfigurationProtocolValues() []ConnectionMonitorTestConfigurationProtocol
PossibleConnectionMonitorTestConfigurationProtocolValues returns the possible values for the ConnectionMonitorTestConfigurationProtocol const type.
type ConnectionMonitorTestGroup ¶
type ConnectionMonitorTestGroup struct { // REQUIRED; List of destination endpoint names. Destinations []*string `json:"destinations,omitempty"` // REQUIRED; The name of the connection monitor test group. Name *string `json:"name,omitempty"` // REQUIRED; List of source endpoint names. Sources []*string `json:"sources,omitempty"` // REQUIRED; List of test configuration names. TestConfigurations []*string `json:"testConfigurations,omitempty"` // Value indicating whether test group is disabled. Disable *bool `json:"disable,omitempty"` }
ConnectionMonitorTestGroup - Describes the connection monitor test group.
func (ConnectionMonitorTestGroup) MarshalJSON ¶
func (c ConnectionMonitorTestGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionMonitorTestGroup.
type ConnectionMonitorType ¶
type ConnectionMonitorType string
ConnectionMonitorType - Type of connection monitor.
const ( ConnectionMonitorTypeMultiEndpoint ConnectionMonitorType = "MultiEndpoint" ConnectionMonitorTypeSingleSourceDestination ConnectionMonitorType = "SingleSourceDestination" )
func PossibleConnectionMonitorTypeValues ¶
func PossibleConnectionMonitorTypeValues() []ConnectionMonitorType
PossibleConnectionMonitorTypeValues returns the possible values for the ConnectionMonitorType const type.
type ConnectionMonitorWorkspaceSettings ¶
type ConnectionMonitorWorkspaceSettings struct { // Log analytics workspace resource ID. WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` }
ConnectionMonitorWorkspaceSettings - Describes the settings for producing output into a log analytics workspace.
type ConnectionMonitorsClient ¶
type ConnectionMonitorsClient struct {
// contains filtered or unexported fields
}
ConnectionMonitorsClient contains the methods for the ConnectionMonitors group. Don't use this type directly, use NewConnectionMonitorsClient() instead.
func NewConnectionMonitorsClient ¶
func NewConnectionMonitorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectionMonitorsClient, error)
NewConnectionMonitorsClient creates a new instance of ConnectionMonitorsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConnectionMonitorsClient) BeginCreateOrUpdate ¶
func (client *ConnectionMonitorsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters ConnectionMonitor, options *ConnectionMonitorsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ConnectionMonitorsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a connection monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name of the connection monitor. parameters - Parameters that define the operation to create a connection monitor. options - ConnectionMonitorsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConnectionMonitorsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "nw1", "cm1", armnetwork.ConnectionMonitor{ Location: to.Ptr("eastus"), Properties: &armnetwork.ConnectionMonitorParameters{ Endpoints: []*armnetwork.ConnectionMonitorEndpoint{ { Name: to.Ptr("source"), ResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/ct1"), }, { Name: to.Ptr("destination"), Address: to.Ptr("bing.com"), }}, TestConfigurations: []*armnetwork.ConnectionMonitorTestConfiguration{ { Name: to.Ptr("tcp"), TCPConfiguration: &armnetwork.ConnectionMonitorTCPConfiguration{ Port: to.Ptr[int32](80), }, TestFrequencySec: to.Ptr[int32](60), Protocol: to.Ptr(armnetwork.ConnectionMonitorTestConfigurationProtocolTCP), }}, TestGroups: []*armnetwork.ConnectionMonitorTestGroup{ { Name: to.Ptr("tg"), Destinations: []*string{ to.Ptr("destination")}, Sources: []*string{ to.Ptr("source")}, TestConfigurations: []*string{ to.Ptr("tcp")}, }}, }, }, &armnetwork.ConnectionMonitorsClientBeginCreateOrUpdateOptions{Migrate: 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) } // TODO: use response item _ = res }
Output:
func (*ConnectionMonitorsClient) BeginDelete ¶
func (client *ConnectionMonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, options *ConnectionMonitorsClientBeginDeleteOptions) (*runtime.Poller[ConnectionMonitorsClientDeleteResponse], error)
BeginDelete - Deletes the specified connection monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name of the connection monitor. options - ConnectionMonitorsClientBeginDeleteOptions contains the optional parameters for the ConnectionMonitorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nw1", "cm1", 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 (*ConnectionMonitorsClient) BeginQuery ¶
func (client *ConnectionMonitorsClient) BeginQuery(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, options *ConnectionMonitorsClientBeginQueryOptions) (*runtime.Poller[ConnectionMonitorsClientQueryResponse], error)
BeginQuery - Query a snapshot of the most recent connection states. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name given to the connection monitor. options - ConnectionMonitorsClientBeginQueryOptions contains the optional parameters for the ConnectionMonitorsClient.BeginQuery method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorQuery.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginQuery(ctx, "rg1", "nw1", "cm1", 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) } // TODO: use response item _ = res }
Output:
func (*ConnectionMonitorsClient) BeginStart ¶
func (client *ConnectionMonitorsClient) BeginStart(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, options *ConnectionMonitorsClientBeginStartOptions) (*runtime.Poller[ConnectionMonitorsClientStartResponse], error)
BeginStart - Starts the specified connection monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name of the connection monitor. options - ConnectionMonitorsClientBeginStartOptions contains the optional parameters for the ConnectionMonitorsClient.BeginStart method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorStart.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStart(ctx, "rg1", "nw1", "cm1", 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 (*ConnectionMonitorsClient) BeginStop ¶
func (client *ConnectionMonitorsClient) BeginStop(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, options *ConnectionMonitorsClientBeginStopOptions) (*runtime.Poller[ConnectionMonitorsClientStopResponse], error)
BeginStop - Stops the specified connection monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name of the connection monitor. options - ConnectionMonitorsClientBeginStopOptions contains the optional parameters for the ConnectionMonitorsClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorStop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStop(ctx, "rg1", "nw1", "cm1", 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 (*ConnectionMonitorsClient) Get ¶
func (client *ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, options *ConnectionMonitorsClientGetOptions) (ConnectionMonitorsClientGetResponse, error)
Get - Gets a connection monitor by name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. connectionMonitorName - The name of the connection monitor. options - ConnectionMonitorsClientGetOptions contains the optional parameters for the ConnectionMonitorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nw1", "cm1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ConnectionMonitorsClient) NewListPager ¶ added in v0.5.0
func (client *ConnectionMonitorsClient) NewListPager(resourceGroupName string, networkWatcherName string, options *ConnectionMonitorsClientListOptions) *runtime.Pager[ConnectionMonitorsClientListResponse]
NewListPager - Lists all connection monitors for the specified Network Watcher. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. options - ConnectionMonitorsClientListOptions contains the optional parameters for the ConnectionMonitorsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "nw1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConnectionMonitorsClient) UpdateTags ¶
func (client *ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters TagsObject, options *ConnectionMonitorsClientUpdateTagsOptions) (ConnectionMonitorsClientUpdateTagsResponse, error)
UpdateTags - Update tags of the specified connection monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. connectionMonitorName - The name of the connection monitor. parameters - Parameters supplied to update connection monitor tags. options - ConnectionMonitorsClientUpdateTagsOptions contains the optional parameters for the ConnectionMonitorsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewConnectionMonitorsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "nw1", "cm1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ConnectionMonitorsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ConnectionMonitorsClientBeginCreateOrUpdateOptions struct { // Value indicating whether connection monitor V1 should be migrated to V2 format. Migrate *string // Resumes the LRO from the provided token. ResumeToken string }
ConnectionMonitorsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConnectionMonitorsClient.BeginCreateOrUpdate method.
type ConnectionMonitorsClientBeginDeleteOptions ¶ added in v0.3.0
type ConnectionMonitorsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConnectionMonitorsClientBeginDeleteOptions contains the optional parameters for the ConnectionMonitorsClient.BeginDelete method.
type ConnectionMonitorsClientBeginQueryOptions ¶ added in v0.3.0
type ConnectionMonitorsClientBeginQueryOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConnectionMonitorsClientBeginQueryOptions contains the optional parameters for the ConnectionMonitorsClient.BeginQuery method.
type ConnectionMonitorsClientBeginStartOptions ¶ added in v0.3.0
type ConnectionMonitorsClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConnectionMonitorsClientBeginStartOptions contains the optional parameters for the ConnectionMonitorsClient.BeginStart method.
type ConnectionMonitorsClientBeginStopOptions ¶ added in v0.3.0
type ConnectionMonitorsClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConnectionMonitorsClientBeginStopOptions contains the optional parameters for the ConnectionMonitorsClient.BeginStop method.
type ConnectionMonitorsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ConnectionMonitorsClientCreateOrUpdateResponse struct {
ConnectionMonitorResult
}
ConnectionMonitorsClientCreateOrUpdateResponse contains the response from method ConnectionMonitorsClient.CreateOrUpdate.
type ConnectionMonitorsClientDeleteResponse ¶ added in v0.3.0
type ConnectionMonitorsClientDeleteResponse struct { }
ConnectionMonitorsClientDeleteResponse contains the response from method ConnectionMonitorsClient.Delete.
type ConnectionMonitorsClientGetOptions ¶ added in v0.3.0
type ConnectionMonitorsClientGetOptions struct { }
ConnectionMonitorsClientGetOptions contains the optional parameters for the ConnectionMonitorsClient.Get method.
type ConnectionMonitorsClientGetResponse ¶ added in v0.3.0
type ConnectionMonitorsClientGetResponse struct {
ConnectionMonitorResult
}
ConnectionMonitorsClientGetResponse contains the response from method ConnectionMonitorsClient.Get.
type ConnectionMonitorsClientListOptions ¶ added in v0.3.0
type ConnectionMonitorsClientListOptions struct { }
ConnectionMonitorsClientListOptions contains the optional parameters for the ConnectionMonitorsClient.List method.
type ConnectionMonitorsClientListResponse ¶ added in v0.3.0
type ConnectionMonitorsClientListResponse struct {
ConnectionMonitorListResult
}
ConnectionMonitorsClientListResponse contains the response from method ConnectionMonitorsClient.List.
type ConnectionMonitorsClientQueryResponse ¶ added in v0.3.0
type ConnectionMonitorsClientQueryResponse struct {
ConnectionMonitorQueryResult
}
ConnectionMonitorsClientQueryResponse contains the response from method ConnectionMonitorsClient.Query.
type ConnectionMonitorsClientStartResponse ¶ added in v0.3.0
type ConnectionMonitorsClientStartResponse struct { }
ConnectionMonitorsClientStartResponse contains the response from method ConnectionMonitorsClient.Start.
type ConnectionMonitorsClientStopResponse ¶ added in v0.3.0
type ConnectionMonitorsClientStopResponse struct { }
ConnectionMonitorsClientStopResponse contains the response from method ConnectionMonitorsClient.Stop.
type ConnectionMonitorsClientUpdateTagsOptions ¶ added in v0.3.0
type ConnectionMonitorsClientUpdateTagsOptions struct { }
ConnectionMonitorsClientUpdateTagsOptions contains the optional parameters for the ConnectionMonitorsClient.UpdateTags method.
type ConnectionMonitorsClientUpdateTagsResponse ¶ added in v0.3.0
type ConnectionMonitorsClientUpdateTagsResponse struct {
ConnectionMonitorResult
}
ConnectionMonitorsClientUpdateTagsResponse contains the response from method ConnectionMonitorsClient.UpdateTags.
type ConnectionResetSharedKey ¶
type ConnectionResetSharedKey struct { int32 `json:"keyLength,omitempty"` }KeyLength *
ConnectionResetSharedKey - The virtual network connection reset shared key.
type ConnectionSharedKey ¶
type ConnectionSharedKey struct { string `json:"value,omitempty"` ID *string `json:"id,omitempty"` }Value *
ConnectionSharedKey - Response for GetConnectionSharedKey API service call.
type ConnectionState ¶
type ConnectionState string
ConnectionState - The connection state.
const ( ConnectionStateReachable ConnectionState = "Reachable" ConnectionStateUnknown ConnectionState = "Unknown" ConnectionStateUnreachable ConnectionState = "Unreachable" )
func PossibleConnectionStateValues ¶
func PossibleConnectionStateValues() []ConnectionState
PossibleConnectionStateValues returns the possible values for the ConnectionState const type.
type ConnectionStateSnapshot ¶
type ConnectionStateSnapshot struct { // Average latency in ms. AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` // The connection state. ConnectionState *ConnectionState `json:"connectionState,omitempty"` // The end time of the connection snapshot. EndTime *time.Time `json:"endTime,omitempty"` // Connectivity analysis evaluation state. EvaluationState *EvaluationState `json:"evaluationState,omitempty"` // Maximum latency in ms. MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` // Minimum latency in ms. MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` // The number of failed probes. ProbesFailed *int64 `json:"probesFailed,omitempty"` // The number of sent probes. ProbesSent *int64 `json:"probesSent,omitempty"` // The start time of the connection snapshot. StartTime *time.Time `json:"startTime,omitempty"` // READ-ONLY; List of hops between the source and the destination. Hops []*ConnectivityHop `json:"hops,omitempty" azure:"ro"` }
ConnectionStateSnapshot - Connection state snapshot.
func (*ConnectionStateSnapshot) UnmarshalJSON ¶
func (c *ConnectionStateSnapshot) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionStateSnapshot.
type ConnectionStatus ¶
type ConnectionStatus string
ConnectionStatus - The connection status.
const ( ConnectionStatusConnected ConnectionStatus = "Connected" ConnectionStatusDegraded ConnectionStatus = "Degraded" ConnectionStatusDisconnected ConnectionStatus = "Disconnected" ConnectionStatusUnknown ConnectionStatus = "Unknown" )
func PossibleConnectionStatusValues ¶
func PossibleConnectionStatusValues() []ConnectionStatus
PossibleConnectionStatusValues returns the possible values for the ConnectionStatus const type.
type ConnectivityDestination ¶
type ConnectivityDestination struct { // The IP address or URI the resource to which a connection attempt will be made. Address *string `json:"address,omitempty"` // Port on which check connectivity will be performed. Port *int32 `json:"port,omitempty"` // The ID of the resource to which a connection attempt will be made. ResourceID *string `json:"resourceId,omitempty"` }
ConnectivityDestination - Parameters that define destination of connection.
type ConnectivityHop ¶
type ConnectivityHop struct { // READ-ONLY; The IP address of the hop. Address *string `json:"address,omitempty" azure:"ro"` // READ-ONLY; The ID of the hop. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; List of issues. Issues []*ConnectivityIssue `json:"issues,omitempty" azure:"ro"` // READ-ONLY; List of hop links. Links []*HopLink `json:"links,omitempty" azure:"ro"` // READ-ONLY; List of next hop identifiers. NextHopIDs []*string `json:"nextHopIds,omitempty" azure:"ro"` // READ-ONLY; List of previous hop identifiers. PreviousHopIDs []*string `json:"previousHopIds,omitempty" azure:"ro"` // READ-ONLY; List of previous hop links. PreviousLinks []*HopLink `json:"previousLinks,omitempty" azure:"ro"` // READ-ONLY; The ID of the resource corresponding to this hop. ResourceID *string `json:"resourceId,omitempty" azure:"ro"` // READ-ONLY; The type of the hop. Type *string `json:"type,omitempty" azure:"ro"` }
ConnectivityHop - Information about a hop between the source and the destination.
type ConnectivityInformation ¶
type ConnectivityInformation struct { // READ-ONLY; Average latency in milliseconds. AvgLatencyInMs *int32 `json:"avgLatencyInMs,omitempty" azure:"ro"` // READ-ONLY; The connection status. ConnectionStatus *ConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; List of hops between the source and the destination. Hops []*ConnectivityHop `json:"hops,omitempty" azure:"ro"` // READ-ONLY; Maximum latency in milliseconds. MaxLatencyInMs *int32 `json:"maxLatencyInMs,omitempty" azure:"ro"` // READ-ONLY; Minimum latency in milliseconds. MinLatencyInMs *int32 `json:"minLatencyInMs,omitempty" azure:"ro"` // READ-ONLY; Number of failed probes. ProbesFailed *int32 `json:"probesFailed,omitempty" azure:"ro"` // READ-ONLY; Total number of probes sent. ProbesSent *int32 `json:"probesSent,omitempty" azure:"ro"` }
ConnectivityInformation - Information on the connectivity status.
type ConnectivityIssue ¶
type ConnectivityIssue struct { // READ-ONLY; Provides additional context on the issue. Context []map[string]*string `json:"context,omitempty" azure:"ro"` // READ-ONLY; The origin of the issue. Origin *Origin `json:"origin,omitempty" azure:"ro"` // READ-ONLY; The severity of the issue. Severity *Severity `json:"severity,omitempty" azure:"ro"` // READ-ONLY; The type of issue. Type *IssueType `json:"type,omitempty" azure:"ro"` }
ConnectivityIssue - Information about an issue encountered in the process of checking for connectivity.
type ConnectivityParameters ¶
type ConnectivityParameters struct { // REQUIRED; The destination of connection. Destination *ConnectivityDestination `json:"destination,omitempty"` // REQUIRED; The source of the connection. Source *ConnectivitySource `json:"source,omitempty"` // Preferred IP version of the connection. PreferredIPVersion *IPVersion `json:"preferredIPVersion,omitempty"` // Network protocol. Protocol *Protocol `json:"protocol,omitempty"` // Configuration of the protocol. ProtocolConfiguration *ProtocolConfiguration `json:"protocolConfiguration,omitempty"` }
ConnectivityParameters - Parameters that determine how the connectivity check will be performed.
type ConnectivitySource ¶
type ConnectivitySource struct { // REQUIRED; The ID of the resource from which a connectivity check will be initiated. ResourceID *string `json:"resourceId,omitempty"` // The source port from which a connectivity check will be performed. Port *int32 `json:"port,omitempty"` }
ConnectivitySource - Parameters that define the source of the connection.
type Container ¶
type Container struct { // Resource ID. ID *string `json:"id,omitempty"` }
Container - Reference to container resource in remote resource provider.
type ContainerNetworkInterface ¶
type ContainerNetworkInterface struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Container network interface properties. Properties *ContainerNetworkInterfacePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ContainerNetworkInterface - Container network interface child resource.
type ContainerNetworkInterfaceConfiguration ¶
type ContainerNetworkInterfaceConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Container network interface configuration properties. Properties *ContainerNetworkInterfaceConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ContainerNetworkInterfaceConfiguration - Container network interface configuration child resource.
type ContainerNetworkInterfaceConfigurationPropertiesFormat ¶
type ContainerNetworkInterfaceConfigurationPropertiesFormat struct { // A list of container network interfaces created from this container network interface configuration. ContainerNetworkInterfaces []*SubResource `json:"containerNetworkInterfaces,omitempty"` // A list of ip configurations of the container network interface configuration. IPConfigurations []*IPConfigurationProfile `json:"ipConfigurations,omitempty"` // READ-ONLY; The provisioning state of the container network interface configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ContainerNetworkInterfaceConfigurationPropertiesFormat - Container network interface configuration properties.
func (ContainerNetworkInterfaceConfigurationPropertiesFormat) MarshalJSON ¶
func (c ContainerNetworkInterfaceConfigurationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerNetworkInterfaceConfigurationPropertiesFormat.
type ContainerNetworkInterfaceIPConfiguration ¶
type ContainerNetworkInterfaceIPConfiguration struct { // The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the container network interface IP configuration. Properties *ContainerNetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ContainerNetworkInterfaceIPConfiguration - The ip configuration for a container network interface.
type ContainerNetworkInterfaceIPConfigurationPropertiesFormat ¶
type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { // READ-ONLY; The provisioning state of the container network interface IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ContainerNetworkInterfaceIPConfigurationPropertiesFormat - Properties of the container network interface IP configuration.
type ContainerNetworkInterfacePropertiesFormat ¶
type ContainerNetworkInterfacePropertiesFormat struct { // Reference to the container to which this container network interface is attached. Container *Container `json:"container,omitempty"` // READ-ONLY; Container network interface configuration from which this container network interface is created. ContainerNetworkInterfaceConfiguration *ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfiguration,omitempty" azure:"ro"` // READ-ONLY; Reference to the ip configuration on this container nic. IPConfigurations []*ContainerNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the container network interface resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ContainerNetworkInterfacePropertiesFormat - Properties of container network interface.
func (ContainerNetworkInterfacePropertiesFormat) MarshalJSON ¶
func (c ContainerNetworkInterfacePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerNetworkInterfacePropertiesFormat.
type CoverageLevel ¶
type CoverageLevel string
CoverageLevel - Test coverage for the endpoint.
const ( CoverageLevelAboveAverage CoverageLevel = "AboveAverage" CoverageLevelAverage CoverageLevel = "Average" CoverageLevelBelowAverage CoverageLevel = "BelowAverage" CoverageLevelDefault CoverageLevel = "Default" CoverageLevelFull CoverageLevel = "Full" CoverageLevelLow CoverageLevel = "Low" )
func PossibleCoverageLevelValues ¶
func PossibleCoverageLevelValues() []CoverageLevel
PossibleCoverageLevelValues returns the possible values for the CoverageLevel const type.
type CustomDNSConfigPropertiesFormat ¶
type CustomDNSConfigPropertiesFormat struct { // Fqdn that resolves to private endpoint ip address. Fqdn *string `json:"fqdn,omitempty"` // A list of private ip addresses of the private endpoint. IPAddresses []*string `json:"ipAddresses,omitempty"` }
CustomDNSConfigPropertiesFormat - Contains custom Dns resolution configuration from customer.
func (CustomDNSConfigPropertiesFormat) MarshalJSON ¶
func (c CustomDNSConfigPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomDNSConfigPropertiesFormat.
type CustomIPPrefix ¶
type CustomIPPrefix struct { // The extended location of the custom IP prefix. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Custom IP prefix properties. Properties *CustomIPPrefixPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting the IP allocated for the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
CustomIPPrefix - Custom IP prefix resource.
func (CustomIPPrefix) MarshalJSON ¶
func (c CustomIPPrefix) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomIPPrefix.
type CustomIPPrefixListResult ¶
type CustomIPPrefixListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of Custom IP prefixes that exists in a resource group. Value []*CustomIPPrefix `json:"value,omitempty"` }
CustomIPPrefixListResult - Response for ListCustomIpPrefixes API service call.
type CustomIPPrefixPropertiesFormat ¶
type CustomIPPrefixPropertiesFormat struct { // Authorization message for WAN validation. AuthorizationMessage *string `json:"authorizationMessage,omitempty"` // The prefix range in CIDR notation. Should include the start address and the prefix length. Cidr *string `json:"cidr,omitempty"` // The commissioned state of the Custom IP Prefix. CommissionedState *CommissionedState `json:"commissionedState,omitempty"` // The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. CustomIPPrefixParent *SubResource `json:"customIpPrefixParent,omitempty"` // Signed message for WAN validation. SignedMessage *string `json:"signedMessage,omitempty"` // READ-ONLY; The list of all Children for IPv6 /48 CustomIpPrefix. ChildCustomIPPrefixes []*SubResource `json:"childCustomIpPrefixes,omitempty" azure:"ro"` // READ-ONLY; The reason why resource is in failed state. FailedReason *string `json:"failedReason,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the custom IP prefix resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The list of all referenced PublicIpPrefixes. PublicIPPrefixes []*SubResource `json:"publicIpPrefixes,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the custom IP prefix resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
CustomIPPrefixPropertiesFormat - Custom IP prefix properties.
func (CustomIPPrefixPropertiesFormat) MarshalJSON ¶
func (c CustomIPPrefixPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomIPPrefixPropertiesFormat.
type CustomIPPrefixesClient ¶
type CustomIPPrefixesClient struct {
// contains filtered or unexported fields
}
CustomIPPrefixesClient contains the methods for the CustomIPPrefixes group. Don't use this type directly, use NewCustomIPPrefixesClient() instead.
func NewCustomIPPrefixesClient ¶
func NewCustomIPPrefixesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomIPPrefixesClient, error)
NewCustomIPPrefixesClient creates a new instance of CustomIPPrefixesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CustomIPPrefixesClient) BeginCreateOrUpdate ¶
func (client *CustomIPPrefixesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters CustomIPPrefix, options *CustomIPPrefixesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CustomIPPrefixesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a custom IP prefix. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. customIPPrefixName - The name of the custom IP prefix. parameters - Parameters supplied to the create or update custom IP prefix operation. options - CustomIPPrefixesClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomIPPrefixesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixCreateCustomizedValues.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-customipprefix", armnetwork.CustomIPPrefix{ Location: to.Ptr("westus"), Properties: &armnetwork.CustomIPPrefixPropertiesFormat{ Cidr: to.Ptr("0.0.0.0/24"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*CustomIPPrefixesClient) BeginDelete ¶
func (client *CustomIPPrefixesClient) BeginDelete(ctx context.Context, resourceGroupName string, customIPPrefixName string, options *CustomIPPrefixesClientBeginDeleteOptions) (*runtime.Poller[CustomIPPrefixesClientDeleteResponse], error)
BeginDelete - Deletes the specified custom IP prefix. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. customIPPrefixName - The name of the CustomIpPrefix. options - CustomIPPrefixesClientBeginDeleteOptions contains the optional parameters for the CustomIPPrefixesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-customipprefix", 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 (*CustomIPPrefixesClient) Get ¶
func (client *CustomIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, customIPPrefixName string, options *CustomIPPrefixesClientGetOptions) (CustomIPPrefixesClientGetResponse, error)
Get - Gets the specified custom IP prefix in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. customIPPrefixName - The name of the custom IP prefix. options - CustomIPPrefixesClientGetOptions contains the optional parameters for the CustomIPPrefixesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-customipprefix", &armnetwork.CustomIPPrefixesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*CustomIPPrefixesClient) NewListAllPager ¶ added in v0.5.0
func (client *CustomIPPrefixesClient) NewListAllPager(options *CustomIPPrefixesClientListAllOptions) *runtime.Pager[CustomIPPrefixesClientListAllResponse]
NewListAllPager - Gets all the custom IP prefixes in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - CustomIPPrefixesClientListAllOptions contains the optional parameters for the CustomIPPrefixesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*CustomIPPrefixesClient) NewListPager ¶ added in v0.5.0
func (client *CustomIPPrefixesClient) NewListPager(resourceGroupName string, options *CustomIPPrefixesClientListOptions) *runtime.Pager[CustomIPPrefixesClientListResponse]
NewListPager - Gets all custom IP prefixes in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - CustomIPPrefixesClientListOptions contains the optional parameters for the CustomIPPrefixesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*CustomIPPrefixesClient) UpdateTags ¶
func (client *CustomIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, customIPPrefixName string, parameters TagsObject, options *CustomIPPrefixesClientUpdateTagsOptions) (CustomIPPrefixesClientUpdateTagsResponse, error)
UpdateTags - Updates custom IP prefix tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. customIPPrefixName - The name of the custom IP prefix. parameters - Parameters supplied to update custom IP prefix tags. options - CustomIPPrefixesClientUpdateTagsOptions contains the optional parameters for the CustomIPPrefixesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CustomIpPrefixUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewCustomIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-customipprefix", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type CustomIPPrefixesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type CustomIPPrefixesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomIPPrefixesClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomIPPrefixesClient.BeginCreateOrUpdate method.
type CustomIPPrefixesClientBeginDeleteOptions ¶ added in v0.3.0
type CustomIPPrefixesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CustomIPPrefixesClientBeginDeleteOptions contains the optional parameters for the CustomIPPrefixesClient.BeginDelete method.
type CustomIPPrefixesClientCreateOrUpdateResponse ¶ added in v0.3.0
type CustomIPPrefixesClientCreateOrUpdateResponse struct {
CustomIPPrefix
}
CustomIPPrefixesClientCreateOrUpdateResponse contains the response from method CustomIPPrefixesClient.CreateOrUpdate.
type CustomIPPrefixesClientDeleteResponse ¶ added in v0.3.0
type CustomIPPrefixesClientDeleteResponse struct { }
CustomIPPrefixesClientDeleteResponse contains the response from method CustomIPPrefixesClient.Delete.
type CustomIPPrefixesClientGetOptions ¶ added in v0.3.0
type CustomIPPrefixesClientGetOptions struct { // Expands referenced resources. Expand *string }
CustomIPPrefixesClientGetOptions contains the optional parameters for the CustomIPPrefixesClient.Get method.
type CustomIPPrefixesClientGetResponse ¶ added in v0.3.0
type CustomIPPrefixesClientGetResponse struct {
CustomIPPrefix
}
CustomIPPrefixesClientGetResponse contains the response from method CustomIPPrefixesClient.Get.
type CustomIPPrefixesClientListAllOptions ¶ added in v0.3.0
type CustomIPPrefixesClientListAllOptions struct { }
CustomIPPrefixesClientListAllOptions contains the optional parameters for the CustomIPPrefixesClient.ListAll method.
type CustomIPPrefixesClientListAllResponse ¶ added in v0.3.0
type CustomIPPrefixesClientListAllResponse struct {
CustomIPPrefixListResult
}
CustomIPPrefixesClientListAllResponse contains the response from method CustomIPPrefixesClient.ListAll.
type CustomIPPrefixesClientListOptions ¶ added in v0.3.0
type CustomIPPrefixesClientListOptions struct { }
CustomIPPrefixesClientListOptions contains the optional parameters for the CustomIPPrefixesClient.List method.
type CustomIPPrefixesClientListResponse ¶ added in v0.3.0
type CustomIPPrefixesClientListResponse struct {
CustomIPPrefixListResult
}
CustomIPPrefixesClientListResponse contains the response from method CustomIPPrefixesClient.List.
type CustomIPPrefixesClientUpdateTagsOptions ¶ added in v0.3.0
type CustomIPPrefixesClientUpdateTagsOptions struct { }
CustomIPPrefixesClientUpdateTagsOptions contains the optional parameters for the CustomIPPrefixesClient.UpdateTags method.
type CustomIPPrefixesClientUpdateTagsResponse ¶ added in v0.3.0
type CustomIPPrefixesClientUpdateTagsResponse struct {
CustomIPPrefix
}
CustomIPPrefixesClientUpdateTagsResponse contains the response from method CustomIPPrefixesClient.UpdateTags.
type DNSNameAvailabilityResult ¶
type DNSNameAvailabilityResult struct { // Domain availability (True/False). Available *bool `json:"available,omitempty"` }
DNSNameAvailabilityResult - Response for the CheckDnsNameAvailability API service call.
type DNSSettings ¶
type DNSSettings struct { // Enable DNS Proxy on Firewalls attached to the Firewall Policy. EnableProxy *bool `json:"enableProxy,omitempty"` // FQDNs in Network Rules are supported when set to true. RequireProxyForNetworkRules *bool `json:"requireProxyForNetworkRules,omitempty"` // List of Custom DNS Servers. Servers []*string `json:"servers,omitempty"` }
DNSSettings - DNS Proxy Settings in Firewall Policy.
func (DNSSettings) MarshalJSON ¶
func (d DNSSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DNSSettings.
type DdosCustomPoliciesClient ¶
type DdosCustomPoliciesClient struct {
// contains filtered or unexported fields
}
DdosCustomPoliciesClient contains the methods for the DdosCustomPolicies group. Don't use this type directly, use NewDdosCustomPoliciesClient() instead.
func NewDdosCustomPoliciesClient ¶
func NewDdosCustomPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DdosCustomPoliciesClient, error)
NewDdosCustomPoliciesClient creates a new instance of DdosCustomPoliciesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DdosCustomPoliciesClient) BeginCreateOrUpdate ¶
func (client *DdosCustomPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters DdosCustomPolicy, options *DdosCustomPoliciesClientBeginCreateOrUpdateOptions) (*runtime.Poller[DdosCustomPoliciesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a DDoS custom policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosCustomPolicyName - The name of the DDoS custom policy. parameters - Parameters supplied to the create or update operation. options - DdosCustomPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the DdosCustomPoliciesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosCustomPolicyCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosCustomPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-ddos-custom-policy", armnetwork.DdosCustomPolicy{ Location: to.Ptr("centraluseuap"), Properties: &armnetwork.DdosCustomPolicyPropertiesFormat{ ProtocolCustomSettings: []*armnetwork.ProtocolCustomSettingsFormat{ { Protocol: to.Ptr(armnetwork.DdosCustomPolicyProtocolTCP), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*DdosCustomPoliciesClient) BeginDelete ¶
func (client *DdosCustomPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, options *DdosCustomPoliciesClientBeginDeleteOptions) (*runtime.Poller[DdosCustomPoliciesClientDeleteResponse], error)
BeginDelete - Deletes the specified DDoS custom policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosCustomPolicyName - The name of the DDoS custom policy. options - DdosCustomPoliciesClientBeginDeleteOptions contains the optional parameters for the DdosCustomPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosCustomPolicyDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosCustomPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-ddos-custom-policy", 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 (*DdosCustomPoliciesClient) Get ¶
func (client *DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, options *DdosCustomPoliciesClientGetOptions) (DdosCustomPoliciesClientGetResponse, error)
Get - Gets information about the specified DDoS custom policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosCustomPolicyName - The name of the DDoS custom policy. options - DdosCustomPoliciesClientGetOptions contains the optional parameters for the DdosCustomPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosCustomPolicyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosCustomPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-ddos-custom-policy", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DdosCustomPoliciesClient) UpdateTags ¶
func (client *DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters TagsObject, options *DdosCustomPoliciesClientUpdateTagsOptions) (DdosCustomPoliciesClientUpdateTagsResponse, error)
UpdateTags - Update a DDoS custom policy tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosCustomPolicyName - The name of the DDoS custom policy. parameters - Parameters supplied to update DDoS custom policy resource tags. options - DdosCustomPoliciesClientUpdateTagsOptions contains the optional parameters for the DdosCustomPoliciesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosCustomPolicyUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosCustomPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-ddos-custom-policy", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type DdosCustomPoliciesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type DdosCustomPoliciesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DdosCustomPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the DdosCustomPoliciesClient.BeginCreateOrUpdate method.
type DdosCustomPoliciesClientBeginDeleteOptions ¶ added in v0.3.0
type DdosCustomPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DdosCustomPoliciesClientBeginDeleteOptions contains the optional parameters for the DdosCustomPoliciesClient.BeginDelete method.
type DdosCustomPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type DdosCustomPoliciesClientCreateOrUpdateResponse struct {
DdosCustomPolicy
}
DdosCustomPoliciesClientCreateOrUpdateResponse contains the response from method DdosCustomPoliciesClient.CreateOrUpdate.
type DdosCustomPoliciesClientDeleteResponse ¶ added in v0.3.0
type DdosCustomPoliciesClientDeleteResponse struct { }
DdosCustomPoliciesClientDeleteResponse contains the response from method DdosCustomPoliciesClient.Delete.
type DdosCustomPoliciesClientGetOptions ¶ added in v0.3.0
type DdosCustomPoliciesClientGetOptions struct { }
DdosCustomPoliciesClientGetOptions contains the optional parameters for the DdosCustomPoliciesClient.Get method.
type DdosCustomPoliciesClientGetResponse ¶ added in v0.3.0
type DdosCustomPoliciesClientGetResponse struct {
DdosCustomPolicy
}
DdosCustomPoliciesClientGetResponse contains the response from method DdosCustomPoliciesClient.Get.
type DdosCustomPoliciesClientUpdateTagsOptions ¶ added in v0.3.0
type DdosCustomPoliciesClientUpdateTagsOptions struct { }
DdosCustomPoliciesClientUpdateTagsOptions contains the optional parameters for the DdosCustomPoliciesClient.UpdateTags method.
type DdosCustomPoliciesClientUpdateTagsResponse ¶ added in v0.3.0
type DdosCustomPoliciesClientUpdateTagsResponse struct {
DdosCustomPolicy
}
DdosCustomPoliciesClientUpdateTagsResponse contains the response from method DdosCustomPoliciesClient.UpdateTags.
type DdosCustomPolicy ¶
type DdosCustomPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the DDoS custom policy. Properties *DdosCustomPolicyPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
DdosCustomPolicy - A DDoS custom policy in a resource group.
func (DdosCustomPolicy) MarshalJSON ¶
func (d DdosCustomPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DdosCustomPolicy.
type DdosCustomPolicyPropertiesFormat ¶
type DdosCustomPolicyPropertiesFormat struct { // The protocol-specific DDoS policy customization parameters. ProtocolCustomSettings []*ProtocolCustomSettingsFormat `json:"protocolCustomSettings,omitempty"` // READ-ONLY; The provisioning state of the DDoS custom policy resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The list of public IPs associated with the DDoS custom policy resource. This list is read-only. PublicIPAddresses []*SubResource `json:"publicIPAddresses,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if // the user changes its name or migrate the resource across subscriptions or resource groups. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
DdosCustomPolicyPropertiesFormat - DDoS custom policy properties.
func (DdosCustomPolicyPropertiesFormat) MarshalJSON ¶
func (d DdosCustomPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DdosCustomPolicyPropertiesFormat.
type DdosCustomPolicyProtocol ¶
type DdosCustomPolicyProtocol string
DdosCustomPolicyProtocol - The protocol for which the DDoS protection policy is being customized.
const ( DdosCustomPolicyProtocolSyn DdosCustomPolicyProtocol = "Syn" DdosCustomPolicyProtocolTCP DdosCustomPolicyProtocol = "Tcp" DdosCustomPolicyProtocolUDP DdosCustomPolicyProtocol = "Udp" )
func PossibleDdosCustomPolicyProtocolValues ¶
func PossibleDdosCustomPolicyProtocolValues() []DdosCustomPolicyProtocol
PossibleDdosCustomPolicyProtocolValues returns the possible values for the DdosCustomPolicyProtocol const type.
type DdosCustomPolicyTriggerSensitivityOverride ¶
type DdosCustomPolicyTriggerSensitivityOverride string
DdosCustomPolicyTriggerSensitivityOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
const ( DdosCustomPolicyTriggerSensitivityOverrideDefault DdosCustomPolicyTriggerSensitivityOverride = "Default" DdosCustomPolicyTriggerSensitivityOverrideHigh DdosCustomPolicyTriggerSensitivityOverride = "High" DdosCustomPolicyTriggerSensitivityOverrideLow DdosCustomPolicyTriggerSensitivityOverride = "Low" DdosCustomPolicyTriggerSensitivityOverrideRelaxed DdosCustomPolicyTriggerSensitivityOverride = "Relaxed" )
func PossibleDdosCustomPolicyTriggerSensitivityOverrideValues ¶
func PossibleDdosCustomPolicyTriggerSensitivityOverrideValues() []DdosCustomPolicyTriggerSensitivityOverride
PossibleDdosCustomPolicyTriggerSensitivityOverrideValues returns the possible values for the DdosCustomPolicyTriggerSensitivityOverride const type.
type DdosProtectionPlan ¶
type DdosProtectionPlan struct { // Resource location. Location *string `json:"location,omitempty"` // Properties of the DDoS protection plan. Properties *DdosProtectionPlanPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
DdosProtectionPlan - A DDoS protection plan in a resource group.
func (DdosProtectionPlan) MarshalJSON ¶
func (d DdosProtectionPlan) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DdosProtectionPlan.
type DdosProtectionPlanListResult ¶
type DdosProtectionPlanListResult struct { // A list of DDoS protection plans. Value []*DdosProtectionPlan `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
DdosProtectionPlanListResult - A list of DDoS protection plans.
type DdosProtectionPlanPropertiesFormat ¶
type DdosProtectionPlanPropertiesFormat struct { // READ-ONLY; The provisioning state of the DDoS protection plan resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if // the user changes its name or migrate the resource across subscriptions or resource groups. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. VirtualNetworks []*SubResource `json:"virtualNetworks,omitempty" azure:"ro"` }
DdosProtectionPlanPropertiesFormat - DDoS protection plan properties.
func (DdosProtectionPlanPropertiesFormat) MarshalJSON ¶
func (d DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DdosProtectionPlanPropertiesFormat.
type DdosProtectionPlansClient ¶
type DdosProtectionPlansClient struct {
// contains filtered or unexported fields
}
DdosProtectionPlansClient contains the methods for the DdosProtectionPlans group. Don't use this type directly, use NewDdosProtectionPlansClient() instead.
func NewDdosProtectionPlansClient ¶
func NewDdosProtectionPlansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DdosProtectionPlansClient, error)
NewDdosProtectionPlansClient creates a new instance of DdosProtectionPlansClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DdosProtectionPlansClient) BeginCreateOrUpdate ¶
func (client *DdosProtectionPlansClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters DdosProtectionPlan, options *DdosProtectionPlansClientBeginCreateOrUpdateOptions) (*runtime.Poller[DdosProtectionPlansClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a DDoS protection plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosProtectionPlanName - The name of the DDoS protection plan. parameters - Parameters supplied to the create or update operation. options - DdosProtectionPlansClientBeginCreateOrUpdateOptions contains the optional parameters for the DdosProtectionPlansClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-plan", armnetwork.DdosProtectionPlan{ Location: to.Ptr("westus"), Properties: &armnetwork.DdosProtectionPlanPropertiesFormat{}, }, 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) } // TODO: use response item _ = res }
Output:
func (*DdosProtectionPlansClient) BeginDelete ¶
func (client *DdosProtectionPlansClient) BeginDelete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, options *DdosProtectionPlansClientBeginDeleteOptions) (*runtime.Poller[DdosProtectionPlansClientDeleteResponse], error)
BeginDelete - Deletes the specified DDoS protection plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosProtectionPlanName - The name of the DDoS protection plan. options - DdosProtectionPlansClientBeginDeleteOptions contains the optional parameters for the DdosProtectionPlansClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-plan", 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 (*DdosProtectionPlansClient) Get ¶
func (client *DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, options *DdosProtectionPlansClientGetOptions) (DdosProtectionPlansClientGetResponse, error)
Get - Gets information about the specified DDoS protection plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosProtectionPlanName - The name of the DDoS protection plan. options - DdosProtectionPlansClientGetOptions contains the optional parameters for the DdosProtectionPlansClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-plan", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DdosProtectionPlansClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *DdosProtectionPlansClient) NewListByResourceGroupPager(resourceGroupName string, options *DdosProtectionPlansClientListByResourceGroupOptions) *runtime.Pager[DdosProtectionPlansClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all the DDoS protection plans in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - DdosProtectionPlansClientListByResourceGroupOptions contains the optional parameters for the DdosProtectionPlansClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DdosProtectionPlansClient) NewListPager ¶ added in v0.5.0
func (client *DdosProtectionPlansClient) NewListPager(options *DdosProtectionPlansClientListOptions) *runtime.Pager[DdosProtectionPlansClientListResponse]
NewListPager - Gets all DDoS protection plans in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - DdosProtectionPlansClientListOptions contains the optional parameters for the DdosProtectionPlansClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DdosProtectionPlansClient) UpdateTags ¶
func (client *DdosProtectionPlansClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject, options *DdosProtectionPlansClientUpdateTagsOptions) (DdosProtectionPlansClientUpdateTagsResponse, error)
UpdateTags - Update a DDoS protection plan tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ddosProtectionPlanName - The name of the DDoS protection plan. parameters - Parameters supplied to the update DDoS protection plan resource tags. options - DdosProtectionPlansClientUpdateTagsOptions contains the optional parameters for the DdosProtectionPlansClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DdosProtectionPlanUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDdosProtectionPlansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-plan", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type DdosProtectionPlansClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type DdosProtectionPlansClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DdosProtectionPlansClientBeginCreateOrUpdateOptions contains the optional parameters for the DdosProtectionPlansClient.BeginCreateOrUpdate method.
type DdosProtectionPlansClientBeginDeleteOptions ¶ added in v0.3.0
type DdosProtectionPlansClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DdosProtectionPlansClientBeginDeleteOptions contains the optional parameters for the DdosProtectionPlansClient.BeginDelete method.
type DdosProtectionPlansClientCreateOrUpdateResponse ¶ added in v0.3.0
type DdosProtectionPlansClientCreateOrUpdateResponse struct {
DdosProtectionPlan
}
DdosProtectionPlansClientCreateOrUpdateResponse contains the response from method DdosProtectionPlansClient.CreateOrUpdate.
type DdosProtectionPlansClientDeleteResponse ¶ added in v0.3.0
type DdosProtectionPlansClientDeleteResponse struct { }
DdosProtectionPlansClientDeleteResponse contains the response from method DdosProtectionPlansClient.Delete.
type DdosProtectionPlansClientGetOptions ¶ added in v0.3.0
type DdosProtectionPlansClientGetOptions struct { }
DdosProtectionPlansClientGetOptions contains the optional parameters for the DdosProtectionPlansClient.Get method.
type DdosProtectionPlansClientGetResponse ¶ added in v0.3.0
type DdosProtectionPlansClientGetResponse struct {
DdosProtectionPlan
}
DdosProtectionPlansClientGetResponse contains the response from method DdosProtectionPlansClient.Get.
type DdosProtectionPlansClientListByResourceGroupOptions ¶ added in v0.3.0
type DdosProtectionPlansClientListByResourceGroupOptions struct { }
DdosProtectionPlansClientListByResourceGroupOptions contains the optional parameters for the DdosProtectionPlansClient.ListByResourceGroup method.
type DdosProtectionPlansClientListByResourceGroupResponse ¶ added in v0.3.0
type DdosProtectionPlansClientListByResourceGroupResponse struct {
DdosProtectionPlanListResult
}
DdosProtectionPlansClientListByResourceGroupResponse contains the response from method DdosProtectionPlansClient.ListByResourceGroup.
type DdosProtectionPlansClientListOptions ¶ added in v0.3.0
type DdosProtectionPlansClientListOptions struct { }
DdosProtectionPlansClientListOptions contains the optional parameters for the DdosProtectionPlansClient.List method.
type DdosProtectionPlansClientListResponse ¶ added in v0.3.0
type DdosProtectionPlansClientListResponse struct {
DdosProtectionPlanListResult
}
DdosProtectionPlansClientListResponse contains the response from method DdosProtectionPlansClient.List.
type DdosProtectionPlansClientUpdateTagsOptions ¶ added in v0.3.0
type DdosProtectionPlansClientUpdateTagsOptions struct { }
DdosProtectionPlansClientUpdateTagsOptions contains the optional parameters for the DdosProtectionPlansClient.UpdateTags method.
type DdosProtectionPlansClientUpdateTagsResponse ¶ added in v0.3.0
type DdosProtectionPlansClientUpdateTagsResponse struct {
DdosProtectionPlan
}
DdosProtectionPlansClientUpdateTagsResponse contains the response from method DdosProtectionPlansClient.UpdateTags.
type DdosSettings ¶
type DdosSettings struct { // The DDoS custom policy associated with the public IP. DdosCustomPolicy *SubResource `json:"ddosCustomPolicy,omitempty"` // Enables DDoS protection on the public IP. ProtectedIP *bool `json:"protectedIP,omitempty"` // The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized. ProtectionCoverage *DdosSettingsProtectionCoverage `json:"protectionCoverage,omitempty"` }
DdosSettings - Contains the DDoS protection settings of the public IP.
type DdosSettingsProtectionCoverage ¶
type DdosSettingsProtectionCoverage string
DdosSettingsProtectionCoverage - The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized.
const ( DdosSettingsProtectionCoverageBasic DdosSettingsProtectionCoverage = "Basic" DdosSettingsProtectionCoverageStandard DdosSettingsProtectionCoverage = "Standard" )
func PossibleDdosSettingsProtectionCoverageValues ¶
func PossibleDdosSettingsProtectionCoverageValues() []DdosSettingsProtectionCoverage
PossibleDdosSettingsProtectionCoverageValues returns the possible values for the DdosSettingsProtectionCoverage const type.
type DefaultSecurityRulesClient ¶
type DefaultSecurityRulesClient struct {
// contains filtered or unexported fields
}
DefaultSecurityRulesClient contains the methods for the DefaultSecurityRules group. Don't use this type directly, use NewDefaultSecurityRulesClient() instead.
func NewDefaultSecurityRulesClient ¶
func NewDefaultSecurityRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DefaultSecurityRulesClient, error)
NewDefaultSecurityRulesClient creates a new instance of DefaultSecurityRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DefaultSecurityRulesClient) Get ¶
func (client *DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string, options *DefaultSecurityRulesClientGetOptions) (DefaultSecurityRulesClientGetResponse, error)
Get - Get the specified default network security rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. defaultSecurityRuleName - The name of the default security rule. options - DefaultSecurityRulesClientGetOptions contains the optional parameters for the DefaultSecurityRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DefaultSecurityRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDefaultSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "nsg1", "AllowVnetInBound", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DefaultSecurityRulesClient) NewListPager ¶ added in v0.5.0
func (client *DefaultSecurityRulesClient) NewListPager(resourceGroupName string, networkSecurityGroupName string, options *DefaultSecurityRulesClientListOptions) *runtime.Pager[DefaultSecurityRulesClientListResponse]
NewListPager - Gets all default security rules in a network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. options - DefaultSecurityRulesClientListOptions contains the optional parameters for the DefaultSecurityRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DefaultSecurityRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDefaultSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "nsg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DefaultSecurityRulesClientGetOptions ¶ added in v0.3.0
type DefaultSecurityRulesClientGetOptions struct { }
DefaultSecurityRulesClientGetOptions contains the optional parameters for the DefaultSecurityRulesClient.Get method.
type DefaultSecurityRulesClientGetResponse ¶ added in v0.3.0
type DefaultSecurityRulesClientGetResponse struct {
SecurityRule
}
DefaultSecurityRulesClientGetResponse contains the response from method DefaultSecurityRulesClient.Get.
type DefaultSecurityRulesClientListOptions ¶ added in v0.3.0
type DefaultSecurityRulesClientListOptions struct { }
DefaultSecurityRulesClientListOptions contains the optional parameters for the DefaultSecurityRulesClient.List method.
type DefaultSecurityRulesClientListResponse ¶ added in v0.3.0
type DefaultSecurityRulesClientListResponse struct {
SecurityRuleListResult
}
DefaultSecurityRulesClientListResponse contains the response from method DefaultSecurityRulesClient.List.
type Delegation ¶
type Delegation struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a subnet. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the subnet. Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` // Resource type. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
Delegation - Details the service to which the subnet is delegated.
type DeleteOptions ¶
type DeleteOptions string
DeleteOptions - Specify what happens to the public IP address when the VM using it is deleted
const ( DeleteOptionsDelete DeleteOptions = "Delete" DeleteOptionsDetach DeleteOptions = "Detach" )
func PossibleDeleteOptionsValues ¶
func PossibleDeleteOptionsValues() []DeleteOptions
PossibleDeleteOptionsValues returns the possible values for the DeleteOptions const type.
type DestinationPortBehavior ¶
type DestinationPortBehavior string
DestinationPortBehavior - Destination port behavior.
const ( DestinationPortBehaviorListenIfAvailable DestinationPortBehavior = "ListenIfAvailable" DestinationPortBehaviorNone DestinationPortBehavior = "None" )
func PossibleDestinationPortBehaviorValues ¶
func PossibleDestinationPortBehaviorValues() []DestinationPortBehavior
PossibleDestinationPortBehaviorValues returns the possible values for the DestinationPortBehavior const type.
type DeviceProperties ¶
type DeviceProperties struct { // Model of the device. DeviceModel *string `json:"deviceModel,omitempty"` // Name of the device Vendor. DeviceVendor *string `json:"deviceVendor,omitempty"` // Link speed. LinkSpeedInMbps *int32 `json:"linkSpeedInMbps,omitempty"` }
DeviceProperties - List of properties of the device.
type DhGroup ¶
type DhGroup string
DhGroup - The DH Groups used in IKE Phase 1 for initial SA.
func PossibleDhGroupValues ¶
func PossibleDhGroupValues() []DhGroup
PossibleDhGroupValues returns the possible values for the DhGroup const type.
type DhcpOptions ¶
type DhcpOptions struct { // The list of DNS servers IP addresses. DNSServers []*string `json:"dnsServers,omitempty"` }
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
func (DhcpOptions) MarshalJSON ¶
func (d DhcpOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DhcpOptions.
type Dimension ¶
type Dimension struct { // The display name of the dimension. DisplayName *string `json:"displayName,omitempty"` // The internal name of the dimension. InternalName *string `json:"internalName,omitempty"` // The name of the dimension. Name *string `json:"name,omitempty"` }
Dimension of the metric.
type Direction ¶
type Direction string
Direction - The direction of the traffic.
func PossibleDirectionValues ¶
func PossibleDirectionValues() []Direction
PossibleDirectionValues returns the possible values for the Direction const type.
type DscpConfiguration ¶
type DscpConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the network interface. Properties *DscpConfigurationPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
DscpConfiguration - Differentiated Services Code Point configuration for any given network interface
func (DscpConfiguration) MarshalJSON ¶
func (d DscpConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DscpConfiguration.
type DscpConfigurationClient ¶
type DscpConfigurationClient struct {
// contains filtered or unexported fields
}
DscpConfigurationClient contains the methods for the DscpConfiguration group. Don't use this type directly, use NewDscpConfigurationClient() instead.
func NewDscpConfigurationClient ¶
func NewDscpConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscpConfigurationClient, error)
NewDscpConfigurationClient creates a new instance of DscpConfigurationClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DscpConfigurationClient) BeginCreateOrUpdate ¶
func (client *DscpConfigurationClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, dscpConfigurationName string, parameters DscpConfiguration, options *DscpConfigurationClientBeginCreateOrUpdateOptions) (*runtime.Poller[DscpConfigurationClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a DSCP Configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. dscpConfigurationName - The name of the resource. parameters - Parameters supplied to the create or update dscp configuration operation. options - DscpConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the DscpConfigurationClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DscpConfigurationCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDscpConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "mydscpconfig", armnetwork.DscpConfiguration{ Location: to.Ptr("eastus"), Properties: &armnetwork.DscpConfigurationPropertiesFormat{ QosDefinitionCollection: []*armnetwork.QosDefinition{ { DestinationIPRanges: []*armnetwork.QosIPRange{ { EndIP: to.Ptr("127.0.10.2"), StartIP: to.Ptr("127.0.10.1"), }}, DestinationPortRanges: []*armnetwork.QosPortRange{ { End: to.Ptr[int32](15), Start: to.Ptr[int32](15), }}, Markings: []*int32{ to.Ptr[int32](1)}, SourceIPRanges: []*armnetwork.QosIPRange{ { EndIP: to.Ptr("127.0.0.2"), StartIP: to.Ptr("127.0.0.1"), }}, SourcePortRanges: []*armnetwork.QosPortRange{ { End: to.Ptr[int32](11), Start: to.Ptr[int32](10), }, { End: to.Ptr[int32](21), Start: to.Ptr[int32](20), }}, Protocol: to.Ptr(armnetwork.ProtocolTypeTCP), }, { DestinationIPRanges: []*armnetwork.QosIPRange{ { EndIP: to.Ptr("12.0.10.2"), StartIP: to.Ptr("12.0.10.1"), }}, DestinationPortRanges: []*armnetwork.QosPortRange{ { End: to.Ptr[int32](52), Start: to.Ptr[int32](51), }}, Markings: []*int32{ to.Ptr[int32](2)}, SourceIPRanges: []*armnetwork.QosIPRange{ { EndIP: to.Ptr("12.0.0.2"), StartIP: to.Ptr("12.0.0.1"), }}, SourcePortRanges: []*armnetwork.QosPortRange{ { End: to.Ptr[int32](12), Start: to.Ptr[int32](11), }}, Protocol: to.Ptr(armnetwork.ProtocolTypeUDP), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*DscpConfigurationClient) BeginDelete ¶
func (client *DscpConfigurationClient) BeginDelete(ctx context.Context, resourceGroupName string, dscpConfigurationName string, options *DscpConfigurationClientBeginDeleteOptions) (*runtime.Poller[DscpConfigurationClientDeleteResponse], error)
BeginDelete - Deletes a DSCP Configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. dscpConfigurationName - The name of the resource. options - DscpConfigurationClientBeginDeleteOptions contains the optional parameters for the DscpConfigurationClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DscpConfigurationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDscpConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "mydscpConfig", 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 (*DscpConfigurationClient) Get ¶
func (client *DscpConfigurationClient) Get(ctx context.Context, resourceGroupName string, dscpConfigurationName string, options *DscpConfigurationClientGetOptions) (DscpConfigurationClientGetResponse, error)
Get - Gets a DSCP Configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. dscpConfigurationName - The name of the resource. options - DscpConfigurationClientGetOptions contains the optional parameters for the DscpConfigurationClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DscpConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDscpConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "mydscpConfig", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DscpConfigurationClient) NewListAllPager ¶ added in v0.5.0
func (client *DscpConfigurationClient) NewListAllPager(options *DscpConfigurationClientListAllOptions) *runtime.Pager[DscpConfigurationClientListAllResponse]
NewListAllPager - Gets all dscp configurations in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - DscpConfigurationClientListAllOptions contains the optional parameters for the DscpConfigurationClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DscpConfigurationListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDscpConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DscpConfigurationClient) NewListPager ¶ added in v0.5.0
func (client *DscpConfigurationClient) NewListPager(resourceGroupName string, options *DscpConfigurationClientListOptions) *runtime.Pager[DscpConfigurationClientListResponse]
NewListPager - Gets a DSCP Configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - DscpConfigurationClientListOptions contains the optional parameters for the DscpConfigurationClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/DscpConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewDscpConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DscpConfigurationClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type DscpConfigurationClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DscpConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the DscpConfigurationClient.BeginCreateOrUpdate method.
type DscpConfigurationClientBeginDeleteOptions ¶ added in v0.3.0
type DscpConfigurationClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DscpConfigurationClientBeginDeleteOptions contains the optional parameters for the DscpConfigurationClient.BeginDelete method.
type DscpConfigurationClientCreateOrUpdateResponse ¶ added in v0.3.0
type DscpConfigurationClientCreateOrUpdateResponse struct {
DscpConfiguration
}
DscpConfigurationClientCreateOrUpdateResponse contains the response from method DscpConfigurationClient.CreateOrUpdate.
type DscpConfigurationClientDeleteResponse ¶ added in v0.3.0
type DscpConfigurationClientDeleteResponse struct { }
DscpConfigurationClientDeleteResponse contains the response from method DscpConfigurationClient.Delete.
type DscpConfigurationClientGetOptions ¶ added in v0.3.0
type DscpConfigurationClientGetOptions struct { }
DscpConfigurationClientGetOptions contains the optional parameters for the DscpConfigurationClient.Get method.
type DscpConfigurationClientGetResponse ¶ added in v0.3.0
type DscpConfigurationClientGetResponse struct {
DscpConfiguration
}
DscpConfigurationClientGetResponse contains the response from method DscpConfigurationClient.Get.
type DscpConfigurationClientListAllOptions ¶ added in v0.3.0
type DscpConfigurationClientListAllOptions struct { }
DscpConfigurationClientListAllOptions contains the optional parameters for the DscpConfigurationClient.ListAll method.
type DscpConfigurationClientListAllResponse ¶ added in v0.3.0
type DscpConfigurationClientListAllResponse struct {
DscpConfigurationListResult
}
DscpConfigurationClientListAllResponse contains the response from method DscpConfigurationClient.ListAll.
type DscpConfigurationClientListOptions ¶ added in v0.3.0
type DscpConfigurationClientListOptions struct { }
DscpConfigurationClientListOptions contains the optional parameters for the DscpConfigurationClient.List method.
type DscpConfigurationClientListResponse ¶ added in v0.3.0
type DscpConfigurationClientListResponse struct {
DscpConfigurationListResult
}
DscpConfigurationClientListResponse contains the response from method DscpConfigurationClient.List.
type DscpConfigurationListResult ¶
type DscpConfigurationListResult struct { // A list of dscp configurations in a resource group. Value []*DscpConfiguration `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
DscpConfigurationListResult - Response for the DscpConfigurationList API service call.
type DscpConfigurationPropertiesFormat ¶
type DscpConfigurationPropertiesFormat struct { // Destination IP ranges. DestinationIPRanges []*QosIPRange `json:"destinationIpRanges,omitempty"` // Destination port ranges. DestinationPortRanges []*QosPortRange `json:"destinationPortRanges,omitempty"` // List of markings to be used in the configuration. Markings []*int32 `json:"markings,omitempty"` // RNM supported protocol types. Protocol *ProtocolType `json:"protocol,omitempty"` // QoS object definitions QosDefinitionCollection []*QosDefinition `json:"qosDefinitionCollection,omitempty"` // Source IP ranges. SourceIPRanges []*QosIPRange `json:"sourceIpRanges,omitempty"` // Sources port ranges. SourcePortRanges []*QosPortRange `json:"sourcePortRanges,omitempty"` // READ-ONLY; Associated Network Interfaces to the DSCP Configuration. AssociatedNetworkInterfaces []*Interface `json:"associatedNetworkInterfaces,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the DSCP Configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Qos Collection ID generated by RNM. QosCollectionID *string `json:"qosCollectionId,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the DSCP Configuration resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
DscpConfigurationPropertiesFormat - Differentiated Services Code Point configuration properties.
func (DscpConfigurationPropertiesFormat) MarshalJSON ¶
func (d DscpConfigurationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DscpConfigurationPropertiesFormat.
type EffectiveNetworkSecurityGroup ¶
type EffectiveNetworkSecurityGroup struct { // Associated resources. Association *EffectiveNetworkSecurityGroupAssociation `json:"association,omitempty"` // A collection of effective security rules. EffectiveSecurityRules []*EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` // The ID of network security group that is applied. NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` // Mapping of tags to list of IP Addresses included within the tag. TagMap *string `json:"tagMap,omitempty"` }
EffectiveNetworkSecurityGroup - Effective network security group.
type EffectiveNetworkSecurityGroupAssociation ¶
type EffectiveNetworkSecurityGroupAssociation struct { // The ID of the network interface if assigned. NetworkInterface *SubResource `json:"networkInterface,omitempty"` // The ID of the Azure network manager if assigned. NetworkManager *SubResource `json:"networkManager,omitempty"` // The ID of the subnet if assigned. Subnet *SubResource `json:"subnet,omitempty"` }
EffectiveNetworkSecurityGroupAssociation - The effective network security group association.
type EffectiveNetworkSecurityGroupListResult ¶
type EffectiveNetworkSecurityGroupListResult struct { // A list of effective network security groups. Value []*EffectiveNetworkSecurityGroup `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
EffectiveNetworkSecurityGroupListResult - Response for list effective network security groups API service call.
type EffectiveNetworkSecurityRule ¶
type EffectiveNetworkSecurityRule struct { // Whether network traffic is allowed or denied. Access *SecurityRuleAccess `json:"access,omitempty"` // The destination address prefix. DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` // The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, // Internet), System Tags, and the asterisk (*). DestinationAddressPrefixes []*string `json:"destinationAddressPrefixes,omitempty"` // The destination port or range. DestinationPortRange *string `json:"destinationPortRange,omitempty"` // The destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator // (e.g. 100-400), or an asterisk (*). DestinationPortRanges []*string `json:"destinationPortRanges,omitempty"` // The direction of the rule. Direction *SecurityRuleDirection `json:"direction,omitempty"` // Expanded destination address prefix. ExpandedDestinationAddressPrefix []*string `json:"expandedDestinationAddressPrefix,omitempty"` // The expanded source address prefix. ExpandedSourceAddressPrefix []*string `json:"expandedSourceAddressPrefix,omitempty"` // The name of the security rule specified by the user (if created by the user). Name *string `json:"name,omitempty"` // The priority of the rule. Priority *int32 `json:"priority,omitempty"` // The network protocol this rule applies to. Protocol *EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` // The source address prefix. SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` // The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), // System Tags, and the asterisk (*). SourceAddressPrefixes []*string `json:"sourceAddressPrefixes,omitempty"` // The source port or range. SourcePortRange *string `json:"sourcePortRange,omitempty"` // The source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. // 100-400), or an asterisk (*). SourcePortRanges []*string `json:"sourcePortRanges,omitempty"` }
EffectiveNetworkSecurityRule - Effective network security rules.
type EffectiveRoute ¶
type EffectiveRoute struct { // The address prefixes of the effective routes in CIDR notation. AddressPrefix []*string `json:"addressPrefix,omitempty"` // If true, on-premises routes are not propagated to the network interfaces in the subnet. DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` // The name of the user defined route. This is optional. Name *string `json:"name,omitempty"` // The IP address of the next hop of the effective route. NextHopIPAddress []*string `json:"nextHopIpAddress,omitempty"` // The type of Azure hop the packet should be sent to. NextHopType *RouteNextHopType `json:"nextHopType,omitempty"` // Who created the route. Source *EffectiveRouteSource `json:"source,omitempty"` // The value of effective route. State *EffectiveRouteState `json:"state,omitempty"` }
EffectiveRoute - Effective Route.
type EffectiveRouteListResult ¶
type EffectiveRouteListResult struct { // A list of effective routes. Value []*EffectiveRoute `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
EffectiveRouteListResult - Response for list effective route API service call.
type EffectiveRouteSource ¶
type EffectiveRouteSource string
EffectiveRouteSource - Who created the route.
const ( EffectiveRouteSourceDefault EffectiveRouteSource = "Default" EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" EffectiveRouteSourceUser EffectiveRouteSource = "User" EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" )
func PossibleEffectiveRouteSourceValues ¶
func PossibleEffectiveRouteSourceValues() []EffectiveRouteSource
PossibleEffectiveRouteSourceValues returns the possible values for the EffectiveRouteSource const type.
type EffectiveRouteState ¶
type EffectiveRouteState string
EffectiveRouteState - The value of effective route.
const ( EffectiveRouteStateActive EffectiveRouteState = "Active" EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" )
func PossibleEffectiveRouteStateValues ¶
func PossibleEffectiveRouteStateValues() []EffectiveRouteState
PossibleEffectiveRouteStateValues returns the possible values for the EffectiveRouteState const type.
type EffectiveRoutesParameters ¶
type EffectiveRoutesParameters struct { // The resource whose effective routes are being requested. ResourceID *string `json:"resourceId,omitempty"` // The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection // and P2SConnection. VirtualWanResourceType *string `json:"virtualWanResourceType,omitempty"` }
EffectiveRoutesParameters - The parameters specifying the resource whose effective routes are being requested.
type EffectiveSecurityRuleProtocol ¶
type EffectiveSecurityRuleProtocol string
EffectiveSecurityRuleProtocol - The network protocol this rule applies to.
const ( EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" EffectiveSecurityRuleProtocolTCP EffectiveSecurityRuleProtocol = "Tcp" EffectiveSecurityRuleProtocolUDP EffectiveSecurityRuleProtocol = "Udp" )
func PossibleEffectiveSecurityRuleProtocolValues ¶
func PossibleEffectiveSecurityRuleProtocolValues() []EffectiveSecurityRuleProtocol
PossibleEffectiveSecurityRuleProtocolValues returns the possible values for the EffectiveSecurityRuleProtocol const type.
type EndpointServiceResult ¶
type EndpointServiceResult struct { // Resource ID. ID *string `json:"id,omitempty"` // READ-ONLY; Name of the endpoint service. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Type of the endpoint service. Type *string `json:"type,omitempty" azure:"ro"` }
EndpointServiceResult - Endpoint service.
type EndpointServicesListResult ¶
type EndpointServicesListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of available endpoint services in a region. Value []*EndpointServiceResult `json:"value,omitempty"` }
EndpointServicesListResult - Response for the ListAvailableEndpointServices API service call.
type EndpointType ¶
type EndpointType string
EndpointType - The endpoint type.
const ( EndpointTypeAzureSubnet EndpointType = "AzureSubnet" EndpointTypeAzureVM EndpointType = "AzureVM" EndpointTypeAzureVNet EndpointType = "AzureVNet" EndpointTypeExternalAddress EndpointType = "ExternalAddress" EndpointTypeMMAWorkspaceMachine EndpointType = "MMAWorkspaceMachine" EndpointTypeMMAWorkspaceNetwork EndpointType = "MMAWorkspaceNetwork" )
func PossibleEndpointTypeValues ¶
func PossibleEndpointTypeValues() []EndpointType
PossibleEndpointTypeValues returns the possible values for the EndpointType const type.
type Error ¶
type Error struct { // Error code. Code *string `json:"code,omitempty"` // Error details. Details []*ErrorDetails `json:"details,omitempty"` // Inner error message. InnerError *string `json:"innerError,omitempty"` // Error message. Message *string `json:"message,omitempty"` // Error target. Target *string `json:"target,omitempty"` }
Error - Common error representation.
type ErrorDetails ¶
type ErrorDetails struct { // Error code. Code *string `json:"code,omitempty"` // Error message. Message *string `json:"message,omitempty"` // Error target. Target *string `json:"target,omitempty"` }
ErrorDetails - Common error details representation.
type ErrorResponse ¶
type ErrorResponse struct { // The error details object. Error *ErrorDetails `json:"error,omitempty"` }
ErrorResponse - The error object.
type EvaluatedNetworkSecurityGroup ¶
type EvaluatedNetworkSecurityGroup struct { // Resource ID of nic or subnet to which network security group is applied. AppliedTo *string `json:"appliedTo,omitempty"` // Matched network security rule. MatchedRule *MatchedRule `json:"matchedRule,omitempty"` // Network security group ID. NetworkSecurityGroupID *string `json:"networkSecurityGroupId,omitempty"` // READ-ONLY; List of network security rules evaluation results. RulesEvaluationResult []*SecurityRulesEvaluationResult `json:"rulesEvaluationResult,omitempty" azure:"ro"` }
EvaluatedNetworkSecurityGroup - Results of network security group evaluation.
type EvaluationState ¶
type EvaluationState string
EvaluationState - Connectivity analysis evaluation state.
const ( EvaluationStateCompleted EvaluationState = "Completed" EvaluationStateInProgress EvaluationState = "InProgress" EvaluationStateNotStarted EvaluationState = "NotStarted" )
func PossibleEvaluationStateValues ¶
func PossibleEvaluationStateValues() []EvaluationState
PossibleEvaluationStateValues returns the possible values for the EvaluationState const type.
type ExclusionManagedRule ¶ added in v0.2.0
type ExclusionManagedRule struct { // REQUIRED; Identifier for the managed rule. RuleID *string `json:"ruleId,omitempty"` }
ExclusionManagedRule - Defines a managed rule to use for exclusion.
type ExclusionManagedRuleGroup ¶ added in v0.2.0
type ExclusionManagedRuleGroup struct { // REQUIRED; The managed rule group for exclusion. RuleGroupName *string `json:"ruleGroupName,omitempty"` // List of rules that will be excluded. If none specified, all rules in the group will be excluded. Rules []*ExclusionManagedRule `json:"rules,omitempty"` }
ExclusionManagedRuleGroup - Defines a managed rule group to use for exclusion.
func (ExclusionManagedRuleGroup) MarshalJSON ¶ added in v0.2.0
func (e ExclusionManagedRuleGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExclusionManagedRuleGroup.
type ExclusionManagedRuleSet ¶ added in v0.2.0
type ExclusionManagedRuleSet struct { // REQUIRED; Defines the rule set type to use. RuleSetType *string `json:"ruleSetType,omitempty"` // REQUIRED; Defines the version of the rule set to use. RuleSetVersion *string `json:"ruleSetVersion,omitempty"` // Defines the rule groups to apply to the rule set. RuleGroups []*ExclusionManagedRuleGroup `json:"ruleGroups,omitempty"` }
ExclusionManagedRuleSet - Defines a managed rule set for Exclusions.
func (ExclusionManagedRuleSet) MarshalJSON ¶ added in v0.2.0
func (e ExclusionManagedRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExclusionManagedRuleSet.
type ExplicitProxySettings ¶
type ExplicitProxySettings struct { // When set to true, explicit proxy mode is enabled. EnableExplicitProxy *bool `json:"enableExplicitProxy,omitempty"` // Port number for explicit proxy http protocol, cannot be greater than 64000. HTTPPort *int32 `json:"httpPort,omitempty"` // Port number for explicit proxy https protocol, cannot be greater than 64000. HTTPSPort *int32 `json:"httpsPort,omitempty"` // SAS URL for PAC file. PacFile *string `json:"pacFile,omitempty"` // Port number for firewall to serve PAC file. PacFilePort *int32 `json:"pacFilePort,omitempty"` }
ExplicitProxySettings - Explicit Proxy Settings in Firewall Policy.
type ExpressRouteCircuit ¶
type ExpressRouteCircuit struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the express route circuit. Properties *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"` // The SKU. SKU *ExpressRouteCircuitSKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteCircuit resource.
func (ExpressRouteCircuit) MarshalJSON ¶
func (e ExpressRouteCircuit) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCircuit.
type ExpressRouteCircuitArpTable ¶
type ExpressRouteCircuitArpTable struct { // Entry age in minutes. Age *int32 `json:"age,omitempty"` // The IP address. IPAddress *string `json:"ipAddress,omitempty"` // Interface address. Interface *string `json:"interface,omitempty"` // The MAC address. MacAddress *string `json:"macAddress,omitempty"` }
ExpressRouteCircuitArpTable - The ARP table associated with the ExpressRouteCircuit.
type ExpressRouteCircuitAuthorization ¶
type ExpressRouteCircuitAuthorization struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the express route circuit authorization. Properties *AuthorizationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteCircuitAuthorization - Authorization in an ExpressRouteCircuit resource.
type ExpressRouteCircuitAuthorizationsClient ¶
type ExpressRouteCircuitAuthorizationsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCircuitAuthorizationsClient contains the methods for the ExpressRouteCircuitAuthorizations group. Don't use this type directly, use NewExpressRouteCircuitAuthorizationsClient() instead.
func NewExpressRouteCircuitAuthorizationsClient ¶
func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCircuitAuthorizationsClient, error)
NewExpressRouteCircuitAuthorizationsClient creates a new instance of ExpressRouteCircuitAuthorizationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCircuitAuthorizationsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCircuitAuthorizationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters ExpressRouteCircuitAuthorization, options *ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an authorization in the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. authorizationName - The name of the authorization. authorizationParameters - Parameters supplied to the create or update express route circuit authorization operation. options - ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitAuthorizationCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "circuitName", "authorizatinName", armnetwork.ExpressRouteCircuitAuthorization{ Properties: &armnetwork.AuthorizationPropertiesFormat{}, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitAuthorizationsClient) BeginDelete ¶
func (client *ExpressRouteCircuitAuthorizationsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, options *ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteCircuitAuthorizationsClientDeleteResponse], error)
BeginDelete - Deletes the specified authorization from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. authorizationName - The name of the authorization. options - ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitAuthorizationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "circuitName", "authorizationName", 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 (*ExpressRouteCircuitAuthorizationsClient) Get ¶
func (client *ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, options *ExpressRouteCircuitAuthorizationsClientGetOptions) (ExpressRouteCircuitAuthorizationsClientGetResponse, error)
Get - Gets the specified authorization from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. authorizationName - The name of the authorization. options - ExpressRouteCircuitAuthorizationsClientGetOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitAuthorizationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "circuitName", "authorizationName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitAuthorizationsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCircuitAuthorizationsClient) NewListPager(resourceGroupName string, circuitName string, options *ExpressRouteCircuitAuthorizationsClientListOptions) *runtime.Pager[ExpressRouteCircuitAuthorizationsClientListResponse]
NewListPager - Gets all authorizations in an express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the circuit. options - ExpressRouteCircuitAuthorizationsClientListOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitAuthorizationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "circuitName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitAuthorizationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.BeginCreateOrUpdate method.
type ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitAuthorizationsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.BeginDelete method.
type ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse struct {
ExpressRouteCircuitAuthorization
}
ExpressRouteCircuitAuthorizationsClientCreateOrUpdateResponse contains the response from method ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate.
type ExpressRouteCircuitAuthorizationsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientDeleteResponse struct { }
ExpressRouteCircuitAuthorizationsClientDeleteResponse contains the response from method ExpressRouteCircuitAuthorizationsClient.Delete.
type ExpressRouteCircuitAuthorizationsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientGetOptions struct { }
ExpressRouteCircuitAuthorizationsClientGetOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.Get method.
type ExpressRouteCircuitAuthorizationsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientGetResponse struct {
ExpressRouteCircuitAuthorization
}
ExpressRouteCircuitAuthorizationsClientGetResponse contains the response from method ExpressRouteCircuitAuthorizationsClient.Get.
type ExpressRouteCircuitAuthorizationsClientListOptions ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientListOptions struct { }
ExpressRouteCircuitAuthorizationsClientListOptions contains the optional parameters for the ExpressRouteCircuitAuthorizationsClient.List method.
type ExpressRouteCircuitAuthorizationsClientListResponse ¶ added in v0.3.0
type ExpressRouteCircuitAuthorizationsClientListResponse struct {
AuthorizationListResult
}
ExpressRouteCircuitAuthorizationsClientListResponse contains the response from method ExpressRouteCircuitAuthorizationsClient.List.
type ExpressRouteCircuitConnection ¶
type ExpressRouteCircuitConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the express route circuit connection. Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteCircuitConnection - Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.
type ExpressRouteCircuitConnectionListResult ¶
type ExpressRouteCircuitConnectionListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The global reach connection associated with Private Peering in an ExpressRoute Circuit. Value []*ExpressRouteCircuitConnection `json:"value,omitempty"` }
ExpressRouteCircuitConnectionListResult - Response for ListConnections API service call retrieves all global reach connections that belongs to a Private Peering for an ExpressRouteCircuit.
type ExpressRouteCircuitConnectionPropertiesFormat ¶
type ExpressRouteCircuitConnectionPropertiesFormat struct { // /29 IP address space to carve out Customer addresses for tunnels. AddressPrefix *string `json:"addressPrefix,omitempty"` // The authorization key. AuthorizationKey *string `json:"authorizationKey,omitempty"` // Reference to Express Route Circuit Private Peering Resource of the circuit initiating connection. ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` // IPv6 Address PrefixProperties of the express route circuit connection. IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` // Reference to Express Route Circuit Private Peering Resource of the peered circuit. PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` // READ-ONLY; Express Route Circuit connection state. CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route circuit connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRouteCircuitConnectionPropertiesFormat - Properties of the express route circuit connection.
type ExpressRouteCircuitConnectionsClient ¶
type ExpressRouteCircuitConnectionsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCircuitConnectionsClient contains the methods for the ExpressRouteCircuitConnections group. Don't use this type directly, use NewExpressRouteCircuitConnectionsClient() instead.
func NewExpressRouteCircuitConnectionsClient ¶
func NewExpressRouteCircuitConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCircuitConnectionsClient, error)
NewExpressRouteCircuitConnectionsClient creates a new instance of ExpressRouteCircuitConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCircuitConnectionsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCircuitConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters ExpressRouteCircuitConnection, options *ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Express Route Circuit Connection in the specified express route circuits. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. connectionName - The name of the express route circuit connection. expressRouteCircuitConnectionParameters - Parameters supplied to the create or update express route circuit connection operation. options - ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitConnectionCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitConnectionsClient("subid1", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", armnetwork.ExpressRouteCircuitConnection{ Properties: &armnetwork.ExpressRouteCircuitConnectionPropertiesFormat{ AddressPrefix: to.Ptr("10.0.0.0/29"), AuthorizationKey: to.Ptr("946a1918-b7a2-4917-b43c-8c4cdaee006a"), ExpressRouteCircuitPeering: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering"), }, IPv6CircuitConnectionConfig: &armnetwork.IPv6CircuitConnectionConfig{ AddressPrefix: to.Ptr("aa:bb::/125"), }, PeerExpressRouteCircuitPeering: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitConnectionsClient) BeginDelete ¶
func (client *ExpressRouteCircuitConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, options *ExpressRouteCircuitConnectionsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteCircuitConnectionsClientDeleteResponse], error)
BeginDelete - Deletes the specified Express Route Circuit Connection from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. connectionName - The name of the express route circuit connection. options - ExpressRouteCircuitConnectionsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", 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 (*ExpressRouteCircuitConnectionsClient) Get ¶
func (client *ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, options *ExpressRouteCircuitConnectionsClientGetOptions) (ExpressRouteCircuitConnectionsClientGetResponse, error)
Get - Gets the specified Express Route Circuit Connection from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. connectionName - The name of the express route circuit connection. options - ExpressRouteCircuitConnectionsClientGetOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitConnectionsClient("subid1", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCircuitConnectionsClient) NewListPager(resourceGroupName string, circuitName string, peeringName string, options *ExpressRouteCircuitConnectionsClientListOptions) *runtime.Pager[ExpressRouteCircuitConnectionsClientListResponse]
NewListPager - Gets all global reach connections associated with a private peering in an express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the circuit. peeringName - The name of the peering. options - ExpressRouteCircuitConnectionsClientListOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitConnectionsClient("subid1", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.BeginCreateOrUpdate method.
type ExpressRouteCircuitConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitConnectionsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.BeginDelete method.
type ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse struct {
ExpressRouteCircuitConnection
}
ExpressRouteCircuitConnectionsClientCreateOrUpdateResponse contains the response from method ExpressRouteCircuitConnectionsClient.CreateOrUpdate.
type ExpressRouteCircuitConnectionsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientDeleteResponse struct { }
ExpressRouteCircuitConnectionsClientDeleteResponse contains the response from method ExpressRouteCircuitConnectionsClient.Delete.
type ExpressRouteCircuitConnectionsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientGetOptions struct { }
ExpressRouteCircuitConnectionsClientGetOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.Get method.
type ExpressRouteCircuitConnectionsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientGetResponse struct {
ExpressRouteCircuitConnection
}
ExpressRouteCircuitConnectionsClientGetResponse contains the response from method ExpressRouteCircuitConnectionsClient.Get.
type ExpressRouteCircuitConnectionsClientListOptions ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientListOptions struct { }
ExpressRouteCircuitConnectionsClientListOptions contains the optional parameters for the ExpressRouteCircuitConnectionsClient.List method.
type ExpressRouteCircuitConnectionsClientListResponse ¶ added in v0.3.0
type ExpressRouteCircuitConnectionsClientListResponse struct {
ExpressRouteCircuitConnectionListResult
}
ExpressRouteCircuitConnectionsClientListResponse contains the response from method ExpressRouteCircuitConnectionsClient.List.
type ExpressRouteCircuitListResult ¶
type ExpressRouteCircuitListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of ExpressRouteCircuits in a resource group. Value []*ExpressRouteCircuit `json:"value,omitempty"` }
ExpressRouteCircuitListResult - Response for ListExpressRouteCircuit API service call.
type ExpressRouteCircuitPeering ¶
type ExpressRouteCircuitPeering struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the express route circuit peering. Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteCircuitPeering - Peering in an ExpressRouteCircuit resource.
type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState ¶
type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string
ExpressRouteCircuitPeeringAdvertisedPublicPrefixState - The advertised public prefix state of the Peering resource.
const ( ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" )
func PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues ¶
func PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues() []ExpressRouteCircuitPeeringAdvertisedPublicPrefixState
PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues returns the possible values for the ExpressRouteCircuitPeeringAdvertisedPublicPrefixState const type.
type ExpressRouteCircuitPeeringConfig ¶
type ExpressRouteCircuitPeeringConfig struct { // The communities of bgp peering. Specified for microsoft peering. AdvertisedCommunities []*string `json:"advertisedCommunities,omitempty"` // The reference to AdvertisedPublicPrefixes. AdvertisedPublicPrefixes []*string `json:"advertisedPublicPrefixes,omitempty"` // The CustomerASN of the peering. CustomerASN *int32 `json:"customerASN,omitempty"` // The legacy mode of the peering. LegacyMode *int32 `json:"legacyMode,omitempty"` // The RoutingRegistryName of the configuration. RoutingRegistryName *string `json:"routingRegistryName,omitempty"` // READ-ONLY; The advertised public prefix state of the Peering resource. AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty" azure:"ro"` }
ExpressRouteCircuitPeeringConfig - Specifies the peering configuration.
func (ExpressRouteCircuitPeeringConfig) MarshalJSON ¶
func (e ExpressRouteCircuitPeeringConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCircuitPeeringConfig.
type ExpressRouteCircuitPeeringID ¶
type ExpressRouteCircuitPeeringID struct { // The ID of the ExpressRoute circuit peering. ID *string `json:"id,omitempty"` }
ExpressRouteCircuitPeeringID - ExpressRoute circuit peering identifier.
type ExpressRouteCircuitPeeringListResult ¶
type ExpressRouteCircuitPeeringListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The peerings in an express route circuit. Value []*ExpressRouteCircuitPeering `json:"value,omitempty"` }
ExpressRouteCircuitPeeringListResult - Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCircuit.
type ExpressRouteCircuitPeeringPropertiesFormat ¶
type ExpressRouteCircuitPeeringPropertiesFormat struct { // The Azure ASN. AzureASN *int32 `json:"azureASN,omitempty"` // The list of circuit connections associated with Azure Private Peering for this circuit. Connections []*ExpressRouteCircuitConnection `json:"connections,omitempty"` // The ExpressRoute connection. ExpressRouteConnection *ExpressRouteConnectionID `json:"expressRouteConnection,omitempty"` // The GatewayManager Etag. GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` // The IPv6 peering configuration. IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` // The Microsoft peering configuration. MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` // The peer ASN. PeerASN *int64 `json:"peerASN,omitempty"` // The peering type. PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` // The primary port. PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` // The primary address prefix. PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` // The reference to the RouteFilter resource. RouteFilter *SubResource `json:"routeFilter,omitempty"` // The secondary port. SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` // The secondary address prefix. SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // The peering state. State *ExpressRoutePeeringState `json:"state,omitempty"` // The peering stats of express route circuit. Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` // The VLAN ID. VlanID *int32 `json:"vlanId,omitempty"` // READ-ONLY; Who was the last to modify the peering. LastModifiedBy *string `json:"lastModifiedBy,omitempty" azure:"ro"` // READ-ONLY; The list of peered circuit connections associated with Azure Private Peering for this circuit. PeeredConnections []*PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route circuit peering resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRouteCircuitPeeringPropertiesFormat - Properties of the express route circuit peering.
func (ExpressRouteCircuitPeeringPropertiesFormat) MarshalJSON ¶
func (e ExpressRouteCircuitPeeringPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCircuitPeeringPropertiesFormat.
type ExpressRouteCircuitPeeringState ¶
type ExpressRouteCircuitPeeringState string
ExpressRouteCircuitPeeringState - The state of peering.
const ( ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" )
func PossibleExpressRouteCircuitPeeringStateValues ¶
func PossibleExpressRouteCircuitPeeringStateValues() []ExpressRouteCircuitPeeringState
PossibleExpressRouteCircuitPeeringStateValues returns the possible values for the ExpressRouteCircuitPeeringState const type.
type ExpressRouteCircuitPeeringsClient ¶
type ExpressRouteCircuitPeeringsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCircuitPeeringsClient contains the methods for the ExpressRouteCircuitPeerings group. Don't use this type directly, use NewExpressRouteCircuitPeeringsClient() instead.
func NewExpressRouteCircuitPeeringsClient ¶
func NewExpressRouteCircuitPeeringsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCircuitPeeringsClient, error)
NewExpressRouteCircuitPeeringsClient creates a new instance of ExpressRouteCircuitPeeringsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCircuitPeeringsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCircuitPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering, options *ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a peering in the specified express route circuits. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. peeringParameters - Parameters supplied to the create or update express route circuit peering operation. options - ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitPeeringCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "circuitName", "AzurePrivatePeering", armnetwork.ExpressRouteCircuitPeering{ Properties: &armnetwork.ExpressRouteCircuitPeeringPropertiesFormat{ PeerASN: to.Ptr[int64](200), PrimaryPeerAddressPrefix: to.Ptr("192.168.16.252/30"), SecondaryPeerAddressPrefix: to.Ptr("192.168.18.252/30"), VlanID: to.Ptr[int32](200), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitPeeringsClient) BeginDelete ¶
func (client *ExpressRouteCircuitPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, options *ExpressRouteCircuitPeeringsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteCircuitPeeringsClientDeleteResponse], error)
BeginDelete - Deletes the specified peering from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. options - ExpressRouteCircuitPeeringsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitPeeringDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "circuitName", "peeringName", 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 (*ExpressRouteCircuitPeeringsClient) Get ¶
func (client *ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, options *ExpressRouteCircuitPeeringsClientGetOptions) (ExpressRouteCircuitPeeringsClientGetResponse, error)
Get - Gets the specified peering for the express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. options - ExpressRouteCircuitPeeringsClientGetOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitPeeringGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "circuitName", "MicrosoftPeering", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitPeeringsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCircuitPeeringsClient) NewListPager(resourceGroupName string, circuitName string, options *ExpressRouteCircuitPeeringsClientListOptions) *runtime.Pager[ExpressRouteCircuitPeeringsClientListResponse]
NewListPager - Gets all peerings in a specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. options - ExpressRouteCircuitPeeringsClientListOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitPeeringList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "circuitName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.BeginCreateOrUpdate method.
type ExpressRouteCircuitPeeringsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitPeeringsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.BeginDelete method.
type ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse struct {
ExpressRouteCircuitPeering
}
ExpressRouteCircuitPeeringsClientCreateOrUpdateResponse contains the response from method ExpressRouteCircuitPeeringsClient.CreateOrUpdate.
type ExpressRouteCircuitPeeringsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientDeleteResponse struct { }
ExpressRouteCircuitPeeringsClientDeleteResponse contains the response from method ExpressRouteCircuitPeeringsClient.Delete.
type ExpressRouteCircuitPeeringsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientGetOptions struct { }
ExpressRouteCircuitPeeringsClientGetOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.Get method.
type ExpressRouteCircuitPeeringsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientGetResponse struct {
ExpressRouteCircuitPeering
}
ExpressRouteCircuitPeeringsClientGetResponse contains the response from method ExpressRouteCircuitPeeringsClient.Get.
type ExpressRouteCircuitPeeringsClientListOptions ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientListOptions struct { }
ExpressRouteCircuitPeeringsClientListOptions contains the optional parameters for the ExpressRouteCircuitPeeringsClient.List method.
type ExpressRouteCircuitPeeringsClientListResponse ¶ added in v0.3.0
type ExpressRouteCircuitPeeringsClientListResponse struct {
ExpressRouteCircuitPeeringListResult
}
ExpressRouteCircuitPeeringsClientListResponse contains the response from method ExpressRouteCircuitPeeringsClient.List.
type ExpressRouteCircuitPropertiesFormat ¶
type ExpressRouteCircuitPropertiesFormat struct { // Allow classic operations. AllowClassicOperations *bool `json:"allowClassicOperations,omitempty"` // The authorizationKey. AuthorizationKey *string `json:"authorizationKey,omitempty"` // The list of authorizations. Authorizations []*ExpressRouteCircuitAuthorization `json:"authorizations,omitempty"` // The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource. BandwidthInGbps *float32 `json:"bandwidthInGbps,omitempty"` // The CircuitProvisioningState state of the resource. CircuitProvisioningState *string `json:"circuitProvisioningState,omitempty"` // The reference to the ExpressRoutePort resource when the circuit is provisioned on an ExpressRoutePort resource. ExpressRoutePort *SubResource `json:"expressRoutePort,omitempty"` // The GatewayManager Etag. GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` // Flag denoting global reach status. GlobalReachEnabled *bool `json:"globalReachEnabled,omitempty"` // The list of peerings. Peerings []*ExpressRouteCircuitPeering `json:"peerings,omitempty"` // The ServiceKey. ServiceKey *string `json:"serviceKey,omitempty"` // The ServiceProviderNotes. ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` // The ServiceProviderProperties. ServiceProviderProperties *ExpressRouteCircuitServiceProviderProperties `json:"serviceProviderProperties,omitempty"` // The ServiceProviderProvisioningState state of the resource. ServiceProviderProvisioningState *ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` // READ-ONLY; The provisioning state of the express route circuit resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The identifier of the circuit traffic. Outer tag for QinQ encapsulation. Stag *int32 `json:"stag,omitempty" azure:"ro"` }
ExpressRouteCircuitPropertiesFormat - Properties of ExpressRouteCircuit.
func (ExpressRouteCircuitPropertiesFormat) MarshalJSON ¶
func (e ExpressRouteCircuitPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCircuitPropertiesFormat.
type ExpressRouteCircuitReference ¶
type ExpressRouteCircuitReference struct { // Corresponding Express Route Circuit Id. ID *string `json:"id,omitempty"` }
ExpressRouteCircuitReference - Reference to an express route circuit.
type ExpressRouteCircuitRoutesTable ¶
type ExpressRouteCircuitRoutesTable struct { // Local preference value as set with the set local-preference route-map configuration command. LocPrf *string `json:"locPrf,omitempty"` // IP address of a network entity. Network *string `json:"network,omitempty"` // NextHop address. NextHop *string `json:"nextHop,omitempty"` // Autonomous system paths to the destination network. Path *string `json:"path,omitempty"` // Route Weight. Weight *int32 `json:"weight,omitempty"` }
ExpressRouteCircuitRoutesTable - The routes table associated with the ExpressRouteCircuit.
type ExpressRouteCircuitRoutesTableSummary ¶
type ExpressRouteCircuitRoutesTableSummary struct { // Autonomous system number. As *int32 `json:"as,omitempty"` // IP address of the neighbor. Neighbor *string `json:"neighbor,omitempty"` // Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. StatePfxRcd *string `json:"statePfxRcd,omitempty"` // The length of time that the BGP session has been in the Established state, or the current status if not in the Established // state. UpDown *string `json:"upDown,omitempty"` // BGP version number spoken to the neighbor. V *int32 `json:"v,omitempty"` }
ExpressRouteCircuitRoutesTableSummary - The routes table associated with the ExpressRouteCircuit.
type ExpressRouteCircuitSKU ¶
type ExpressRouteCircuitSKU struct { // The family of the SKU. Family *ExpressRouteCircuitSKUFamily `json:"family,omitempty"` // The name of the SKU. Name *string `json:"name,omitempty"` // The tier of the SKU. Tier *ExpressRouteCircuitSKUTier `json:"tier,omitempty"` }
ExpressRouteCircuitSKU - Contains SKU in an ExpressRouteCircuit.
type ExpressRouteCircuitSKUFamily ¶
type ExpressRouteCircuitSKUFamily string
ExpressRouteCircuitSKUFamily - The family of the SKU.
const ( ExpressRouteCircuitSKUFamilyMeteredData ExpressRouteCircuitSKUFamily = "MeteredData" ExpressRouteCircuitSKUFamilyUnlimitedData ExpressRouteCircuitSKUFamily = "UnlimitedData" )
func PossibleExpressRouteCircuitSKUFamilyValues ¶
func PossibleExpressRouteCircuitSKUFamilyValues() []ExpressRouteCircuitSKUFamily
PossibleExpressRouteCircuitSKUFamilyValues returns the possible values for the ExpressRouteCircuitSKUFamily const type.
type ExpressRouteCircuitSKUTier ¶
type ExpressRouteCircuitSKUTier string
ExpressRouteCircuitSKUTier - The tier of the SKU.
const ( ExpressRouteCircuitSKUTierBasic ExpressRouteCircuitSKUTier = "Basic" ExpressRouteCircuitSKUTierLocal ExpressRouteCircuitSKUTier = "Local" ExpressRouteCircuitSKUTierPremium ExpressRouteCircuitSKUTier = "Premium" ExpressRouteCircuitSKUTierStandard ExpressRouteCircuitSKUTier = "Standard" )
func PossibleExpressRouteCircuitSKUTierValues ¶
func PossibleExpressRouteCircuitSKUTierValues() []ExpressRouteCircuitSKUTier
PossibleExpressRouteCircuitSKUTierValues returns the possible values for the ExpressRouteCircuitSKUTier const type.
type ExpressRouteCircuitServiceProviderProperties ¶
type ExpressRouteCircuitServiceProviderProperties struct { // The BandwidthInMbps. BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"` // The peering location. PeeringLocation *string `json:"peeringLocation,omitempty"` // The serviceProviderName. ServiceProviderName *string `json:"serviceProviderName,omitempty"` }
ExpressRouteCircuitServiceProviderProperties - Contains ServiceProviderProperties in an ExpressRouteCircuit.
type ExpressRouteCircuitStats ¶
type ExpressRouteCircuitStats struct { // The Primary BytesIn of the peering. PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` // The primary BytesOut of the peering. PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` // The secondary BytesIn of the peering. SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` // The secondary BytesOut of the peering. SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` }
ExpressRouteCircuitStats - Contains stats associated with the peering.
type ExpressRouteCircuitsArpTableListResult ¶
type ExpressRouteCircuitsArpTableListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of the ARP tables. Value []*ExpressRouteCircuitArpTable `json:"value,omitempty"` }
ExpressRouteCircuitsArpTableListResult - Response for ListArpTable associated with the Express Route Circuits API.
type ExpressRouteCircuitsClient ¶
type ExpressRouteCircuitsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCircuitsClient contains the methods for the ExpressRouteCircuits group. Don't use this type directly, use NewExpressRouteCircuitsClient() instead.
func NewExpressRouteCircuitsClient ¶
func NewExpressRouteCircuitsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCircuitsClient, error)
NewExpressRouteCircuitsClient creates a new instance of ExpressRouteCircuitsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCircuitsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCircuitsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, parameters ExpressRouteCircuit, options *ExpressRouteCircuitsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCircuitsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the circuit. parameters - Parameters supplied to the create or update express route circuit operation. options - ExpressRouteCircuitsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "circuitName", armnetwork.ExpressRouteCircuit{ Location: to.Ptr("Brazil South"), Properties: &armnetwork.ExpressRouteCircuitPropertiesFormat{ AllowClassicOperations: to.Ptr(false), Authorizations: []*armnetwork.ExpressRouteCircuitAuthorization{}, Peerings: []*armnetwork.ExpressRouteCircuitPeering{}, ServiceProviderProperties: &armnetwork.ExpressRouteCircuitServiceProviderProperties{ BandwidthInMbps: to.Ptr[int32](200), PeeringLocation: to.Ptr("Silicon Valley"), ServiceProviderName: to.Ptr("Equinix"), }, }, SKU: &armnetwork.ExpressRouteCircuitSKU{ Name: to.Ptr("Standard_MeteredData"), Family: to.Ptr(armnetwork.ExpressRouteCircuitSKUFamilyMeteredData), Tier: to.Ptr(armnetwork.ExpressRouteCircuitSKUTierStandard), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) BeginDelete ¶
func (client *ExpressRouteCircuitsClient) BeginDelete(ctx context.Context, resourceGroupName string, circuitName string, options *ExpressRouteCircuitsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteCircuitsClientDeleteResponse], error)
BeginDelete - Deletes the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. options - ExpressRouteCircuitsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "circuitName", 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 (*ExpressRouteCircuitsClient) BeginListArpTable ¶
func (client *ExpressRouteCircuitsClient) BeginListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string, options *ExpressRouteCircuitsClientBeginListArpTableOptions) (*runtime.Poller[ExpressRouteCircuitsClientListArpTableResponse], error)
BeginListArpTable - Gets the currently advertised ARP table associated with the express route circuit in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCircuitsClientBeginListArpTableOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListArpTable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitARPTableList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListArpTable(ctx, "rg1", "circuitName", "peeringName", "devicePath", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) BeginListRoutesTable ¶
func (client *ExpressRouteCircuitsClient) BeginListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string, options *ExpressRouteCircuitsClientBeginListRoutesTableOptions) (*runtime.Poller[ExpressRouteCircuitsClientListRoutesTableResponse], error)
BeginListRoutesTable - Gets the currently advertised routes table associated with the express route circuit in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCircuitsClientBeginListRoutesTableOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListRoutesTable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitRouteTableList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListRoutesTable(ctx, "rg1", "circuitName", "peeringName", "devicePath", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) BeginListRoutesTableSummary ¶
func (client *ExpressRouteCircuitsClient) BeginListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string, options *ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions) (*runtime.Poller[ExpressRouteCircuitsClientListRoutesTableSummaryResponse], error)
BeginListRoutesTableSummary - Gets the currently advertised routes table summary associated with the express route circuit in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListRoutesTableSummary method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitRouteTableSummaryList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListRoutesTableSummary(ctx, "rg1", "circuitName", "peeringName", "devicePath", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) Get ¶
func (client *ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, options *ExpressRouteCircuitsClientGetOptions) (ExpressRouteCircuitsClientGetResponse, error)
Get - Gets information about the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of express route circuit. options - ExpressRouteCircuitsClientGetOptions contains the optional parameters for the ExpressRouteCircuitsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "circuitName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) GetPeeringStats ¶
func (client *ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, options *ExpressRouteCircuitsClientGetPeeringStatsOptions) (ExpressRouteCircuitsClientGetPeeringStatsResponse, error)
GetPeeringStats - Gets all stats from an express route circuit in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. options - ExpressRouteCircuitsClientGetPeeringStatsOptions contains the optional parameters for the ExpressRouteCircuitsClient.GetPeeringStats method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitPeeringStats.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetPeeringStats(ctx, "rg1", "circuitName", "peeringName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) GetStats ¶
func (client *ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceGroupName string, circuitName string, options *ExpressRouteCircuitsClientGetStatsOptions) (ExpressRouteCircuitsClientGetStatsResponse, error)
GetStats - Gets all the stats from an express route circuit in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. options - ExpressRouteCircuitsClientGetStatsOptions contains the optional parameters for the ExpressRouteCircuitsClient.GetStats method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitStats.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetStats(ctx, "rg1", "circuitName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCircuitsClient) NewListAllPager ¶ added in v0.5.0
func (client *ExpressRouteCircuitsClient) NewListAllPager(options *ExpressRouteCircuitsClientListAllOptions) *runtime.Pager[ExpressRouteCircuitsClientListAllResponse]
NewListAllPager - Gets all the express route circuits in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRouteCircuitsClientListAllOptions contains the optional parameters for the ExpressRouteCircuitsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRouteCircuitsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCircuitsClient) NewListPager(resourceGroupName string, options *ExpressRouteCircuitsClientListOptions) *runtime.Pager[ExpressRouteCircuitsClientListResponse]
NewListPager - Gets all the express route circuits in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ExpressRouteCircuitsClientListOptions contains the optional parameters for the ExpressRouteCircuitsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRouteCircuitsClient) UpdateTags ¶
func (client *ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourceGroupName string, circuitName string, parameters TagsObject, options *ExpressRouteCircuitsClientUpdateTagsOptions) (ExpressRouteCircuitsClientUpdateTagsResponse, error)
UpdateTags - Updates an express route circuit tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the circuit. parameters - Parameters supplied to update express route circuit tags. options - ExpressRouteCircuitsClientUpdateTagsOptions contains the optional parameters for the ExpressRouteCircuitsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCircuitUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCircuitsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "ertest", "er1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExpressRouteCircuitsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginCreateOrUpdate method.
type ExpressRouteCircuitsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginDelete method.
type ExpressRouteCircuitsClientBeginListArpTableOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientBeginListArpTableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitsClientBeginListArpTableOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListArpTable method.
type ExpressRouteCircuitsClientBeginListRoutesTableOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientBeginListRoutesTableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitsClientBeginListRoutesTableOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListRoutesTable method.
type ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCircuitsClientBeginListRoutesTableSummaryOptions contains the optional parameters for the ExpressRouteCircuitsClient.BeginListRoutesTableSummary method.
type ExpressRouteCircuitsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientCreateOrUpdateResponse struct {
ExpressRouteCircuit
}
ExpressRouteCircuitsClientCreateOrUpdateResponse contains the response from method ExpressRouteCircuitsClient.CreateOrUpdate.
type ExpressRouteCircuitsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientDeleteResponse struct { }
ExpressRouteCircuitsClientDeleteResponse contains the response from method ExpressRouteCircuitsClient.Delete.
type ExpressRouteCircuitsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetOptions struct { }
ExpressRouteCircuitsClientGetOptions contains the optional parameters for the ExpressRouteCircuitsClient.Get method.
type ExpressRouteCircuitsClientGetPeeringStatsOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetPeeringStatsOptions struct { }
ExpressRouteCircuitsClientGetPeeringStatsOptions contains the optional parameters for the ExpressRouteCircuitsClient.GetPeeringStats method.
type ExpressRouteCircuitsClientGetPeeringStatsResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetPeeringStatsResponse struct {
ExpressRouteCircuitStats
}
ExpressRouteCircuitsClientGetPeeringStatsResponse contains the response from method ExpressRouteCircuitsClient.GetPeeringStats.
type ExpressRouteCircuitsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetResponse struct {
ExpressRouteCircuit
}
ExpressRouteCircuitsClientGetResponse contains the response from method ExpressRouteCircuitsClient.Get.
type ExpressRouteCircuitsClientGetStatsOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetStatsOptions struct { }
ExpressRouteCircuitsClientGetStatsOptions contains the optional parameters for the ExpressRouteCircuitsClient.GetStats method.
type ExpressRouteCircuitsClientGetStatsResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientGetStatsResponse struct {
ExpressRouteCircuitStats
}
ExpressRouteCircuitsClientGetStatsResponse contains the response from method ExpressRouteCircuitsClient.GetStats.
type ExpressRouteCircuitsClientListAllOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientListAllOptions struct { }
ExpressRouteCircuitsClientListAllOptions contains the optional parameters for the ExpressRouteCircuitsClient.ListAll method.
type ExpressRouteCircuitsClientListAllResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientListAllResponse struct {
ExpressRouteCircuitListResult
}
ExpressRouteCircuitsClientListAllResponse contains the response from method ExpressRouteCircuitsClient.ListAll.
type ExpressRouteCircuitsClientListArpTableResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientListArpTableResponse struct {
ExpressRouteCircuitsArpTableListResult
}
ExpressRouteCircuitsClientListArpTableResponse contains the response from method ExpressRouteCircuitsClient.ListArpTable.
type ExpressRouteCircuitsClientListOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientListOptions struct { }
ExpressRouteCircuitsClientListOptions contains the optional parameters for the ExpressRouteCircuitsClient.List method.
type ExpressRouteCircuitsClientListResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientListResponse struct {
ExpressRouteCircuitListResult
}
ExpressRouteCircuitsClientListResponse contains the response from method ExpressRouteCircuitsClient.List.
type ExpressRouteCircuitsClientListRoutesTableResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientListRoutesTableResponse struct {
ExpressRouteCircuitsRoutesTableListResult
}
ExpressRouteCircuitsClientListRoutesTableResponse contains the response from method ExpressRouteCircuitsClient.ListRoutesTable.
type ExpressRouteCircuitsClientListRoutesTableSummaryResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientListRoutesTableSummaryResponse struct {
ExpressRouteCircuitsRoutesTableSummaryListResult
}
ExpressRouteCircuitsClientListRoutesTableSummaryResponse contains the response from method ExpressRouteCircuitsClient.ListRoutesTableSummary.
type ExpressRouteCircuitsClientUpdateTagsOptions ¶ added in v0.3.0
type ExpressRouteCircuitsClientUpdateTagsOptions struct { }
ExpressRouteCircuitsClientUpdateTagsOptions contains the optional parameters for the ExpressRouteCircuitsClient.UpdateTags method.
type ExpressRouteCircuitsClientUpdateTagsResponse ¶ added in v0.3.0
type ExpressRouteCircuitsClientUpdateTagsResponse struct {
ExpressRouteCircuit
}
ExpressRouteCircuitsClientUpdateTagsResponse contains the response from method ExpressRouteCircuitsClient.UpdateTags.
type ExpressRouteCircuitsRoutesTableListResult ¶
type ExpressRouteCircuitsRoutesTableListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of routes table. Value []*ExpressRouteCircuitRoutesTable `json:"value,omitempty"` }
ExpressRouteCircuitsRoutesTableListResult - Response for ListRoutesTable associated with the Express Route Circuits API.
type ExpressRouteCircuitsRoutesTableSummaryListResult ¶
type ExpressRouteCircuitsRoutesTableSummaryListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of the routes table. Value []*ExpressRouteCircuitRoutesTableSummary `json:"value,omitempty"` }
ExpressRouteCircuitsRoutesTableSummaryListResult - Response for ListRoutesTable associated with the Express Route Circuits API.
type ExpressRouteConnection ¶
type ExpressRouteConnection struct { // REQUIRED; The name of the resource. Name *string `json:"name,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Properties of the express route connection. Properties *ExpressRouteConnectionProperties `json:"properties,omitempty"` }
ExpressRouteConnection resource.
type ExpressRouteConnectionID ¶
type ExpressRouteConnectionID struct { // READ-ONLY; The ID of the ExpressRouteConnection. ID *string `json:"id,omitempty" azure:"ro"` }
ExpressRouteConnectionID - The ID of the ExpressRouteConnection.
type ExpressRouteConnectionList ¶
type ExpressRouteConnectionList struct { // The list of ExpressRoute connections. Value []*ExpressRouteConnection `json:"value,omitempty"` }
ExpressRouteConnectionList - ExpressRouteConnection list.
type ExpressRouteConnectionProperties ¶
type ExpressRouteConnectionProperties struct { // REQUIRED; The ExpressRoute circuit peering. ExpressRouteCircuitPeering *ExpressRouteCircuitPeeringID `json:"expressRouteCircuitPeering,omitempty"` // Authorization key to establish the connection. AuthorizationKey *string `json:"authorizationKey,omitempty"` // Enable internet security. EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` // Enable FastPath to vWan Firewall hub. ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` // The Routing Configuration indicating the associated and propagated route tables on this connection. RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` // The routing weight associated to the connection. RoutingWeight *int32 `json:"routingWeight,omitempty"` // READ-ONLY; The provisioning state of the express route connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRouteConnectionProperties - Properties of the ExpressRouteConnection subresource.
type ExpressRouteConnectionsClient ¶
type ExpressRouteConnectionsClient struct {
// contains filtered or unexported fields
}
ExpressRouteConnectionsClient contains the methods for the ExpressRouteConnections group. Don't use this type directly, use NewExpressRouteConnectionsClient() instead.
func NewExpressRouteConnectionsClient ¶
func NewExpressRouteConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteConnectionsClient, error)
NewExpressRouteConnectionsClient creates a new instance of ExpressRouteConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteConnectionsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters ExpressRouteConnection, options *ExpressRouteConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. connectionName - The name of the connection subresource. putExpressRouteConnectionParameters - Parameters required in an ExpressRouteConnection PUT operation. options - ExpressRouteConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteConnectionCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroupName", "gateway-2", "connectionName", armnetwork.ExpressRouteConnection{ ID: to.Ptr("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName"), Name: to.Ptr("connectionName"), Properties: &armnetwork.ExpressRouteConnectionProperties{ AuthorizationKey: to.Ptr("authorizationKey"), ExpressRouteCircuitPeering: &armnetwork.ExpressRouteCircuitPeeringID{ ID: to.Ptr("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"), }, RoutingWeight: to.Ptr[int32](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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteConnectionsClient) BeginDelete ¶
func (client *ExpressRouteConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, options *ExpressRouteConnectionsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteConnectionsClientDeleteResponse], error)
BeginDelete - Deletes a connection to a ExpressRoute circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. connectionName - The name of the connection subresource. options - ExpressRouteConnectionsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroupName", "expressRouteGatewayName", "connectionName", 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 (*ExpressRouteConnectionsClient) Get ¶
func (client *ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, options *ExpressRouteConnectionsClientGetOptions) (ExpressRouteConnectionsClientGetResponse, error)
Get - Gets the specified ExpressRouteConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. connectionName - The name of the ExpressRoute connection. options - ExpressRouteConnectionsClientGetOptions contains the optional parameters for the ExpressRouteConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resourceGroupName", "expressRouteGatewayName", "connectionName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteConnectionsClient) List ¶
func (client *ExpressRouteConnectionsClient) List(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, options *ExpressRouteConnectionsClientListOptions) (ExpressRouteConnectionsClientListResponse, error)
List - Lists ExpressRouteConnections. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. options - ExpressRouteConnectionsClientListOptions contains the optional parameters for the ExpressRouteConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "resourceGroupName", "expressRouteGatewayName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExpressRouteConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteConnectionsClient.BeginCreateOrUpdate method.
type ExpressRouteConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteConnectionsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteConnectionsClient.BeginDelete method.
type ExpressRouteConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteConnectionsClientCreateOrUpdateResponse struct {
ExpressRouteConnection
}
ExpressRouteConnectionsClientCreateOrUpdateResponse contains the response from method ExpressRouteConnectionsClient.CreateOrUpdate.
type ExpressRouteConnectionsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteConnectionsClientDeleteResponse struct { }
ExpressRouteConnectionsClientDeleteResponse contains the response from method ExpressRouteConnectionsClient.Delete.
type ExpressRouteConnectionsClientGetOptions ¶ added in v0.3.0
type ExpressRouteConnectionsClientGetOptions struct { }
ExpressRouteConnectionsClientGetOptions contains the optional parameters for the ExpressRouteConnectionsClient.Get method.
type ExpressRouteConnectionsClientGetResponse ¶ added in v0.3.0
type ExpressRouteConnectionsClientGetResponse struct {
ExpressRouteConnection
}
ExpressRouteConnectionsClientGetResponse contains the response from method ExpressRouteConnectionsClient.Get.
type ExpressRouteConnectionsClientListOptions ¶ added in v0.3.0
type ExpressRouteConnectionsClientListOptions struct { }
ExpressRouteConnectionsClientListOptions contains the optional parameters for the ExpressRouteConnectionsClient.List method.
type ExpressRouteConnectionsClientListResponse ¶ added in v0.3.0
type ExpressRouteConnectionsClientListResponse struct {
ExpressRouteConnectionList
}
ExpressRouteConnectionsClientListResponse contains the response from method ExpressRouteConnectionsClient.List.
type ExpressRouteCrossConnection ¶
type ExpressRouteCrossConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the express route cross connection. Properties *ExpressRouteCrossConnectionProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteCrossConnection resource.
func (ExpressRouteCrossConnection) MarshalJSON ¶
func (e ExpressRouteCrossConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCrossConnection.
type ExpressRouteCrossConnectionListResult ¶
type ExpressRouteCrossConnectionListResult struct { // A list of ExpressRouteCrossConnection resources. Value []*ExpressRouteCrossConnection `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionListResult - Response for ListExpressRouteCrossConnection API service call.
type ExpressRouteCrossConnectionPeering ¶
type ExpressRouteCrossConnectionPeering struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the express route cross connection peering. Properties *ExpressRouteCrossConnectionPeeringProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionPeering - Peering in an ExpressRoute Cross Connection resource.
type ExpressRouteCrossConnectionPeeringList ¶
type ExpressRouteCrossConnectionPeeringList struct { // The peerings in an express route cross connection. Value []*ExpressRouteCrossConnectionPeering `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionPeeringList - Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCrossConnection.
type ExpressRouteCrossConnectionPeeringProperties ¶
type ExpressRouteCrossConnectionPeeringProperties struct { // The GatewayManager Etag. GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` // The IPv6 peering configuration. IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` // The Microsoft peering configuration. MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` // The peer ASN. PeerASN *int64 `json:"peerASN,omitempty"` // The peering type. PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` // The primary address prefix. PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` // The secondary address prefix. SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // The peering state. State *ExpressRoutePeeringState `json:"state,omitempty"` // The VLAN ID. VlanID *int32 `json:"vlanId,omitempty"` // READ-ONLY; The Azure ASN. AzureASN *int32 `json:"azureASN,omitempty" azure:"ro"` // READ-ONLY; Who was the last to modify the peering. LastModifiedBy *string `json:"lastModifiedBy,omitempty" azure:"ro"` // READ-ONLY; The primary port. PrimaryAzurePort *string `json:"primaryAzurePort,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route cross connection peering resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The secondary port. SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionPeeringProperties - Properties of express route cross connection peering.
type ExpressRouteCrossConnectionPeeringsClient ¶
type ExpressRouteCrossConnectionPeeringsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCrossConnectionPeeringsClient contains the methods for the ExpressRouteCrossConnectionPeerings group. Don't use this type directly, use NewExpressRouteCrossConnectionPeeringsClient() instead.
func NewExpressRouteCrossConnectionPeeringsClient ¶
func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCrossConnectionPeeringsClient, error)
NewExpressRouteCrossConnectionPeeringsClient creates a new instance of ExpressRouteCrossConnectionPeeringsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCrossConnectionPeeringsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCrossConnectionPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters ExpressRouteCrossConnectionPeering, options *ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCrossConnectionPeeringsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a peering in the specified ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. peeringParameters - Parameters supplied to the create or update ExpressRouteCrossConnection peering operation. options - ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", armnetwork.ExpressRouteCrossConnectionPeering{ Properties: &armnetwork.ExpressRouteCrossConnectionPeeringProperties{ IPv6PeeringConfig: &armnetwork.IPv6ExpressRouteCircuitPeeringConfig{ PrimaryPeerAddressPrefix: to.Ptr("3FFE:FFFF:0:CD30::/126"), SecondaryPeerAddressPrefix: to.Ptr("3FFE:FFFF:0:CD30::4/126"), }, PeerASN: to.Ptr[int64](200), PrimaryPeerAddressPrefix: to.Ptr("192.168.16.252/30"), SecondaryPeerAddressPrefix: to.Ptr("192.168.18.252/30"), VlanID: to.Ptr[int32](200), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionPeeringsClient) BeginDelete ¶
func (client *ExpressRouteCrossConnectionPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, options *ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteCrossConnectionPeeringsClientDeleteResponse], error)
BeginDelete - Deletes the specified peering from the ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. options - ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", 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 (*ExpressRouteCrossConnectionPeeringsClient) Get ¶
func (client *ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, options *ExpressRouteCrossConnectionPeeringsClientGetOptions) (ExpressRouteCrossConnectionPeeringsClientGetResponse, error)
Get - Gets the specified peering for the ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. options - ExpressRouteCrossConnectionPeeringsClientGetOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionPeeringsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCrossConnectionPeeringsClient) NewListPager(resourceGroupName string, crossConnectionName string, options *ExpressRouteCrossConnectionPeeringsClientListOptions) *runtime.Pager[ExpressRouteCrossConnectionPeeringsClientListResponse]
NewListPager - Gets all peerings in a specified ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. options - ExpressRouteCrossConnectionPeeringsClientListOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("CrossConnection-SiliconValley", "<circuitServiceKey>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.BeginCreateOrUpdate method.
type ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionPeeringsClientBeginDeleteOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.BeginDelete method.
type ExpressRouteCrossConnectionPeeringsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientCreateOrUpdateResponse struct {
ExpressRouteCrossConnectionPeering
}
ExpressRouteCrossConnectionPeeringsClientCreateOrUpdateResponse contains the response from method ExpressRouteCrossConnectionPeeringsClient.CreateOrUpdate.
type ExpressRouteCrossConnectionPeeringsClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientDeleteResponse struct { }
ExpressRouteCrossConnectionPeeringsClientDeleteResponse contains the response from method ExpressRouteCrossConnectionPeeringsClient.Delete.
type ExpressRouteCrossConnectionPeeringsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientGetOptions struct { }
ExpressRouteCrossConnectionPeeringsClientGetOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.Get method.
type ExpressRouteCrossConnectionPeeringsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientGetResponse struct {
ExpressRouteCrossConnectionPeering
}
ExpressRouteCrossConnectionPeeringsClientGetResponse contains the response from method ExpressRouteCrossConnectionPeeringsClient.Get.
type ExpressRouteCrossConnectionPeeringsClientListOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientListOptions struct { }
ExpressRouteCrossConnectionPeeringsClientListOptions contains the optional parameters for the ExpressRouteCrossConnectionPeeringsClient.List method.
type ExpressRouteCrossConnectionPeeringsClientListResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionPeeringsClientListResponse struct {
ExpressRouteCrossConnectionPeeringList
}
ExpressRouteCrossConnectionPeeringsClientListResponse contains the response from method ExpressRouteCrossConnectionPeeringsClient.List.
type ExpressRouteCrossConnectionProperties ¶
type ExpressRouteCrossConnectionProperties struct { // The ExpressRouteCircuit. ExpressRouteCircuit *ExpressRouteCircuitReference `json:"expressRouteCircuit,omitempty"` // The list of peerings. Peerings []*ExpressRouteCrossConnectionPeering `json:"peerings,omitempty"` // Additional read only notes set by the connectivity provider. ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` // The provisioning state of the circuit in the connectivity provider system. ServiceProviderProvisioningState *ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` // READ-ONLY; The circuit bandwidth In Mbps. BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty" azure:"ro"` // READ-ONLY; The peering location of the ExpressRoute circuit. PeeringLocation *string `json:"peeringLocation,omitempty" azure:"ro"` // READ-ONLY; The name of the primary port. PrimaryAzurePort *string `json:"primaryAzurePort,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route cross connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The identifier of the circuit traffic. STag *int32 `json:"sTag,omitempty" azure:"ro"` // READ-ONLY; The name of the secondary port. SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionProperties - Properties of ExpressRouteCrossConnection.
func (ExpressRouteCrossConnectionProperties) MarshalJSON ¶
func (e ExpressRouteCrossConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteCrossConnectionProperties.
type ExpressRouteCrossConnectionRoutesTableSummary ¶
type ExpressRouteCrossConnectionRoutesTableSummary struct { // Autonomous system number. Asn *int32 `json:"asn,omitempty"` // IP address of Neighbor router. Neighbor *string `json:"neighbor,omitempty"` // Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. StateOrPrefixesReceived *string `json:"stateOrPrefixesReceived,omitempty"` // The length of time that the BGP session has been in the Established state, or the current status if not in the Established // state. UpDown *string `json:"upDown,omitempty"` }
ExpressRouteCrossConnectionRoutesTableSummary - The routes table associated with the ExpressRouteCircuit.
type ExpressRouteCrossConnectionsClient ¶
type ExpressRouteCrossConnectionsClient struct {
// contains filtered or unexported fields
}
ExpressRouteCrossConnectionsClient contains the methods for the ExpressRouteCrossConnections group. Don't use this type directly, use NewExpressRouteCrossConnectionsClient() instead.
func NewExpressRouteCrossConnectionsClient ¶
func NewExpressRouteCrossConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteCrossConnectionsClient, error)
NewExpressRouteCrossConnectionsClient creates a new instance of ExpressRouteCrossConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteCrossConnectionsClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteCrossConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters ExpressRouteCrossConnection, options *ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteCrossConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the specified ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. parameters - Parameters supplied to the update express route crossConnection operation. options - ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", armnetwork.ExpressRouteCrossConnection{ Properties: &armnetwork.ExpressRouteCrossConnectionProperties{ ServiceProviderProvisioningState: to.Ptr(armnetwork.ServiceProviderProvisioningStateNotProvisioned), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionsClient) BeginListArpTable ¶
func (client *ExpressRouteCrossConnectionsClient) BeginListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string, options *ExpressRouteCrossConnectionsClientBeginListArpTableOptions) (*runtime.Poller[ExpressRouteCrossConnectionsClientListArpTableResponse], error)
BeginListArpTable - Gets the currently advertised ARP table associated with the express route cross connection in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCrossConnectionsClientBeginListArpTableOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListArpTable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionsArpTable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListArpTable(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", "primary", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionsClient) BeginListRoutesTable ¶
func (client *ExpressRouteCrossConnectionsClient) BeginListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string, options *ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions) (*runtime.Poller[ExpressRouteCrossConnectionsClientListRoutesTableResponse], error)
BeginListRoutesTable - Gets the currently advertised routes table associated with the express route cross connection in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListRoutesTable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionsRouteTable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListRoutesTable(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", "primary", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionsClient) BeginListRoutesTableSummary ¶
func (client *ExpressRouteCrossConnectionsClient) BeginListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string, options *ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions) (*runtime.Poller[ExpressRouteCrossConnectionsClientListRoutesTableSummaryResponse], error)
BeginListRoutesTableSummary - Gets the route table summary associated with the express route cross connection in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the ExpressRouteCrossConnection. peeringName - The name of the peering. devicePath - The path of the device. options - ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListRoutesTableSummary method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListRoutesTableSummary(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", "AzurePrivatePeering", "primary", 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionsClient) Get ¶
func (client *ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, options *ExpressRouteCrossConnectionsClientGetOptions) (ExpressRouteCrossConnectionsClientGetResponse, error)
Get - Gets details about the specified ExpressRouteCrossConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group (peering location of the circuit). crossConnectionName - The name of the ExpressRouteCrossConnection (service key of the circuit). options - ExpressRouteCrossConnectionsClientGetOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteCrossConnectionsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *ExpressRouteCrossConnectionsClient) NewListByResourceGroupPager(resourceGroupName string, options *ExpressRouteCrossConnectionsClientListByResourceGroupOptions) *runtime.Pager[ExpressRouteCrossConnectionsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Retrieves all the ExpressRouteCrossConnections in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ExpressRouteCrossConnectionsClientListByResourceGroupOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("CrossConnection-SiliconValley", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRouteCrossConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteCrossConnectionsClient) NewListPager(options *ExpressRouteCrossConnectionsClientListOptions) *runtime.Pager[ExpressRouteCrossConnectionsClientListResponse]
NewListPager - Retrieves all the ExpressRouteCrossConnections in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRouteCrossConnectionsClientListOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRouteCrossConnectionsClient) UpdateTags ¶
func (client *ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters TagsObject, options *ExpressRouteCrossConnectionsClientUpdateTagsOptions) (ExpressRouteCrossConnectionsClientUpdateTagsResponse, error)
UpdateTags - Updates an express route cross connection tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. crossConnectionName - The name of the cross connection. crossConnectionParameters - Parameters supplied to update express route cross connection tags. options - ExpressRouteCrossConnectionsClientUpdateTagsOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteCrossConnectionUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteCrossConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "CrossConnection-SiliconValley", "<circuitServiceKey>", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginCreateOrUpdate method.
type ExpressRouteCrossConnectionsClientBeginListArpTableOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientBeginListArpTableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionsClientBeginListArpTableOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListArpTable method.
type ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionsClientBeginListRoutesTableOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListRoutesTable method.
type ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteCrossConnectionsClientBeginListRoutesTableSummaryOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.BeginListRoutesTableSummary method.
type ExpressRouteCrossConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientCreateOrUpdateResponse struct {
ExpressRouteCrossConnection
}
ExpressRouteCrossConnectionsClientCreateOrUpdateResponse contains the response from method ExpressRouteCrossConnectionsClient.CreateOrUpdate.
type ExpressRouteCrossConnectionsClientGetOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientGetOptions struct { }
ExpressRouteCrossConnectionsClientGetOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.Get method.
type ExpressRouteCrossConnectionsClientGetResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientGetResponse struct {
ExpressRouteCrossConnection
}
ExpressRouteCrossConnectionsClientGetResponse contains the response from method ExpressRouteCrossConnectionsClient.Get.
type ExpressRouteCrossConnectionsClientListArpTableResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListArpTableResponse struct {
ExpressRouteCircuitsArpTableListResult
}
ExpressRouteCrossConnectionsClientListArpTableResponse contains the response from method ExpressRouteCrossConnectionsClient.ListArpTable.
type ExpressRouteCrossConnectionsClientListByResourceGroupOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListByResourceGroupOptions struct { }
ExpressRouteCrossConnectionsClientListByResourceGroupOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.ListByResourceGroup method.
type ExpressRouteCrossConnectionsClientListByResourceGroupResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListByResourceGroupResponse struct {
ExpressRouteCrossConnectionListResult
}
ExpressRouteCrossConnectionsClientListByResourceGroupResponse contains the response from method ExpressRouteCrossConnectionsClient.ListByResourceGroup.
type ExpressRouteCrossConnectionsClientListOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListOptions struct { }
ExpressRouteCrossConnectionsClientListOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.List method.
type ExpressRouteCrossConnectionsClientListResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListResponse struct {
ExpressRouteCrossConnectionListResult
}
ExpressRouteCrossConnectionsClientListResponse contains the response from method ExpressRouteCrossConnectionsClient.List.
type ExpressRouteCrossConnectionsClientListRoutesTableResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListRoutesTableResponse struct {
ExpressRouteCircuitsRoutesTableListResult
}
ExpressRouteCrossConnectionsClientListRoutesTableResponse contains the response from method ExpressRouteCrossConnectionsClient.ListRoutesTable.
type ExpressRouteCrossConnectionsClientListRoutesTableSummaryResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientListRoutesTableSummaryResponse struct {
ExpressRouteCrossConnectionsRoutesTableSummaryListResult
}
ExpressRouteCrossConnectionsClientListRoutesTableSummaryResponse contains the response from method ExpressRouteCrossConnectionsClient.ListRoutesTableSummary.
type ExpressRouteCrossConnectionsClientUpdateTagsOptions ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientUpdateTagsOptions struct { }
ExpressRouteCrossConnectionsClientUpdateTagsOptions contains the optional parameters for the ExpressRouteCrossConnectionsClient.UpdateTags method.
type ExpressRouteCrossConnectionsClientUpdateTagsResponse ¶ added in v0.3.0
type ExpressRouteCrossConnectionsClientUpdateTagsResponse struct {
ExpressRouteCrossConnection
}
ExpressRouteCrossConnectionsClientUpdateTagsResponse contains the response from method ExpressRouteCrossConnectionsClient.UpdateTags.
type ExpressRouteCrossConnectionsRoutesTableSummaryListResult ¶
type ExpressRouteCrossConnectionsRoutesTableSummaryListResult struct { // A list of the routes table. Value []*ExpressRouteCrossConnectionRoutesTableSummary `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ExpressRouteCrossConnectionsRoutesTableSummaryListResult - Response for ListRoutesTable associated with the Express Route Cross Connections.
type ExpressRouteGateway ¶
type ExpressRouteGateway struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the express route gateway. Properties *ExpressRouteGatewayProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteGateway - ExpressRoute gateway resource.
func (ExpressRouteGateway) MarshalJSON ¶
func (e ExpressRouteGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteGateway.
type ExpressRouteGatewayList ¶
type ExpressRouteGatewayList struct { // List of ExpressRoute gateways. Value []*ExpressRouteGateway `json:"value,omitempty"` }
ExpressRouteGatewayList - List of ExpressRoute gateways.
type ExpressRouteGatewayProperties ¶
type ExpressRouteGatewayProperties struct { // REQUIRED; The Virtual Hub where the ExpressRoute gateway is or will be deployed. VirtualHub *VirtualHubID `json:"virtualHub,omitempty"` // Configuration for auto scaling. AutoScaleConfiguration *ExpressRouteGatewayPropertiesAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` // List of ExpressRoute connections to the ExpressRoute gateway. ExpressRouteConnections []*ExpressRouteConnection `json:"expressRouteConnections,omitempty"` // READ-ONLY; The provisioning state of the express route gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRouteGatewayProperties - ExpressRoute gateway resource properties.
func (ExpressRouteGatewayProperties) MarshalJSON ¶
func (e ExpressRouteGatewayProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteGatewayProperties.
type ExpressRouteGatewayPropertiesAutoScaleConfiguration ¶
type ExpressRouteGatewayPropertiesAutoScaleConfiguration struct { // Minimum and maximum number of scale units to deploy. Bounds *ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds `json:"bounds,omitempty"` }
ExpressRouteGatewayPropertiesAutoScaleConfiguration - Configuration for auto scaling.
type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds ¶
type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds struct { // Maximum number of scale units deployed for ExpressRoute gateway. Max *int32 `json:"max,omitempty"` // Minimum number of scale units deployed for ExpressRoute gateway. Min *int32 `json:"min,omitempty"` }
ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds - Minimum and maximum number of scale units to deploy.
type ExpressRouteGatewaysClient ¶
type ExpressRouteGatewaysClient struct {
// contains filtered or unexported fields
}
ExpressRouteGatewaysClient contains the methods for the ExpressRouteGateways group. Don't use this type directly, use NewExpressRouteGatewaysClient() instead.
func NewExpressRouteGatewaysClient ¶
func NewExpressRouteGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteGatewaysClient, error)
NewExpressRouteGatewaysClient creates a new instance of ExpressRouteGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteGatewaysClient) BeginCreateOrUpdate ¶
func (client *ExpressRouteGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters ExpressRouteGateway, options *ExpressRouteGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRouteGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a ExpressRoute gateway in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. putExpressRouteGatewayParameters - Parameters required in an ExpressRoute gateway PUT operation. options - ExpressRouteGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroupName", "gateway-2", armnetwork.ExpressRouteGateway{ Location: to.Ptr("westus"), Properties: &armnetwork.ExpressRouteGatewayProperties{ AutoScaleConfiguration: &armnetwork.ExpressRouteGatewayPropertiesAutoScaleConfiguration{ Bounds: &armnetwork.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds{ Min: to.Ptr[int32](3), }, }, VirtualHub: &armnetwork.VirtualHubID{ ID: to.Ptr("/subscriptions/subid/resourceGroups/resourceGroupId/providers/Microsoft.Network/virtualHubs/virtualHubName"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteGatewaysClient) BeginDelete ¶
func (client *ExpressRouteGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, options *ExpressRouteGatewaysClientBeginDeleteOptions) (*runtime.Poller[ExpressRouteGatewaysClientDeleteResponse], error)
BeginDelete - Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. options - ExpressRouteGatewaysClientBeginDeleteOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroupName", "expressRouteGatewayName", 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 (*ExpressRouteGatewaysClient) BeginUpdateTags ¶
func (client *ExpressRouteGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, expressRouteGatewayParameters TagsObject, options *ExpressRouteGatewaysClientBeginUpdateTagsOptions) (*runtime.Poller[ExpressRouteGatewaysClientUpdateTagsResponse], error)
BeginUpdateTags - Updates express route gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the ExpressRouteGateway. expressRouteGatewayName - The name of the gateway. expressRouteGatewayParameters - Parameters supplied to update a virtual wan express route gateway tags. options - ExpressRouteGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "resourceGroupName", "expressRouteGatewayName", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteGatewaysClient) Get ¶
func (client *ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, options *ExpressRouteGatewaysClientGetOptions) (ExpressRouteGatewaysClientGetResponse, error)
Get - Fetches the details of a ExpressRoute gateway in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRouteGatewayName - The name of the ExpressRoute gateway. options - ExpressRouteGatewaysClientGetOptions contains the optional parameters for the ExpressRouteGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resourceGroupName", "expressRouteGatewayName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteGatewaysClient) ListByResourceGroup ¶
func (client *ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, options *ExpressRouteGatewaysClientListByResourceGroupOptions) (ExpressRouteGatewaysClientListByResourceGroupResponse, error)
ListByResourceGroup - Lists ExpressRoute gateways in a given resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ExpressRouteGatewaysClientListByResourceGroupOptions contains the optional parameters for the ExpressRouteGatewaysClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListByResourceGroup(ctx, "resourceGroupName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteGatewaysClient) ListBySubscription ¶
func (client *ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context, options *ExpressRouteGatewaysClientListBySubscriptionOptions) (ExpressRouteGatewaysClientListBySubscriptionResponse, error)
ListBySubscription - Lists ExpressRoute gateways under a given subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRouteGatewaysClientListBySubscriptionOptions contains the optional parameters for the ExpressRouteGatewaysClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteGatewayListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListBySubscription(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExpressRouteGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginCreateOrUpdate method.
type ExpressRouteGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteGatewaysClientBeginDeleteOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginDelete method.
type ExpressRouteGatewaysClientBeginUpdateTagsOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRouteGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the ExpressRouteGatewaysClient.BeginUpdateTags method.
type ExpressRouteGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientCreateOrUpdateResponse struct {
ExpressRouteGateway
}
ExpressRouteGatewaysClientCreateOrUpdateResponse contains the response from method ExpressRouteGatewaysClient.CreateOrUpdate.
type ExpressRouteGatewaysClientDeleteResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientDeleteResponse struct { }
ExpressRouteGatewaysClientDeleteResponse contains the response from method ExpressRouteGatewaysClient.Delete.
type ExpressRouteGatewaysClientGetOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientGetOptions struct { }
ExpressRouteGatewaysClientGetOptions contains the optional parameters for the ExpressRouteGatewaysClient.Get method.
type ExpressRouteGatewaysClientGetResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientGetResponse struct {
ExpressRouteGateway
}
ExpressRouteGatewaysClientGetResponse contains the response from method ExpressRouteGatewaysClient.Get.
type ExpressRouteGatewaysClientListByResourceGroupOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientListByResourceGroupOptions struct { }
ExpressRouteGatewaysClientListByResourceGroupOptions contains the optional parameters for the ExpressRouteGatewaysClient.ListByResourceGroup method.
type ExpressRouteGatewaysClientListByResourceGroupResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientListByResourceGroupResponse struct {
ExpressRouteGatewayList
}
ExpressRouteGatewaysClientListByResourceGroupResponse contains the response from method ExpressRouteGatewaysClient.ListByResourceGroup.
type ExpressRouteGatewaysClientListBySubscriptionOptions ¶ added in v0.3.0
type ExpressRouteGatewaysClientListBySubscriptionOptions struct { }
ExpressRouteGatewaysClientListBySubscriptionOptions contains the optional parameters for the ExpressRouteGatewaysClient.ListBySubscription method.
type ExpressRouteGatewaysClientListBySubscriptionResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientListBySubscriptionResponse struct {
ExpressRouteGatewayList
}
ExpressRouteGatewaysClientListBySubscriptionResponse contains the response from method ExpressRouteGatewaysClient.ListBySubscription.
type ExpressRouteGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type ExpressRouteGatewaysClientUpdateTagsResponse struct {
ExpressRouteGateway
}
ExpressRouteGatewaysClientUpdateTagsResponse contains the response from method ExpressRouteGatewaysClient.UpdateTags.
type ExpressRouteLink ¶
type ExpressRouteLink struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of child port resource that is unique among child port resources of the parent. Name *string `json:"name,omitempty"` // ExpressRouteLink properties. Properties *ExpressRouteLinkPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
ExpressRouteLink child resource definition.
type ExpressRouteLinkAdminState ¶
type ExpressRouteLinkAdminState string
ExpressRouteLinkAdminState - Administrative state of the physical port.
const ( ExpressRouteLinkAdminStateDisabled ExpressRouteLinkAdminState = "Disabled" ExpressRouteLinkAdminStateEnabled ExpressRouteLinkAdminState = "Enabled" )
func PossibleExpressRouteLinkAdminStateValues ¶
func PossibleExpressRouteLinkAdminStateValues() []ExpressRouteLinkAdminState
PossibleExpressRouteLinkAdminStateValues returns the possible values for the ExpressRouteLinkAdminState const type.
type ExpressRouteLinkConnectorType ¶
type ExpressRouteLinkConnectorType string
ExpressRouteLinkConnectorType - Physical fiber port type.
const ( ExpressRouteLinkConnectorTypeLC ExpressRouteLinkConnectorType = "LC" ExpressRouteLinkConnectorTypeSC ExpressRouteLinkConnectorType = "SC" )
func PossibleExpressRouteLinkConnectorTypeValues ¶
func PossibleExpressRouteLinkConnectorTypeValues() []ExpressRouteLinkConnectorType
PossibleExpressRouteLinkConnectorTypeValues returns the possible values for the ExpressRouteLinkConnectorType const type.
type ExpressRouteLinkListResult ¶
type ExpressRouteLinkListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of ExpressRouteLink sub-resources. Value []*ExpressRouteLink `json:"value,omitempty"` }
ExpressRouteLinkListResult - Response for ListExpressRouteLinks API service call.
type ExpressRouteLinkMacSecCipher ¶
type ExpressRouteLinkMacSecCipher string
ExpressRouteLinkMacSecCipher - Mac security cipher.
const ( ExpressRouteLinkMacSecCipherGCMAES128 ExpressRouteLinkMacSecCipher = "GcmAes128" ExpressRouteLinkMacSecCipherGCMAES256 ExpressRouteLinkMacSecCipher = "GcmAes256" ExpressRouteLinkMacSecCipherGCMAesXpn128 ExpressRouteLinkMacSecCipher = "GcmAesXpn128" ExpressRouteLinkMacSecCipherGCMAesXpn256 ExpressRouteLinkMacSecCipher = "GcmAesXpn256" )
func PossibleExpressRouteLinkMacSecCipherValues ¶
func PossibleExpressRouteLinkMacSecCipherValues() []ExpressRouteLinkMacSecCipher
PossibleExpressRouteLinkMacSecCipherValues returns the possible values for the ExpressRouteLinkMacSecCipher const type.
type ExpressRouteLinkMacSecConfig ¶
type ExpressRouteLinkMacSecConfig struct { // Keyvault Secret Identifier URL containing Mac security CAK key. CakSecretIdentifier *string `json:"cakSecretIdentifier,omitempty"` // Mac security cipher. Cipher *ExpressRouteLinkMacSecCipher `json:"cipher,omitempty"` // Keyvault Secret Identifier URL containing Mac security CKN key. CknSecretIdentifier *string `json:"cknSecretIdentifier,omitempty"` // Sci mode enabled/disabled. SciState *ExpressRouteLinkMacSecSciState `json:"sciState,omitempty"` }
ExpressRouteLinkMacSecConfig - ExpressRouteLink Mac Security Configuration.
type ExpressRouteLinkMacSecSciState ¶
type ExpressRouteLinkMacSecSciState string
ExpressRouteLinkMacSecSciState - Sci mode enabled/disabled.
const ( ExpressRouteLinkMacSecSciStateDisabled ExpressRouteLinkMacSecSciState = "Disabled" ExpressRouteLinkMacSecSciStateEnabled ExpressRouteLinkMacSecSciState = "Enabled" )
func PossibleExpressRouteLinkMacSecSciStateValues ¶
func PossibleExpressRouteLinkMacSecSciStateValues() []ExpressRouteLinkMacSecSciState
PossibleExpressRouteLinkMacSecSciStateValues returns the possible values for the ExpressRouteLinkMacSecSciState const type.
type ExpressRouteLinkPropertiesFormat ¶
type ExpressRouteLinkPropertiesFormat struct { // Administrative state of the physical port. AdminState *ExpressRouteLinkAdminState `json:"adminState,omitempty"` // MacSec configuration. MacSecConfig *ExpressRouteLinkMacSecConfig `json:"macSecConfig,omitempty"` // READ-ONLY; Physical fiber port type. ConnectorType *ExpressRouteLinkConnectorType `json:"connectorType,omitempty" azure:"ro"` // READ-ONLY; Name of Azure router interface. InterfaceName *string `json:"interfaceName,omitempty" azure:"ro"` // READ-ONLY; Mapping between physical port to patch panel port. PatchPanelID *string `json:"patchPanelId,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route link resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Mapping of physical patch panel to rack. RackID *string `json:"rackId,omitempty" azure:"ro"` // READ-ONLY; Name of Azure router associated with physical port. RouterName *string `json:"routerName,omitempty" azure:"ro"` }
ExpressRouteLinkPropertiesFormat - Properties specific to ExpressRouteLink resources.
type ExpressRouteLinksClient ¶
type ExpressRouteLinksClient struct {
// contains filtered or unexported fields
}
ExpressRouteLinksClient contains the methods for the ExpressRouteLinks group. Don't use this type directly, use NewExpressRouteLinksClient() instead.
func NewExpressRouteLinksClient ¶
func NewExpressRouteLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteLinksClient, error)
NewExpressRouteLinksClient creates a new instance of ExpressRouteLinksClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteLinksClient) Get ¶
func (client *ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string, options *ExpressRouteLinksClientGetOptions) (ExpressRouteLinksClientGetResponse, error)
Get - Retrieves the specified ExpressRouteLink resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the ExpressRoutePort resource. linkName - The name of the ExpressRouteLink resource. options - ExpressRouteLinksClientGetOptions contains the optional parameters for the ExpressRouteLinksClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteLinkGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteLinksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "portName", "linkName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRouteLinksClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteLinksClient) NewListPager(resourceGroupName string, expressRoutePortName string, options *ExpressRouteLinksClientListOptions) *runtime.Pager[ExpressRouteLinksClientListResponse]
NewListPager - Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the ExpressRoutePort resource. options - ExpressRouteLinksClientListOptions contains the optional parameters for the ExpressRouteLinksClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteLinkList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteLinksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "portName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteLinksClientGetOptions ¶ added in v0.3.0
type ExpressRouteLinksClientGetOptions struct { }
ExpressRouteLinksClientGetOptions contains the optional parameters for the ExpressRouteLinksClient.Get method.
type ExpressRouteLinksClientGetResponse ¶ added in v0.3.0
type ExpressRouteLinksClientGetResponse struct {
ExpressRouteLink
}
ExpressRouteLinksClientGetResponse contains the response from method ExpressRouteLinksClient.Get.
type ExpressRouteLinksClientListOptions ¶ added in v0.3.0
type ExpressRouteLinksClientListOptions struct { }
ExpressRouteLinksClientListOptions contains the optional parameters for the ExpressRouteLinksClient.List method.
type ExpressRouteLinksClientListResponse ¶ added in v0.3.0
type ExpressRouteLinksClientListResponse struct {
ExpressRouteLinkListResult
}
ExpressRouteLinksClientListResponse contains the response from method ExpressRouteLinksClient.List.
type ExpressRoutePeeringState ¶
type ExpressRoutePeeringState string
ExpressRoutePeeringState - The state of peering.
const ( ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" )
func PossibleExpressRoutePeeringStateValues ¶
func PossibleExpressRoutePeeringStateValues() []ExpressRoutePeeringState
PossibleExpressRoutePeeringStateValues returns the possible values for the ExpressRoutePeeringState const type.
type ExpressRoutePeeringType ¶
type ExpressRoutePeeringType string
ExpressRoutePeeringType - The peering type.
const ( ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" )
func PossibleExpressRoutePeeringTypeValues ¶
func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType
PossibleExpressRoutePeeringTypeValues returns the possible values for the ExpressRoutePeeringType const type.
type ExpressRoutePort ¶
type ExpressRoutePort struct { // Resource ID. ID *string `json:"id,omitempty"` // The identity of ExpressRoutePort, if configured. Identity *ManagedServiceIdentity `json:"identity,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // ExpressRoutePort properties. Properties *ExpressRoutePortPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRoutePort resource definition.
func (ExpressRoutePort) MarshalJSON ¶
func (e ExpressRoutePort) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRoutePort.
type ExpressRoutePortAuthorization ¶ added in v1.0.0
type ExpressRoutePortAuthorization struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // ExpressRoutePort properties. Properties *ExpressRoutePortAuthorizationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRoutePortAuthorization - ExpressRoutePort Authorization resource definition.
type ExpressRoutePortAuthorizationListResult ¶ added in v1.0.0
type ExpressRoutePortAuthorizationListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The authorizations in an ExpressRoute Port. Value []*ExpressRoutePortAuthorization `json:"value,omitempty"` }
ExpressRoutePortAuthorizationListResult - Response for ListExpressRoutePortAuthorizations API service call.
type ExpressRoutePortAuthorizationPropertiesFormat ¶ added in v1.0.0
type ExpressRoutePortAuthorizationPropertiesFormat struct { // READ-ONLY; The authorization key. AuthorizationKey *string `json:"authorizationKey,omitempty" azure:"ro"` // READ-ONLY; The authorization use status. AuthorizationUseStatus *ExpressRoutePortAuthorizationUseStatus `json:"authorizationUseStatus,omitempty" azure:"ro"` // READ-ONLY; The reference to the ExpressRoute circuit resource using the authorization. CircuitResourceURI *string `json:"circuitResourceUri,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the authorization resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRoutePortAuthorizationPropertiesFormat - Properties of ExpressRoutePort Authorization.
type ExpressRoutePortAuthorizationUseStatus ¶ added in v1.0.0
type ExpressRoutePortAuthorizationUseStatus string
ExpressRoutePortAuthorizationUseStatus - The authorization use status.
const ( ExpressRoutePortAuthorizationUseStatusAvailable ExpressRoutePortAuthorizationUseStatus = "Available" ExpressRoutePortAuthorizationUseStatusInUse ExpressRoutePortAuthorizationUseStatus = "InUse" )
func PossibleExpressRoutePortAuthorizationUseStatusValues ¶ added in v1.0.0
func PossibleExpressRoutePortAuthorizationUseStatusValues() []ExpressRoutePortAuthorizationUseStatus
PossibleExpressRoutePortAuthorizationUseStatusValues returns the possible values for the ExpressRoutePortAuthorizationUseStatus const type.
type ExpressRoutePortAuthorizationsClient ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClient struct {
// contains filtered or unexported fields
}
ExpressRoutePortAuthorizationsClient contains the methods for the ExpressRoutePortAuthorizations group. Don't use this type directly, use NewExpressRoutePortAuthorizationsClient() instead.
func NewExpressRoutePortAuthorizationsClient ¶ added in v1.0.0
func NewExpressRoutePortAuthorizationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRoutePortAuthorizationsClient, error)
NewExpressRoutePortAuthorizationsClient creates a new instance of ExpressRoutePortAuthorizationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRoutePortAuthorizationsClient) BeginCreateOrUpdate ¶ added in v1.0.0
func (client *ExpressRoutePortAuthorizationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, authorizationName string, authorizationParameters ExpressRoutePortAuthorization, options *ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an authorization in the specified express route port. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the express route port. authorizationName - The name of the authorization. authorizationParameters - Parameters supplied to the create or update express route port authorization operation. options - ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortAuthorizationCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "expressRoutePortName", "authorizatinName", armnetwork.ExpressRoutePortAuthorization{ Properties: &armnetwork.ExpressRoutePortAuthorizationPropertiesFormat{}, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortAuthorizationsClient) BeginDelete ¶ added in v1.0.0
func (client *ExpressRoutePortAuthorizationsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRoutePortName string, authorizationName string, options *ExpressRoutePortAuthorizationsClientBeginDeleteOptions) (*runtime.Poller[ExpressRoutePortAuthorizationsClientDeleteResponse], error)
BeginDelete - Deletes the specified authorization from the specified express route port. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the express route port. authorizationName - The name of the authorization. options - ExpressRoutePortAuthorizationsClientBeginDeleteOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortAuthorizationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "expressRoutePortName", "authorizationName", 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 (*ExpressRoutePortAuthorizationsClient) Get ¶ added in v1.0.0
func (client *ExpressRoutePortAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, authorizationName string, options *ExpressRoutePortAuthorizationsClientGetOptions) (ExpressRoutePortAuthorizationsClientGetResponse, error)
Get - Gets the specified authorization from the specified express route port. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the express route port. authorizationName - The name of the authorization. options - ExpressRoutePortAuthorizationsClientGetOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortAuthorizationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "expressRoutePortName", "authorizationName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortAuthorizationsClient) NewListPager ¶ added in v1.0.0
func (client *ExpressRoutePortAuthorizationsClient) NewListPager(resourceGroupName string, expressRoutePortName string, options *ExpressRoutePortAuthorizationsClientListOptions) *runtime.Pager[ExpressRoutePortAuthorizationsClientListResponse]
NewListPager - Gets all authorizations in an express route port. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the express route port. options - ExpressRoutePortAuthorizationsClientListOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortAuthorizationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortAuthorizationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "expressRoutePortName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRoutePortAuthorizationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.BeginCreateOrUpdate method.
type ExpressRoutePortAuthorizationsClientBeginDeleteOptions ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRoutePortAuthorizationsClientBeginDeleteOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.BeginDelete method.
type ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse struct {
ExpressRoutePortAuthorization
}
ExpressRoutePortAuthorizationsClientCreateOrUpdateResponse contains the response from method ExpressRoutePortAuthorizationsClient.CreateOrUpdate.
type ExpressRoutePortAuthorizationsClientDeleteResponse ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientDeleteResponse struct { }
ExpressRoutePortAuthorizationsClientDeleteResponse contains the response from method ExpressRoutePortAuthorizationsClient.Delete.
type ExpressRoutePortAuthorizationsClientGetOptions ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientGetOptions struct { }
ExpressRoutePortAuthorizationsClientGetOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.Get method.
type ExpressRoutePortAuthorizationsClientGetResponse ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientGetResponse struct {
ExpressRoutePortAuthorization
}
ExpressRoutePortAuthorizationsClientGetResponse contains the response from method ExpressRoutePortAuthorizationsClient.Get.
type ExpressRoutePortAuthorizationsClientListOptions ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientListOptions struct { }
ExpressRoutePortAuthorizationsClientListOptions contains the optional parameters for the ExpressRoutePortAuthorizationsClient.List method.
type ExpressRoutePortAuthorizationsClientListResponse ¶ added in v1.0.0
type ExpressRoutePortAuthorizationsClientListResponse struct {
ExpressRoutePortAuthorizationListResult
}
ExpressRoutePortAuthorizationsClientListResponse contains the response from method ExpressRoutePortAuthorizationsClient.List.
type ExpressRoutePortListResult ¶
type ExpressRoutePortListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of ExpressRoutePort resources. Value []*ExpressRoutePort `json:"value,omitempty"` }
ExpressRoutePortListResult - Response for ListExpressRoutePorts API service call.
type ExpressRoutePortPropertiesFormat ¶
type ExpressRoutePortPropertiesFormat struct { // Bandwidth of procured ports in Gbps. BandwidthInGbps *int32 `json:"bandwidthInGbps,omitempty"` // Encapsulation method on physical ports. Encapsulation *ExpressRoutePortsEncapsulation `json:"encapsulation,omitempty"` // The set of physical links of the ExpressRoutePort resource. Links []*ExpressRouteLink `json:"links,omitempty"` // The name of the peering location that the ExpressRoutePort is mapped to physically. PeeringLocation *string `json:"peeringLocation,omitempty"` // READ-ONLY; Date of the physical port allocation to be used in Letter of Authorization. AllocationDate *string `json:"allocationDate,omitempty" azure:"ro"` // READ-ONLY; Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource. Circuits []*SubResource `json:"circuits,omitempty" azure:"ro"` // READ-ONLY; Ether type of the physical port. EtherType *string `json:"etherType,omitempty" azure:"ro"` // READ-ONLY; Maximum transmission unit of the physical port pair(s). Mtu *string `json:"mtu,omitempty" azure:"ro"` // READ-ONLY; Aggregate Gbps of associated circuit bandwidths. ProvisionedBandwidthInGbps *float32 `json:"provisionedBandwidthInGbps,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route port resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the express route port resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
ExpressRoutePortPropertiesFormat - Properties specific to ExpressRoutePort resources.
func (ExpressRoutePortPropertiesFormat) MarshalJSON ¶
func (e ExpressRoutePortPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRoutePortPropertiesFormat.
type ExpressRoutePortsClient ¶
type ExpressRoutePortsClient struct {
// contains filtered or unexported fields
}
ExpressRoutePortsClient contains the methods for the ExpressRoutePorts group. Don't use this type directly, use NewExpressRoutePortsClient() instead.
func NewExpressRoutePortsClient ¶
func NewExpressRoutePortsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRoutePortsClient, error)
NewExpressRoutePortsClient creates a new instance of ExpressRoutePortsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRoutePortsClient) BeginCreateOrUpdate ¶
func (client *ExpressRoutePortsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters ExpressRoutePort, options *ExpressRoutePortsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ExpressRoutePortsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified ExpressRoutePort resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the ExpressRoutePort resource. parameters - Parameters supplied to the create ExpressRoutePort operation. options - ExpressRoutePortsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRoutePortsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "portName", armnetwork.ExpressRoutePort{ Location: to.Ptr("westus"), Properties: &armnetwork.ExpressRoutePortPropertiesFormat{ BandwidthInGbps: to.Ptr[int32](100), Encapsulation: to.Ptr(armnetwork.ExpressRoutePortsEncapsulationQinQ), PeeringLocation: to.Ptr("peeringLocationName"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortsClient) BeginDelete ¶
func (client *ExpressRoutePortsClient) BeginDelete(ctx context.Context, resourceGroupName string, expressRoutePortName string, options *ExpressRoutePortsClientBeginDeleteOptions) (*runtime.Poller[ExpressRoutePortsClientDeleteResponse], error)
BeginDelete - Deletes the specified ExpressRoutePort resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the ExpressRoutePort resource. options - ExpressRoutePortsClientBeginDeleteOptions contains the optional parameters for the ExpressRoutePortsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "portName", 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 (*ExpressRoutePortsClient) GenerateLOA ¶
func (client *ExpressRoutePortsClient) GenerateLOA(ctx context.Context, resourceGroupName string, expressRoutePortName string, request GenerateExpressRoutePortsLOARequest, options *ExpressRoutePortsClientGenerateLOAOptions) (ExpressRoutePortsClientGenerateLOAResponse, error)
GenerateLOA - Generate a letter of authorization for the requested ExpressRoutePort resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of ExpressRoutePort. request - Request parameters supplied to generate a letter of authorization. options - ExpressRoutePortsClientGenerateLOAOptions contains the optional parameters for the ExpressRoutePortsClient.GenerateLOA method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/GenerateExpressRoutePortsLOA.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GenerateLOA(ctx, "rg1", "portName", armnetwork.GenerateExpressRoutePortsLOARequest{ CustomerName: to.Ptr("customerName"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortsClient) Get ¶
func (client *ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, options *ExpressRoutePortsClientGetOptions) (ExpressRoutePortsClientGetResponse, error)
Get - Retrieves the requested ExpressRoutePort resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of ExpressRoutePort. options - ExpressRoutePortsClientGetOptions contains the optional parameters for the ExpressRoutePortsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "portName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *ExpressRoutePortsClient) NewListByResourceGroupPager(resourceGroupName string, options *ExpressRoutePortsClientListByResourceGroupOptions) *runtime.Pager[ExpressRoutePortsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the ExpressRoutePort resources in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ExpressRoutePortsClientListByResourceGroupOptions contains the optional parameters for the ExpressRoutePortsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRoutePortsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRoutePortsClient) NewListPager(options *ExpressRoutePortsClientListOptions) *runtime.Pager[ExpressRoutePortsClientListResponse]
NewListPager - List all the ExpressRoutePort resources in the specified subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRoutePortsClientListOptions contains the optional parameters for the ExpressRoutePortsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExpressRoutePortsClient) UpdateTags ¶
func (client *ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters TagsObject, options *ExpressRoutePortsClientUpdateTagsOptions) (ExpressRoutePortsClientUpdateTagsResponse, error)
UpdateTags - Update ExpressRoutePort tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. expressRoutePortName - The name of the ExpressRoutePort resource. parameters - Parameters supplied to update ExpressRoutePort resource tags. options - ExpressRoutePortsClientUpdateTagsOptions contains the optional parameters for the ExpressRoutePortsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "portName", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ExpressRoutePortsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ExpressRoutePortsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRoutePortsClientBeginCreateOrUpdateOptions contains the optional parameters for the ExpressRoutePortsClient.BeginCreateOrUpdate method.
type ExpressRoutePortsClientBeginDeleteOptions ¶ added in v0.3.0
type ExpressRoutePortsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ExpressRoutePortsClientBeginDeleteOptions contains the optional parameters for the ExpressRoutePortsClient.BeginDelete method.
type ExpressRoutePortsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ExpressRoutePortsClientCreateOrUpdateResponse struct {
ExpressRoutePort
}
ExpressRoutePortsClientCreateOrUpdateResponse contains the response from method ExpressRoutePortsClient.CreateOrUpdate.
type ExpressRoutePortsClientDeleteResponse ¶ added in v0.3.0
type ExpressRoutePortsClientDeleteResponse struct { }
ExpressRoutePortsClientDeleteResponse contains the response from method ExpressRoutePortsClient.Delete.
type ExpressRoutePortsClientGenerateLOAOptions ¶ added in v0.3.0
type ExpressRoutePortsClientGenerateLOAOptions struct { }
ExpressRoutePortsClientGenerateLOAOptions contains the optional parameters for the ExpressRoutePortsClient.GenerateLOA method.
type ExpressRoutePortsClientGenerateLOAResponse ¶ added in v0.3.0
type ExpressRoutePortsClientGenerateLOAResponse struct {
GenerateExpressRoutePortsLOAResult
}
ExpressRoutePortsClientGenerateLOAResponse contains the response from method ExpressRoutePortsClient.GenerateLOA.
type ExpressRoutePortsClientGetOptions ¶ added in v0.3.0
type ExpressRoutePortsClientGetOptions struct { }
ExpressRoutePortsClientGetOptions contains the optional parameters for the ExpressRoutePortsClient.Get method.
type ExpressRoutePortsClientGetResponse ¶ added in v0.3.0
type ExpressRoutePortsClientGetResponse struct {
ExpressRoutePort
}
ExpressRoutePortsClientGetResponse contains the response from method ExpressRoutePortsClient.Get.
type ExpressRoutePortsClientListByResourceGroupOptions ¶ added in v0.3.0
type ExpressRoutePortsClientListByResourceGroupOptions struct { }
ExpressRoutePortsClientListByResourceGroupOptions contains the optional parameters for the ExpressRoutePortsClient.ListByResourceGroup method.
type ExpressRoutePortsClientListByResourceGroupResponse ¶ added in v0.3.0
type ExpressRoutePortsClientListByResourceGroupResponse struct {
ExpressRoutePortListResult
}
ExpressRoutePortsClientListByResourceGroupResponse contains the response from method ExpressRoutePortsClient.ListByResourceGroup.
type ExpressRoutePortsClientListOptions ¶ added in v0.3.0
type ExpressRoutePortsClientListOptions struct { }
ExpressRoutePortsClientListOptions contains the optional parameters for the ExpressRoutePortsClient.List method.
type ExpressRoutePortsClientListResponse ¶ added in v0.3.0
type ExpressRoutePortsClientListResponse struct {
ExpressRoutePortListResult
}
ExpressRoutePortsClientListResponse contains the response from method ExpressRoutePortsClient.List.
type ExpressRoutePortsClientUpdateTagsOptions ¶ added in v0.3.0
type ExpressRoutePortsClientUpdateTagsOptions struct { }
ExpressRoutePortsClientUpdateTagsOptions contains the optional parameters for the ExpressRoutePortsClient.UpdateTags method.
type ExpressRoutePortsClientUpdateTagsResponse ¶ added in v0.3.0
type ExpressRoutePortsClientUpdateTagsResponse struct {
ExpressRoutePort
}
ExpressRoutePortsClientUpdateTagsResponse contains the response from method ExpressRoutePortsClient.UpdateTags.
type ExpressRoutePortsEncapsulation ¶
type ExpressRoutePortsEncapsulation string
ExpressRoutePortsEncapsulation - Encapsulation method on physical ports.
const ( ExpressRoutePortsEncapsulationDot1Q ExpressRoutePortsEncapsulation = "Dot1Q" ExpressRoutePortsEncapsulationQinQ ExpressRoutePortsEncapsulation = "QinQ" )
func PossibleExpressRoutePortsEncapsulationValues ¶
func PossibleExpressRoutePortsEncapsulationValues() []ExpressRoutePortsEncapsulation
PossibleExpressRoutePortsEncapsulationValues returns the possible values for the ExpressRoutePortsEncapsulation const type.
type ExpressRoutePortsLocation ¶
type ExpressRoutePortsLocation struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // ExpressRoutePort peering location properties. Properties *ExpressRoutePortsLocationPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRoutePortsLocation - Definition of the ExpressRoutePorts peering location resource.
func (ExpressRoutePortsLocation) MarshalJSON ¶
func (e ExpressRoutePortsLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRoutePortsLocation.
type ExpressRoutePortsLocationBandwidths ¶
type ExpressRoutePortsLocationBandwidths struct { // READ-ONLY; Bandwidth descriptive name. OfferName *string `json:"offerName,omitempty" azure:"ro"` // READ-ONLY; Bandwidth value in Gbps. ValueInGbps *int32 `json:"valueInGbps,omitempty" azure:"ro"` }
ExpressRoutePortsLocationBandwidths - Real-time inventory of available ExpressRoute port bandwidths.
type ExpressRoutePortsLocationListResult ¶
type ExpressRoutePortsLocationListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of all ExpressRoutePort peering locations. Value []*ExpressRoutePortsLocation `json:"value,omitempty"` }
ExpressRoutePortsLocationListResult - Response for ListExpressRoutePortsLocations API service call.
type ExpressRoutePortsLocationPropertiesFormat ¶
type ExpressRoutePortsLocationPropertiesFormat struct { // The inventory of available ExpressRoutePort bandwidths. AvailableBandwidths []*ExpressRoutePortsLocationBandwidths `json:"availableBandwidths,omitempty"` // READ-ONLY; Address of peering location. Address *string `json:"address,omitempty" azure:"ro"` // READ-ONLY; Contact details of peering locations. Contact *string `json:"contact,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the express route port location resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRoutePortsLocationPropertiesFormat - Properties specific to ExpressRoutePorts peering location resources.
func (ExpressRoutePortsLocationPropertiesFormat) MarshalJSON ¶
func (e ExpressRoutePortsLocationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRoutePortsLocationPropertiesFormat.
type ExpressRoutePortsLocationsClient ¶
type ExpressRoutePortsLocationsClient struct {
// contains filtered or unexported fields
}
ExpressRoutePortsLocationsClient contains the methods for the ExpressRoutePortsLocations group. Don't use this type directly, use NewExpressRoutePortsLocationsClient() instead.
func NewExpressRoutePortsLocationsClient ¶
func NewExpressRoutePortsLocationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRoutePortsLocationsClient, error)
NewExpressRoutePortsLocationsClient creates a new instance of ExpressRoutePortsLocationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRoutePortsLocationsClient) Get ¶
func (client *ExpressRoutePortsLocationsClient) Get(ctx context.Context, locationName string, options *ExpressRoutePortsLocationsClientGetOptions) (ExpressRoutePortsLocationsClientGetResponse, error)
Get - Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 locationName - Name of the requested ExpressRoutePort peering location. options - ExpressRoutePortsLocationsClientGetOptions contains the optional parameters for the ExpressRoutePortsLocationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortsLocationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsLocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "locationName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ExpressRoutePortsLocationsClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRoutePortsLocationsClient) NewListPager(options *ExpressRoutePortsLocationsClientListOptions) *runtime.Pager[ExpressRoutePortsLocationsClientListResponse]
NewListPager - Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRoutePortsLocationsClientListOptions contains the optional parameters for the ExpressRoutePortsLocationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRoutePortsLocationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRoutePortsLocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRoutePortsLocationsClientGetOptions ¶ added in v0.3.0
type ExpressRoutePortsLocationsClientGetOptions struct { }
ExpressRoutePortsLocationsClientGetOptions contains the optional parameters for the ExpressRoutePortsLocationsClient.Get method.
type ExpressRoutePortsLocationsClientGetResponse ¶ added in v0.3.0
type ExpressRoutePortsLocationsClientGetResponse struct {
ExpressRoutePortsLocation
}
ExpressRoutePortsLocationsClientGetResponse contains the response from method ExpressRoutePortsLocationsClient.Get.
type ExpressRoutePortsLocationsClientListOptions ¶ added in v0.3.0
type ExpressRoutePortsLocationsClientListOptions struct { }
ExpressRoutePortsLocationsClientListOptions contains the optional parameters for the ExpressRoutePortsLocationsClient.List method.
type ExpressRoutePortsLocationsClientListResponse ¶ added in v0.3.0
type ExpressRoutePortsLocationsClientListResponse struct {
ExpressRoutePortsLocationListResult
}
ExpressRoutePortsLocationsClientListResponse contains the response from method ExpressRoutePortsLocationsClient.List.
type ExpressRouteServiceProvider ¶
type ExpressRouteServiceProvider struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the express route service provider. Properties *ExpressRouteServiceProviderPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExpressRouteServiceProvider - A ExpressRouteResourceProvider object.
func (ExpressRouteServiceProvider) MarshalJSON ¶
func (e ExpressRouteServiceProvider) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteServiceProvider.
type ExpressRouteServiceProviderBandwidthsOffered ¶
type ExpressRouteServiceProviderBandwidthsOffered struct { // The OfferName. OfferName *string `json:"offerName,omitempty"` // The ValueInMbps. ValueInMbps *int32 `json:"valueInMbps,omitempty"` }
ExpressRouteServiceProviderBandwidthsOffered - Contains bandwidths offered in ExpressRouteServiceProvider resources.
type ExpressRouteServiceProviderListResult ¶
type ExpressRouteServiceProviderListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of ExpressRouteResourceProvider resources. Value []*ExpressRouteServiceProvider `json:"value,omitempty"` }
ExpressRouteServiceProviderListResult - Response for the ListExpressRouteServiceProvider API service call.
type ExpressRouteServiceProviderPropertiesFormat ¶
type ExpressRouteServiceProviderPropertiesFormat struct { // A list of bandwidths offered. BandwidthsOffered []*ExpressRouteServiceProviderBandwidthsOffered `json:"bandwidthsOffered,omitempty"` // A list of peering locations. PeeringLocations []*string `json:"peeringLocations,omitempty"` // READ-ONLY; The provisioning state of the express route service provider resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ExpressRouteServiceProviderPropertiesFormat - Properties of ExpressRouteServiceProvider.
func (ExpressRouteServiceProviderPropertiesFormat) MarshalJSON ¶
func (e ExpressRouteServiceProviderPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExpressRouteServiceProviderPropertiesFormat.
type ExpressRouteServiceProvidersClient ¶
type ExpressRouteServiceProvidersClient struct {
// contains filtered or unexported fields
}
ExpressRouteServiceProvidersClient contains the methods for the ExpressRouteServiceProviders group. Don't use this type directly, use NewExpressRouteServiceProvidersClient() instead.
func NewExpressRouteServiceProvidersClient ¶
func NewExpressRouteServiceProvidersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExpressRouteServiceProvidersClient, error)
NewExpressRouteServiceProvidersClient creates a new instance of ExpressRouteServiceProvidersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExpressRouteServiceProvidersClient) NewListPager ¶ added in v0.5.0
func (client *ExpressRouteServiceProvidersClient) NewListPager(options *ExpressRouteServiceProvidersClientListOptions) *runtime.Pager[ExpressRouteServiceProvidersClientListResponse]
NewListPager - Gets all the available express route service providers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ExpressRouteServiceProvidersClientListOptions contains the optional parameters for the ExpressRouteServiceProvidersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ExpressRouteProviderList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewExpressRouteServiceProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExpressRouteServiceProvidersClientListOptions ¶ added in v0.3.0
type ExpressRouteServiceProvidersClientListOptions struct { }
ExpressRouteServiceProvidersClientListOptions contains the optional parameters for the ExpressRouteServiceProvidersClient.List method.
type ExpressRouteServiceProvidersClientListResponse ¶ added in v0.3.0
type ExpressRouteServiceProvidersClientListResponse struct {
ExpressRouteServiceProviderListResult
}
ExpressRouteServiceProvidersClientListResponse contains the response from method ExpressRouteServiceProvidersClient.List.
type ExtendedLocation ¶
type ExtendedLocation struct { // The name of the extended location. Name *string `json:"name,omitempty"` // The type of the extended location. Type *ExtendedLocationTypes `json:"type,omitempty"` }
ExtendedLocation complex type.
type ExtendedLocationTypes ¶
type ExtendedLocationTypes string
ExtendedLocationTypes - The supported ExtendedLocation types. Currently only EdgeZone is supported in Microsoft.Network resources.
const (
ExtendedLocationTypesEdgeZone ExtendedLocationTypes = "EdgeZone"
)
func PossibleExtendedLocationTypesValues ¶
func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes
PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type.
type FilterItems ¶ added in v0.2.0
type FilterItems struct { // The name of the field we would like to filter Field *string `json:"field,omitempty"` // List of values to filter the current field by Values []*string `json:"values,omitempty"` }
FilterItems - Will contain the filter name and values to operate on
func (FilterItems) MarshalJSON ¶ added in v0.2.0
func (f FilterItems) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FilterItems.
type FirewallPoliciesClient ¶
type FirewallPoliciesClient struct {
// contains filtered or unexported fields
}
FirewallPoliciesClient contains the methods for the FirewallPolicies group. Don't use this type directly, use NewFirewallPoliciesClient() instead.
func NewFirewallPoliciesClient ¶
func NewFirewallPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallPoliciesClient, error)
NewFirewallPoliciesClient creates a new instance of FirewallPoliciesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FirewallPoliciesClient) BeginCreateOrUpdate ¶
func (client *FirewallPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters FirewallPolicy, options *FirewallPoliciesClientBeginCreateOrUpdateOptions) (*runtime.Poller[FirewallPoliciesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Firewall Policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. parameters - Parameters supplied to the create or update Firewall Policy operation. options - FirewallPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallPoliciesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "firewallPolicy", armnetwork.FirewallPolicy{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.FirewallPolicyPropertiesFormat{ DNSSettings: &armnetwork.DNSSettings{ EnableProxy: to.Ptr(true), RequireProxyForNetworkRules: to.Ptr(false), Servers: []*string{ to.Ptr("30.3.4.5")}, }, ExplicitProxySettings: &armnetwork.ExplicitProxySettings{ EnableExplicitProxy: to.Ptr(true), HTTPPort: to.Ptr[int32](8087), HTTPSPort: to.Ptr[int32](8087), PacFile: to.Ptr("https://tinawstorage.file.core.windows.net/?sv=2020-02-10&ss=bfqt&srt=sco&sp=rwdlacuptfx&se=2021-06-04T07:01:12Z&st=2021-06-03T23:01:12Z&sip=68.65.171.11&spr=https&sig=Plsa0RRVpGbY0IETZZOT6znOHcSro71LLTTbzquYPgs%3D"), PacFilePort: to.Ptr[int32](8087), }, Insights: &armnetwork.FirewallPolicyInsights{ IsEnabled: to.Ptr(true), LogAnalyticsResources: &armnetwork.FirewallPolicyLogAnalyticsResources{ DefaultWorkspaceID: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace"), }, Workspaces: []*armnetwork.FirewallPolicyLogAnalyticsWorkspace{ { Region: to.Ptr("westus"), WorkspaceID: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1"), }, }, { Region: to.Ptr("eastus"), WorkspaceID: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2"), }, }}, }, RetentionDays: to.Ptr[int32](100), }, IntrusionDetection: &armnetwork.FirewallPolicyIntrusionDetection{ Configuration: &armnetwork.FirewallPolicyIntrusionDetectionConfiguration{ BypassTrafficSettings: []*armnetwork.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications{ { Name: to.Ptr("bypassRule1"), Description: to.Ptr("Rule 1"), DestinationAddresses: []*string{ to.Ptr("5.6.7.8")}, DestinationPorts: []*string{ to.Ptr("*")}, SourceAddresses: []*string{ to.Ptr("1.2.3.4")}, Protocol: to.Ptr(armnetwork.FirewallPolicyIntrusionDetectionProtocolTCP), }}, SignatureOverrides: []*armnetwork.FirewallPolicyIntrusionDetectionSignatureSpecification{ { ID: to.Ptr("2525004"), Mode: to.Ptr(armnetwork.FirewallPolicyIntrusionDetectionStateTypeDeny), }}, }, Mode: to.Ptr(armnetwork.FirewallPolicyIntrusionDetectionStateTypeAlert), }, SKU: &armnetwork.FirewallPolicySKU{ Tier: to.Ptr(armnetwork.FirewallPolicySKUTierPremium), }, Snat: &armnetwork.FirewallPolicySNAT{ PrivateRanges: []*string{ to.Ptr("IANAPrivateRanges")}, }, SQL: &armnetwork.FirewallPolicySQL{ AllowSQLRedirect: to.Ptr(true), }, ThreatIntelMode: to.Ptr(armnetwork.AzureFirewallThreatIntelModeAlert), ThreatIntelWhitelist: &armnetwork.FirewallPolicyThreatIntelWhitelist{ Fqdns: []*string{ to.Ptr("*.microsoft.com")}, IPAddresses: []*string{ to.Ptr("20.3.4.5")}, }, TransportSecurity: &armnetwork.FirewallPolicyTransportSecurity{ CertificateAuthority: &armnetwork.FirewallPolicyCertificateAuthority{ Name: to.Ptr("clientcert"), KeyVaultSecretID: to.Ptr("https://kv/secret"), }, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*FirewallPoliciesClient) BeginDelete ¶
func (client *FirewallPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, firewallPolicyName string, options *FirewallPoliciesClientBeginDeleteOptions) (*runtime.Poller[FirewallPoliciesClientDeleteResponse], error)
BeginDelete - Deletes the specified Firewall Policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPoliciesClientBeginDeleteOptions contains the optional parameters for the FirewallPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "firewallPolicy", 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 (*FirewallPoliciesClient) Get ¶
func (client *FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, options *FirewallPoliciesClientGetOptions) (FirewallPoliciesClientGetResponse, error)
Get - Gets the specified Firewall Policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPoliciesClientGetOptions contains the optional parameters for the FirewallPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "firewallPolicy", &armnetwork.FirewallPoliciesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FirewallPoliciesClient) NewListAllPager ¶ added in v0.5.0
func (client *FirewallPoliciesClient) NewListAllPager(options *FirewallPoliciesClientListAllOptions) *runtime.Pager[FirewallPoliciesClientListAllResponse]
NewListAllPager - Gets all the Firewall Policies in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - FirewallPoliciesClientListAllOptions contains the optional parameters for the FirewallPoliciesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*FirewallPoliciesClient) NewListPager ¶ added in v0.5.0
func (client *FirewallPoliciesClient) NewListPager(resourceGroupName string, options *FirewallPoliciesClientListOptions) *runtime.Pager[FirewallPoliciesClientListResponse]
NewListPager - Lists all Firewall Policies in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - FirewallPoliciesClientListOptions contains the optional parameters for the FirewallPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*FirewallPoliciesClient) UpdateTags ¶ added in v1.0.0
func (client *FirewallPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters TagsObject, options *FirewallPoliciesClientUpdateTagsOptions) (FirewallPoliciesClientUpdateTagsResponse, error)
UpdateTags - Updates tags of a Azure Firewall Policy resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. parameters - Parameters supplied to update Azure Firewall Policy tags. options - FirewallPoliciesClientUpdateTagsOptions contains the optional parameters for the FirewallPoliciesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyPatch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPoliciesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "myResourceGroup", "firewallPolicy", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type FirewallPoliciesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type FirewallPoliciesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallPoliciesClient.BeginCreateOrUpdate method.
type FirewallPoliciesClientBeginDeleteOptions ¶ added in v0.3.0
type FirewallPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallPoliciesClientBeginDeleteOptions contains the optional parameters for the FirewallPoliciesClient.BeginDelete method.
type FirewallPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type FirewallPoliciesClientCreateOrUpdateResponse struct {
FirewallPolicy
}
FirewallPoliciesClientCreateOrUpdateResponse contains the response from method FirewallPoliciesClient.CreateOrUpdate.
type FirewallPoliciesClientDeleteResponse ¶ added in v0.3.0
type FirewallPoliciesClientDeleteResponse struct { }
FirewallPoliciesClientDeleteResponse contains the response from method FirewallPoliciesClient.Delete.
type FirewallPoliciesClientGetOptions ¶ added in v0.3.0
type FirewallPoliciesClientGetOptions struct { // Expands referenced resources. Expand *string }
FirewallPoliciesClientGetOptions contains the optional parameters for the FirewallPoliciesClient.Get method.
type FirewallPoliciesClientGetResponse ¶ added in v0.3.0
type FirewallPoliciesClientGetResponse struct {
FirewallPolicy
}
FirewallPoliciesClientGetResponse contains the response from method FirewallPoliciesClient.Get.
type FirewallPoliciesClientListAllOptions ¶ added in v0.3.0
type FirewallPoliciesClientListAllOptions struct { }
FirewallPoliciesClientListAllOptions contains the optional parameters for the FirewallPoliciesClient.ListAll method.
type FirewallPoliciesClientListAllResponse ¶ added in v0.3.0
type FirewallPoliciesClientListAllResponse struct {
FirewallPolicyListResult
}
FirewallPoliciesClientListAllResponse contains the response from method FirewallPoliciesClient.ListAll.
type FirewallPoliciesClientListOptions ¶ added in v0.3.0
type FirewallPoliciesClientListOptions struct { }
FirewallPoliciesClientListOptions contains the optional parameters for the FirewallPoliciesClient.List method.
type FirewallPoliciesClientListResponse ¶ added in v0.3.0
type FirewallPoliciesClientListResponse struct {
FirewallPolicyListResult
}
FirewallPoliciesClientListResponse contains the response from method FirewallPoliciesClient.List.
type FirewallPoliciesClientUpdateTagsOptions ¶ added in v1.0.0
type FirewallPoliciesClientUpdateTagsOptions struct { }
FirewallPoliciesClientUpdateTagsOptions contains the optional parameters for the FirewallPoliciesClient.UpdateTags method.
type FirewallPoliciesClientUpdateTagsResponse ¶ added in v1.0.0
type FirewallPoliciesClientUpdateTagsResponse struct {
FirewallPolicy
}
FirewallPoliciesClientUpdateTagsResponse contains the response from method FirewallPoliciesClient.UpdateTags.
type FirewallPolicy ¶
type FirewallPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // The identity of the firewall policy. Identity *ManagedServiceIdentity `json:"identity,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the firewall policy. Properties *FirewallPolicyPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
FirewallPolicy Resource.
func (FirewallPolicy) MarshalJSON ¶
func (f FirewallPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicy.
type FirewallPolicyCertificateAuthority ¶
type FirewallPolicyCertificateAuthority struct { // Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty"` // Name of the CA certificate. Name *string `json:"name,omitempty"` }
FirewallPolicyCertificateAuthority - Trusted Root certificates properties for tls.
type FirewallPolicyFilterRuleCollection ¶
type FirewallPolicyFilterRuleCollection struct { // REQUIRED; The type of the rule collection. RuleCollectionType *FirewallPolicyRuleCollectionType `json:"ruleCollectionType,omitempty"` // The action type of a Filter rule collection. Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` // The name of the rule collection. Name *string `json:"name,omitempty"` // Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` // List of rules included in a rule collection. Rules []FirewallPolicyRuleClassification `json:"rules,omitempty"` }
FirewallPolicyFilterRuleCollection - Firewall Policy Filter Rule Collection.
func (*FirewallPolicyFilterRuleCollection) GetFirewallPolicyRuleCollection ¶ added in v0.3.0
func (f *FirewallPolicyFilterRuleCollection) GetFirewallPolicyRuleCollection() *FirewallPolicyRuleCollection
GetFirewallPolicyRuleCollection implements the FirewallPolicyRuleCollectionClassification interface for type FirewallPolicyFilterRuleCollection.
func (FirewallPolicyFilterRuleCollection) MarshalJSON ¶
func (f FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyFilterRuleCollection.
func (*FirewallPolicyFilterRuleCollection) UnmarshalJSON ¶
func (f *FirewallPolicyFilterRuleCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallPolicyFilterRuleCollection.
type FirewallPolicyFilterRuleCollectionAction ¶
type FirewallPolicyFilterRuleCollectionAction struct { // The type of action. Type *FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` }
FirewallPolicyFilterRuleCollectionAction - Properties of the FirewallPolicyFilterRuleCollectionAction.
type FirewallPolicyFilterRuleCollectionActionType ¶
type FirewallPolicyFilterRuleCollectionActionType string
FirewallPolicyFilterRuleCollectionActionType - The action type of a rule.
const ( FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" )
func PossibleFirewallPolicyFilterRuleCollectionActionTypeValues ¶
func PossibleFirewallPolicyFilterRuleCollectionActionTypeValues() []FirewallPolicyFilterRuleCollectionActionType
PossibleFirewallPolicyFilterRuleCollectionActionTypeValues returns the possible values for the FirewallPolicyFilterRuleCollectionActionType const type.
type FirewallPolicyIDPSQuerySortOrder ¶ added in v1.0.0
type FirewallPolicyIDPSQuerySortOrder string
FirewallPolicyIDPSQuerySortOrder - Describes if results should be in ascending/descending order
const ( FirewallPolicyIDPSQuerySortOrderAscending FirewallPolicyIDPSQuerySortOrder = "Ascending" FirewallPolicyIDPSQuerySortOrderDescending FirewallPolicyIDPSQuerySortOrder = "Descending" )
func PossibleFirewallPolicyIDPSQuerySortOrderValues ¶ added in v1.0.0
func PossibleFirewallPolicyIDPSQuerySortOrderValues() []FirewallPolicyIDPSQuerySortOrder
PossibleFirewallPolicyIDPSQuerySortOrderValues returns the possible values for the FirewallPolicyIDPSQuerySortOrder const type.
type FirewallPolicyIDPSSignatureDirection ¶ added in v1.0.0
type FirewallPolicyIDPSSignatureDirection int32
FirewallPolicyIDPSSignatureDirection - Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional
const ( FirewallPolicyIDPSSignatureDirectionZero FirewallPolicyIDPSSignatureDirection = 0 FirewallPolicyIDPSSignatureDirectionOne FirewallPolicyIDPSSignatureDirection = 1 FirewallPolicyIDPSSignatureDirectionTwo FirewallPolicyIDPSSignatureDirection = 2 )
func PossibleFirewallPolicyIDPSSignatureDirectionValues ¶ added in v1.0.0
func PossibleFirewallPolicyIDPSSignatureDirectionValues() []FirewallPolicyIDPSSignatureDirection
PossibleFirewallPolicyIDPSSignatureDirectionValues returns the possible values for the FirewallPolicyIDPSSignatureDirection const type.
type FirewallPolicyIDPSSignatureMode ¶ added in v1.0.0
type FirewallPolicyIDPSSignatureMode int32
FirewallPolicyIDPSSignatureMode - The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny
const ( FirewallPolicyIDPSSignatureModeZero FirewallPolicyIDPSSignatureMode = 0 FirewallPolicyIDPSSignatureModeOne FirewallPolicyIDPSSignatureMode = 1 FirewallPolicyIDPSSignatureModeTwo FirewallPolicyIDPSSignatureMode = 2 )
func PossibleFirewallPolicyIDPSSignatureModeValues ¶ added in v1.0.0
func PossibleFirewallPolicyIDPSSignatureModeValues() []FirewallPolicyIDPSSignatureMode
PossibleFirewallPolicyIDPSSignatureModeValues returns the possible values for the FirewallPolicyIDPSSignatureMode const type.
type FirewallPolicyIDPSSignatureSeverity ¶ added in v1.0.0
type FirewallPolicyIDPSSignatureSeverity int32
FirewallPolicyIDPSSignatureSeverity - Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High
const ( FirewallPolicyIDPSSignatureSeverityOne FirewallPolicyIDPSSignatureSeverity = 1 FirewallPolicyIDPSSignatureSeverityTwo FirewallPolicyIDPSSignatureSeverity = 2 FirewallPolicyIDPSSignatureSeverityThree FirewallPolicyIDPSSignatureSeverity = 3 )
func PossibleFirewallPolicyIDPSSignatureSeverityValues ¶ added in v1.0.0
func PossibleFirewallPolicyIDPSSignatureSeverityValues() []FirewallPolicyIDPSSignatureSeverity
PossibleFirewallPolicyIDPSSignatureSeverityValues returns the possible values for the FirewallPolicyIDPSSignatureSeverity const type.
type FirewallPolicyIdpsSignaturesClient ¶ added in v0.2.0
type FirewallPolicyIdpsSignaturesClient struct {
// contains filtered or unexported fields
}
FirewallPolicyIdpsSignaturesClient contains the methods for the FirewallPolicyIdpsSignatures group. Don't use this type directly, use NewFirewallPolicyIdpsSignaturesClient() instead.
func NewFirewallPolicyIdpsSignaturesClient ¶ added in v0.2.0
func NewFirewallPolicyIdpsSignaturesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallPolicyIdpsSignaturesClient, error)
NewFirewallPolicyIdpsSignaturesClient creates a new instance of FirewallPolicyIdpsSignaturesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FirewallPolicyIdpsSignaturesClient) List ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters IDPSQueryObject, options *FirewallPolicyIdpsSignaturesClientListOptions) (FirewallPolicyIdpsSignaturesClientListResponse, error)
List - Retrieves the current status of IDPS signatures for the relevant policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPolicyIdpsSignaturesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyQuerySignatureOverrides.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "rg1", "firewallPolicy", armnetwork.IDPSQueryObject{ Filters: []*armnetwork.FilterItems{ { Field: to.Ptr("Mode"), Values: []*string{ to.Ptr("Deny")}, }}, OrderBy: &armnetwork.OrderBy{ Field: to.Ptr("severity"), Order: to.Ptr(armnetwork.FirewallPolicyIDPSQuerySortOrderAscending), }, ResultsPerPage: to.Ptr[int32](20), Search: to.Ptr(""), Skip: to.Ptr[int32](0), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type FirewallPolicyIdpsSignaturesClientListOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesClientListOptions struct { }
FirewallPolicyIdpsSignaturesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesClient.List method.
type FirewallPolicyIdpsSignaturesClientListResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesClientListResponse struct {
QueryResults
}
FirewallPolicyIdpsSignaturesClientListResponse contains the response from method FirewallPolicyIdpsSignaturesClient.List.
type FirewallPolicyIdpsSignaturesFilterValuesClient ¶ added in v0.2.0
type FirewallPolicyIdpsSignaturesFilterValuesClient struct {
// contains filtered or unexported fields
}
FirewallPolicyIdpsSignaturesFilterValuesClient contains the methods for the FirewallPolicyIdpsSignaturesFilterValues group. Don't use this type directly, use NewFirewallPolicyIdpsSignaturesFilterValuesClient() instead.
func NewFirewallPolicyIdpsSignaturesFilterValuesClient ¶ added in v0.2.0
func NewFirewallPolicyIdpsSignaturesFilterValuesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallPolicyIdpsSignaturesFilterValuesClient, error)
NewFirewallPolicyIdpsSignaturesFilterValuesClient creates a new instance of FirewallPolicyIdpsSignaturesFilterValuesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FirewallPolicyIdpsSignaturesFilterValuesClient) List ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesFilterValuesClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters SignatureOverridesFilterValuesQuery, options *FirewallPolicyIdpsSignaturesFilterValuesClientListOptions) (FirewallPolicyIdpsSignaturesFilterValuesClientListResponse, error)
List - Retrieves the current filter values for the signatures overrides If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPolicyIdpsSignaturesFilterValuesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesFilterValuesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesFilterValuesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "rg1", "firewallPolicy", armnetwork.SignatureOverridesFilterValuesQuery{ FilterName: to.Ptr("severity"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type FirewallPolicyIdpsSignaturesFilterValuesClientListOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesFilterValuesClientListOptions struct { }
FirewallPolicyIdpsSignaturesFilterValuesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesFilterValuesClient.List method.
type FirewallPolicyIdpsSignaturesFilterValuesClientListResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesFilterValuesClientListResponse struct {
SignatureOverridesFilterValuesResponse
}
FirewallPolicyIdpsSignaturesFilterValuesClientListResponse contains the response from method FirewallPolicyIdpsSignaturesFilterValuesClient.List.
type FirewallPolicyIdpsSignaturesOverridesClient ¶ added in v0.2.0
type FirewallPolicyIdpsSignaturesOverridesClient struct {
// contains filtered or unexported fields
}
FirewallPolicyIdpsSignaturesOverridesClient contains the methods for the FirewallPolicyIdpsSignaturesOverrides group. Don't use this type directly, use NewFirewallPolicyIdpsSignaturesOverridesClient() instead.
func NewFirewallPolicyIdpsSignaturesOverridesClient ¶ added in v0.2.0
func NewFirewallPolicyIdpsSignaturesOverridesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallPolicyIdpsSignaturesOverridesClient, error)
NewFirewallPolicyIdpsSignaturesOverridesClient creates a new instance of FirewallPolicyIdpsSignaturesOverridesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FirewallPolicyIdpsSignaturesOverridesClient) Get ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesOverridesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, options *FirewallPolicyIdpsSignaturesOverridesClientGetOptions) (FirewallPolicyIdpsSignaturesOverridesClientGetResponse, error)
Get - Returns all signatures overrides for a specific policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPolicyIdpsSignaturesOverridesClientGetOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicySignatureOverridesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesOverridesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "firewallPolicy", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FirewallPolicyIdpsSignaturesOverridesClient) List ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesOverridesClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string, options *FirewallPolicyIdpsSignaturesOverridesClientListOptions) (FirewallPolicyIdpsSignaturesOverridesClientListResponse, error)
List - Returns all signatures overrides objects for a specific policy as a list containing a single value. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPolicyIdpsSignaturesOverridesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicySignatureOverridesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesOverridesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "rg1", "firewallPolicy", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FirewallPolicyIdpsSignaturesOverridesClient) Patch ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesOverridesClient) Patch(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters SignaturesOverrides, options *FirewallPolicyIdpsSignaturesOverridesClientPatchOptions) (FirewallPolicyIdpsSignaturesOverridesClientPatchResponse, error)
Patch - Will update the status of policy's signature overrides for IDPS If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. parameters - Will contain all properties of the object to put options - FirewallPolicyIdpsSignaturesOverridesClientPatchOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicySignatureOverridesPatch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesOverridesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Patch(ctx, "rg1", "firewallPolicy", armnetwork.SignaturesOverrides{ Name: to.Ptr("default"), Type: to.Ptr("Microsoft.Network/firewallPolicies/signatureOverrides"), ID: to.Ptr("/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default"), Properties: &armnetwork.SignaturesOverridesProperties{ Signatures: map[string]*string{ "2000105": to.Ptr("Off"), "2000106": to.Ptr("Deny"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FirewallPolicyIdpsSignaturesOverridesClient) Put ¶ added in v0.2.0
func (client *FirewallPolicyIdpsSignaturesOverridesClient) Put(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters SignaturesOverrides, options *FirewallPolicyIdpsSignaturesOverridesClientPutOptions) (FirewallPolicyIdpsSignaturesOverridesClientPutResponse, error)
Put - Will override/create a new signature overrides for the policy's IDPS If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. parameters - Will contain all properties of the object to put options - FirewallPolicyIdpsSignaturesOverridesClientPutOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Put method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicySignatureOverridesPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyIdpsSignaturesOverridesClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Put(ctx, "rg1", "firewallPolicy", armnetwork.SignaturesOverrides{ Name: to.Ptr("default"), Type: to.Ptr("Microsoft.Network/firewallPolicies/signatureOverrides"), ID: to.Ptr("/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default"), Properties: &armnetwork.SignaturesOverridesProperties{ Signatures: map[string]*string{ "2000105": to.Ptr("Off"), "2000106": to.Ptr("Deny"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type FirewallPolicyIdpsSignaturesOverridesClientGetOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientGetOptions struct { }
FirewallPolicyIdpsSignaturesOverridesClientGetOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Get method.
type FirewallPolicyIdpsSignaturesOverridesClientGetResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientGetResponse struct {
SignaturesOverrides
}
FirewallPolicyIdpsSignaturesOverridesClientGetResponse contains the response from method FirewallPolicyIdpsSignaturesOverridesClient.Get.
type FirewallPolicyIdpsSignaturesOverridesClientListOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientListOptions struct { }
FirewallPolicyIdpsSignaturesOverridesClientListOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.List method.
type FirewallPolicyIdpsSignaturesOverridesClientListResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientListResponse struct {
SignaturesOverridesList
}
FirewallPolicyIdpsSignaturesOverridesClientListResponse contains the response from method FirewallPolicyIdpsSignaturesOverridesClient.List.
type FirewallPolicyIdpsSignaturesOverridesClientPatchOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientPatchOptions struct { }
FirewallPolicyIdpsSignaturesOverridesClientPatchOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Patch method.
type FirewallPolicyIdpsSignaturesOverridesClientPatchResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientPatchResponse struct {
SignaturesOverrides
}
FirewallPolicyIdpsSignaturesOverridesClientPatchResponse contains the response from method FirewallPolicyIdpsSignaturesOverridesClient.Patch.
type FirewallPolicyIdpsSignaturesOverridesClientPutOptions ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientPutOptions struct { }
FirewallPolicyIdpsSignaturesOverridesClientPutOptions contains the optional parameters for the FirewallPolicyIdpsSignaturesOverridesClient.Put method.
type FirewallPolicyIdpsSignaturesOverridesClientPutResponse ¶ added in v0.3.0
type FirewallPolicyIdpsSignaturesOverridesClientPutResponse struct {
SignaturesOverrides
}
FirewallPolicyIdpsSignaturesOverridesClientPutResponse contains the response from method FirewallPolicyIdpsSignaturesOverridesClient.Put.
type FirewallPolicyInsights ¶
type FirewallPolicyInsights struct { // A flag to indicate if the insights are enabled on the policy. IsEnabled *bool `json:"isEnabled,omitempty"` // Workspaces needed to configure the Firewall Policy Insights. LogAnalyticsResources *FirewallPolicyLogAnalyticsResources `json:"logAnalyticsResources,omitempty"` // Number of days the insights should be enabled on the policy. RetentionDays *int32 `json:"retentionDays,omitempty"` }
FirewallPolicyInsights - Firewall Policy Insights.
type FirewallPolicyIntrusionDetection ¶
type FirewallPolicyIntrusionDetection struct { // Intrusion detection configuration properties. Configuration *FirewallPolicyIntrusionDetectionConfiguration `json:"configuration,omitempty"` // Intrusion detection general state. Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` }
FirewallPolicyIntrusionDetection - Configuration for intrusion detection mode and rules.
type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications ¶
type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications struct { // Description of the bypass traffic rule. Description *string `json:"description,omitempty"` // List of destination IP addresses or ranges for this rule. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of destination IpGroups for this rule. DestinationIPGroups []*string `json:"destinationIpGroups,omitempty"` // List of destination ports or ranges. DestinationPorts []*string `json:"destinationPorts,omitempty"` // Name of the bypass traffic rule. Name *string `json:"name,omitempty"` // The rule bypass protocol. Protocol *FirewallPolicyIntrusionDetectionProtocol `json:"protocol,omitempty"` // List of source IP addresses or ranges for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` }
FirewallPolicyIntrusionDetectionBypassTrafficSpecifications - Intrusion detection bypass traffic specification.
func (FirewallPolicyIntrusionDetectionBypassTrafficSpecifications) MarshalJSON ¶
func (f FirewallPolicyIntrusionDetectionBypassTrafficSpecifications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.
type FirewallPolicyIntrusionDetectionConfiguration ¶
type FirewallPolicyIntrusionDetectionConfiguration struct { // List of rules for traffic to bypass. BypassTrafficSettings []*FirewallPolicyIntrusionDetectionBypassTrafficSpecifications `json:"bypassTrafficSettings,omitempty"` // IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, etc.). By default, only // ranges defined by IANA RFC 1918 are considered private IP addresses. To modify // default ranges, specify your Private IP address ranges with this property PrivateRanges []*string `json:"privateRanges,omitempty"` // List of specific signatures states. SignatureOverrides []*FirewallPolicyIntrusionDetectionSignatureSpecification `json:"signatureOverrides,omitempty"` }
FirewallPolicyIntrusionDetectionConfiguration - The operation for configuring intrusion detection.
func (FirewallPolicyIntrusionDetectionConfiguration) MarshalJSON ¶
func (f FirewallPolicyIntrusionDetectionConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyIntrusionDetectionConfiguration.
type FirewallPolicyIntrusionDetectionProtocol ¶
type FirewallPolicyIntrusionDetectionProtocol string
FirewallPolicyIntrusionDetectionProtocol - Possible intrusion detection bypass traffic protocols.
const ( FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = "ANY" FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = "ICMP" FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = "TCP" FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = "UDP" )
func PossibleFirewallPolicyIntrusionDetectionProtocolValues ¶
func PossibleFirewallPolicyIntrusionDetectionProtocolValues() []FirewallPolicyIntrusionDetectionProtocol
PossibleFirewallPolicyIntrusionDetectionProtocolValues returns the possible values for the FirewallPolicyIntrusionDetectionProtocol const type.
type FirewallPolicyIntrusionDetectionSignatureSpecification ¶
type FirewallPolicyIntrusionDetectionSignatureSpecification struct { // Signature id. ID *string `json:"id,omitempty"` // The signature state. Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` }
FirewallPolicyIntrusionDetectionSignatureSpecification - Intrusion detection signatures specification states.
type FirewallPolicyIntrusionDetectionStateType ¶
type FirewallPolicyIntrusionDetectionStateType string
FirewallPolicyIntrusionDetectionStateType - Possible state values.
const ( FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = "Alert" FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = "Deny" FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = "Off" )
func PossibleFirewallPolicyIntrusionDetectionStateTypeValues ¶
func PossibleFirewallPolicyIntrusionDetectionStateTypeValues() []FirewallPolicyIntrusionDetectionStateType
PossibleFirewallPolicyIntrusionDetectionStateTypeValues returns the possible values for the FirewallPolicyIntrusionDetectionStateType const type.
type FirewallPolicyListResult ¶
type FirewallPolicyListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Firewall Policies in a resource group. Value []*FirewallPolicy `json:"value,omitempty"` }
FirewallPolicyListResult - Response for ListFirewallPolicies API service call.
type FirewallPolicyLogAnalyticsResources ¶
type FirewallPolicyLogAnalyticsResources struct { // The default workspace Id for Firewall Policy Insights. DefaultWorkspaceID *SubResource `json:"defaultWorkspaceId,omitempty"` // List of workspaces for Firewall Policy Insights. Workspaces []*FirewallPolicyLogAnalyticsWorkspace `json:"workspaces,omitempty"` }
FirewallPolicyLogAnalyticsResources - Log Analytics Resources for Firewall Policy Insights.
func (FirewallPolicyLogAnalyticsResources) MarshalJSON ¶
func (f FirewallPolicyLogAnalyticsResources) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyLogAnalyticsResources.
type FirewallPolicyLogAnalyticsWorkspace ¶
type FirewallPolicyLogAnalyticsWorkspace struct { // Region to configure the Workspace. Region *string `json:"region,omitempty"` // The workspace Id for Firewall Policy Insights. WorkspaceID *SubResource `json:"workspaceId,omitempty"` }
FirewallPolicyLogAnalyticsWorkspace - Log Analytics Workspace for Firewall Policy Insights.
type FirewallPolicyNatRuleCollection ¶
type FirewallPolicyNatRuleCollection struct { // REQUIRED; The type of the rule collection. RuleCollectionType *FirewallPolicyRuleCollectionType `json:"ruleCollectionType,omitempty"` // The action type of a Nat rule collection. Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` // The name of the rule collection. Name *string `json:"name,omitempty"` // Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` // List of rules included in a rule collection. Rules []FirewallPolicyRuleClassification `json:"rules,omitempty"` }
FirewallPolicyNatRuleCollection - Firewall Policy NAT Rule Collection.
func (*FirewallPolicyNatRuleCollection) GetFirewallPolicyRuleCollection ¶ added in v0.3.0
func (f *FirewallPolicyNatRuleCollection) GetFirewallPolicyRuleCollection() *FirewallPolicyRuleCollection
GetFirewallPolicyRuleCollection implements the FirewallPolicyRuleCollectionClassification interface for type FirewallPolicyNatRuleCollection.
func (FirewallPolicyNatRuleCollection) MarshalJSON ¶
func (f FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyNatRuleCollection.
func (*FirewallPolicyNatRuleCollection) UnmarshalJSON ¶
func (f *FirewallPolicyNatRuleCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallPolicyNatRuleCollection.
type FirewallPolicyNatRuleCollectionAction ¶
type FirewallPolicyNatRuleCollectionAction struct { // The type of action. Type *FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` }
FirewallPolicyNatRuleCollectionAction - Properties of the FirewallPolicyNatRuleCollectionAction.
type FirewallPolicyNatRuleCollectionActionType ¶
type FirewallPolicyNatRuleCollectionActionType string
FirewallPolicyNatRuleCollectionActionType - The action type of a rule.
const (
FirewallPolicyNatRuleCollectionActionTypeDNAT FirewallPolicyNatRuleCollectionActionType = "DNAT"
)
func PossibleFirewallPolicyNatRuleCollectionActionTypeValues ¶
func PossibleFirewallPolicyNatRuleCollectionActionTypeValues() []FirewallPolicyNatRuleCollectionActionType
PossibleFirewallPolicyNatRuleCollectionActionTypeValues returns the possible values for the FirewallPolicyNatRuleCollectionActionType const type.
type FirewallPolicyPropertiesFormat ¶
type FirewallPolicyPropertiesFormat struct { // The parent firewall policy from which rules are inherited. BasePolicy *SubResource `json:"basePolicy,omitempty"` // DNS Proxy Settings definition. DNSSettings *DNSSettings `json:"dnsSettings,omitempty"` // Explicit Proxy Settings definition. ExplicitProxySettings *ExplicitProxySettings `json:"explicitProxySettings,omitempty"` // Insights on Firewall Policy. Insights *FirewallPolicyInsights `json:"insights,omitempty"` // The configuration for Intrusion detection. IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` // The Firewall Policy SKU. SKU *FirewallPolicySKU `json:"sku,omitempty"` // SQL Settings definition. SQL *FirewallPolicySQL `json:"sql,omitempty"` // The private IP addresses/IP ranges to which traffic will not be SNAT. Snat *FirewallPolicySNAT `json:"snat,omitempty"` // The operation mode for Threat Intelligence. ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` // ThreatIntel Whitelist for Firewall Policy. ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` // TLS Configuration definition. TransportSecurity *FirewallPolicyTransportSecurity `json:"transportSecurity,omitempty"` // READ-ONLY; List of references to Child Firewall Policies. ChildPolicies []*SubResource `json:"childPolicies,omitempty" azure:"ro"` // READ-ONLY; List of references to Azure Firewalls that this Firewall Policy is associated with. Firewalls []*SubResource `json:"firewalls,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the firewall policy resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; List of references to FirewallPolicyRuleCollectionGroups. RuleCollectionGroups []*SubResource `json:"ruleCollectionGroups,omitempty" azure:"ro"` }
FirewallPolicyPropertiesFormat - Firewall Policy definition.
func (FirewallPolicyPropertiesFormat) MarshalJSON ¶
func (f FirewallPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyPropertiesFormat.
type FirewallPolicyRule ¶
type FirewallPolicyRule struct { // REQUIRED; Rule Type. RuleType *FirewallPolicyRuleType `json:"ruleType,omitempty"` // Description of the rule. Description *string `json:"description,omitempty"` // Name of the rule. Name *string `json:"name,omitempty"` }
FirewallPolicyRule - Properties of a rule.
func (*FirewallPolicyRule) GetFirewallPolicyRule ¶
func (f *FirewallPolicyRule) GetFirewallPolicyRule() *FirewallPolicyRule
GetFirewallPolicyRule implements the FirewallPolicyRuleClassification interface for type FirewallPolicyRule.
type FirewallPolicyRuleApplicationProtocol ¶
type FirewallPolicyRuleApplicationProtocol struct { // Port number for the protocol, cannot be greater than 64000. Port *int32 `json:"port,omitempty"` // Protocol type. ProtocolType *FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` }
FirewallPolicyRuleApplicationProtocol - Properties of the application rule protocol.
type FirewallPolicyRuleApplicationProtocolType ¶
type FirewallPolicyRuleApplicationProtocolType string
FirewallPolicyRuleApplicationProtocolType - The application protocol type of a Rule.
const ( FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" )
func PossibleFirewallPolicyRuleApplicationProtocolTypeValues ¶
func PossibleFirewallPolicyRuleApplicationProtocolTypeValues() []FirewallPolicyRuleApplicationProtocolType
PossibleFirewallPolicyRuleApplicationProtocolTypeValues returns the possible values for the FirewallPolicyRuleApplicationProtocolType const type.
type FirewallPolicyRuleClassification ¶
type FirewallPolicyRuleClassification interface { // GetFirewallPolicyRule returns the FirewallPolicyRule content of the underlying type. GetFirewallPolicyRule() *FirewallPolicyRule }
FirewallPolicyRuleClassification provides polymorphic access to related types. Call the interface's GetFirewallPolicyRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ApplicationRule, *FirewallPolicyRule, *NatRule, *Rule
type FirewallPolicyRuleCollection ¶
type FirewallPolicyRuleCollection struct { // REQUIRED; The type of the rule collection. RuleCollectionType *FirewallPolicyRuleCollectionType `json:"ruleCollectionType,omitempty"` // The name of the rule collection. Name *string `json:"name,omitempty"` // Priority of the Firewall Policy Rule Collection resource. Priority *int32 `json:"priority,omitempty"` }
FirewallPolicyRuleCollection - Properties of the rule collection.
func (*FirewallPolicyRuleCollection) GetFirewallPolicyRuleCollection ¶
func (f *FirewallPolicyRuleCollection) GetFirewallPolicyRuleCollection() *FirewallPolicyRuleCollection
GetFirewallPolicyRuleCollection implements the FirewallPolicyRuleCollectionClassification interface for type FirewallPolicyRuleCollection.
type FirewallPolicyRuleCollectionClassification ¶
type FirewallPolicyRuleCollectionClassification interface { // GetFirewallPolicyRuleCollection returns the FirewallPolicyRuleCollection content of the underlying type. GetFirewallPolicyRuleCollection() *FirewallPolicyRuleCollection }
FirewallPolicyRuleCollectionClassification provides polymorphic access to related types. Call the interface's GetFirewallPolicyRuleCollection() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *FirewallPolicyFilterRuleCollection, *FirewallPolicyNatRuleCollection, *FirewallPolicyRuleCollection
type FirewallPolicyRuleCollectionGroup ¶
type FirewallPolicyRuleCollectionGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // The properties of the firewall policy rule collection group. Properties *FirewallPolicyRuleCollectionGroupProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Rule Group type. Type *string `json:"type,omitempty" azure:"ro"` }
FirewallPolicyRuleCollectionGroup - Rule Collection Group resource.
type FirewallPolicyRuleCollectionGroupListResult ¶
type FirewallPolicyRuleCollectionGroupListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of FirewallPolicyRuleCollectionGroups in a FirewallPolicy. Value []*FirewallPolicyRuleCollectionGroup `json:"value,omitempty"` }
FirewallPolicyRuleCollectionGroupListResult - Response for ListFirewallPolicyRuleCollectionGroups API service call.
type FirewallPolicyRuleCollectionGroupProperties ¶
type FirewallPolicyRuleCollectionGroupProperties struct { // Priority of the Firewall Policy Rule Collection Group resource. Priority *int32 `json:"priority,omitempty"` // Group of Firewall Policy rule collections. RuleCollections []FirewallPolicyRuleCollectionClassification `json:"ruleCollections,omitempty"` // READ-ONLY; The provisioning state of the firewall policy rule collection group resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
FirewallPolicyRuleCollectionGroupProperties - Properties of the rule collection group.
func (FirewallPolicyRuleCollectionGroupProperties) MarshalJSON ¶
func (f FirewallPolicyRuleCollectionGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyRuleCollectionGroupProperties.
func (*FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON ¶
func (f *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallPolicyRuleCollectionGroupProperties.
type FirewallPolicyRuleCollectionGroupsClient ¶
type FirewallPolicyRuleCollectionGroupsClient struct {
// contains filtered or unexported fields
}
FirewallPolicyRuleCollectionGroupsClient contains the methods for the FirewallPolicyRuleCollectionGroups group. Don't use this type directly, use NewFirewallPolicyRuleCollectionGroupsClient() instead.
func NewFirewallPolicyRuleCollectionGroupsClient ¶
func NewFirewallPolicyRuleCollectionGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallPolicyRuleCollectionGroupsClient, error)
NewFirewallPolicyRuleCollectionGroupsClient creates a new instance of FirewallPolicyRuleCollectionGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FirewallPolicyRuleCollectionGroupsClient) BeginCreateOrUpdate ¶
func (client *FirewallPolicyRuleCollectionGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, parameters FirewallPolicyRuleCollectionGroup, options *FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FirewallPolicyRuleCollectionGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified FirewallPolicyRuleCollectionGroup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. ruleCollectionGroupName - The name of the FirewallPolicyRuleCollectionGroup. parameters - Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. options - FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyRuleCollectionGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "firewallPolicy", "ruleCollectionGroup1", armnetwork.FirewallPolicyRuleCollectionGroup{ Properties: &armnetwork.FirewallPolicyRuleCollectionGroupProperties{ Priority: to.Ptr[int32](100), RuleCollections: []armnetwork.FirewallPolicyRuleCollectionClassification{ &armnetwork.FirewallPolicyNatRuleCollection{ Name: to.Ptr("Example-Nat-Rule-Collection"), Priority: to.Ptr[int32](100), RuleCollectionType: to.Ptr(armnetwork.FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection), Action: &armnetwork.FirewallPolicyNatRuleCollectionAction{ Type: to.Ptr(armnetwork.FirewallPolicyNatRuleCollectionActionTypeDNAT), }, Rules: []armnetwork.FirewallPolicyRuleClassification{ &armnetwork.NatRule{ Name: to.Ptr("nat-rule1"), RuleType: to.Ptr(armnetwork.FirewallPolicyRuleTypeNatRule), DestinationAddresses: []*string{ to.Ptr("152.23.32.23")}, DestinationPorts: []*string{ to.Ptr("8080")}, IPProtocols: []*armnetwork.FirewallPolicyRuleNetworkProtocol{ to.Ptr(armnetwork.FirewallPolicyRuleNetworkProtocolTCP), to.Ptr(armnetwork.FirewallPolicyRuleNetworkProtocolUDP)}, SourceAddresses: []*string{ to.Ptr("2.2.2.2")}, SourceIPGroups: []*string{}, TranslatedFqdn: to.Ptr("internalhttp.server.net"), TranslatedPort: to.Ptr("8080"), }}, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*FirewallPolicyRuleCollectionGroupsClient) BeginDelete ¶
func (client *FirewallPolicyRuleCollectionGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, options *FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions) (*runtime.Poller[FirewallPolicyRuleCollectionGroupsClientDeleteResponse], error)
BeginDelete - Deletes the specified FirewallPolicyRuleCollectionGroup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. ruleCollectionGroupName - The name of the FirewallPolicyRuleCollectionGroup. options - FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyRuleCollectionGroupDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyRuleCollectionGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "firewallPolicy", "ruleCollectionGroup1", 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 (*FirewallPolicyRuleCollectionGroupsClient) Get ¶
func (client *FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string, options *FirewallPolicyRuleCollectionGroupsClientGetOptions) (FirewallPolicyRuleCollectionGroupsClientGetResponse, error)
Get - Gets the specified FirewallPolicyRuleCollectionGroup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. ruleCollectionGroupName - The name of the FirewallPolicyRuleCollectionGroup. options - FirewallPolicyRuleCollectionGroupsClientGetOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyRuleCollectionGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "firewallPolicy", "ruleCollectionGroup1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FirewallPolicyRuleCollectionGroupsClient) NewListPager ¶ added in v0.5.0
func (client *FirewallPolicyRuleCollectionGroupsClient) NewListPager(resourceGroupName string, firewallPolicyName string, options *FirewallPolicyRuleCollectionGroupsClientListOptions) *runtime.Pager[FirewallPolicyRuleCollectionGroupsClientListResponse]
NewListPager - Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. firewallPolicyName - The name of the Firewall Policy. options - FirewallPolicyRuleCollectionGroupsClientListOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFirewallPolicyRuleCollectionGroupsClient("e747cc13-97d4-4a79-b463-42d7f4e558f2", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "firewallPolicy", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallPolicyRuleCollectionGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.BeginCreateOrUpdate method.
type FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallPolicyRuleCollectionGroupsClientBeginDeleteOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.BeginDelete method.
type FirewallPolicyRuleCollectionGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientCreateOrUpdateResponse struct {
FirewallPolicyRuleCollectionGroup
}
FirewallPolicyRuleCollectionGroupsClientCreateOrUpdateResponse contains the response from method FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate.
type FirewallPolicyRuleCollectionGroupsClientDeleteResponse ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientDeleteResponse struct { }
FirewallPolicyRuleCollectionGroupsClientDeleteResponse contains the response from method FirewallPolicyRuleCollectionGroupsClient.Delete.
type FirewallPolicyRuleCollectionGroupsClientGetOptions ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientGetOptions struct { }
FirewallPolicyRuleCollectionGroupsClientGetOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.Get method.
type FirewallPolicyRuleCollectionGroupsClientGetResponse ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientGetResponse struct {
FirewallPolicyRuleCollectionGroup
}
FirewallPolicyRuleCollectionGroupsClientGetResponse contains the response from method FirewallPolicyRuleCollectionGroupsClient.Get.
type FirewallPolicyRuleCollectionGroupsClientListOptions ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientListOptions struct { }
FirewallPolicyRuleCollectionGroupsClientListOptions contains the optional parameters for the FirewallPolicyRuleCollectionGroupsClient.List method.
type FirewallPolicyRuleCollectionGroupsClientListResponse ¶ added in v0.3.0
type FirewallPolicyRuleCollectionGroupsClientListResponse struct {
FirewallPolicyRuleCollectionGroupListResult
}
FirewallPolicyRuleCollectionGroupsClientListResponse contains the response from method FirewallPolicyRuleCollectionGroupsClient.List.
type FirewallPolicyRuleCollectionType ¶
type FirewallPolicyRuleCollectionType string
FirewallPolicyRuleCollectionType - The type of the rule collection.
const ( FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyFilterRuleCollection" FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyNatRuleCollection" )
func PossibleFirewallPolicyRuleCollectionTypeValues ¶
func PossibleFirewallPolicyRuleCollectionTypeValues() []FirewallPolicyRuleCollectionType
PossibleFirewallPolicyRuleCollectionTypeValues returns the possible values for the FirewallPolicyRuleCollectionType const type.
type FirewallPolicyRuleNetworkProtocol ¶
type FirewallPolicyRuleNetworkProtocol string
FirewallPolicyRuleNetworkProtocol - The Network protocol of a Rule.
const ( FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" )
func PossibleFirewallPolicyRuleNetworkProtocolValues ¶
func PossibleFirewallPolicyRuleNetworkProtocolValues() []FirewallPolicyRuleNetworkProtocol
PossibleFirewallPolicyRuleNetworkProtocolValues returns the possible values for the FirewallPolicyRuleNetworkProtocol const type.
type FirewallPolicyRuleType ¶
type FirewallPolicyRuleType string
FirewallPolicyRuleType - Rule Type.
const ( FirewallPolicyRuleTypeApplicationRule FirewallPolicyRuleType = "ApplicationRule" FirewallPolicyRuleTypeNatRule FirewallPolicyRuleType = "NatRule" FirewallPolicyRuleTypeNetworkRule FirewallPolicyRuleType = "NetworkRule" )
func PossibleFirewallPolicyRuleTypeValues ¶
func PossibleFirewallPolicyRuleTypeValues() []FirewallPolicyRuleType
PossibleFirewallPolicyRuleTypeValues returns the possible values for the FirewallPolicyRuleType const type.
type FirewallPolicySKU ¶
type FirewallPolicySKU struct { // Tier of Firewall Policy. Tier *FirewallPolicySKUTier `json:"tier,omitempty"` }
FirewallPolicySKU - SKU of Firewall policy.
type FirewallPolicySKUTier ¶
type FirewallPolicySKUTier string
FirewallPolicySKUTier - Tier of Firewall Policy.
const ( FirewallPolicySKUTierBasic FirewallPolicySKUTier = "Basic" FirewallPolicySKUTierPremium FirewallPolicySKUTier = "Premium" FirewallPolicySKUTierStandard FirewallPolicySKUTier = "Standard" )
func PossibleFirewallPolicySKUTierValues ¶
func PossibleFirewallPolicySKUTierValues() []FirewallPolicySKUTier
PossibleFirewallPolicySKUTierValues returns the possible values for the FirewallPolicySKUTier const type.
type FirewallPolicySNAT ¶
type FirewallPolicySNAT struct { // List of private IP addresses/IP address ranges to not be SNAT. PrivateRanges []*string `json:"privateRanges,omitempty"` }
FirewallPolicySNAT - The private IP addresses/IP ranges to which traffic will not be SNAT.
func (FirewallPolicySNAT) MarshalJSON ¶
func (f FirewallPolicySNAT) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicySNAT.
type FirewallPolicySQL ¶
type FirewallPolicySQL struct { // A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port 11000-11999. AllowSQLRedirect *bool `json:"allowSqlRedirect,omitempty"` }
FirewallPolicySQL - SQL Settings in Firewall Policy.
type FirewallPolicyThreatIntelWhitelist ¶
type FirewallPolicyThreatIntelWhitelist struct { // List of FQDNs for the ThreatIntel Whitelist. Fqdns []*string `json:"fqdns,omitempty"` // List of IP addresses for the ThreatIntel Whitelist. IPAddresses []*string `json:"ipAddresses,omitempty"` }
FirewallPolicyThreatIntelWhitelist - ThreatIntel Whitelist for Firewall Policy.
func (FirewallPolicyThreatIntelWhitelist) MarshalJSON ¶
func (f FirewallPolicyThreatIntelWhitelist) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallPolicyThreatIntelWhitelist.
type FirewallPolicyTransportSecurity ¶
type FirewallPolicyTransportSecurity struct { // The CA used for intermediate CA generation. CertificateAuthority *FirewallPolicyCertificateAuthority `json:"certificateAuthority,omitempty"` }
FirewallPolicyTransportSecurity - Configuration needed to perform TLS termination & initiation.
type FlowLog ¶
type FlowLog struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the flow log. Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
FlowLog - A flow log resource.
func (FlowLog) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type FlowLog.
type FlowLogFormatParameters ¶
type FlowLogFormatParameters struct { // The file type of flow log. Type *FlowLogFormatType `json:"type,omitempty"` // The version (revision) of the flow log. Version *int32 `json:"version,omitempty"` }
FlowLogFormatParameters - Parameters that define the flow log format.
type FlowLogFormatType ¶
type FlowLogFormatType string
FlowLogFormatType - The file type of flow log.
const (
FlowLogFormatTypeJSON FlowLogFormatType = "JSON"
)
func PossibleFlowLogFormatTypeValues ¶
func PossibleFlowLogFormatTypeValues() []FlowLogFormatType
PossibleFlowLogFormatTypeValues returns the possible values for the FlowLogFormatType const type.
type FlowLogInformation ¶
type FlowLogInformation struct { // REQUIRED; Properties of the flow log. Properties *FlowLogProperties `json:"properties,omitempty"` // REQUIRED; The ID of the resource to configure for flow log and traffic analytics (optional) . TargetResourceID *string `json:"targetResourceId,omitempty"` // Parameters that define the configuration of traffic analytics. FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` }
FlowLogInformation - Information on the configuration of flow log and traffic analytics (optional) .
type FlowLogListResult ¶
type FlowLogListResult struct { // Information about flow log resource. Value []*FlowLog `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
FlowLogListResult - List of flow logs.
type FlowLogProperties ¶
type FlowLogProperties struct { // REQUIRED; Flag to enable/disable flow logging. Enabled *bool `json:"enabled,omitempty"` // REQUIRED; ID of the storage account which is used to store the flow log. StorageID *string `json:"storageId,omitempty"` // Parameters that define the flow log format. Format *FlowLogFormatParameters `json:"format,omitempty"` // Parameters that define the retention policy for flow log. RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` }
FlowLogProperties - Parameters that define the configuration of flow log.
type FlowLogPropertiesFormat ¶
type FlowLogPropertiesFormat struct { // REQUIRED; ID of the storage account which is used to store the flow log. StorageID *string `json:"storageId,omitempty"` // REQUIRED; ID of network security group to which flow log will be applied. TargetResourceID *string `json:"targetResourceId,omitempty"` // Flag to enable/disable flow logging. Enabled *bool `json:"enabled,omitempty"` // Parameters that define the configuration of traffic analytics. FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` // Parameters that define the flow log format. Format *FlowLogFormatParameters `json:"format,omitempty"` // Parameters that define the retention policy for flow log. RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` // READ-ONLY; The provisioning state of the flow log. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Guid of network security group to which flow log will be applied. TargetResourceGUID *string `json:"targetResourceGuid,omitempty" azure:"ro"` }
FlowLogPropertiesFormat - Parameters that define the configuration of flow log.
type FlowLogStatusParameters ¶
type FlowLogStatusParameters struct { // REQUIRED; The target resource where getting the flow log and traffic analytics (optional) status. TargetResourceID *string `json:"targetResourceId,omitempty"` }
FlowLogStatusParameters - Parameters that define a resource to query flow log and traffic analytics (optional) status.
type FlowLogsClient ¶
type FlowLogsClient struct {
// contains filtered or unexported fields
}
FlowLogsClient contains the methods for the FlowLogs group. Don't use this type directly, use NewFlowLogsClient() instead.
func NewFlowLogsClient ¶
func NewFlowLogsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FlowLogsClient, error)
NewFlowLogsClient creates a new instance of FlowLogsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*FlowLogsClient) BeginCreateOrUpdate ¶
func (client *FlowLogsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters FlowLog, options *FlowLogsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FlowLogsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a flow log for the specified network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. flowLogName - The name of the flow log. parameters - Parameters that define the create or update flow log resource. options - FlowLogsClientBeginCreateOrUpdateOptions contains the optional parameters for the FlowLogsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFlowLogsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "nw1", "fl", armnetwork.FlowLog{ Location: to.Ptr("centraluseuap"), Properties: &armnetwork.FlowLogPropertiesFormat{ Format: &armnetwork.FlowLogFormatParameters{ Type: to.Ptr(armnetwork.FlowLogFormatTypeJSON), Version: to.Ptr[int32](1), }, Enabled: to.Ptr(true), StorageID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe"), TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*FlowLogsClient) BeginDelete ¶
func (client *FlowLogsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, options *FlowLogsClientBeginDeleteOptions) (*runtime.Poller[FlowLogsClientDeleteResponse], error)
BeginDelete - Deletes the specified flow log resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. flowLogName - The name of the flow log resource. options - FlowLogsClientBeginDeleteOptions contains the optional parameters for the FlowLogsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFlowLogsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nw1", "fl", 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 (*FlowLogsClient) Get ¶
func (client *FlowLogsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, options *FlowLogsClientGetOptions) (FlowLogsClientGetResponse, error)
Get - Gets a flow log resource by name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. flowLogName - The name of the flow log resource. options - FlowLogsClientGetOptions contains the optional parameters for the FlowLogsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFlowLogsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nw1", "flowLog1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*FlowLogsClient) NewListPager ¶ added in v0.5.0
func (client *FlowLogsClient) NewListPager(resourceGroupName string, networkWatcherName string, options *FlowLogsClientListOptions) *runtime.Pager[FlowLogsClientListResponse]
NewListPager - Lists all flow log resources for the specified Network Watcher. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group containing Network Watcher. networkWatcherName - The name of the Network Watcher resource. options - FlowLogsClientListOptions contains the optional parameters for the FlowLogsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFlowLogsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "nw1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*FlowLogsClient) UpdateTags ¶
func (client *FlowLogsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters TagsObject, options *FlowLogsClientUpdateTagsOptions) (FlowLogsClientUpdateTagsResponse, error)
UpdateTags - Update tags of the specified flow log. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. flowLogName - The name of the flow log. parameters - Parameters supplied to update flow log tags. options - FlowLogsClientUpdateTagsOptions contains the optional parameters for the FlowLogsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewFlowLogsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "nw", "fl", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type FlowLogsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type FlowLogsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FlowLogsClientBeginCreateOrUpdateOptions contains the optional parameters for the FlowLogsClient.BeginCreateOrUpdate method.
type FlowLogsClientBeginDeleteOptions ¶ added in v0.3.0
type FlowLogsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FlowLogsClientBeginDeleteOptions contains the optional parameters for the FlowLogsClient.BeginDelete method.
type FlowLogsClientCreateOrUpdateResponse ¶ added in v0.3.0
type FlowLogsClientCreateOrUpdateResponse struct {
FlowLog
}
FlowLogsClientCreateOrUpdateResponse contains the response from method FlowLogsClient.CreateOrUpdate.
type FlowLogsClientDeleteResponse ¶ added in v0.3.0
type FlowLogsClientDeleteResponse struct { }
FlowLogsClientDeleteResponse contains the response from method FlowLogsClient.Delete.
type FlowLogsClientGetOptions ¶ added in v0.3.0
type FlowLogsClientGetOptions struct { }
FlowLogsClientGetOptions contains the optional parameters for the FlowLogsClient.Get method.
type FlowLogsClientGetResponse ¶ added in v0.3.0
type FlowLogsClientGetResponse struct {
FlowLog
}
FlowLogsClientGetResponse contains the response from method FlowLogsClient.Get.
type FlowLogsClientListOptions ¶ added in v0.3.0
type FlowLogsClientListOptions struct { }
FlowLogsClientListOptions contains the optional parameters for the FlowLogsClient.List method.
type FlowLogsClientListResponse ¶ added in v0.3.0
type FlowLogsClientListResponse struct {
FlowLogListResult
}
FlowLogsClientListResponse contains the response from method FlowLogsClient.List.
type FlowLogsClientUpdateTagsOptions ¶ added in v0.3.0
type FlowLogsClientUpdateTagsOptions struct { }
FlowLogsClientUpdateTagsOptions contains the optional parameters for the FlowLogsClient.UpdateTags method.
type FlowLogsClientUpdateTagsResponse ¶ added in v0.3.0
type FlowLogsClientUpdateTagsResponse struct {
FlowLog
}
FlowLogsClientUpdateTagsResponse contains the response from method FlowLogsClient.UpdateTags.
type FrontendIPConfiguration ¶
type FrontendIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name // can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the load balancer probe. Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` // A list of availability zones denoting the IP allocated for the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
FrontendIPConfiguration - Frontend IP address of the load balancer.
func (FrontendIPConfiguration) MarshalJSON ¶
func (f FrontendIPConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FrontendIPConfiguration.
type FrontendIPConfigurationPropertiesFormat ¶
type FrontendIPConfigurationPropertiesFormat struct { // The reference to gateway load balancer frontend IP. GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` // The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` // The Private IP allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // The reference to the Public IP resource. PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` // The reference to the Public IP Prefix resource. PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` // The reference to the subnet resource. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; An array of references to inbound pools that use this frontend IP. InboundNatPools []*SubResource `json:"inboundNatPools,omitempty" azure:"ro"` // READ-ONLY; An array of references to inbound rules that use this frontend IP. InboundNatRules []*SubResource `json:"inboundNatRules,omitempty" azure:"ro"` // READ-ONLY; An array of references to load balancing rules that use this frontend IP. LoadBalancingRules []*SubResource `json:"loadBalancingRules,omitempty" azure:"ro"` // READ-ONLY; An array of references to outbound rules that use this frontend IP. OutboundRules []*SubResource `json:"outboundRules,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the frontend IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
FrontendIPConfigurationPropertiesFormat - Properties of Frontend IP Configuration of the load balancer.
func (FrontendIPConfigurationPropertiesFormat) MarshalJSON ¶
func (f FrontendIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FrontendIPConfigurationPropertiesFormat.
type GatewayCustomBgpIPAddressIPConfiguration ¶ added in v1.0.0
type GatewayCustomBgpIPAddressIPConfiguration struct { // REQUIRED; The custom BgpPeeringAddress which belongs to IpconfigurationId. CustomBgpIPAddress *string `json:"customBgpIpAddress,omitempty"` // REQUIRED; The IpconfigurationId of ipconfiguration which belongs to gateway. IPConfigurationID *string `json:"ipConfigurationId,omitempty"` }
GatewayCustomBgpIPAddressIPConfiguration - GatewayCustomBgpIpAddressIpConfiguration for a virtual network gateway connection.
type GatewayLoadBalancerTunnelInterface ¶
type GatewayLoadBalancerTunnelInterface struct { // Identifier of gateway load balancer tunnel interface. Identifier *int32 `json:"identifier,omitempty"` // Port of gateway load balancer tunnel interface. Port *int32 `json:"port,omitempty"` // Protocol of gateway load balancer tunnel interface. Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` // Traffic type of gateway load balancer tunnel interface. Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` }
GatewayLoadBalancerTunnelInterface - Gateway load balancer tunnel interface of a load balancer backend address pool.
type GatewayLoadBalancerTunnelInterfaceType ¶
type GatewayLoadBalancerTunnelInterfaceType string
GatewayLoadBalancerTunnelInterfaceType - Traffic type of gateway load balancer tunnel interface.
const ( GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" )
func PossibleGatewayLoadBalancerTunnelInterfaceTypeValues ¶
func PossibleGatewayLoadBalancerTunnelInterfaceTypeValues() []GatewayLoadBalancerTunnelInterfaceType
PossibleGatewayLoadBalancerTunnelInterfaceTypeValues returns the possible values for the GatewayLoadBalancerTunnelInterfaceType const type.
type GatewayLoadBalancerTunnelProtocol ¶
type GatewayLoadBalancerTunnelProtocol string
GatewayLoadBalancerTunnelProtocol - Protocol of gateway load balancer tunnel interface.
const ( GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" )
func PossibleGatewayLoadBalancerTunnelProtocolValues ¶
func PossibleGatewayLoadBalancerTunnelProtocolValues() []GatewayLoadBalancerTunnelProtocol
PossibleGatewayLoadBalancerTunnelProtocolValues returns the possible values for the GatewayLoadBalancerTunnelProtocol const type.
type GatewayRoute ¶
type GatewayRoute struct { // READ-ONLY; The route's AS path sequence. AsPath *string `json:"asPath,omitempty" azure:"ro"` // READ-ONLY; The gateway's local address. LocalAddress *string `json:"localAddress,omitempty" azure:"ro"` // READ-ONLY; The route's network prefix. Network *string `json:"network,omitempty" azure:"ro"` // READ-ONLY; The route's next hop. NextHop *string `json:"nextHop,omitempty" azure:"ro"` // READ-ONLY; The source this route was learned from. Origin *string `json:"origin,omitempty" azure:"ro"` // READ-ONLY; The peer this route was learned from. SourcePeer *string `json:"sourcePeer,omitempty" azure:"ro"` // READ-ONLY; The route's weight. Weight *int32 `json:"weight,omitempty" azure:"ro"` }
GatewayRoute - Gateway routing details.
type GatewayRouteListResult ¶
type GatewayRouteListResult struct { // List of gateway routes. Value []*GatewayRoute `json:"value,omitempty"` }
GatewayRouteListResult - List of virtual network gateway routes.
type GenerateExpressRoutePortsLOARequest ¶
type GenerateExpressRoutePortsLOARequest struct { // REQUIRED; The customer name. CustomerName *string `json:"customerName,omitempty"` }
GenerateExpressRoutePortsLOARequest - The customer name to be printed on a letter of authorization.
type GenerateExpressRoutePortsLOAResult ¶
type GenerateExpressRoutePortsLOAResult struct { // The content as a base64 encoded string. EncodedContent *string `json:"encodedContent,omitempty"` }
GenerateExpressRoutePortsLOAResult - Response for GenerateExpressRoutePortsLOA API service call.
type GetVPNSitesConfigurationRequest ¶
type GetVPNSitesConfigurationRequest struct { // REQUIRED; The sas-url to download the configurations for vpn-sites. OutputBlobSasURL *string `json:"outputBlobSasUrl,omitempty"` // List of resource-ids of the vpn-sites for which config is to be downloaded. VPNSites []*string `json:"vpnSites,omitempty"` }
GetVPNSitesConfigurationRequest - List of Vpn-Sites.
func (GetVPNSitesConfigurationRequest) MarshalJSON ¶
func (g GetVPNSitesConfigurationRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GetVPNSitesConfigurationRequest.
type HTTPConfiguration ¶
type HTTPConfiguration struct { // List of HTTP headers. Headers []*HTTPHeader `json:"headers,omitempty"` // HTTP method. Method *HTTPMethod `json:"method,omitempty"` // Valid status codes. ValidStatusCodes []*int32 `json:"validStatusCodes,omitempty"` }
HTTPConfiguration - HTTP configuration of the connectivity check.
func (HTTPConfiguration) MarshalJSON ¶
func (h HTTPConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPConfiguration.
type HTTPConfigurationMethod ¶
type HTTPConfigurationMethod string
HTTPConfigurationMethod - The HTTP method to use.
const ( HTTPConfigurationMethodGet HTTPConfigurationMethod = "Get" HTTPConfigurationMethodPost HTTPConfigurationMethod = "Post" )
func PossibleHTTPConfigurationMethodValues ¶
func PossibleHTTPConfigurationMethodValues() []HTTPConfigurationMethod
PossibleHTTPConfigurationMethodValues returns the possible values for the HTTPConfigurationMethod const type.
type HTTPHeader ¶
type HTTPHeader struct { // The name in HTTP header. Name *string `json:"name,omitempty"` // The value in HTTP header. Value *string `json:"value,omitempty"` }
HTTPHeader - The HTTP header.
type HTTPMethod ¶
type HTTPMethod string
HTTPMethod - HTTP method.
const (
HTTPMethodGet HTTPMethod = "Get"
)
func PossibleHTTPMethodValues ¶
func PossibleHTTPMethodValues() []HTTPMethod
PossibleHTTPMethodValues returns the possible values for the HTTPMethod const type.
type HopLink ¶
type HopLink struct { // Hop link properties. Properties *HopLinkProperties `json:"properties,omitempty"` // READ-ONLY; Provides additional context on links. Context map[string]*string `json:"context,omitempty" azure:"ro"` // READ-ONLY; List of issues. Issues []*ConnectivityIssue `json:"issues,omitempty" azure:"ro"` // READ-ONLY; Link type. LinkType *string `json:"linkType,omitempty" azure:"ro"` // READ-ONLY; The ID of the next hop. NextHopID *string `json:"nextHopId,omitempty" azure:"ro"` // READ-ONLY; Resource ID. ResourceID *string `json:"resourceId,omitempty" azure:"ro"` }
HopLink - Hop link.
type HopLinkProperties ¶
type HopLinkProperties struct { // READ-ONLY; Average roundtrip time in milliseconds. RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty" azure:"ro"` // READ-ONLY; Maximum roundtrip time in milliseconds. RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty" azure:"ro"` // READ-ONLY; Minimum roundtrip time in milliseconds. RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty" azure:"ro"` }
HopLinkProperties - Hop link properties.
type HubBgpConnectionStatus ¶
type HubBgpConnectionStatus string
HubBgpConnectionStatus - The current state of the VirtualHub to Peer.
const ( HubBgpConnectionStatusConnected HubBgpConnectionStatus = "Connected" HubBgpConnectionStatusConnecting HubBgpConnectionStatus = "Connecting" HubBgpConnectionStatusNotConnected HubBgpConnectionStatus = "NotConnected" HubBgpConnectionStatusUnknown HubBgpConnectionStatus = "Unknown" )
func PossibleHubBgpConnectionStatusValues ¶
func PossibleHubBgpConnectionStatusValues() []HubBgpConnectionStatus
PossibleHubBgpConnectionStatusValues returns the possible values for the HubBgpConnectionStatus const type.
type HubIPAddresses ¶
type HubIPAddresses struct { // Private IP Address associated with azure firewall. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // Public IP addresses associated with azure firewall. PublicIPs *HubPublicIPAddresses `json:"publicIPs,omitempty"` }
HubIPAddresses - IP addresses associated with azure firewall.
type HubIPConfiguration ¶
type HubIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the Ip Configuration. Name *string `json:"name,omitempty"` // The properties of the Virtual Hub IPConfigurations. Properties *HubIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Ipconfiguration type. Type *string `json:"type,omitempty" azure:"ro"` }
HubIPConfiguration - IpConfigurations.
type HubIPConfigurationPropertiesFormat ¶
type HubIPConfigurationPropertiesFormat struct { // The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // The reference to the public IP resource. PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` // The reference to the subnet resource. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
HubIPConfigurationPropertiesFormat - Properties of IP configuration.
type HubPublicIPAddresses ¶
type HubPublicIPAddresses struct { // The list of Public IP addresses associated with azure firewall or IP addresses to be retained. Addresses []*AzureFirewallPublicIPAddress `json:"addresses,omitempty"` // The number of Public IP addresses associated with azure firewall. Count *int32 `json:"count,omitempty"` }
HubPublicIPAddresses - Public IP addresses associated with azure firewall.
func (HubPublicIPAddresses) MarshalJSON ¶
func (h HubPublicIPAddresses) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HubPublicIPAddresses.
type HubRoute ¶
type HubRoute struct { // REQUIRED; The type of destinations (eg: CIDR, ResourceId, Service). DestinationType *string `json:"destinationType,omitempty"` // REQUIRED; List of all destinations. Destinations []*string `json:"destinations,omitempty"` // REQUIRED; The name of the Route that is unique within a RouteTable. This name can be used to access this route. Name *string `json:"name,omitempty"` // REQUIRED; NextHop resource ID. NextHop *string `json:"nextHop,omitempty"` // REQUIRED; The type of next hop (eg: ResourceId). NextHopType *string `json:"nextHopType,omitempty"` }
HubRoute - RouteTable route.
func (HubRoute) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type HubRoute.
type HubRouteTable ¶
type HubRouteTable struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the RouteTable resource. Properties *HubRouteTableProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
HubRouteTable - RouteTable resource in a virtual hub.
type HubRouteTableProperties ¶
type HubRouteTableProperties struct { // List of labels associated with this route table. Labels []*string `json:"labels,omitempty"` // List of all routes. Routes []*HubRoute `json:"routes,omitempty"` // READ-ONLY; List of all connections associated with this route table. AssociatedConnections []*string `json:"associatedConnections,omitempty" azure:"ro"` // READ-ONLY; List of all connections that advertise to this route table. PropagatingConnections []*string `json:"propagatingConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the RouteTable resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
HubRouteTableProperties - Parameters for RouteTable.
func (HubRouteTableProperties) MarshalJSON ¶
func (h HubRouteTableProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HubRouteTableProperties.
type HubRouteTablesClient ¶
type HubRouteTablesClient struct {
// contains filtered or unexported fields
}
HubRouteTablesClient contains the methods for the HubRouteTables group. Don't use this type directly, use NewHubRouteTablesClient() instead.
func NewHubRouteTablesClient ¶
func NewHubRouteTablesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HubRouteTablesClient, error)
NewHubRouteTablesClient creates a new instance of HubRouteTablesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*HubRouteTablesClient) BeginCreateOrUpdate ¶
func (client *HubRouteTablesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, routeTableParameters HubRouteTable, options *HubRouteTablesClientBeginCreateOrUpdateOptions) (*runtime.Poller[HubRouteTablesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. routeTableName - The name of the RouteTable. routeTableParameters - Parameters supplied to create or update RouteTable. options - HubRouteTablesClientBeginCreateOrUpdateOptions contains the optional parameters for the HubRouteTablesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubRouteTablePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualHub1", "hubRouteTable1", armnetwork.HubRouteTable{ Properties: &armnetwork.HubRouteTableProperties{ Labels: []*string{ to.Ptr("label1"), to.Ptr("label2")}, Routes: []*armnetwork.HubRoute{ { Name: to.Ptr("route1"), DestinationType: to.Ptr("CIDR"), Destinations: []*string{ to.Ptr("10.0.0.0/8"), to.Ptr("20.0.0.0/8"), to.Ptr("30.0.0.0/8")}, NextHop: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azureFirewall1"), NextHopType: to.Ptr("ResourceId"), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*HubRouteTablesClient) BeginDelete ¶
func (client *HubRouteTablesClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, options *HubRouteTablesClientBeginDeleteOptions) (*runtime.Poller[HubRouteTablesClientDeleteResponse], error)
BeginDelete - Deletes a RouteTable. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the RouteTable. virtualHubName - The name of the VirtualHub. routeTableName - The name of the RouteTable. options - HubRouteTablesClientBeginDeleteOptions contains the optional parameters for the HubRouteTablesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubRouteTableDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualHub1", "hubRouteTable1", 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 (*HubRouteTablesClient) Get ¶
func (client *HubRouteTablesClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, options *HubRouteTablesClientGetOptions) (HubRouteTablesClientGetResponse, error)
Get - Retrieves the details of a RouteTable. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. routeTableName - The name of the RouteTable. options - HubRouteTablesClientGetOptions contains the optional parameters for the HubRouteTablesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubRouteTableGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualHub1", "hubRouteTable1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*HubRouteTablesClient) NewListPager ¶ added in v0.5.0
func (client *HubRouteTablesClient) NewListPager(resourceGroupName string, virtualHubName string, options *HubRouteTablesClientListOptions) *runtime.Pager[HubRouteTablesClientListResponse]
NewListPager - Retrieves the details of all RouteTables. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - HubRouteTablesClientListOptions contains the optional parameters for the HubRouteTablesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubRouteTableList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "virtualHub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type HubRouteTablesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type HubRouteTablesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
HubRouteTablesClientBeginCreateOrUpdateOptions contains the optional parameters for the HubRouteTablesClient.BeginCreateOrUpdate method.
type HubRouteTablesClientBeginDeleteOptions ¶ added in v0.3.0
type HubRouteTablesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
HubRouteTablesClientBeginDeleteOptions contains the optional parameters for the HubRouteTablesClient.BeginDelete method.
type HubRouteTablesClientCreateOrUpdateResponse ¶ added in v0.3.0
type HubRouteTablesClientCreateOrUpdateResponse struct {
HubRouteTable
}
HubRouteTablesClientCreateOrUpdateResponse contains the response from method HubRouteTablesClient.CreateOrUpdate.
type HubRouteTablesClientDeleteResponse ¶ added in v0.3.0
type HubRouteTablesClientDeleteResponse struct { }
HubRouteTablesClientDeleteResponse contains the response from method HubRouteTablesClient.Delete.
type HubRouteTablesClientGetOptions ¶ added in v0.3.0
type HubRouteTablesClientGetOptions struct { }
HubRouteTablesClientGetOptions contains the optional parameters for the HubRouteTablesClient.Get method.
type HubRouteTablesClientGetResponse ¶ added in v0.3.0
type HubRouteTablesClientGetResponse struct {
HubRouteTable
}
HubRouteTablesClientGetResponse contains the response from method HubRouteTablesClient.Get.
type HubRouteTablesClientListOptions ¶ added in v0.3.0
type HubRouteTablesClientListOptions struct { }
HubRouteTablesClientListOptions contains the optional parameters for the HubRouteTablesClient.List method.
type HubRouteTablesClientListResponse ¶ added in v0.3.0
type HubRouteTablesClientListResponse struct {
ListHubRouteTablesResult
}
HubRouteTablesClientListResponse contains the response from method HubRouteTablesClient.List.
type HubRoutingPreference ¶ added in v1.0.0
type HubRoutingPreference string
HubRoutingPreference - The hub routing preference gateway types
const ( HubRoutingPreferenceASPath HubRoutingPreference = "ASPath" HubRoutingPreferenceExpressRoute HubRoutingPreference = "ExpressRoute" HubRoutingPreferenceVPNGateway HubRoutingPreference = "VpnGateway" )
func PossibleHubRoutingPreferenceValues ¶ added in v1.0.0
func PossibleHubRoutingPreferenceValues() []HubRoutingPreference
PossibleHubRoutingPreferenceValues returns the possible values for the HubRoutingPreference const type.
type HubVirtualNetworkConnection ¶
type HubVirtualNetworkConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the hub virtual network connection. Properties *HubVirtualNetworkConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
HubVirtualNetworkConnection Resource.
type HubVirtualNetworkConnectionProperties ¶
type HubVirtualNetworkConnectionProperties struct { // Deprecated: VirtualHub to RemoteVnet transit to enabled or not. AllowHubToRemoteVnetTransit *bool `json:"allowHubToRemoteVnetTransit,omitempty"` // Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. AllowRemoteVnetToUseHubVnetGateways *bool `json:"allowRemoteVnetToUseHubVnetGateways,omitempty"` // Enable internet security. EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` // Reference to the remote virtual network. RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` // The Routing Configuration indicating the associated and propagated route tables on this connection. RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` // READ-ONLY; The provisioning state of the hub virtual network connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
HubVirtualNetworkConnectionProperties - Parameters for HubVirtualNetworkConnection.
type HubVirtualNetworkConnectionStatus ¶
type HubVirtualNetworkConnectionStatus string
HubVirtualNetworkConnectionStatus - The current state of the VirtualHub to vnet connection.
const ( HubVirtualNetworkConnectionStatusConnected HubVirtualNetworkConnectionStatus = "Connected" HubVirtualNetworkConnectionStatusConnecting HubVirtualNetworkConnectionStatus = "Connecting" HubVirtualNetworkConnectionStatusNotConnected HubVirtualNetworkConnectionStatus = "NotConnected" HubVirtualNetworkConnectionStatusUnknown HubVirtualNetworkConnectionStatus = "Unknown" )
func PossibleHubVirtualNetworkConnectionStatusValues ¶
func PossibleHubVirtualNetworkConnectionStatusValues() []HubVirtualNetworkConnectionStatus
PossibleHubVirtualNetworkConnectionStatusValues returns the possible values for the HubVirtualNetworkConnectionStatus const type.
type HubVirtualNetworkConnectionsClient ¶
type HubVirtualNetworkConnectionsClient struct {
// contains filtered or unexported fields
}
HubVirtualNetworkConnectionsClient contains the methods for the HubVirtualNetworkConnections group. Don't use this type directly, use NewHubVirtualNetworkConnectionsClient() instead.
func NewHubVirtualNetworkConnectionsClient ¶
func NewHubVirtualNetworkConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HubVirtualNetworkConnectionsClient, error)
NewHubVirtualNetworkConnectionsClient creates a new instance of HubVirtualNetworkConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*HubVirtualNetworkConnectionsClient) BeginCreateOrUpdate ¶
func (client *HubVirtualNetworkConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, hubVirtualNetworkConnectionParameters HubVirtualNetworkConnection, options *HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[HubVirtualNetworkConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a hub virtual network connection if it doesn't exist else updates the existing one. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the HubVirtualNetworkConnection. virtualHubName - The name of the VirtualHub. connectionName - The name of the HubVirtualNetworkConnection. hubVirtualNetworkConnectionParameters - Parameters supplied to create or update a hub virtual network connection. options - HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubVirtualNetworkConnectionPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubVirtualNetworkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualHub1", "connection1", armnetwork.HubVirtualNetworkConnection{ Properties: &armnetwork.HubVirtualNetworkConnectionProperties{ EnableInternetSecurity: to.Ptr(false), RemoteVirtualNetwork: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1"), }, RoutingConfiguration: &armnetwork.RoutingConfiguration{ AssociatedRouteTable: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), }, PropagatedRouteTables: &armnetwork.PropagatedRouteTable{ IDs: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), }}, Labels: []*string{ to.Ptr("label1"), to.Ptr("label2")}, }, VnetRoutes: &armnetwork.VnetRoute{ StaticRoutes: []*armnetwork.StaticRoute{ { Name: to.Ptr("route1"), AddressPrefixes: []*string{ to.Ptr("10.1.0.0/16"), to.Ptr("10.2.0.0/16")}, NextHopIPAddress: to.Ptr("10.0.0.68"), }, { Name: to.Ptr("route2"), AddressPrefixes: []*string{ to.Ptr("10.3.0.0/16"), to.Ptr("10.4.0.0/16")}, NextHopIPAddress: to.Ptr("10.0.0.65"), }}, }, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*HubVirtualNetworkConnectionsClient) BeginDelete ¶
func (client *HubVirtualNetworkConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, options *HubVirtualNetworkConnectionsClientBeginDeleteOptions) (*runtime.Poller[HubVirtualNetworkConnectionsClientDeleteResponse], error)
BeginDelete - Deletes a HubVirtualNetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. connectionName - The name of the HubVirtualNetworkConnection. options - HubVirtualNetworkConnectionsClientBeginDeleteOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubVirtualNetworkConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubVirtualNetworkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualHub1", "connection1", 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 (*HubVirtualNetworkConnectionsClient) Get ¶
func (client *HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, options *HubVirtualNetworkConnectionsClientGetOptions) (HubVirtualNetworkConnectionsClientGetResponse, error)
Get - Retrieves the details of a HubVirtualNetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. connectionName - The name of the vpn connection. options - HubVirtualNetworkConnectionsClientGetOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubVirtualNetworkConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubVirtualNetworkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualHub1", "connection1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*HubVirtualNetworkConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *HubVirtualNetworkConnectionsClient) NewListPager(resourceGroupName string, virtualHubName string, options *HubVirtualNetworkConnectionsClientListOptions) *runtime.Pager[HubVirtualNetworkConnectionsClientListResponse]
NewListPager - Retrieves the details of all HubVirtualNetworkConnections. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - HubVirtualNetworkConnectionsClientListOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/HubVirtualNetworkConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewHubVirtualNetworkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "virtualHub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
HubVirtualNetworkConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.BeginCreateOrUpdate method.
type HubVirtualNetworkConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
HubVirtualNetworkConnectionsClientBeginDeleteOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.BeginDelete method.
type HubVirtualNetworkConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientCreateOrUpdateResponse struct {
HubVirtualNetworkConnection
}
HubVirtualNetworkConnectionsClientCreateOrUpdateResponse contains the response from method HubVirtualNetworkConnectionsClient.CreateOrUpdate.
type HubVirtualNetworkConnectionsClientDeleteResponse ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientDeleteResponse struct { }
HubVirtualNetworkConnectionsClientDeleteResponse contains the response from method HubVirtualNetworkConnectionsClient.Delete.
type HubVirtualNetworkConnectionsClientGetOptions ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientGetOptions struct { }
HubVirtualNetworkConnectionsClientGetOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.Get method.
type HubVirtualNetworkConnectionsClientGetResponse ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientGetResponse struct {
HubVirtualNetworkConnection
}
HubVirtualNetworkConnectionsClientGetResponse contains the response from method HubVirtualNetworkConnectionsClient.Get.
type HubVirtualNetworkConnectionsClientListOptions ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientListOptions struct { }
HubVirtualNetworkConnectionsClientListOptions contains the optional parameters for the HubVirtualNetworkConnectionsClient.List method.
type HubVirtualNetworkConnectionsClientListResponse ¶ added in v0.3.0
type HubVirtualNetworkConnectionsClientListResponse struct {
ListHubVirtualNetworkConnectionsResult
}
HubVirtualNetworkConnectionsClientListResponse contains the response from method HubVirtualNetworkConnectionsClient.List.
type IDPSQueryObject ¶ added in v0.2.0
type IDPSQueryObject struct { // Contain all filters names and values Filters []*FilterItems `json:"filters,omitempty"` // Column to sort response by OrderBy *OrderBy `json:"orderBy,omitempty"` // The number of the results to return in each page ResultsPerPage *int32 `json:"resultsPerPage,omitempty"` // Search term in all columns Search *string `json:"search,omitempty"` // The number of records matching the filter to skip Skip *int32 `json:"skip,omitempty"` }
IDPSQueryObject - Will describe the query to run against the IDPS signatures DB
func (IDPSQueryObject) MarshalJSON ¶ added in v0.2.0
func (i IDPSQueryObject) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IDPSQueryObject.
type IPAddressAvailabilityResult ¶
type IPAddressAvailabilityResult struct { // Private IP address availability. Available *bool `json:"available,omitempty"` // Contains other available private IP addresses if the asked for address is taken. AvailableIPAddresses []*string `json:"availableIPAddresses,omitempty"` // Private IP address platform reserved. IsPlatformReserved *bool `json:"isPlatformReserved,omitempty"` }
IPAddressAvailabilityResult - Response for CheckIPAddressAvailability API service call.
type IPAllocation ¶
type IPAllocation struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the IpAllocation. Properties *IPAllocationPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
IPAllocation - IpAllocation resource.
func (IPAllocation) MarshalJSON ¶
func (i IPAllocation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IPAllocation.
type IPAllocationListResult ¶
type IPAllocationListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of IpAllocation resources. Value []*IPAllocation `json:"value,omitempty"` }
IPAllocationListResult - Response for the ListIpAllocations API service call.
type IPAllocationMethod ¶
type IPAllocationMethod string
IPAllocationMethod - IP address allocation method.
const ( IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" IPAllocationMethodStatic IPAllocationMethod = "Static" )
func PossibleIPAllocationMethodValues ¶
func PossibleIPAllocationMethodValues() []IPAllocationMethod
PossibleIPAllocationMethodValues returns the possible values for the IPAllocationMethod const type.
type IPAllocationPropertiesFormat ¶
type IPAllocationPropertiesFormat struct { // IpAllocation tags. AllocationTags map[string]*string `json:"allocationTags,omitempty"` // The IPAM allocation ID. IpamAllocationID *string `json:"ipamAllocationId,omitempty"` // The address prefix for the IpAllocation. Prefix *string `json:"prefix,omitempty"` // The address prefix length for the IpAllocation. PrefixLength *int32 `json:"prefixLength,omitempty"` // The address prefix Type for the IpAllocation. PrefixType *IPVersion `json:"prefixType,omitempty"` // The type for the IpAllocation. Type *IPAllocationType `json:"type,omitempty"` // READ-ONLY; The Subnet that using the prefix of this IpAllocation resource. Subnet *SubResource `json:"subnet,omitempty" azure:"ro"` // READ-ONLY; The VirtualNetwork that using the prefix of this IpAllocation resource. VirtualNetwork *SubResource `json:"virtualNetwork,omitempty" azure:"ro"` }
IPAllocationPropertiesFormat - Properties of the IpAllocation.
func (IPAllocationPropertiesFormat) MarshalJSON ¶
func (i IPAllocationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IPAllocationPropertiesFormat.
type IPAllocationType ¶
type IPAllocationType string
IPAllocationType - IpAllocation type.
const ( IPAllocationTypeHypernet IPAllocationType = "Hypernet" IPAllocationTypeUndefined IPAllocationType = "Undefined" )
func PossibleIPAllocationTypeValues ¶
func PossibleIPAllocationTypeValues() []IPAllocationType
PossibleIPAllocationTypeValues returns the possible values for the IPAllocationType const type.
type IPAllocationsClient ¶
type IPAllocationsClient struct {
// contains filtered or unexported fields
}
IPAllocationsClient contains the methods for the IPAllocations group. Don't use this type directly, use NewIPAllocationsClient() instead.
func NewIPAllocationsClient ¶
func NewIPAllocationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IPAllocationsClient, error)
NewIPAllocationsClient creates a new instance of IPAllocationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IPAllocationsClient) BeginCreateOrUpdate ¶
func (client *IPAllocationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ipAllocationName string, parameters IPAllocation, options *IPAllocationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[IPAllocationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an IpAllocation in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipAllocationName - The name of the IpAllocation. parameters - Parameters supplied to the create or update virtual network operation. options - IPAllocationsClientBeginCreateOrUpdateOptions contains the optional parameters for the IPAllocationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-ipallocation", armnetwork.IPAllocation{ Location: to.Ptr("centraluseuap"), Properties: &armnetwork.IPAllocationPropertiesFormat{ Type: to.Ptr(armnetwork.IPAllocationTypeHypernet), AllocationTags: map[string]*string{ "VNetID": to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"), }, Prefix: to.Ptr("3.2.5.0/24"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*IPAllocationsClient) BeginDelete ¶
func (client *IPAllocationsClient) BeginDelete(ctx context.Context, resourceGroupName string, ipAllocationName string, options *IPAllocationsClientBeginDeleteOptions) (*runtime.Poller[IPAllocationsClientDeleteResponse], error)
BeginDelete - Deletes the specified IpAllocation. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipAllocationName - The name of the IpAllocation. options - IPAllocationsClientBeginDeleteOptions contains the optional parameters for the IPAllocationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-ipallocation", 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 (*IPAllocationsClient) Get ¶
func (client *IPAllocationsClient) Get(ctx context.Context, resourceGroupName string, ipAllocationName string, options *IPAllocationsClientGetOptions) (IPAllocationsClientGetResponse, error)
Get - Gets the specified IpAllocation by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipAllocationName - The name of the IpAllocation. options - IPAllocationsClientGetOptions contains the optional parameters for the IPAllocationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-ipallocation", &armnetwork.IPAllocationsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*IPAllocationsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *IPAllocationsClient) NewListByResourceGroupPager(resourceGroupName string, options *IPAllocationsClientListByResourceGroupOptions) *runtime.Pager[IPAllocationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all IpAllocations in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - IPAllocationsClientListByResourceGroupOptions contains the optional parameters for the IPAllocationsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IPAllocationsClient) NewListPager ¶ added in v0.5.0
func (client *IPAllocationsClient) NewListPager(options *IPAllocationsClientListOptions) *runtime.Pager[IPAllocationsClientListResponse]
NewListPager - Gets all IpAllocations in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - IPAllocationsClientListOptions contains the optional parameters for the IPAllocationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IPAllocationsClient) UpdateTags ¶
func (client *IPAllocationsClient) UpdateTags(ctx context.Context, resourceGroupName string, ipAllocationName string, parameters TagsObject, options *IPAllocationsClientUpdateTagsOptions) (IPAllocationsClientUpdateTagsResponse, error)
UpdateTags - Updates a IpAllocation tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipAllocationName - The name of the IpAllocation. parameters - Parameters supplied to update IpAllocation tags. options - IPAllocationsClientUpdateTagsOptions contains the optional parameters for the IPAllocationsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpAllocationUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPAllocationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-ipallocation", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type IPAllocationsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type IPAllocationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
IPAllocationsClientBeginCreateOrUpdateOptions contains the optional parameters for the IPAllocationsClient.BeginCreateOrUpdate method.
type IPAllocationsClientBeginDeleteOptions ¶ added in v0.3.0
type IPAllocationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
IPAllocationsClientBeginDeleteOptions contains the optional parameters for the IPAllocationsClient.BeginDelete method.
type IPAllocationsClientCreateOrUpdateResponse ¶ added in v0.3.0
type IPAllocationsClientCreateOrUpdateResponse struct {
IPAllocation
}
IPAllocationsClientCreateOrUpdateResponse contains the response from method IPAllocationsClient.CreateOrUpdate.
type IPAllocationsClientDeleteResponse ¶ added in v0.3.0
type IPAllocationsClientDeleteResponse struct { }
IPAllocationsClientDeleteResponse contains the response from method IPAllocationsClient.Delete.
type IPAllocationsClientGetOptions ¶ added in v0.3.0
type IPAllocationsClientGetOptions struct { // Expands referenced resources. Expand *string }
IPAllocationsClientGetOptions contains the optional parameters for the IPAllocationsClient.Get method.
type IPAllocationsClientGetResponse ¶ added in v0.3.0
type IPAllocationsClientGetResponse struct {
IPAllocation
}
IPAllocationsClientGetResponse contains the response from method IPAllocationsClient.Get.
type IPAllocationsClientListByResourceGroupOptions ¶ added in v0.3.0
type IPAllocationsClientListByResourceGroupOptions struct { }
IPAllocationsClientListByResourceGroupOptions contains the optional parameters for the IPAllocationsClient.ListByResourceGroup method.
type IPAllocationsClientListByResourceGroupResponse ¶ added in v0.3.0
type IPAllocationsClientListByResourceGroupResponse struct {
IPAllocationListResult
}
IPAllocationsClientListByResourceGroupResponse contains the response from method IPAllocationsClient.ListByResourceGroup.
type IPAllocationsClientListOptions ¶ added in v0.3.0
type IPAllocationsClientListOptions struct { }
IPAllocationsClientListOptions contains the optional parameters for the IPAllocationsClient.List method.
type IPAllocationsClientListResponse ¶ added in v0.3.0
type IPAllocationsClientListResponse struct {
IPAllocationListResult
}
IPAllocationsClientListResponse contains the response from method IPAllocationsClient.List.
type IPAllocationsClientUpdateTagsOptions ¶ added in v0.3.0
type IPAllocationsClientUpdateTagsOptions struct { }
IPAllocationsClientUpdateTagsOptions contains the optional parameters for the IPAllocationsClient.UpdateTags method.
type IPAllocationsClientUpdateTagsResponse ¶ added in v0.3.0
type IPAllocationsClientUpdateTagsResponse struct {
IPAllocation
}
IPAllocationsClientUpdateTagsResponse contains the response from method IPAllocationsClient.UpdateTags.
type IPConfiguration ¶
type IPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the IP configuration. Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
IPConfiguration - IP configuration.
type IPConfigurationBgpPeeringAddress ¶
type IPConfigurationBgpPeeringAddress struct { // The list of custom BGP peering addresses which belong to IP configuration. CustomBgpIPAddresses []*string `json:"customBgpIpAddresses,omitempty"` // The ID of IP configuration which belongs to gateway. IPConfigurationID *string `json:"ipconfigurationId,omitempty"` // READ-ONLY; The list of default BGP peering addresses which belong to IP configuration. DefaultBgpIPAddresses []*string `json:"defaultBgpIpAddresses,omitempty" azure:"ro"` // READ-ONLY; The list of tunnel public IP addresses which belong to IP configuration. TunnelIPAddresses []*string `json:"tunnelIpAddresses,omitempty" azure:"ro"` }
IPConfigurationBgpPeeringAddress - Properties of IPConfigurationBgpPeeringAddress.
func (IPConfigurationBgpPeeringAddress) MarshalJSON ¶
func (i IPConfigurationBgpPeeringAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IPConfigurationBgpPeeringAddress.
type IPConfigurationProfile ¶
type IPConfigurationProfile struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the IP configuration profile. Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
IPConfigurationProfile - IP configuration profile child resource.
type IPConfigurationProfilePropertiesFormat ¶
type IPConfigurationProfilePropertiesFormat struct { // The reference to the subnet resource to create a container network interface ip configuration. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the IP configuration profile resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
IPConfigurationProfilePropertiesFormat - IP configuration profile properties.
type IPConfigurationPropertiesFormat ¶
type IPConfigurationPropertiesFormat struct { // The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // The reference to the public IP resource. PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` // The reference to the subnet resource. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
IPConfigurationPropertiesFormat - Properties of IP configuration.
type IPFlowProtocol ¶
type IPFlowProtocol string
IPFlowProtocol - Protocol to be verified on.
const ( IPFlowProtocolTCP IPFlowProtocol = "TCP" IPFlowProtocolUDP IPFlowProtocol = "UDP" )
func PossibleIPFlowProtocolValues ¶
func PossibleIPFlowProtocolValues() []IPFlowProtocol
PossibleIPFlowProtocolValues returns the possible values for the IPFlowProtocol const type.
type IPGroup ¶
type IPGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the IpGroups. Properties *IPGroupPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
IPGroup - The IpGroups resource information.
func (IPGroup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type IPGroup.
type IPGroupListResult ¶
type IPGroupListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of IpGroups information resources. Value []*IPGroup `json:"value,omitempty"` }
IPGroupListResult - Response for the ListIpGroups API service call.
type IPGroupPropertiesFormat ¶
type IPGroupPropertiesFormat struct { // IpAddresses/IpAddressPrefixes in the IpGroups resource. IPAddresses []*string `json:"ipAddresses,omitempty"` // READ-ONLY; List of references to Firewall Policies resources that this IpGroups is associated with. FirewallPolicies []*SubResource `json:"firewallPolicies,omitempty" azure:"ro"` // READ-ONLY; List of references to Firewall resources that this IpGroups is associated with. Firewalls []*SubResource `json:"firewalls,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the IpGroups resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
IPGroupPropertiesFormat - The IpGroups property information.
func (IPGroupPropertiesFormat) MarshalJSON ¶
func (i IPGroupPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IPGroupPropertiesFormat.
type IPGroupsClient ¶
type IPGroupsClient struct {
// contains filtered or unexported fields
}
IPGroupsClient contains the methods for the IPGroups group. Don't use this type directly, use NewIPGroupsClient() instead.
func NewIPGroupsClient ¶
func NewIPGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IPGroupsClient, error)
NewIPGroupsClient creates a new instance of IPGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IPGroupsClient) BeginCreateOrUpdate ¶
func (client *IPGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ipGroupsName string, parameters IPGroup, options *IPGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[IPGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an ipGroups in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipGroupsName - The name of the ipGroups. parameters - Parameters supplied to the create or update IpGroups operation. options - IPGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the IPGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "myResourceGroup", "ipGroups1", armnetwork.IPGroup{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.IPGroupPropertiesFormat{ IPAddresses: []*string{ to.Ptr("13.64.39.16/32"), to.Ptr("40.74.146.80/31"), to.Ptr("40.74.147.32/28")}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*IPGroupsClient) BeginDelete ¶
func (client *IPGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, ipGroupsName string, options *IPGroupsClientBeginDeleteOptions) (*runtime.Poller[IPGroupsClientDeleteResponse], error)
BeginDelete - Deletes the specified ipGroups. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipGroupsName - The name of the ipGroups. options - IPGroupsClientBeginDeleteOptions contains the optional parameters for the IPGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myResourceGroup", "ipGroups1", 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 (*IPGroupsClient) Get ¶
func (client *IPGroupsClient) Get(ctx context.Context, resourceGroupName string, ipGroupsName string, options *IPGroupsClientGetOptions) (IPGroupsClientGetResponse, error)
Get - Gets the specified ipGroups. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipGroupsName - The name of the ipGroups. options - IPGroupsClientGetOptions contains the optional parameters for the IPGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myResourceGroup", "ipGroups1", &armnetwork.IPGroupsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*IPGroupsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *IPGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *IPGroupsClientListByResourceGroupOptions) *runtime.Pager[IPGroupsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all IpGroups in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - IPGroupsClientListByResourceGroupOptions contains the optional parameters for the IPGroupsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("myResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IPGroupsClient) NewListPager ¶ added in v0.5.0
func (client *IPGroupsClient) NewListPager(options *IPGroupsClientListOptions) *runtime.Pager[IPGroupsClientListResponse]
NewListPager - Gets all IpGroups in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - IPGroupsClientListOptions contains the optional parameters for the IPGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IPGroupsClient) UpdateGroups ¶
func (client *IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName string, ipGroupsName string, parameters TagsObject, options *IPGroupsClientUpdateGroupsOptions) (IPGroupsClientUpdateGroupsResponse, error)
UpdateGroups - Updates tags of an IpGroups resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. ipGroupsName - The name of the ipGroups. parameters - Parameters supplied to the update ipGroups operation. options - IPGroupsClientUpdateGroupsOptions contains the optional parameters for the IPGroupsClient.UpdateGroups method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/IpGroupsUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewIPGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateGroups(ctx, "myResourceGroup", "ipGroups1", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type IPGroupsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type IPGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
IPGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the IPGroupsClient.BeginCreateOrUpdate method.
type IPGroupsClientBeginDeleteOptions ¶ added in v0.3.0
type IPGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
IPGroupsClientBeginDeleteOptions contains the optional parameters for the IPGroupsClient.BeginDelete method.
type IPGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type IPGroupsClientCreateOrUpdateResponse struct {
IPGroup
}
IPGroupsClientCreateOrUpdateResponse contains the response from method IPGroupsClient.CreateOrUpdate.
type IPGroupsClientDeleteResponse ¶ added in v0.3.0
type IPGroupsClientDeleteResponse struct { }
IPGroupsClientDeleteResponse contains the response from method IPGroupsClient.Delete.
type IPGroupsClientGetOptions ¶ added in v0.3.0
type IPGroupsClientGetOptions struct { // Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. Expand *string }
IPGroupsClientGetOptions contains the optional parameters for the IPGroupsClient.Get method.
type IPGroupsClientGetResponse ¶ added in v0.3.0
type IPGroupsClientGetResponse struct {
IPGroup
}
IPGroupsClientGetResponse contains the response from method IPGroupsClient.Get.
type IPGroupsClientListByResourceGroupOptions ¶ added in v0.3.0
type IPGroupsClientListByResourceGroupOptions struct { }
IPGroupsClientListByResourceGroupOptions contains the optional parameters for the IPGroupsClient.ListByResourceGroup method.
type IPGroupsClientListByResourceGroupResponse ¶ added in v0.3.0
type IPGroupsClientListByResourceGroupResponse struct {
IPGroupListResult
}
IPGroupsClientListByResourceGroupResponse contains the response from method IPGroupsClient.ListByResourceGroup.
type IPGroupsClientListOptions ¶ added in v0.3.0
type IPGroupsClientListOptions struct { }
IPGroupsClientListOptions contains the optional parameters for the IPGroupsClient.List method.
type IPGroupsClientListResponse ¶ added in v0.3.0
type IPGroupsClientListResponse struct {
IPGroupListResult
}
IPGroupsClientListResponse contains the response from method IPGroupsClient.List.
type IPGroupsClientUpdateGroupsOptions ¶ added in v0.3.0
type IPGroupsClientUpdateGroupsOptions struct { }
IPGroupsClientUpdateGroupsOptions contains the optional parameters for the IPGroupsClient.UpdateGroups method.
type IPGroupsClientUpdateGroupsResponse ¶ added in v0.3.0
type IPGroupsClientUpdateGroupsResponse struct {
IPGroup
}
IPGroupsClientUpdateGroupsResponse contains the response from method IPGroupsClient.UpdateGroups.
type IPSecEncryption ¶
type IPSecEncryption string
IPSecEncryption - The IPSec encryption algorithm (IKE phase 1).
const ( IPSecEncryptionAES128 IPSecEncryption = "AES128" IPSecEncryptionAES192 IPSecEncryption = "AES192" IPSecEncryptionAES256 IPSecEncryption = "AES256" IPSecEncryptionDES IPSecEncryption = "DES" IPSecEncryptionDES3 IPSecEncryption = "DES3" IPSecEncryptionGCMAES128 IPSecEncryption = "GCMAES128" IPSecEncryptionGCMAES192 IPSecEncryption = "GCMAES192" IPSecEncryptionGCMAES256 IPSecEncryption = "GCMAES256" IPSecEncryptionNone IPSecEncryption = "None" )
func PossibleIPSecEncryptionValues ¶
func PossibleIPSecEncryptionValues() []IPSecEncryption
PossibleIPSecEncryptionValues returns the possible values for the IPSecEncryption const type.
type IPSecIntegrity ¶
type IPSecIntegrity string
IPSecIntegrity - The IPSec integrity algorithm (IKE phase 1).
const ( IPSecIntegrityGCMAES128 IPSecIntegrity = "GCMAES128" IPSecIntegrityGCMAES192 IPSecIntegrity = "GCMAES192" IPSecIntegrityGCMAES256 IPSecIntegrity = "GCMAES256" IPSecIntegrityMD5 IPSecIntegrity = "MD5" IPSecIntegritySHA1 IPSecIntegrity = "SHA1" IPSecIntegritySHA256 IPSecIntegrity = "SHA256" )
func PossibleIPSecIntegrityValues ¶
func PossibleIPSecIntegrityValues() []IPSecIntegrity
PossibleIPSecIntegrityValues returns the possible values for the IPSecIntegrity const type.
type IPSecPolicy ¶
type IPSecPolicy struct { // REQUIRED; The DH Group used in IKE Phase 1 for initial SA. DhGroup *DhGroup `json:"dhGroup,omitempty"` // REQUIRED; The IPSec encryption algorithm (IKE phase 1). IPSecEncryption *IPSecEncryption `json:"ipsecEncryption,omitempty"` // REQUIRED; The IPSec integrity algorithm (IKE phase 1). IPSecIntegrity *IPSecIntegrity `json:"ipsecIntegrity,omitempty"` // REQUIRED; The IKE encryption algorithm (IKE phase 2). IkeEncryption *IkeEncryption `json:"ikeEncryption,omitempty"` // REQUIRED; The IKE integrity algorithm (IKE phase 2). IkeIntegrity *IkeIntegrity `json:"ikeIntegrity,omitempty"` // REQUIRED; The Pfs Group used in IKE Phase 2 for new child SA. PfsGroup *PfsGroup `json:"pfsGroup,omitempty"` // REQUIRED; The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN // tunnel. SaDataSizeKilobytes *int32 `json:"saDataSizeKilobytes,omitempty"` // REQUIRED; The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site // VPN tunnel. SaLifeTimeSeconds *int32 `json:"saLifeTimeSeconds,omitempty"` }
IPSecPolicy - An IPSec Policy configuration for a virtual network gateway connection.
type IPTag ¶
type IPTag struct { // The IP tag type. Example: FirstPartyUsage. IPTagType *string `json:"ipTagType,omitempty"` // The value of the IP tag associated with the public IP. Example: SQL. Tag *string `json:"tag,omitempty"` }
IPTag - Contains the IpTag associated with the object.
type IPVersion ¶
type IPVersion string
IPVersion - IP address version.
func PossibleIPVersionValues ¶
func PossibleIPVersionValues() []IPVersion
PossibleIPVersionValues returns the possible values for the IPVersion const type.
type IPv6CircuitConnectionConfig ¶
type IPv6CircuitConnectionConfig struct { // /125 IP address space to carve out customer addresses for global reach. AddressPrefix *string `json:"addressPrefix,omitempty"` // READ-ONLY; Express Route Circuit connection state. CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty" azure:"ro"` }
IPv6CircuitConnectionConfig - IPv6 Circuit Connection properties for global reach.
type IPv6ExpressRouteCircuitPeeringConfig ¶
type IPv6ExpressRouteCircuitPeeringConfig struct { // The Microsoft peering configuration. MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` // The primary address prefix. PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` // The reference to the RouteFilter resource. RouteFilter *SubResource `json:"routeFilter,omitempty"` // The secondary address prefix. SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` // The state of peering. State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` }
IPv6ExpressRouteCircuitPeeringConfig - Contains IPv6 peering config.
type IkeEncryption ¶
type IkeEncryption string
IkeEncryption - The IKE encryption algorithm (IKE phase 2).
const ( IkeEncryptionAES128 IkeEncryption = "AES128" IkeEncryptionAES192 IkeEncryption = "AES192" IkeEncryptionAES256 IkeEncryption = "AES256" IkeEncryptionDES IkeEncryption = "DES" IkeEncryptionDES3 IkeEncryption = "DES3" IkeEncryptionGCMAES128 IkeEncryption = "GCMAES128" IkeEncryptionGCMAES256 IkeEncryption = "GCMAES256" )
func PossibleIkeEncryptionValues ¶
func PossibleIkeEncryptionValues() []IkeEncryption
PossibleIkeEncryptionValues returns the possible values for the IkeEncryption const type.
type IkeIntegrity ¶
type IkeIntegrity string
IkeIntegrity - The IKE integrity algorithm (IKE phase 2).
const ( IkeIntegrityGCMAES128 IkeIntegrity = "GCMAES128" IkeIntegrityGCMAES256 IkeIntegrity = "GCMAES256" IkeIntegrityMD5 IkeIntegrity = "MD5" IkeIntegritySHA1 IkeIntegrity = "SHA1" IkeIntegritySHA256 IkeIntegrity = "SHA256" IkeIntegritySHA384 IkeIntegrity = "SHA384" )
func PossibleIkeIntegrityValues ¶
func PossibleIkeIntegrityValues() []IkeIntegrity
PossibleIkeIntegrityValues returns the possible values for the IkeIntegrity const type.
type InboundNatPool ¶
type InboundNatPool struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. This name can be // used to access the resource. Name *string `json:"name,omitempty"` // Properties of load balancer inbound nat pool. Properties *InboundNatPoolPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
InboundNatPool - Inbound NAT pool of the load balancer.
type InboundNatPoolPropertiesFormat ¶
type InboundNatPoolPropertiesFormat struct { // REQUIRED; The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535. BackendPort *int32 `json:"backendPort,omitempty"` // REQUIRED; The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated // with a load balancer. Acceptable values range between 1 and 65535. FrontendPortRangeEnd *int32 `json:"frontendPortRangeEnd,omitempty"` // REQUIRED; The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated // with a load balancer. Acceptable values range between 1 and 65534. FrontendPortRangeStart *int32 `json:"frontendPortRangeStart,omitempty"` // REQUIRED; The reference to the transport protocol used by the inbound NAT pool. Protocol *TransportProtocol `json:"protocol,omitempty"` // Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability // Group. This setting is required when using the SQL AlwaysOn Availability Groups // in SQL server. This setting can't be changed after you create the endpoint. EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` // Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used // when the protocol is set to TCP. EnableTCPReset *bool `json:"enableTcpReset,omitempty"` // A reference to frontend IP addresses. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` // The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. // This element is only used when the protocol is set to TCP. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // READ-ONLY; The provisioning state of the inbound NAT pool resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
InboundNatPoolPropertiesFormat - Properties of Inbound NAT pool.
type InboundNatRule ¶
type InboundNatRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be // used to access the resource. Name *string `json:"name,omitempty"` // Properties of load balancer inbound NAT rule. Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
InboundNatRule - Inbound NAT rule of the load balancer.
type InboundNatRuleListResult ¶
type InboundNatRuleListResult struct { // A list of inbound NAT rules in a load balancer. Value []*InboundNatRule `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InboundNatRuleListResult - Response for ListInboundNatRule API service call.
type InboundNatRulePortMapping ¶ added in v0.2.0
type InboundNatRulePortMapping struct { // READ-ONLY; Backend port. BackendPort *int32 `json:"backendPort,omitempty" azure:"ro"` // READ-ONLY; Frontend port. FrontendPort *int32 `json:"frontendPort,omitempty" azure:"ro"` // READ-ONLY; Name of inbound NAT rule. InboundNatRuleName *string `json:"inboundNatRuleName,omitempty" azure:"ro"` // READ-ONLY; The reference to the transport protocol used by the inbound NAT rule. Protocol *TransportProtocol `json:"protocol,omitempty" azure:"ro"` }
InboundNatRulePortMapping - Individual port mappings for inbound NAT rule created for backend pool.
type InboundNatRulePropertiesFormat ¶
type InboundNatRulePropertiesFormat struct { // A reference to backendAddressPool resource. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // The port used for the internal endpoint. Acceptable values range from 1 to 65535. BackendPort *int32 `json:"backendPort,omitempty"` // Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability // Group. This setting is required when using the SQL AlwaysOn Availability Groups // in SQL server. This setting can't be changed after you create the endpoint. EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` // Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used // when the protocol is set to TCP. EnableTCPReset *bool `json:"enableTcpReset,omitempty"` // A reference to frontend IP addresses. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` // The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values // range from 1 to 65534. FrontendPort *int32 `json:"frontendPort,omitempty"` // The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. // Individual inbound NAT rule port mappings will be created for each // backend address from BackendAddressPool. Acceptable values range from 1 to 65534. FrontendPortRangeEnd *int32 `json:"frontendPortRangeEnd,omitempty"` // The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. // Individual inbound NAT rule port mappings will be created for each // backend address from BackendAddressPool. Acceptable values range from 1 to 65534. FrontendPortRangeStart *int32 `json:"frontendPortRangeStart,omitempty"` // The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. // This element is only used when the protocol is set to TCP. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // The reference to the transport protocol used by the load balancing rule. Protocol *TransportProtocol `json:"protocol,omitempty"` // READ-ONLY; A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port // of each of the frontend IP configurations is forwarded to the backend IP. BackendIPConfiguration *InterfaceIPConfiguration `json:"backendIPConfiguration,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the inbound NAT rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
InboundNatRulePropertiesFormat - Properties of the inbound NAT rule.
type InboundNatRulesClient ¶
type InboundNatRulesClient struct {
// contains filtered or unexported fields
}
InboundNatRulesClient contains the methods for the InboundNatRules group. Don't use this type directly, use NewInboundNatRulesClient() instead.
func NewInboundNatRulesClient ¶
func NewInboundNatRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InboundNatRulesClient, error)
NewInboundNatRulesClient creates a new instance of InboundNatRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InboundNatRulesClient) BeginCreateOrUpdate ¶
func (client *InboundNatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters InboundNatRule, options *InboundNatRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[InboundNatRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a load balancer inbound NAT rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. inboundNatRuleName - The name of the inbound NAT rule. inboundNatRuleParameters - Parameters supplied to the create or update inbound NAT rule operation. options - InboundNatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the InboundNatRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/InboundNatRuleCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInboundNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "lb1", "natRule1.1", armnetwork.InboundNatRule{ Properties: &armnetwork.InboundNatRulePropertiesFormat{ BackendPort: to.Ptr[int32](3389), EnableFloatingIP: to.Ptr(false), EnableTCPReset: to.Ptr(false), FrontendIPConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"), }, FrontendPort: to.Ptr[int32](3390), IdleTimeoutInMinutes: to.Ptr[int32](4), Protocol: to.Ptr(armnetwork.TransportProtocolTCP), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*InboundNatRulesClient) BeginDelete ¶
func (client *InboundNatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, options *InboundNatRulesClientBeginDeleteOptions) (*runtime.Poller[InboundNatRulesClientDeleteResponse], error)
BeginDelete - Deletes the specified load balancer inbound NAT rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. inboundNatRuleName - The name of the inbound NAT rule. options - InboundNatRulesClientBeginDeleteOptions contains the optional parameters for the InboundNatRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/InboundNatRuleDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInboundNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "testrg", "lb1", "natRule1.1", 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 (*InboundNatRulesClient) Get ¶
func (client *InboundNatRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, options *InboundNatRulesClientGetOptions) (InboundNatRulesClientGetResponse, error)
Get - Gets the specified load balancer inbound NAT rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. inboundNatRuleName - The name of the inbound NAT rule. options - InboundNatRulesClientGetOptions contains the optional parameters for the InboundNatRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/InboundNatRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInboundNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb1", "natRule1.1", &armnetwork.InboundNatRulesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InboundNatRulesClient) NewListPager ¶ added in v0.5.0
func (client *InboundNatRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, options *InboundNatRulesClientListOptions) *runtime.Pager[InboundNatRulesClientListResponse]
NewListPager - Gets all the inbound NAT rules in a load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - InboundNatRulesClientListOptions contains the optional parameters for the InboundNatRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/InboundNatRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInboundNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type InboundNatRulesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type InboundNatRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InboundNatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the InboundNatRulesClient.BeginCreateOrUpdate method.
type InboundNatRulesClientBeginDeleteOptions ¶ added in v0.3.0
type InboundNatRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InboundNatRulesClientBeginDeleteOptions contains the optional parameters for the InboundNatRulesClient.BeginDelete method.
type InboundNatRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type InboundNatRulesClientCreateOrUpdateResponse struct {
InboundNatRule
}
InboundNatRulesClientCreateOrUpdateResponse contains the response from method InboundNatRulesClient.CreateOrUpdate.
type InboundNatRulesClientDeleteResponse ¶ added in v0.3.0
type InboundNatRulesClientDeleteResponse struct { }
InboundNatRulesClientDeleteResponse contains the response from method InboundNatRulesClient.Delete.
type InboundNatRulesClientGetOptions ¶ added in v0.3.0
type InboundNatRulesClientGetOptions struct { // Expands referenced resources. Expand *string }
InboundNatRulesClientGetOptions contains the optional parameters for the InboundNatRulesClient.Get method.
type InboundNatRulesClientGetResponse ¶ added in v0.3.0
type InboundNatRulesClientGetResponse struct {
InboundNatRule
}
InboundNatRulesClientGetResponse contains the response from method InboundNatRulesClient.Get.
type InboundNatRulesClientListOptions ¶ added in v0.3.0
type InboundNatRulesClientListOptions struct { }
InboundNatRulesClientListOptions contains the optional parameters for the InboundNatRulesClient.List method.
type InboundNatRulesClientListResponse ¶ added in v0.3.0
type InboundNatRulesClientListResponse struct {
InboundNatRuleListResult
}
InboundNatRulesClientListResponse contains the response from method InboundNatRulesClient.List.
type InboundSecurityRule ¶
type InboundSecurityRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of security rule collection. Name *string `json:"name,omitempty"` // The properties of the Inbound Security Rules. Properties *InboundSecurityRuleProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; NVA inbound security rule type. Type *string `json:"type,omitempty" azure:"ro"` }
InboundSecurityRule - NVA Inbound Security Rule resource.
type InboundSecurityRuleClient ¶
type InboundSecurityRuleClient struct {
// contains filtered or unexported fields
}
InboundSecurityRuleClient contains the methods for the InboundSecurityRule group. Don't use this type directly, use NewInboundSecurityRuleClient() instead.
func NewInboundSecurityRuleClient ¶
func NewInboundSecurityRuleClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InboundSecurityRuleClient, error)
NewInboundSecurityRuleClient creates a new instance of InboundSecurityRuleClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InboundSecurityRuleClient) BeginCreateOrUpdate ¶
func (client *InboundSecurityRuleClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, ruleCollectionName string, parameters InboundSecurityRule, options *InboundSecurityRuleClientBeginCreateOrUpdateOptions) (*runtime.Poller[InboundSecurityRuleClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Network Virtual Appliance Inbound Security Rules. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of the Network Virtual Appliance. ruleCollectionName - The name of security rule collection. parameters - Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules operation. options - InboundSecurityRuleClientBeginCreateOrUpdateOptions contains the optional parameters for the InboundSecurityRuleClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/InboundSecurityRulePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInboundSecurityRuleClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "nva", "rule1", armnetwork.InboundSecurityRule{ Properties: &armnetwork.InboundSecurityRuleProperties{ Rules: []*armnetwork.InboundSecurityRules{ { DestinationPortRange: to.Ptr[int32](22), SourceAddressPrefix: to.Ptr("50.20.121.5/32"), Protocol: to.Ptr(armnetwork.InboundSecurityRulesProtocolTCP), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
type InboundSecurityRuleClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type InboundSecurityRuleClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InboundSecurityRuleClientBeginCreateOrUpdateOptions contains the optional parameters for the InboundSecurityRuleClient.BeginCreateOrUpdate method.
type InboundSecurityRuleClientCreateOrUpdateResponse ¶ added in v0.3.0
type InboundSecurityRuleClientCreateOrUpdateResponse struct {
InboundSecurityRule
}
InboundSecurityRuleClientCreateOrUpdateResponse contains the response from method InboundSecurityRuleClient.CreateOrUpdate.
type InboundSecurityRuleProperties ¶
type InboundSecurityRuleProperties struct { // List of allowed rules. Rules []*InboundSecurityRules `json:"rules,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
InboundSecurityRuleProperties - Properties of the Inbound Security Rules resource.
func (InboundSecurityRuleProperties) MarshalJSON ¶
func (i InboundSecurityRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InboundSecurityRuleProperties.
type InboundSecurityRules ¶
type InboundSecurityRules struct { // NVA port ranges to be opened up. One needs to provide specific ports. DestinationPortRange *int32 `json:"destinationPortRange,omitempty"` // Protocol. This should be either TCP or UDP. Protocol *InboundSecurityRulesProtocol `json:"protocol,omitempty"` // The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed. SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` }
InboundSecurityRules - Properties of the Inbound Security Rules resource.
type InboundSecurityRulesProtocol ¶
type InboundSecurityRulesProtocol string
InboundSecurityRulesProtocol - Protocol. This should be either TCP or UDP.
const ( InboundSecurityRulesProtocolTCP InboundSecurityRulesProtocol = "TCP" InboundSecurityRulesProtocolUDP InboundSecurityRulesProtocol = "UDP" )
func PossibleInboundSecurityRulesProtocolValues ¶
func PossibleInboundSecurityRulesProtocolValues() []InboundSecurityRulesProtocol
PossibleInboundSecurityRulesProtocolValues returns the possible values for the InboundSecurityRulesProtocol const type.
type IntentPolicy ¶ added in v0.3.0
type IntentPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
IntentPolicy - Network Intent Policy resource.
func (IntentPolicy) MarshalJSON ¶ added in v0.3.0
func (i IntentPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IntentPolicy.
type IntentPolicyConfiguration ¶ added in v0.3.0
type IntentPolicyConfiguration struct { // The name of the Network Intent Policy for storing in target subscription. NetworkIntentPolicyName *string `json:"networkIntentPolicyName,omitempty"` // Source network intent policy. SourceNetworkIntentPolicy *IntentPolicy `json:"sourceNetworkIntentPolicy,omitempty"` }
IntentPolicyConfiguration - Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest.
type Interface ¶ added in v0.3.0
type Interface struct { // The extended location of the network interface. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the network interface. Properties *InterfacePropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Interface - A network interface in a resource group.
func (Interface) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Interface.
type InterfaceAssociation ¶ added in v0.3.0
type InterfaceAssociation struct { // Collection of custom security rules. SecurityRules []*SecurityRule `json:"securityRules,omitempty"` // READ-ONLY; Network interface ID. ID *string `json:"id,omitempty" azure:"ro"` }
InterfaceAssociation - Network interface and its custom security rules.
type InterfaceDNSSettings ¶ added in v0.3.0
type InterfaceDNSSettings struct { // List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' // value cannot be combined with other IPs, it must be the only value in dnsServers // collection. DNSServers []*string `json:"dnsServers,omitempty"` // Relative DNS name for this NIC used for internal communications between VMs in the same virtual network. InternalDNSNameLabel *string `json:"internalDnsNameLabel,omitempty"` // READ-ONLY; If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers // from all NICs that are part of the Availability Set. This property is what is // configured on each of those VMs. AppliedDNSServers []*string `json:"appliedDnsServers,omitempty" azure:"ro"` // READ-ONLY; Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS // name can be constructed by concatenating the VM name with the value of // internalDomainNameSuffix. InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty" azure:"ro"` // READ-ONLY; Fully qualified DNS name supporting internal communications between VMs in the same virtual network. InternalFqdn *string `json:"internalFqdn,omitempty" azure:"ro"` }
InterfaceDNSSettings - DNS settings of a network interface.
func (InterfaceDNSSettings) MarshalJSON ¶ added in v0.3.0
func (i InterfaceDNSSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InterfaceDNSSettings.
type InterfaceIPConfiguration ¶ added in v0.3.0
type InterfaceIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Network interface IP configuration properties. Properties *InterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` // Resource type. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
InterfaceIPConfiguration - IPConfiguration in a network interface.
type InterfaceIPConfigurationListResult ¶ added in v0.3.0
type InterfaceIPConfigurationListResult struct { // A list of ip configurations. Value []*InterfaceIPConfiguration `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InterfaceIPConfigurationListResult - Response for list ip configurations API service call.
type InterfaceIPConfigurationPrivateLinkConnectionProperties ¶ added in v0.3.0
type InterfaceIPConfigurationPrivateLinkConnectionProperties struct { // READ-ONLY; List of FQDNs for current private link connection. Fqdns []*string `json:"fqdns,omitempty" azure:"ro"` // READ-ONLY; The group ID for current private link connection. GroupID *string `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; The required member name for current private link connection. RequiredMemberName *string `json:"requiredMemberName,omitempty" azure:"ro"` }
InterfaceIPConfigurationPrivateLinkConnectionProperties - PrivateLinkConnection properties for the network interface.
func (InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON ¶ added in v0.3.0
func (i InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InterfaceIPConfigurationPrivateLinkConnectionProperties.
type InterfaceIPConfigurationPropertiesFormat ¶ added in v0.3.0
type InterfaceIPConfigurationPropertiesFormat struct { // The reference to ApplicationGatewayBackendAddressPool resource. ApplicationGatewayBackendAddressPools []*ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` // Application security groups in which the IP configuration is included. ApplicationSecurityGroups []*ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` // The reference to gateway load balancer frontend IP. GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` // The reference to LoadBalancerBackendAddressPool resource. LoadBalancerBackendAddressPools []*BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` // A list of references of LoadBalancerInboundNatRules. LoadBalancerInboundNatRules []*InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` // Whether this is a primary customer address on the network interface. Primary *bool `json:"primary,omitempty"` // Private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // Public IP address bound to the IP configuration. PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` // Subnet bound to the IP configuration. Subnet *Subnet `json:"subnet,omitempty"` // The reference to Virtual Network Taps. VirtualNetworkTaps []*VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` // READ-ONLY; PrivateLinkConnection properties for the network interface. PrivateLinkConnectionProperties *InterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the network interface IP configuration. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
InterfaceIPConfigurationPropertiesFormat - Properties of IP configuration.
func (InterfaceIPConfigurationPropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (i InterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InterfaceIPConfigurationPropertiesFormat.
type InterfaceIPConfigurationsClient ¶ added in v0.3.0
type InterfaceIPConfigurationsClient struct {
// contains filtered or unexported fields
}
InterfaceIPConfigurationsClient contains the methods for the NetworkInterfaceIPConfigurations group. Don't use this type directly, use NewInterfaceIPConfigurationsClient() instead.
func NewInterfaceIPConfigurationsClient ¶ added in v0.3.0
func NewInterfaceIPConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InterfaceIPConfigurationsClient, error)
NewInterfaceIPConfigurationsClient creates a new instance of InterfaceIPConfigurationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InterfaceIPConfigurationsClient) Get ¶ added in v0.3.0
func (client *InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, ipConfigurationName string, options *InterfaceIPConfigurationsClientGetOptions) (InterfaceIPConfigurationsClientGetResponse, error)
Get - Gets the specified network interface ip configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. ipConfigurationName - The name of the ip configuration name. options - InterfaceIPConfigurationsClientGetOptions contains the optional parameters for the InterfaceIPConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceIPConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceIPConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "mynic", "ipconfig1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InterfaceIPConfigurationsClient) NewListPager ¶ added in v0.5.0
func (client *InterfaceIPConfigurationsClient) NewListPager(resourceGroupName string, networkInterfaceName string, options *InterfaceIPConfigurationsClientListOptions) *runtime.Pager[InterfaceIPConfigurationsClientListResponse]
NewListPager - Get all ip configurations in a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfaceIPConfigurationsClientListOptions contains the optional parameters for the InterfaceIPConfigurationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceIPConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceIPConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "nic1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type InterfaceIPConfigurationsClientGetOptions ¶ added in v0.3.0
type InterfaceIPConfigurationsClientGetOptions struct { }
InterfaceIPConfigurationsClientGetOptions contains the optional parameters for the InterfaceIPConfigurationsClient.Get method.
type InterfaceIPConfigurationsClientGetResponse ¶ added in v0.3.0
type InterfaceIPConfigurationsClientGetResponse struct {
InterfaceIPConfiguration
}
InterfaceIPConfigurationsClientGetResponse contains the response from method InterfaceIPConfigurationsClient.Get.
type InterfaceIPConfigurationsClientListOptions ¶ added in v0.3.0
type InterfaceIPConfigurationsClientListOptions struct { }
InterfaceIPConfigurationsClientListOptions contains the optional parameters for the InterfaceIPConfigurationsClient.List method.
type InterfaceIPConfigurationsClientListResponse ¶ added in v0.3.0
type InterfaceIPConfigurationsClientListResponse struct {
InterfaceIPConfigurationListResult
}
InterfaceIPConfigurationsClientListResponse contains the response from method InterfaceIPConfigurationsClient.List.
type InterfaceListResult ¶ added in v0.3.0
type InterfaceListResult struct { // A list of network interfaces in a resource group. Value []*Interface `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InterfaceListResult - Response for the ListNetworkInterface API service call.
type InterfaceLoadBalancerListResult ¶ added in v0.3.0
type InterfaceLoadBalancerListResult struct { // A list of load balancers. Value []*LoadBalancer `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InterfaceLoadBalancerListResult - Response for list ip configurations API service call.
type InterfaceLoadBalancersClient ¶ added in v0.3.0
type InterfaceLoadBalancersClient struct {
// contains filtered or unexported fields
}
InterfaceLoadBalancersClient contains the methods for the NetworkInterfaceLoadBalancers group. Don't use this type directly, use NewInterfaceLoadBalancersClient() instead.
func NewInterfaceLoadBalancersClient ¶ added in v0.3.0
func NewInterfaceLoadBalancersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InterfaceLoadBalancersClient, error)
NewInterfaceLoadBalancersClient creates a new instance of InterfaceLoadBalancersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InterfaceLoadBalancersClient) NewListPager ¶ added in v0.5.0
func (client *InterfaceLoadBalancersClient) NewListPager(resourceGroupName string, networkInterfaceName string, options *InterfaceLoadBalancersClientListOptions) *runtime.Pager[InterfaceLoadBalancersClientListResponse]
NewListPager - List all load balancers in a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfaceLoadBalancersClientListOptions contains the optional parameters for the InterfaceLoadBalancersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceLoadBalancerList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "nic1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type InterfaceLoadBalancersClientListOptions ¶ added in v0.3.0
type InterfaceLoadBalancersClientListOptions struct { }
InterfaceLoadBalancersClientListOptions contains the optional parameters for the InterfaceLoadBalancersClient.List method.
type InterfaceLoadBalancersClientListResponse ¶ added in v0.3.0
type InterfaceLoadBalancersClientListResponse struct {
InterfaceLoadBalancerListResult
}
InterfaceLoadBalancersClientListResponse contains the response from method InterfaceLoadBalancersClient.List.
type InterfacePropertiesFormat ¶ added in v0.3.0
type InterfacePropertiesFormat struct { // Auxiliary mode of Network Interface resource. AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` // The DNS settings in network interface. DNSSettings *InterfaceDNSSettings `json:"dnsSettings,omitempty"` // If the network interface is accelerated networking enabled. EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` // Indicates whether IP forwarding is enabled on this network interface. EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` // A list of IPConfigurations of the network interface. IPConfigurations []*InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` // Migration phase of Network Interface resource. MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` // The reference to the NetworkSecurityGroup resource. NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` // Type of Network Interface resource. NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` // Privatelinkservice of the network interface resource. PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` // WorkloadType of the NetworkInterface for BareMetal resources WorkloadType *string `json:"workloadType,omitempty"` // READ-ONLY; A reference to the dscp configuration to which the network interface is linked. DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty" azure:"ro"` // READ-ONLY; A list of references to linked BareMetal resources. HostedWorkloads []*string `json:"hostedWorkloads,omitempty" azure:"ro"` // READ-ONLY; The MAC address of the network interface. MacAddress *string `json:"macAddress,omitempty" azure:"ro"` // READ-ONLY; Whether this is a primary network interface on a virtual machine. Primary *bool `json:"primary,omitempty" azure:"ro"` // READ-ONLY; A reference to the private endpoint to which the network interface is linked. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the network interface resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the network interface resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; A list of TapConfigurations of the network interface. TapConfigurations []*InterfaceTapConfiguration `json:"tapConfigurations,omitempty" azure:"ro"` // READ-ONLY; The reference to a virtual machine. VirtualMachine *SubResource `json:"virtualMachine,omitempty" azure:"ro"` // READ-ONLY; Whether the virtual machine this nic is attached to supports encryption. VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty" azure:"ro"` }
InterfacePropertiesFormat - NetworkInterface properties.
func (InterfacePropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (i InterfacePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InterfacePropertiesFormat.
type InterfaceTapConfiguration ¶ added in v0.3.0
type InterfaceTapConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the Virtual Network Tap configuration. Properties *InterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
InterfaceTapConfiguration - Tap configuration in a Network Interface.
type InterfaceTapConfigurationListResult ¶ added in v0.3.0
type InterfaceTapConfigurationListResult struct { // A list of tap configurations. Value []*InterfaceTapConfiguration `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InterfaceTapConfigurationListResult - Response for list tap configurations API service call.
type InterfaceTapConfigurationPropertiesFormat ¶ added in v0.3.0
type InterfaceTapConfigurationPropertiesFormat struct { // The reference to the Virtual Network Tap resource. VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` // READ-ONLY; The provisioning state of the network interface tap configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
InterfaceTapConfigurationPropertiesFormat - Properties of Virtual Network Tap configuration.
type InterfaceTapConfigurationsClient ¶ added in v0.3.0
type InterfaceTapConfigurationsClient struct {
// contains filtered or unexported fields
}
InterfaceTapConfigurationsClient contains the methods for the NetworkInterfaceTapConfigurations group. Don't use this type directly, use NewInterfaceTapConfigurationsClient() instead.
func NewInterfaceTapConfigurationsClient ¶ added in v0.3.0
func NewInterfaceTapConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InterfaceTapConfigurationsClient, error)
NewInterfaceTapConfigurationsClient creates a new instance of InterfaceTapConfigurationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InterfaceTapConfigurationsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *InterfaceTapConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters InterfaceTapConfiguration, options *InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[InterfaceTapConfigurationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Tap configuration in the specified NetworkInterface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. tapConfigurationName - The name of the tap configuration. tapConfigurationParameters - Parameters supplied to the create or update tap configuration operation. options - InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the InterfaceTapConfigurationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceTapConfigurationCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceTapConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "mynic", "tapconfiguration1", armnetwork.InterfaceTapConfiguration{ Properties: &armnetwork.InterfaceTapConfigurationPropertiesFormat{ VirtualNetworkTap: &armnetwork.VirtualNetworkTap{ ID: to.Ptr("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*InterfaceTapConfigurationsClient) BeginDelete ¶ added in v0.3.0
func (client *InterfaceTapConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, options *InterfaceTapConfigurationsClientBeginDeleteOptions) (*runtime.Poller[InterfaceTapConfigurationsClientDeleteResponse], error)
BeginDelete - Deletes the specified tap configuration from the NetworkInterface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. tapConfigurationName - The name of the tap configuration. options - InterfaceTapConfigurationsClientBeginDeleteOptions contains the optional parameters for the InterfaceTapConfigurationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceTapConfigurationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceTapConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-networkinterface", "test-tapconfiguration", 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 (*InterfaceTapConfigurationsClient) Get ¶ added in v0.3.0
func (client *InterfaceTapConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, options *InterfaceTapConfigurationsClientGetOptions) (InterfaceTapConfigurationsClientGetResponse, error)
Get - Get the specified tap configuration on a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. tapConfigurationName - The name of the tap configuration. options - InterfaceTapConfigurationsClientGetOptions contains the optional parameters for the InterfaceTapConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceTapConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceTapConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "mynic", "tapconfiguration1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InterfaceTapConfigurationsClient) NewListPager ¶ added in v0.5.0
func (client *InterfaceTapConfigurationsClient) NewListPager(resourceGroupName string, networkInterfaceName string, options *InterfaceTapConfigurationsClientListOptions) *runtime.Pager[InterfaceTapConfigurationsClientListResponse]
NewListPager - Get all Tap configurations in a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfaceTapConfigurationsClientListOptions contains the optional parameters for the InterfaceTapConfigurationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceTapConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfaceTapConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "mynic", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfaceTapConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the InterfaceTapConfigurationsClient.BeginCreateOrUpdate method.
type InterfaceTapConfigurationsClientBeginDeleteOptions ¶ added in v0.3.0
type InterfaceTapConfigurationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfaceTapConfigurationsClientBeginDeleteOptions contains the optional parameters for the InterfaceTapConfigurationsClient.BeginDelete method.
type InterfaceTapConfigurationsClientCreateOrUpdateResponse ¶ added in v0.3.0
type InterfaceTapConfigurationsClientCreateOrUpdateResponse struct {
InterfaceTapConfiguration
}
InterfaceTapConfigurationsClientCreateOrUpdateResponse contains the response from method InterfaceTapConfigurationsClient.CreateOrUpdate.
type InterfaceTapConfigurationsClientDeleteResponse ¶ added in v0.3.0
type InterfaceTapConfigurationsClientDeleteResponse struct { }
InterfaceTapConfigurationsClientDeleteResponse contains the response from method InterfaceTapConfigurationsClient.Delete.
type InterfaceTapConfigurationsClientGetOptions ¶ added in v0.3.0
type InterfaceTapConfigurationsClientGetOptions struct { }
InterfaceTapConfigurationsClientGetOptions contains the optional parameters for the InterfaceTapConfigurationsClient.Get method.
type InterfaceTapConfigurationsClientGetResponse ¶ added in v0.3.0
type InterfaceTapConfigurationsClientGetResponse struct {
InterfaceTapConfiguration
}
InterfaceTapConfigurationsClientGetResponse contains the response from method InterfaceTapConfigurationsClient.Get.
type InterfaceTapConfigurationsClientListOptions ¶ added in v0.3.0
type InterfaceTapConfigurationsClientListOptions struct { }
InterfaceTapConfigurationsClientListOptions contains the optional parameters for the InterfaceTapConfigurationsClient.List method.
type InterfaceTapConfigurationsClientListResponse ¶ added in v0.3.0
type InterfaceTapConfigurationsClientListResponse struct {
InterfaceTapConfigurationListResult
}
InterfaceTapConfigurationsClientListResponse contains the response from method InterfaceTapConfigurationsClient.List.
type InterfacesClient ¶ added in v0.3.0
type InterfacesClient struct {
// contains filtered or unexported fields
}
InterfacesClient contains the methods for the NetworkInterfaces group. Don't use this type directly, use NewInterfacesClient() instead.
func NewInterfacesClient ¶ added in v0.3.0
func NewInterfacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InterfacesClient, error)
NewInterfacesClient creates a new instance of InterfacesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InterfacesClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *InterfacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters Interface, options *InterfacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[InterfacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. parameters - Parameters supplied to the create or update network interface operation. options - InterfacesClientBeginCreateOrUpdateOptions contains the optional parameters for the InterfacesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-nic", armnetwork.Interface{ Location: to.Ptr("eastus"), Properties: &armnetwork.InterfacePropertiesFormat{ EnableAcceleratedNetworking: to.Ptr(true), IPConfigurations: []*armnetwork.InterfaceIPConfiguration{ { Name: to.Ptr("ipconfig1"), Properties: &armnetwork.InterfaceIPConfigurationPropertiesFormat{ PublicIPAddress: &armnetwork.PublicIPAddress{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"), }, Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"), }, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) BeginDelete ¶ added in v0.3.0
func (client *InterfacesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkInterfaceName string, options *InterfacesClientBeginDeleteOptions) (*runtime.Poller[InterfacesClientDeleteResponse], error)
BeginDelete - Deletes the specified network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfacesClientBeginDeleteOptions contains the optional parameters for the InterfacesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-nic", 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 (*InterfacesClient) BeginGetEffectiveRouteTable ¶ added in v0.3.0
func (client *InterfacesClient) BeginGetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string, options *InterfacesClientBeginGetEffectiveRouteTableOptions) (*runtime.Poller[InterfacesClientGetEffectiveRouteTableResponse], error)
BeginGetEffectiveRouteTable - Gets all route tables applied to a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfacesClientBeginGetEffectiveRouteTableOptions contains the optional parameters for the InterfacesClient.BeginGetEffectiveRouteTable method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceEffectiveRouteTableList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetEffectiveRouteTable(ctx, "rg1", "nic1", 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) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) BeginListEffectiveNetworkSecurityGroups ¶ added in v0.3.0
func (client *InterfacesClient) BeginListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string, options *InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions) (*runtime.Poller[InterfacesClientListEffectiveNetworkSecurityGroupsResponse], error)
BeginListEffectiveNetworkSecurityGroups - Gets all network security groups applied to a network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions contains the optional parameters for the InterfacesClient.BeginListEffectiveNetworkSecurityGroups method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceEffectiveNSGList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListEffectiveNetworkSecurityGroups(ctx, "rg1", "nic1", 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) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) Get ¶ added in v0.3.0
func (client *InterfacesClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, options *InterfacesClientGetOptions) (InterfacesClientGetResponse, error)
Get - Gets information about the specified network interface. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. options - InterfacesClientGetOptions contains the optional parameters for the InterfacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-nic", &armnetwork.InterfacesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) GetCloudServiceNetworkInterface ¶ added in v0.3.0
func (client *InterfacesClient) GetCloudServiceNetworkInterface(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, options *InterfacesClientGetCloudServiceNetworkInterfaceOptions) (InterfacesClientGetCloudServiceNetworkInterfaceResponse, error)
GetCloudServiceNetworkInterface - Get the specified network interface in a cloud service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. roleInstanceName - The name of role instance. networkInterfaceName - The name of the network interface. options - InterfacesClientGetCloudServiceNetworkInterfaceOptions contains the optional parameters for the InterfacesClient.GetCloudServiceNetworkInterface method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServiceNetworkInterfaceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetCloudServiceNetworkInterface(ctx, "rg1", "cs1", "TestVMRole_IN_0", "nic1", &armnetwork.InterfacesClientGetCloudServiceNetworkInterfaceOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) GetVirtualMachineScaleSetIPConfiguration ¶ added in v0.3.0
func (client *InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, ipConfigurationName string, options *InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions) (InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse, error)
GetVirtualMachineScaleSetIPConfiguration - Get the specified network interface ip configuration in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. networkInterfaceName - The name of the network interface. ipConfigurationName - The name of the ip configuration. options - InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions contains the optional parameters for the InterfacesClient.GetVirtualMachineScaleSetIPConfiguration method.
func (*InterfacesClient) GetVirtualMachineScaleSetNetworkInterface ¶ added in v0.3.0
func (client *InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, options *InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions) (InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse, error)
GetVirtualMachineScaleSetNetworkInterface - Get the specified network interface in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. networkInterfaceName - The name of the network interface. options - InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions contains the optional parameters for the InterfacesClient.GetVirtualMachineScaleSetNetworkInterface method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssNetworkInterfaceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, "rg1", "vmss1", "1", "nic1", &armnetwork.InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*InterfacesClient) NewListAllPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListAllPager(options *InterfacesClientListAllOptions) *runtime.Pager[InterfacesClientListAllResponse]
NewListAllPager - Gets all network interfaces in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - InterfacesClientListAllOptions contains the optional parameters for the InterfacesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) NewListCloudServiceNetworkInterfacesPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListCloudServiceNetworkInterfacesPager(resourceGroupName string, cloudServiceName string, options *InterfacesClientListCloudServiceNetworkInterfacesOptions) *runtime.Pager[InterfacesClientListCloudServiceNetworkInterfacesResponse]
NewListCloudServiceNetworkInterfacesPager - Gets all network interfaces in a cloud service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. options - InterfacesClientListCloudServiceNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListCloudServiceNetworkInterfaces method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServiceNetworkInterfaceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListCloudServiceNetworkInterfacesPager("rg1", "cs1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) NewListCloudServiceRoleInstanceNetworkInterfacesPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListCloudServiceRoleInstanceNetworkInterfacesPager(resourceGroupName string, cloudServiceName string, roleInstanceName string, options *InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions) *runtime.Pager[InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesResponse]
NewListCloudServiceRoleInstanceNetworkInterfacesPager - Gets information about all network interfaces in a role instance in a cloud service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. roleInstanceName - The name of role instance. options - InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServiceRoleInstanceNetworkInterfaceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListCloudServiceRoleInstanceNetworkInterfacesPager("rg1", "cs1", "TestVMRole_IN_0", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) NewListPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListPager(resourceGroupName string, options *InterfacesClientListOptions) *runtime.Pager[InterfacesClientListResponse]
NewListPager - Gets all network interfaces in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - InterfacesClientListOptions contains the optional parameters for the InterfacesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) NewListVirtualMachineScaleSetIPConfigurationsPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListVirtualMachineScaleSetIPConfigurationsPager(resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, options *InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions) *runtime.Pager[InterfacesClientListVirtualMachineScaleSetIPConfigurationsResponse]
NewListVirtualMachineScaleSetIPConfigurationsPager - Get the specified network interface ip configuration in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. networkInterfaceName - The name of the network interface. options - InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetIPConfigurations method.
func (*InterfacesClient) NewListVirtualMachineScaleSetNetworkInterfacesPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListVirtualMachineScaleSetNetworkInterfacesPager(resourceGroupName string, virtualMachineScaleSetName string, options *InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions) *runtime.Pager[InterfacesClientListVirtualMachineScaleSetNetworkInterfacesResponse]
NewListVirtualMachineScaleSetNetworkInterfacesPager - Gets all network interfaces in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. options - InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssNetworkInterfaceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListVirtualMachineScaleSetNetworkInterfacesPager("rg1", "vmss1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) NewListVirtualMachineScaleSetVMNetworkInterfacesPager ¶ added in v0.5.0
func (client *InterfacesClient) NewListVirtualMachineScaleSetVMNetworkInterfacesPager(resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, options *InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions) *runtime.Pager[InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesResponse]
NewListVirtualMachineScaleSetVMNetworkInterfacesPager - Gets information about all network interfaces in a virtual machine in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. options - InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssVmNetworkInterfaceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListVirtualMachineScaleSetVMNetworkInterfacesPager("rg1", "vmss1", "1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*InterfacesClient) UpdateTags ¶ added in v0.3.0
func (client *InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters TagsObject, options *InterfacesClientUpdateTagsOptions) (InterfacesClientUpdateTagsResponse, error)
UpdateTags - Updates a network interface tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkInterfaceName - The name of the network interface. parameters - Parameters supplied to update network interface tags. options - InterfacesClientUpdateTagsOptions contains the optional parameters for the InterfacesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkInterfaceUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-nic", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type InterfacesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type InterfacesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfacesClientBeginCreateOrUpdateOptions contains the optional parameters for the InterfacesClient.BeginCreateOrUpdate method.
type InterfacesClientBeginDeleteOptions ¶ added in v0.3.0
type InterfacesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfacesClientBeginDeleteOptions contains the optional parameters for the InterfacesClient.BeginDelete method.
type InterfacesClientBeginGetEffectiveRouteTableOptions ¶ added in v0.3.0
type InterfacesClientBeginGetEffectiveRouteTableOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfacesClientBeginGetEffectiveRouteTableOptions contains the optional parameters for the InterfacesClient.BeginGetEffectiveRouteTable method.
type InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions ¶ added in v0.3.0
type InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
InterfacesClientBeginListEffectiveNetworkSecurityGroupsOptions contains the optional parameters for the InterfacesClient.BeginListEffectiveNetworkSecurityGroups method.
type InterfacesClientCreateOrUpdateResponse ¶ added in v0.3.0
type InterfacesClientCreateOrUpdateResponse struct {
Interface
}
InterfacesClientCreateOrUpdateResponse contains the response from method InterfacesClient.CreateOrUpdate.
type InterfacesClientDeleteResponse ¶ added in v0.3.0
type InterfacesClientDeleteResponse struct { }
InterfacesClientDeleteResponse contains the response from method InterfacesClient.Delete.
type InterfacesClientGetCloudServiceNetworkInterfaceOptions ¶ added in v0.3.0
type InterfacesClientGetCloudServiceNetworkInterfaceOptions struct { // Expands referenced resources. Expand *string }
InterfacesClientGetCloudServiceNetworkInterfaceOptions contains the optional parameters for the InterfacesClient.GetCloudServiceNetworkInterface method.
type InterfacesClientGetCloudServiceNetworkInterfaceResponse ¶ added in v0.3.0
type InterfacesClientGetCloudServiceNetworkInterfaceResponse struct {
Interface
}
InterfacesClientGetCloudServiceNetworkInterfaceResponse contains the response from method InterfacesClient.GetCloudServiceNetworkInterface.
type InterfacesClientGetEffectiveRouteTableResponse ¶ added in v0.3.0
type InterfacesClientGetEffectiveRouteTableResponse struct {
EffectiveRouteListResult
}
InterfacesClientGetEffectiveRouteTableResponse contains the response from method InterfacesClient.GetEffectiveRouteTable.
type InterfacesClientGetOptions ¶ added in v0.3.0
type InterfacesClientGetOptions struct { // Expands referenced resources. Expand *string }
InterfacesClientGetOptions contains the optional parameters for the InterfacesClient.Get method.
type InterfacesClientGetResponse ¶ added in v0.3.0
type InterfacesClientGetResponse struct {
Interface
}
InterfacesClientGetResponse contains the response from method InterfacesClient.Get.
type InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions ¶ added in v0.3.0
type InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions struct { // Expands referenced resources. Expand *string }
InterfacesClientGetVirtualMachineScaleSetIPConfigurationOptions contains the optional parameters for the InterfacesClient.GetVirtualMachineScaleSetIPConfiguration method.
type InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse ¶ added in v0.3.0
type InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse struct {
InterfaceIPConfiguration
}
InterfacesClientGetVirtualMachineScaleSetIPConfigurationResponse contains the response from method InterfacesClient.GetVirtualMachineScaleSetIPConfiguration.
type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions ¶ added in v0.3.0
type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions struct { // Expands referenced resources. Expand *string }
InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions contains the optional parameters for the InterfacesClient.GetVirtualMachineScaleSetNetworkInterface method.
type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse ¶ added in v0.3.0
type InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse struct {
Interface
}
InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse contains the response from method InterfacesClient.GetVirtualMachineScaleSetNetworkInterface.
type InterfacesClientListAllOptions ¶ added in v0.3.0
type InterfacesClientListAllOptions struct { }
InterfacesClientListAllOptions contains the optional parameters for the InterfacesClient.ListAll method.
type InterfacesClientListAllResponse ¶ added in v0.3.0
type InterfacesClientListAllResponse struct {
InterfaceListResult
}
InterfacesClientListAllResponse contains the response from method InterfacesClient.ListAll.
type InterfacesClientListCloudServiceNetworkInterfacesOptions ¶ added in v0.3.0
type InterfacesClientListCloudServiceNetworkInterfacesOptions struct { }
InterfacesClientListCloudServiceNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListCloudServiceNetworkInterfaces method.
type InterfacesClientListCloudServiceNetworkInterfacesResponse ¶ added in v0.3.0
type InterfacesClientListCloudServiceNetworkInterfacesResponse struct {
InterfaceListResult
}
InterfacesClientListCloudServiceNetworkInterfacesResponse contains the response from method InterfacesClient.ListCloudServiceNetworkInterfaces.
type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions ¶ added in v0.3.0
type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions struct { }
InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces method.
type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesResponse ¶ added in v0.3.0
type InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesResponse struct {
InterfaceListResult
}
InterfacesClientListCloudServiceRoleInstanceNetworkInterfacesResponse contains the response from method InterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces.
type InterfacesClientListEffectiveNetworkSecurityGroupsResponse ¶ added in v0.3.0
type InterfacesClientListEffectiveNetworkSecurityGroupsResponse struct {
EffectiveNetworkSecurityGroupListResult
}
InterfacesClientListEffectiveNetworkSecurityGroupsResponse contains the response from method InterfacesClient.ListEffectiveNetworkSecurityGroups.
type InterfacesClientListOptions ¶ added in v0.3.0
type InterfacesClientListOptions struct { }
InterfacesClientListOptions contains the optional parameters for the InterfacesClient.List method.
type InterfacesClientListResponse ¶ added in v0.3.0
type InterfacesClientListResponse struct {
InterfaceListResult
}
InterfacesClientListResponse contains the response from method InterfacesClient.List.
type InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions struct { // Expands referenced resources. Expand *string }
InterfacesClientListVirtualMachineScaleSetIPConfigurationsOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetIPConfigurations method.
type InterfacesClientListVirtualMachineScaleSetIPConfigurationsResponse ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetIPConfigurationsResponse struct {
InterfaceIPConfigurationListResult
}
InterfacesClientListVirtualMachineScaleSetIPConfigurationsResponse contains the response from method InterfacesClient.ListVirtualMachineScaleSetIPConfigurations.
type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions struct { }
InterfacesClientListVirtualMachineScaleSetNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces method.
type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesResponse ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetNetworkInterfacesResponse struct {
InterfaceListResult
}
InterfacesClientListVirtualMachineScaleSetNetworkInterfacesResponse contains the response from method InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces.
type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions struct { }
InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesOptions contains the optional parameters for the InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces method.
type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesResponse ¶ added in v0.3.0
type InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesResponse struct {
InterfaceListResult
}
InterfacesClientListVirtualMachineScaleSetVMNetworkInterfacesResponse contains the response from method InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces.
type InterfacesClientUpdateTagsOptions ¶ added in v0.3.0
type InterfacesClientUpdateTagsOptions struct { }
InterfacesClientUpdateTagsOptions contains the optional parameters for the InterfacesClient.UpdateTags method.
type InterfacesClientUpdateTagsResponse ¶ added in v0.3.0
type InterfacesClientUpdateTagsResponse struct {
Interface
}
InterfacesClientUpdateTagsResponse contains the response from method InterfacesClient.UpdateTags.
type IssueType ¶
type IssueType string
IssueType - The type of issue.
const ( IssueTypeAgentStopped IssueType = "AgentStopped" IssueTypeDNSResolution IssueType = "DnsResolution" IssueTypeGuestFirewall IssueType = "GuestFirewall" IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" IssueTypePlatform IssueType = "Platform" IssueTypePortThrottled IssueType = "PortThrottled" IssueTypeSocketBind IssueType = "SocketBind" IssueTypeUnknown IssueType = "Unknown" IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" )
func PossibleIssueTypeValues ¶
func PossibleIssueTypeValues() []IssueType
PossibleIssueTypeValues returns the possible values for the IssueType const type.
type ListHubRouteTablesResult ¶
type ListHubRouteTablesResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of RouteTables. Value []*HubRouteTable `json:"value,omitempty"` }
ListHubRouteTablesResult - List of RouteTables and a URL nextLink to get the next set of results.
type ListHubVirtualNetworkConnectionsResult ¶
type ListHubVirtualNetworkConnectionsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of HubVirtualNetworkConnections. Value []*HubVirtualNetworkConnection `json:"value,omitempty"` }
ListHubVirtualNetworkConnectionsResult - List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results.
type ListP2SVPNGatewaysResult ¶
type ListP2SVPNGatewaysResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of P2SVpnGateways. Value []*P2SVPNGateway `json:"value,omitempty"` }
ListP2SVPNGatewaysResult - Result of the request to list P2SVpnGateways. It contains a list of P2SVpnGateways and a URL nextLink to get the next set of results.
type ListRoutingIntentResult ¶ added in v0.2.0
type ListRoutingIntentResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of RoutingIntent resource. Value []*RoutingIntent `json:"value,omitempty"` }
ListRoutingIntentResult - List of the routing intent result and a URL nextLink to get the next set of results.
type ListVPNConnectionsResult ¶
type ListVPNConnectionsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Vpn Connections. Value []*VPNConnection `json:"value,omitempty"` }
ListVPNConnectionsResult - Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections and a URL nextLink to get the next set of results.
type ListVPNGatewayNatRulesResult ¶
type ListVPNGatewayNatRulesResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Nat Rules. Value []*VPNGatewayNatRule `json:"value,omitempty"` }
ListVPNGatewayNatRulesResult - Result of the request to list all nat rules to a virtual wan vpn gateway. It contains a list of Nat rules and a URL nextLink to get the next set of results.
type ListVPNGatewaysResult ¶
type ListVPNGatewaysResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnGateways. Value []*VPNGateway `json:"value,omitempty"` }
ListVPNGatewaysResult - Result of the request to list VpnGateways. It contains a list of VpnGateways and a URL nextLink to get the next set of results.
type ListVPNServerConfigurationPolicyGroupsResult ¶ added in v1.0.0
type ListVPNServerConfigurationPolicyGroupsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnServerConfigurationPolicyGroups. Value []*VPNServerConfigurationPolicyGroup `json:"value,omitempty"` }
ListVPNServerConfigurationPolicyGroupsResult - Result of the request to list VpnServerConfigurationPolicyGroups. It contains a list of VpnServerConfigurationPolicyGroups and a URL nextLink to get the next set of results.
type ListVPNServerConfigurationsResult ¶
type ListVPNServerConfigurationsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnServerConfigurations. Value []*VPNServerConfiguration `json:"value,omitempty"` }
ListVPNServerConfigurationsResult - Result of the request to list all VpnServerConfigurations. It contains a list of VpnServerConfigurations and a URL nextLink to get the next set of results.
type ListVPNSiteLinkConnectionsResult ¶
type ListVPNSiteLinkConnectionsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnSiteLinkConnections. Value []*VPNSiteLinkConnection `json:"value,omitempty"` }
ListVPNSiteLinkConnectionsResult - Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections and a URL nextLink to get the next set of results.
type ListVPNSiteLinksResult ¶
type ListVPNSiteLinksResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnSitesLinks. Value []*VPNSiteLink `json:"value,omitempty"` }
ListVPNSiteLinksResult - Result of the request to list VpnSiteLinks. It contains a list of VpnSiteLinks and a URL nextLink to get the next set of results.
type ListVPNSitesResult ¶
type ListVPNSitesResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VpnSites. Value []*VPNSite `json:"value,omitempty"` }
ListVPNSitesResult - Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get the next set of results.
type ListVirtualHubBgpConnectionResults ¶
type ListVirtualHubBgpConnectionResults struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of VirtualHubBgpConnections. Value []*BgpConnection `json:"value,omitempty"` }
ListVirtualHubBgpConnectionResults - VirtualHubBgpConnections list.
type ListVirtualHubIPConfigurationResults ¶
type ListVirtualHubIPConfigurationResults struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list of VirtualHubIpConfigurations. Value []*HubIPConfiguration `json:"value,omitempty"` }
ListVirtualHubIPConfigurationResults - VirtualHubIpConfigurations list.
type ListVirtualHubRouteTableV2SResult ¶
type ListVirtualHubRouteTableV2SResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VirtualHubRouteTableV2s. Value []*VirtualHubRouteTableV2 `json:"value,omitempty"` }
ListVirtualHubRouteTableV2SResult - List of VirtualHubRouteTableV2s and a URL nextLink to get the next set of results.
type ListVirtualHubsResult ¶
type ListVirtualHubsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VirtualHubs. Value []*VirtualHub `json:"value,omitempty"` }
ListVirtualHubsResult - Result of the request to list VirtualHubs. It contains a list of VirtualHubs and a URL nextLink to get the next set of results.
type ListVirtualNetworkGatewayNatRulesResult ¶
type ListVirtualNetworkGatewayNatRulesResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Nat Rules. Value []*VirtualNetworkGatewayNatRule `json:"value,omitempty"` }
ListVirtualNetworkGatewayNatRulesResult - Result of the request to list all nat rules to a virtual network gateway. It contains a list of Nat rules and a URL nextLink to get the next set of results.
type ListVirtualWANsResult ¶
type ListVirtualWANsResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of VirtualWANs. Value []*VirtualWAN `json:"value,omitempty"` }
ListVirtualWANsResult - Result of the request to list VirtualWANs. It contains a list of VirtualWANs and a URL nextLink to get the next set of results.
type LoadBalancer ¶
type LoadBalancer struct { // The extended location of the load balancer. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of load balancer. Properties *LoadBalancerPropertiesFormat `json:"properties,omitempty"` // The load balancer SKU. SKU *LoadBalancerSKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
LoadBalancer resource.
func (LoadBalancer) MarshalJSON ¶
func (l LoadBalancer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancer.
type LoadBalancerBackendAddress ¶
type LoadBalancerBackendAddress struct { // Name of the backend address. Name *string `json:"name,omitempty"` // Properties of load balancer backend address pool. Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` }
LoadBalancerBackendAddress - Load balancer backend addresses.
type LoadBalancerBackendAddressAdminState ¶ added in v1.0.0
type LoadBalancerBackendAddressAdminState string
LoadBalancerBackendAddressAdminState - A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections.
const ( LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" LoadBalancerBackendAddressAdminStateDrain LoadBalancerBackendAddressAdminState = "Drain" LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" )
func PossibleLoadBalancerBackendAddressAdminStateValues ¶ added in v1.0.0
func PossibleLoadBalancerBackendAddressAdminStateValues() []LoadBalancerBackendAddressAdminState
PossibleLoadBalancerBackendAddressAdminStateValues returns the possible values for the LoadBalancerBackendAddressAdminState const type.
type LoadBalancerBackendAddressPoolListResult ¶
type LoadBalancerBackendAddressPoolListResult struct { // A list of backend address pools in a load balancer. Value []*BackendAddressPool `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerBackendAddressPoolListResult - Response for ListBackendAddressPool API service call.
type LoadBalancerBackendAddressPoolsClient ¶
type LoadBalancerBackendAddressPoolsClient struct {
// contains filtered or unexported fields
}
LoadBalancerBackendAddressPoolsClient contains the methods for the LoadBalancerBackendAddressPools group. Don't use this type directly, use NewLoadBalancerBackendAddressPoolsClient() instead.
func NewLoadBalancerBackendAddressPoolsClient ¶
func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerBackendAddressPoolsClient, error)
NewLoadBalancerBackendAddressPoolsClient creates a new instance of LoadBalancerBackendAddressPoolsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerBackendAddressPoolsClient) BeginCreateOrUpdate ¶
func (client *LoadBalancerBackendAddressPoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, parameters BackendAddressPool, options *LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a load balancer backend address pool. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. backendAddressPoolName - The name of the backend address pool. parameters - Parameters supplied to the create or update load balancer backend address pool operation. options - LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerBackendAddressPoolsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "lb", "backend", armnetwork.BackendAddressPool{ Properties: &armnetwork.BackendAddressPoolPropertiesFormat{ LoadBalancerBackendAddresses: []*armnetwork.LoadBalancerBackendAddress{ { Name: to.Ptr("address1"), Properties: &armnetwork.LoadBalancerBackendAddressPropertiesFormat{ IPAddress: to.Ptr("10.0.0.4"), VirtualNetwork: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb"), }, }, }, { Name: to.Ptr("address2"), Properties: &armnetwork.LoadBalancerBackendAddressPropertiesFormat{ IPAddress: to.Ptr("10.0.0.5"), VirtualNetwork: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb"), }, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerBackendAddressPoolsClient) BeginDelete ¶
func (client *LoadBalancerBackendAddressPoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, options *LoadBalancerBackendAddressPoolsClientBeginDeleteOptions) (*runtime.Poller[LoadBalancerBackendAddressPoolsClientDeleteResponse], error)
BeginDelete - Deletes the specified load balancer backend address pool. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. backendAddressPoolName - The name of the backend address pool. options - LoadBalancerBackendAddressPoolsClientBeginDeleteOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerBackendAddressPoolDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerBackendAddressPoolsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "testrg", "lb", "backend", 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 (*LoadBalancerBackendAddressPoolsClient) Get ¶
func (client *LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string, options *LoadBalancerBackendAddressPoolsClientGetOptions) (LoadBalancerBackendAddressPoolsClientGetResponse, error)
Get - Gets load balancer backend address pool. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. backendAddressPoolName - The name of the backend address pool. options - LoadBalancerBackendAddressPoolsClientGetOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerBackendAddressPoolsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb", "backend", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerBackendAddressPoolsClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerBackendAddressPoolsClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerBackendAddressPoolsClientListOptions) *runtime.Pager[LoadBalancerBackendAddressPoolsClientListResponse]
NewListPager - Gets all the load balancer backed address pools. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerBackendAddressPoolsClientListOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerBackendAddressPoolsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancerBackendAddressPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.BeginCreateOrUpdate method.
type LoadBalancerBackendAddressPoolsClientBeginDeleteOptions ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancerBackendAddressPoolsClientBeginDeleteOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.BeginDelete method.
type LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse struct {
BackendAddressPool
}
LoadBalancerBackendAddressPoolsClientCreateOrUpdateResponse contains the response from method LoadBalancerBackendAddressPoolsClient.CreateOrUpdate.
type LoadBalancerBackendAddressPoolsClientDeleteResponse ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientDeleteResponse struct { }
LoadBalancerBackendAddressPoolsClientDeleteResponse contains the response from method LoadBalancerBackendAddressPoolsClient.Delete.
type LoadBalancerBackendAddressPoolsClientGetOptions ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientGetOptions struct { }
LoadBalancerBackendAddressPoolsClientGetOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.Get method.
type LoadBalancerBackendAddressPoolsClientGetResponse ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientGetResponse struct {
BackendAddressPool
}
LoadBalancerBackendAddressPoolsClientGetResponse contains the response from method LoadBalancerBackendAddressPoolsClient.Get.
type LoadBalancerBackendAddressPoolsClientListOptions ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientListOptions struct { }
LoadBalancerBackendAddressPoolsClientListOptions contains the optional parameters for the LoadBalancerBackendAddressPoolsClient.List method.
type LoadBalancerBackendAddressPoolsClientListResponse ¶ added in v0.3.0
type LoadBalancerBackendAddressPoolsClientListResponse struct {
LoadBalancerBackendAddressPoolListResult
}
LoadBalancerBackendAddressPoolsClientListResponse contains the response from method LoadBalancerBackendAddressPoolsClient.List.
type LoadBalancerBackendAddressPropertiesFormat ¶
type LoadBalancerBackendAddressPropertiesFormat struct { // A list of administrative states which once set can override health probe so that Load Balancer will always forward new // connections to backend, or deny new connections and reset existing connections. AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` // IP Address belonging to the referenced virtual network. IPAddress *string `json:"ipAddress,omitempty"` // Reference to the frontend ip address configuration defined in regional loadbalancer. LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` // Reference to an existing subnet. Subnet *SubResource `json:"subnet,omitempty"` // Reference to an existing virtual network. VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` // READ-ONLY; Collection of inbound NAT rule port mappings. InboundNatRulesPortMapping []*NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty" azure:"ro"` // READ-ONLY; Reference to IP address defined in network interfaces. NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty" azure:"ro"` }
LoadBalancerBackendAddressPropertiesFormat - Properties of the load balancer backend addresses.
func (LoadBalancerBackendAddressPropertiesFormat) MarshalJSON ¶ added in v0.2.0
func (l LoadBalancerBackendAddressPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerBackendAddressPropertiesFormat.
type LoadBalancerFrontendIPConfigurationListResult ¶
type LoadBalancerFrontendIPConfigurationListResult struct { // A list of frontend IP configurations in a load balancer. Value []*FrontendIPConfiguration `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerFrontendIPConfigurationListResult - Response for ListFrontendIPConfiguration API service call.
type LoadBalancerFrontendIPConfigurationsClient ¶
type LoadBalancerFrontendIPConfigurationsClient struct {
// contains filtered or unexported fields
}
LoadBalancerFrontendIPConfigurationsClient contains the methods for the LoadBalancerFrontendIPConfigurations group. Don't use this type directly, use NewLoadBalancerFrontendIPConfigurationsClient() instead.
func NewLoadBalancerFrontendIPConfigurationsClient ¶
func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerFrontendIPConfigurationsClient, error)
NewLoadBalancerFrontendIPConfigurationsClient creates a new instance of LoadBalancerFrontendIPConfigurationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerFrontendIPConfigurationsClient) Get ¶
func (client *LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string, options *LoadBalancerFrontendIPConfigurationsClientGetOptions) (LoadBalancerFrontendIPConfigurationsClientGetResponse, error)
Get - Gets load balancer frontend IP configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. frontendIPConfigurationName - The name of the frontend IP configuration. options - LoadBalancerFrontendIPConfigurationsClientGetOptions contains the optional parameters for the LoadBalancerFrontendIPConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerFrontendIPConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerFrontendIPConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb", "frontend", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerFrontendIPConfigurationsClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerFrontendIPConfigurationsClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerFrontendIPConfigurationsClientListOptions) *runtime.Pager[LoadBalancerFrontendIPConfigurationsClientListResponse]
NewListPager - Gets all the load balancer frontend IP configurations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerFrontendIPConfigurationsClientListOptions contains the optional parameters for the LoadBalancerFrontendIPConfigurationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerFrontendIPConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerFrontendIPConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerFrontendIPConfigurationsClientGetOptions ¶ added in v0.3.0
type LoadBalancerFrontendIPConfigurationsClientGetOptions struct { }
LoadBalancerFrontendIPConfigurationsClientGetOptions contains the optional parameters for the LoadBalancerFrontendIPConfigurationsClient.Get method.
type LoadBalancerFrontendIPConfigurationsClientGetResponse ¶ added in v0.3.0
type LoadBalancerFrontendIPConfigurationsClientGetResponse struct {
FrontendIPConfiguration
}
LoadBalancerFrontendIPConfigurationsClientGetResponse contains the response from method LoadBalancerFrontendIPConfigurationsClient.Get.
type LoadBalancerFrontendIPConfigurationsClientListOptions ¶ added in v0.3.0
type LoadBalancerFrontendIPConfigurationsClientListOptions struct { }
LoadBalancerFrontendIPConfigurationsClientListOptions contains the optional parameters for the LoadBalancerFrontendIPConfigurationsClient.List method.
type LoadBalancerFrontendIPConfigurationsClientListResponse ¶ added in v0.3.0
type LoadBalancerFrontendIPConfigurationsClientListResponse struct {
LoadBalancerFrontendIPConfigurationListResult
}
LoadBalancerFrontendIPConfigurationsClientListResponse contains the response from method LoadBalancerFrontendIPConfigurationsClient.List.
type LoadBalancerListResult ¶
type LoadBalancerListResult struct { // A list of load balancers in a resource group. Value []*LoadBalancer `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerListResult - Response for ListLoadBalancers API service call.
type LoadBalancerLoadBalancingRuleListResult ¶
type LoadBalancerLoadBalancingRuleListResult struct { // A list of load balancing rules in a load balancer. Value []*LoadBalancingRule `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerLoadBalancingRuleListResult - Response for ListLoadBalancingRule API service call.
type LoadBalancerLoadBalancingRulesClient ¶
type LoadBalancerLoadBalancingRulesClient struct {
// contains filtered or unexported fields
}
LoadBalancerLoadBalancingRulesClient contains the methods for the LoadBalancerLoadBalancingRules group. Don't use this type directly, use NewLoadBalancerLoadBalancingRulesClient() instead.
func NewLoadBalancerLoadBalancingRulesClient ¶
func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerLoadBalancingRulesClient, error)
NewLoadBalancerLoadBalancingRulesClient creates a new instance of LoadBalancerLoadBalancingRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerLoadBalancingRulesClient) Get ¶
func (client *LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string, options *LoadBalancerLoadBalancingRulesClientGetOptions) (LoadBalancerLoadBalancingRulesClientGetResponse, error)
Get - Gets the specified load balancer load balancing rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. loadBalancingRuleName - The name of the load balancing rule. options - LoadBalancerLoadBalancingRulesClientGetOptions contains the optional parameters for the LoadBalancerLoadBalancingRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerLoadBalancingRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerLoadBalancingRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb1", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerLoadBalancingRulesClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerLoadBalancingRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerLoadBalancingRulesClientListOptions) *runtime.Pager[LoadBalancerLoadBalancingRulesClientListResponse]
NewListPager - Gets all the load balancing rules in a load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerLoadBalancingRulesClientListOptions contains the optional parameters for the LoadBalancerLoadBalancingRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerLoadBalancingRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerLoadBalancingRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerLoadBalancingRulesClientGetOptions ¶ added in v0.3.0
type LoadBalancerLoadBalancingRulesClientGetOptions struct { }
LoadBalancerLoadBalancingRulesClientGetOptions contains the optional parameters for the LoadBalancerLoadBalancingRulesClient.Get method.
type LoadBalancerLoadBalancingRulesClientGetResponse ¶ added in v0.3.0
type LoadBalancerLoadBalancingRulesClientGetResponse struct {
LoadBalancingRule
}
LoadBalancerLoadBalancingRulesClientGetResponse contains the response from method LoadBalancerLoadBalancingRulesClient.Get.
type LoadBalancerLoadBalancingRulesClientListOptions ¶ added in v0.3.0
type LoadBalancerLoadBalancingRulesClientListOptions struct { }
LoadBalancerLoadBalancingRulesClientListOptions contains the optional parameters for the LoadBalancerLoadBalancingRulesClient.List method.
type LoadBalancerLoadBalancingRulesClientListResponse ¶ added in v0.3.0
type LoadBalancerLoadBalancingRulesClientListResponse struct {
LoadBalancerLoadBalancingRuleListResult
}
LoadBalancerLoadBalancingRulesClientListResponse contains the response from method LoadBalancerLoadBalancingRulesClient.List.
type LoadBalancerNetworkInterfacesClient ¶
type LoadBalancerNetworkInterfacesClient struct {
// contains filtered or unexported fields
}
LoadBalancerNetworkInterfacesClient contains the methods for the LoadBalancerNetworkInterfaces group. Don't use this type directly, use NewLoadBalancerNetworkInterfacesClient() instead.
func NewLoadBalancerNetworkInterfacesClient ¶
func NewLoadBalancerNetworkInterfacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerNetworkInterfacesClient, error)
NewLoadBalancerNetworkInterfacesClient creates a new instance of LoadBalancerNetworkInterfacesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerNetworkInterfacesClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerNetworkInterfacesClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerNetworkInterfacesClientListOptions) *runtime.Pager[LoadBalancerNetworkInterfacesClientListResponse]
NewListPager - Gets associated load balancer network interfaces. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerNetworkInterfacesClientListOptions contains the optional parameters for the LoadBalancerNetworkInterfacesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerNetworkInterfaceListSimple.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerNetworkInterfacesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerNetworkInterfacesClientListOptions ¶ added in v0.3.0
type LoadBalancerNetworkInterfacesClientListOptions struct { }
LoadBalancerNetworkInterfacesClientListOptions contains the optional parameters for the LoadBalancerNetworkInterfacesClient.List method.
type LoadBalancerNetworkInterfacesClientListResponse ¶ added in v0.3.0
type LoadBalancerNetworkInterfacesClientListResponse struct {
InterfaceListResult
}
LoadBalancerNetworkInterfacesClientListResponse contains the response from method LoadBalancerNetworkInterfacesClient.List.
type LoadBalancerOutboundRuleListResult ¶
type LoadBalancerOutboundRuleListResult struct { // A list of outbound rules in a load balancer. Value []*OutboundRule `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerOutboundRuleListResult - Response for ListOutboundRule API service call.
type LoadBalancerOutboundRuleProtocol ¶
type LoadBalancerOutboundRuleProtocol string
LoadBalancerOutboundRuleProtocol - The protocol for the outbound rule in load balancer.
const ( LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" LoadBalancerOutboundRuleProtocolTCP LoadBalancerOutboundRuleProtocol = "Tcp" LoadBalancerOutboundRuleProtocolUDP LoadBalancerOutboundRuleProtocol = "Udp" )
func PossibleLoadBalancerOutboundRuleProtocolValues ¶
func PossibleLoadBalancerOutboundRuleProtocolValues() []LoadBalancerOutboundRuleProtocol
PossibleLoadBalancerOutboundRuleProtocolValues returns the possible values for the LoadBalancerOutboundRuleProtocol const type.
type LoadBalancerOutboundRulesClient ¶
type LoadBalancerOutboundRulesClient struct {
// contains filtered or unexported fields
}
LoadBalancerOutboundRulesClient contains the methods for the LoadBalancerOutboundRules group. Don't use this type directly, use NewLoadBalancerOutboundRulesClient() instead.
func NewLoadBalancerOutboundRulesClient ¶
func NewLoadBalancerOutboundRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerOutboundRulesClient, error)
NewLoadBalancerOutboundRulesClient creates a new instance of LoadBalancerOutboundRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerOutboundRulesClient) Get ¶
func (client *LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string, options *LoadBalancerOutboundRulesClientGetOptions) (LoadBalancerOutboundRulesClientGetResponse, error)
Get - Gets the specified load balancer outbound rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. outboundRuleName - The name of the outbound rule. options - LoadBalancerOutboundRulesClientGetOptions contains the optional parameters for the LoadBalancerOutboundRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerOutboundRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerOutboundRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb1", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerOutboundRulesClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerOutboundRulesClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerOutboundRulesClientListOptions) *runtime.Pager[LoadBalancerOutboundRulesClientListResponse]
NewListPager - Gets all the outbound rules in a load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerOutboundRulesClientListOptions contains the optional parameters for the LoadBalancerOutboundRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerOutboundRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerOutboundRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerOutboundRulesClientGetOptions ¶ added in v0.3.0
type LoadBalancerOutboundRulesClientGetOptions struct { }
LoadBalancerOutboundRulesClientGetOptions contains the optional parameters for the LoadBalancerOutboundRulesClient.Get method.
type LoadBalancerOutboundRulesClientGetResponse ¶ added in v0.3.0
type LoadBalancerOutboundRulesClientGetResponse struct {
OutboundRule
}
LoadBalancerOutboundRulesClientGetResponse contains the response from method LoadBalancerOutboundRulesClient.Get.
type LoadBalancerOutboundRulesClientListOptions ¶ added in v0.3.0
type LoadBalancerOutboundRulesClientListOptions struct { }
LoadBalancerOutboundRulesClientListOptions contains the optional parameters for the LoadBalancerOutboundRulesClient.List method.
type LoadBalancerOutboundRulesClientListResponse ¶ added in v0.3.0
type LoadBalancerOutboundRulesClientListResponse struct {
LoadBalancerOutboundRuleListResult
}
LoadBalancerOutboundRulesClientListResponse contains the response from method LoadBalancerOutboundRulesClient.List.
type LoadBalancerProbeListResult ¶
type LoadBalancerProbeListResult struct { // A list of probes in a load balancer. Value []*Probe `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LoadBalancerProbeListResult - Response for ListProbe API service call.
type LoadBalancerProbesClient ¶
type LoadBalancerProbesClient struct {
// contains filtered or unexported fields
}
LoadBalancerProbesClient contains the methods for the LoadBalancerProbes group. Don't use this type directly, use NewLoadBalancerProbesClient() instead.
func NewLoadBalancerProbesClient ¶
func NewLoadBalancerProbesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancerProbesClient, error)
NewLoadBalancerProbesClient creates a new instance of LoadBalancerProbesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancerProbesClient) Get ¶
func (client *LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string, options *LoadBalancerProbesClientGetOptions) (LoadBalancerProbesClientGetResponse, error)
Get - Gets load balancer probe. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. probeName - The name of the probe. options - LoadBalancerProbesClientGetOptions contains the optional parameters for the LoadBalancerProbesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerProbeGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerProbesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "testrg", "lb", "probe1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancerProbesClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancerProbesClient) NewListPager(resourceGroupName string, loadBalancerName string, options *LoadBalancerProbesClientListOptions) *runtime.Pager[LoadBalancerProbesClientListResponse]
NewListPager - Gets all the load balancer probes. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancerProbesClientListOptions contains the optional parameters for the LoadBalancerProbesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerProbeList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancerProbesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testrg", "lb", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LoadBalancerProbesClientGetOptions ¶ added in v0.3.0
type LoadBalancerProbesClientGetOptions struct { }
LoadBalancerProbesClientGetOptions contains the optional parameters for the LoadBalancerProbesClient.Get method.
type LoadBalancerProbesClientGetResponse ¶ added in v0.3.0
type LoadBalancerProbesClientGetResponse struct {
Probe
}
LoadBalancerProbesClientGetResponse contains the response from method LoadBalancerProbesClient.Get.
type LoadBalancerProbesClientListOptions ¶ added in v0.3.0
type LoadBalancerProbesClientListOptions struct { }
LoadBalancerProbesClientListOptions contains the optional parameters for the LoadBalancerProbesClient.List method.
type LoadBalancerProbesClientListResponse ¶ added in v0.3.0
type LoadBalancerProbesClientListResponse struct {
LoadBalancerProbeListResult
}
LoadBalancerProbesClientListResponse contains the response from method LoadBalancerProbesClient.List.
type LoadBalancerPropertiesFormat ¶
type LoadBalancerPropertiesFormat struct { // Collection of backend address pools used by a load balancer. BackendAddressPools []*BackendAddressPool `json:"backendAddressPools,omitempty"` // Object representing the frontend IPs to be used for the load balancer. FrontendIPConfigurations []*FrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` // Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound // NAT rules are created automatically for each NIC associated with the Load // Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive // with defining inbound NAT rules. Inbound NAT pools are referenced from virtual // machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They // have to reference individual inbound NAT rules. InboundNatPools []*InboundNatPool `json:"inboundNatPools,omitempty"` // Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive // with defining an inbound NAT pool. Inbound NAT pools are referenced from // virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. // They have to reference individual inbound NAT rules. InboundNatRules []*InboundNatRule `json:"inboundNatRules,omitempty"` // Object collection representing the load balancing rules Gets the provisioning. LoadBalancingRules []*LoadBalancingRule `json:"loadBalancingRules,omitempty"` // The outbound rules. OutboundRules []*OutboundRule `json:"outboundRules,omitempty"` // Collection of probe objects used in the load balancer. Probes []*Probe `json:"probes,omitempty"` // READ-ONLY; The provisioning state of the load balancer resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the load balancer resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
LoadBalancerPropertiesFormat - Properties of the load balancer.
func (LoadBalancerPropertiesFormat) MarshalJSON ¶
func (l LoadBalancerPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerPropertiesFormat.
type LoadBalancerSKU ¶
type LoadBalancerSKU struct { // Name of a load balancer SKU. Name *LoadBalancerSKUName `json:"name,omitempty"` // Tier of a load balancer SKU. Tier *LoadBalancerSKUTier `json:"tier,omitempty"` }
LoadBalancerSKU - SKU of a load balancer.
type LoadBalancerSKUName ¶
type LoadBalancerSKUName string
LoadBalancerSKUName - Name of a load balancer SKU.
const ( LoadBalancerSKUNameBasic LoadBalancerSKUName = "Basic" LoadBalancerSKUNameGateway LoadBalancerSKUName = "Gateway" LoadBalancerSKUNameStandard LoadBalancerSKUName = "Standard" )
func PossibleLoadBalancerSKUNameValues ¶
func PossibleLoadBalancerSKUNameValues() []LoadBalancerSKUName
PossibleLoadBalancerSKUNameValues returns the possible values for the LoadBalancerSKUName const type.
type LoadBalancerSKUTier ¶
type LoadBalancerSKUTier string
LoadBalancerSKUTier - Tier of a load balancer SKU.
const ( LoadBalancerSKUTierGlobal LoadBalancerSKUTier = "Global" LoadBalancerSKUTierRegional LoadBalancerSKUTier = "Regional" )
func PossibleLoadBalancerSKUTierValues ¶
func PossibleLoadBalancerSKUTierValues() []LoadBalancerSKUTier
PossibleLoadBalancerSKUTierValues returns the possible values for the LoadBalancerSKUTier const type.
type LoadBalancerVipSwapRequest ¶
type LoadBalancerVipSwapRequest struct { // A list of frontend IP configuration resources that should swap VIPs. FrontendIPConfigurations []*LoadBalancerVipSwapRequestFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` }
LoadBalancerVipSwapRequest - The request for a VIP swap.
func (LoadBalancerVipSwapRequest) MarshalJSON ¶
func (l LoadBalancerVipSwapRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerVipSwapRequest.
type LoadBalancerVipSwapRequestFrontendIPConfiguration ¶
type LoadBalancerVipSwapRequestFrontendIPConfiguration struct { // The ID of frontend IP configuration resource. ID *string `json:"id,omitempty"` // The properties of VIP swap request's frontend IP configuration object. Properties *LoadBalancerVipSwapRequestFrontendIPConfigurationProperties `json:"properties,omitempty"` }
LoadBalancerVipSwapRequestFrontendIPConfiguration - VIP swap request's frontend IP configuration object.
type LoadBalancerVipSwapRequestFrontendIPConfigurationProperties ¶
type LoadBalancerVipSwapRequestFrontendIPConfigurationProperties struct { // A reference to public IP address resource. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` }
LoadBalancerVipSwapRequestFrontendIPConfigurationProperties - The properties of VIP swap request's frontend IP configuration object.
type LoadBalancersClient ¶
type LoadBalancersClient struct {
// contains filtered or unexported fields
}
LoadBalancersClient contains the methods for the LoadBalancers group. Don't use this type directly, use NewLoadBalancersClient() instead.
func NewLoadBalancersClient ¶
func NewLoadBalancersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadBalancersClient, error)
NewLoadBalancersClient creates a new instance of LoadBalancersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LoadBalancersClient) BeginCreateOrUpdate ¶
func (client *LoadBalancersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters LoadBalancer, options *LoadBalancersClientBeginCreateOrUpdateOptions) (*runtime.Poller[LoadBalancersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. parameters - Parameters supplied to the create or update load balancer operation. options - LoadBalancersClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "lb", armnetwork.LoadBalancer{ Location: to.Ptr("eastus"), Properties: &armnetwork.LoadBalancerPropertiesFormat{ BackendAddressPools: []*armnetwork.BackendAddressPool{ { Name: to.Ptr("be-lb"), Properties: &armnetwork.BackendAddressPoolPropertiesFormat{}, }}, FrontendIPConfigurations: []*armnetwork.FrontendIPConfiguration{ { Name: to.Ptr("fe-lb"), Properties: &armnetwork.FrontendIPConfigurationPropertiesFormat{ Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb"), }, }, }}, InboundNatPools: []*armnetwork.InboundNatPool{}, InboundNatRules: []*armnetwork.InboundNatRule{ { Name: to.Ptr("in-nat-rule"), Properties: &armnetwork.InboundNatRulePropertiesFormat{ BackendPort: to.Ptr[int32](3389), EnableFloatingIP: to.Ptr(true), EnableTCPReset: to.Ptr(false), FrontendIPConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), }, FrontendPort: to.Ptr[int32](3389), IdleTimeoutInMinutes: to.Ptr[int32](15), Protocol: to.Ptr(armnetwork.TransportProtocolTCP), }, }}, LoadBalancingRules: []*armnetwork.LoadBalancingRule{ { Name: to.Ptr("rulelb"), Properties: &armnetwork.LoadBalancingRulePropertiesFormat{ BackendAddressPool: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"), }, BackendPort: to.Ptr[int32](80), EnableFloatingIP: to.Ptr(true), EnableTCPReset: to.Ptr(false), FrontendIPConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), }, FrontendPort: to.Ptr[int32](80), IdleTimeoutInMinutes: to.Ptr[int32](15), LoadDistribution: to.Ptr(armnetwork.LoadDistributionDefault), Probe: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb"), }, Protocol: to.Ptr(armnetwork.TransportProtocolTCP), }, }}, Probes: []*armnetwork.Probe{ { Name: to.Ptr("probe-lb"), Properties: &armnetwork.ProbePropertiesFormat{ IntervalInSeconds: to.Ptr[int32](15), NumberOfProbes: to.Ptr[int32](2), Port: to.Ptr[int32](80), RequestPath: to.Ptr("healthcheck.aspx"), Protocol: to.Ptr(armnetwork.ProbeProtocolHTTP), }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*LoadBalancersClient) BeginDelete ¶
func (client *LoadBalancersClient) BeginDelete(ctx context.Context, resourceGroupName string, loadBalancerName string, options *LoadBalancersClientBeginDeleteOptions) (*runtime.Poller[LoadBalancersClientDeleteResponse], error)
BeginDelete - Deletes the specified load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancersClientBeginDeleteOptions contains the optional parameters for the LoadBalancersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "lb", 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 (*LoadBalancersClient) BeginListInboundNatRulePortMappings ¶ added in v0.2.0
func (client *LoadBalancersClient) BeginListInboundNatRulePortMappings(ctx context.Context, groupName string, loadBalancerName string, backendPoolName string, parameters QueryInboundNatRulePortMappingRequest, options *LoadBalancersClientBeginListInboundNatRulePortMappingsOptions) (*runtime.Poller[LoadBalancersClientListInboundNatRulePortMappingsResponse], error)
BeginListInboundNatRulePortMappings - List of inbound NAT rule port mappings. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 groupName - The name of the resource group. loadBalancerName - The name of the load balancer. backendPoolName - The name of the load balancer backend address pool. parameters - Query inbound NAT rule port mapping request. options - LoadBalancersClientBeginListInboundNatRulePortMappingsOptions contains the optional parameters for the LoadBalancersClient.BeginListInboundNatRulePortMappings method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/QueryInboundNatRulePortMapping.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListInboundNatRulePortMappings(ctx, "rg1", "lb1", "bp1", armnetwork.QueryInboundNatRulePortMappingRequest{ IPAddress: to.Ptr("10.0.0.4"), }, 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) } // TODO: use response item _ = res }
Output:
func (*LoadBalancersClient) BeginSwapPublicIPAddresses ¶
func (client *LoadBalancersClient) BeginSwapPublicIPAddresses(ctx context.Context, location string, parameters LoadBalancerVipSwapRequest, options *LoadBalancersClientBeginSwapPublicIPAddressesOptions) (*runtime.Poller[LoadBalancersClientSwapPublicIPAddressesResponse], error)
BeginSwapPublicIPAddresses - Swaps VIPs between two load balancers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The region where load balancers are located at. parameters - Parameters that define which VIPs should be swapped. options - LoadBalancersClientBeginSwapPublicIPAddressesOptions contains the optional parameters for the LoadBalancersClient.BeginSwapPublicIPAddresses method.
func (*LoadBalancersClient) Get ¶
func (client *LoadBalancersClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, options *LoadBalancersClientGetOptions) (LoadBalancersClientGetResponse, error)
Get - Gets the specified load balancer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. options - LoadBalancersClientGetOptions contains the optional parameters for the LoadBalancersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "lb", &armnetwork.LoadBalancersClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LoadBalancersClient) NewListAllPager ¶ added in v0.5.0
func (client *LoadBalancersClient) NewListAllPager(options *LoadBalancersClientListAllOptions) *runtime.Pager[LoadBalancersClientListAllResponse]
NewListAllPager - Gets all the load balancers in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - LoadBalancersClientListAllOptions contains the optional parameters for the LoadBalancersClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*LoadBalancersClient) NewListPager ¶ added in v0.5.0
func (client *LoadBalancersClient) NewListPager(resourceGroupName string, options *LoadBalancersClientListOptions) *runtime.Pager[LoadBalancersClientListResponse]
NewListPager - Gets all the load balancers in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - LoadBalancersClientListOptions contains the optional parameters for the LoadBalancersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*LoadBalancersClient) UpdateTags ¶
func (client *LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters TagsObject, options *LoadBalancersClientUpdateTagsOptions) (LoadBalancersClientUpdateTagsResponse, error)
UpdateTags - Updates a load balancer tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. loadBalancerName - The name of the load balancer. parameters - Parameters supplied to update load balancer tags. options - LoadBalancersClientUpdateTagsOptions contains the optional parameters for the LoadBalancersClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LoadBalancerUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLoadBalancersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "lb", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type LoadBalancersClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type LoadBalancersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancersClientBeginCreateOrUpdateOptions contains the optional parameters for the LoadBalancersClient.BeginCreateOrUpdate method.
type LoadBalancersClientBeginDeleteOptions ¶ added in v0.3.0
type LoadBalancersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancersClientBeginDeleteOptions contains the optional parameters for the LoadBalancersClient.BeginDelete method.
type LoadBalancersClientBeginListInboundNatRulePortMappingsOptions ¶ added in v0.3.0
type LoadBalancersClientBeginListInboundNatRulePortMappingsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancersClientBeginListInboundNatRulePortMappingsOptions contains the optional parameters for the LoadBalancersClient.BeginListInboundNatRulePortMappings method.
type LoadBalancersClientBeginSwapPublicIPAddressesOptions ¶ added in v0.3.0
type LoadBalancersClientBeginSwapPublicIPAddressesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LoadBalancersClientBeginSwapPublicIPAddressesOptions contains the optional parameters for the LoadBalancersClient.BeginSwapPublicIPAddresses method.
type LoadBalancersClientCreateOrUpdateResponse ¶ added in v0.3.0
type LoadBalancersClientCreateOrUpdateResponse struct {
LoadBalancer
}
LoadBalancersClientCreateOrUpdateResponse contains the response from method LoadBalancersClient.CreateOrUpdate.
type LoadBalancersClientDeleteResponse ¶ added in v0.3.0
type LoadBalancersClientDeleteResponse struct { }
LoadBalancersClientDeleteResponse contains the response from method LoadBalancersClient.Delete.
type LoadBalancersClientGetOptions ¶ added in v0.3.0
type LoadBalancersClientGetOptions struct { // Expands referenced resources. Expand *string }
LoadBalancersClientGetOptions contains the optional parameters for the LoadBalancersClient.Get method.
type LoadBalancersClientGetResponse ¶ added in v0.3.0
type LoadBalancersClientGetResponse struct {
LoadBalancer
}
LoadBalancersClientGetResponse contains the response from method LoadBalancersClient.Get.
type LoadBalancersClientListAllOptions ¶ added in v0.3.0
type LoadBalancersClientListAllOptions struct { }
LoadBalancersClientListAllOptions contains the optional parameters for the LoadBalancersClient.ListAll method.
type LoadBalancersClientListAllResponse ¶ added in v0.3.0
type LoadBalancersClientListAllResponse struct {
LoadBalancerListResult
}
LoadBalancersClientListAllResponse contains the response from method LoadBalancersClient.ListAll.
type LoadBalancersClientListInboundNatRulePortMappingsResponse ¶ added in v0.3.0
type LoadBalancersClientListInboundNatRulePortMappingsResponse struct {
BackendAddressInboundNatRulePortMappings
}
LoadBalancersClientListInboundNatRulePortMappingsResponse contains the response from method LoadBalancersClient.ListInboundNatRulePortMappings.
type LoadBalancersClientListOptions ¶ added in v0.3.0
type LoadBalancersClientListOptions struct { }
LoadBalancersClientListOptions contains the optional parameters for the LoadBalancersClient.List method.
type LoadBalancersClientListResponse ¶ added in v0.3.0
type LoadBalancersClientListResponse struct {
LoadBalancerListResult
}
LoadBalancersClientListResponse contains the response from method LoadBalancersClient.List.
type LoadBalancersClientSwapPublicIPAddressesResponse ¶ added in v0.3.0
type LoadBalancersClientSwapPublicIPAddressesResponse struct { }
LoadBalancersClientSwapPublicIPAddressesResponse contains the response from method LoadBalancersClient.SwapPublicIPAddresses.
type LoadBalancersClientUpdateTagsOptions ¶ added in v0.3.0
type LoadBalancersClientUpdateTagsOptions struct { }
LoadBalancersClientUpdateTagsOptions contains the optional parameters for the LoadBalancersClient.UpdateTags method.
type LoadBalancersClientUpdateTagsResponse ¶ added in v0.3.0
type LoadBalancersClientUpdateTagsResponse struct {
LoadBalancer
}
LoadBalancersClientUpdateTagsResponse contains the response from method LoadBalancersClient.UpdateTags.
type LoadBalancingRule ¶
type LoadBalancingRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can // be used to access the resource. Name *string `json:"name,omitempty"` // Properties of load balancer load balancing rule. Properties *LoadBalancingRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
LoadBalancingRule - A load balancing rule for a load balancer.
type LoadBalancingRulePropertiesFormat ¶
type LoadBalancingRulePropertiesFormat struct { // REQUIRED; The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable // values are between 0 and 65534. Note that value 0 enables "Any Port". FrontendPort *int32 `json:"frontendPort,omitempty"` // REQUIRED; The reference to the transport protocol used by the load balancing rule. Protocol *TransportProtocol `json:"protocol,omitempty"` // A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // An array of references to pool of DIPs. BackendAddressPools []*SubResource `json:"backendAddressPools,omitempty"` // The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables // "Any Port". BackendPort *int32 `json:"backendPort,omitempty"` // Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing // rule. DisableOutboundSnat *bool `json:"disableOutboundSnat,omitempty"` // Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability // Group. This setting is required when using the SQL AlwaysOn Availability Groups // in SQL server. This setting can't be changed after you create the endpoint. EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` // Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used // when the protocol is set to TCP. EnableTCPReset *bool `json:"enableTcpReset,omitempty"` // A reference to frontend IP addresses. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` // The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. // This element is only used when the protocol is set to TCP. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // The load distribution policy for this rule. LoadDistribution *LoadDistribution `json:"loadDistribution,omitempty"` // The reference to the load balancer probe used by the load balancing rule. Probe *SubResource `json:"probe,omitempty"` // READ-ONLY; The provisioning state of the load balancing rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
LoadBalancingRulePropertiesFormat - Properties of the load balancer.
func (LoadBalancingRulePropertiesFormat) MarshalJSON ¶
func (l LoadBalancingRulePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancingRulePropertiesFormat.
type LoadDistribution ¶
type LoadDistribution string
LoadDistribution - The load distribution policy for this rule.
const ( LoadDistributionDefault LoadDistribution = "Default" LoadDistributionSourceIP LoadDistribution = "SourceIP" LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" )
func PossibleLoadDistributionValues ¶
func PossibleLoadDistributionValues() []LoadDistribution
PossibleLoadDistributionValues returns the possible values for the LoadDistribution const type.
type LocalNetworkGateway ¶
type LocalNetworkGateway struct { // REQUIRED; Properties of the local network gateway. Properties *LocalNetworkGatewayPropertiesFormat `json:"properties,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
LocalNetworkGateway - A common class for general resource information.
func (LocalNetworkGateway) MarshalJSON ¶
func (l LocalNetworkGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LocalNetworkGateway.
type LocalNetworkGatewayListResult ¶
type LocalNetworkGatewayListResult struct { // A list of local network gateways that exists in a resource group. Value []*LocalNetworkGateway `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
LocalNetworkGatewayListResult - Response for ListLocalNetworkGateways API service call.
type LocalNetworkGatewayPropertiesFormat ¶
type LocalNetworkGatewayPropertiesFormat struct { // Local network gateway's BGP speaker settings. BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` // FQDN of local network gateway. Fqdn *string `json:"fqdn,omitempty"` // IP address of local network gateway. GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` // Local network site address space. LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` // READ-ONLY; The provisioning state of the local network gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the local network gateway resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
LocalNetworkGatewayPropertiesFormat - LocalNetworkGateway properties.
type LocalNetworkGatewaysClient ¶
type LocalNetworkGatewaysClient struct {
// contains filtered or unexported fields
}
LocalNetworkGatewaysClient contains the methods for the LocalNetworkGateways group. Don't use this type directly, use NewLocalNetworkGatewaysClient() instead.
func NewLocalNetworkGatewaysClient ¶
func NewLocalNetworkGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocalNetworkGatewaysClient, error)
NewLocalNetworkGatewaysClient creates a new instance of LocalNetworkGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LocalNetworkGatewaysClient) BeginCreateOrUpdate ¶
func (client *LocalNetworkGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters LocalNetworkGateway, options *LocalNetworkGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[LocalNetworkGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a local network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. localNetworkGatewayName - The name of the local network gateway. parameters - Parameters supplied to the create or update local network gateway operation. options - LocalNetworkGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalNetworkGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LocalNetworkGatewayCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLocalNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "localgw", armnetwork.LocalNetworkGateway{ Location: to.Ptr("Central US"), Properties: &armnetwork.LocalNetworkGatewayPropertiesFormat{ Fqdn: to.Ptr("site1.contoso.com"), GatewayIPAddress: to.Ptr("11.12.13.14"), LocalNetworkAddressSpace: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("10.1.0.0/16")}, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*LocalNetworkGatewaysClient) BeginDelete ¶
func (client *LocalNetworkGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, options *LocalNetworkGatewaysClientBeginDeleteOptions) (*runtime.Poller[LocalNetworkGatewaysClientDeleteResponse], error)
BeginDelete - Deletes the specified local network gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. localNetworkGatewayName - The name of the local network gateway. options - LocalNetworkGatewaysClientBeginDeleteOptions contains the optional parameters for the LocalNetworkGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LocalNetworkGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLocalNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "localgw", 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 (*LocalNetworkGatewaysClient) Get ¶
func (client *LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, options *LocalNetworkGatewaysClientGetOptions) (LocalNetworkGatewaysClientGetResponse, error)
Get - Gets the specified local network gateway in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. localNetworkGatewayName - The name of the local network gateway. options - LocalNetworkGatewaysClientGetOptions contains the optional parameters for the LocalNetworkGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LocalNetworkGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLocalNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "localgw", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*LocalNetworkGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *LocalNetworkGatewaysClient) NewListPager(resourceGroupName string, options *LocalNetworkGatewaysClientListOptions) *runtime.Pager[LocalNetworkGatewaysClientListResponse]
NewListPager - Gets all the local network gateways in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - LocalNetworkGatewaysClientListOptions contains the optional parameters for the LocalNetworkGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LocalNetworkGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLocalNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*LocalNetworkGatewaysClient) UpdateTags ¶
func (client *LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters TagsObject, options *LocalNetworkGatewaysClientUpdateTagsOptions) (LocalNetworkGatewaysClientUpdateTagsResponse, error)
UpdateTags - Updates a local network gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. localNetworkGatewayName - The name of the local network gateway. parameters - Parameters supplied to update local network gateway tags. options - LocalNetworkGatewaysClientUpdateTagsOptions contains the optional parameters for the LocalNetworkGatewaysClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/LocalNetworkGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewLocalNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "lgw", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type LocalNetworkGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type LocalNetworkGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LocalNetworkGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalNetworkGatewaysClient.BeginCreateOrUpdate method.
type LocalNetworkGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type LocalNetworkGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
LocalNetworkGatewaysClientBeginDeleteOptions contains the optional parameters for the LocalNetworkGatewaysClient.BeginDelete method.
type LocalNetworkGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type LocalNetworkGatewaysClientCreateOrUpdateResponse struct {
LocalNetworkGateway
}
LocalNetworkGatewaysClientCreateOrUpdateResponse contains the response from method LocalNetworkGatewaysClient.CreateOrUpdate.
type LocalNetworkGatewaysClientDeleteResponse ¶ added in v0.3.0
type LocalNetworkGatewaysClientDeleteResponse struct { }
LocalNetworkGatewaysClientDeleteResponse contains the response from method LocalNetworkGatewaysClient.Delete.
type LocalNetworkGatewaysClientGetOptions ¶ added in v0.3.0
type LocalNetworkGatewaysClientGetOptions struct { }
LocalNetworkGatewaysClientGetOptions contains the optional parameters for the LocalNetworkGatewaysClient.Get method.
type LocalNetworkGatewaysClientGetResponse ¶ added in v0.3.0
type LocalNetworkGatewaysClientGetResponse struct {
LocalNetworkGateway
}
LocalNetworkGatewaysClientGetResponse contains the response from method LocalNetworkGatewaysClient.Get.
type LocalNetworkGatewaysClientListOptions ¶ added in v0.3.0
type LocalNetworkGatewaysClientListOptions struct { }
LocalNetworkGatewaysClientListOptions contains the optional parameters for the LocalNetworkGatewaysClient.List method.
type LocalNetworkGatewaysClientListResponse ¶ added in v0.3.0
type LocalNetworkGatewaysClientListResponse struct {
LocalNetworkGatewayListResult
}
LocalNetworkGatewaysClientListResponse contains the response from method LocalNetworkGatewaysClient.List.
type LocalNetworkGatewaysClientUpdateTagsOptions ¶ added in v0.3.0
type LocalNetworkGatewaysClientUpdateTagsOptions struct { }
LocalNetworkGatewaysClientUpdateTagsOptions contains the optional parameters for the LocalNetworkGatewaysClient.UpdateTags method.
type LocalNetworkGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type LocalNetworkGatewaysClientUpdateTagsResponse struct {
LocalNetworkGateway
}
LocalNetworkGatewaysClientUpdateTagsResponse contains the response from method LocalNetworkGatewaysClient.UpdateTags.
type LogSpecification ¶
type LogSpecification struct { // Duration of the blob. BlobDuration *string `json:"blobDuration,omitempty"` // The display name of the specification. DisplayName *string `json:"displayName,omitempty"` // The name of the specification. Name *string `json:"name,omitempty"` }
LogSpecification - Description of logging specification.
type ManagedRuleEnabledState ¶
type ManagedRuleEnabledState string
ManagedRuleEnabledState - The state of the managed rule. Defaults to Disabled if not specified.
const (
ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled"
)
func PossibleManagedRuleEnabledStateValues ¶
func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState
PossibleManagedRuleEnabledStateValues returns the possible values for the ManagedRuleEnabledState const type.
type ManagedRuleGroupOverride ¶
type ManagedRuleGroupOverride struct { // REQUIRED; The managed rule group to override. RuleGroupName *string `json:"ruleGroupName,omitempty"` // List of rules that will be disabled. If none specified, all rules in the group will be disabled. Rules []*ManagedRuleOverride `json:"rules,omitempty"` }
ManagedRuleGroupOverride - Defines a managed rule group override setting.
func (ManagedRuleGroupOverride) MarshalJSON ¶
func (m ManagedRuleGroupOverride) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedRuleGroupOverride.
type ManagedRuleOverride ¶
type ManagedRuleOverride struct { // REQUIRED; Identifier for the managed rule. RuleID *string `json:"ruleId,omitempty"` // The state of the managed rule. Defaults to Disabled if not specified. State *ManagedRuleEnabledState `json:"state,omitempty"` }
ManagedRuleOverride - Defines a managed rule group override setting.
type ManagedRuleSet ¶
type ManagedRuleSet struct { // REQUIRED; Defines the rule set type to use. RuleSetType *string `json:"ruleSetType,omitempty"` // REQUIRED; Defines the version of the rule set to use. RuleSetVersion *string `json:"ruleSetVersion,omitempty"` // Defines the rule group overrides to apply to the rule set. RuleGroupOverrides []*ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` }
ManagedRuleSet - Defines a managed rule set.
func (ManagedRuleSet) MarshalJSON ¶
func (m ManagedRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedRuleSet.
type ManagedRulesDefinition ¶
type ManagedRulesDefinition struct { // REQUIRED; The managed rule sets that are associated with the policy. ManagedRuleSets []*ManagedRuleSet `json:"managedRuleSets,omitempty"` // The Exclusions that are applied on the policy. Exclusions []*OwaspCrsExclusionEntry `json:"exclusions,omitempty"` }
ManagedRulesDefinition - Allow to exclude some variable satisfy the condition for the WAF check.
func (ManagedRulesDefinition) MarshalJSON ¶
func (m ManagedRulesDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedRulesDefinition.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct { // The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created // identity and a set of user assigned identities. The type 'None' will remove any // identities from the virtual machine. Type *ResourceIdentityType `json:"type,omitempty"` // The list of user identities associated with resource. The user identity dictionary key references will be ARM resource // ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal id of the system assigned identity. This property will only be provided for a system assigned // identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant id of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ManagedServiceIdentity - Identity for the resource.
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
type ManagementClient ¶ added in v0.3.0
type ManagementClient struct {
// contains filtered or unexported fields
}
ManagementClient contains the methods for the NetworkManagementClient group. Don't use this type directly, use NewManagementClient() instead.
func NewManagementClient ¶ added in v0.3.0
func NewManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementClient, error)
NewManagementClient creates a new instance of ManagementClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ManagementClient) BeginDeleteBastionShareableLink ¶ added in v0.3.0
func (client *ManagementClient) BeginDeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest, options *ManagementClientBeginDeleteBastionShareableLinkOptions) (*runtime.Poller[ManagementClientDeleteBastionShareableLinkResponse], error)
BeginDeleteBastionShareableLink - Deletes the Bastion Shareable Links for all the VMs specified in the request. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. bslRequest - Post request for all the Bastion Shareable Link endpoints. options - ManagementClientBeginDeleteBastionShareableLinkOptions contains the optional parameters for the ManagementClient.BeginDeleteBastionShareableLink method.
func (*ManagementClient) BeginGeneratevirtualwanvpnserverconfigurationvpnprofile ¶ added in v0.3.0
func (client *ManagementClient) BeginGeneratevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams VirtualWanVPNProfileParameters, options *ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions) (*runtime.Poller[ManagementClientGeneratevirtualwanvpnserverconfigurationvpnprofileResponse], error)
BeginGeneratevirtualwanvpnserverconfigurationvpnprofile - Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name. virtualWANName - The name of the VirtualWAN whose associated VpnServerConfigurations is needed. vpnClientParams - Parameters supplied to the generate VirtualWan VPN profile generation operation. options - ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions contains the optional parameters for the ManagementClient.BeginGeneratevirtualwanvpnserverconfigurationvpnprofile method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewManagementClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGeneratevirtualwanvpnserverconfigurationvpnprofile(ctx, "rg1", "wan1", armnetwork.VirtualWanVPNProfileParameters{ AuthenticationMethod: to.Ptr(armnetwork.AuthenticationMethodEAPTLS), VPNServerConfigurationResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnconfig1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*ManagementClient) BeginGetActiveSessions ¶ added in v0.3.0
func (client *ManagementClient) BeginGetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, options *ManagementClientBeginGetActiveSessionsOptions) (*runtime.Poller[*runtime.Pager[ManagementClientGetActiveSessionsResponse]], error)
BeginGetActiveSessions - Returns the list of currently active sessions on the Bastion. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. options - ManagementClientBeginGetActiveSessionsOptions contains the optional parameters for the ManagementClient.BeginGetActiveSessions method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionSessionsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewManagementClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetActiveSessions(ctx, "rg1", "bastionhosttenant", 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) } for res.More() { nextResult, err := res.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ManagementClient) BeginPutBastionShareableLink ¶ added in v0.3.0
func (client *ManagementClient) BeginPutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest, options *ManagementClientBeginPutBastionShareableLinkOptions) (*runtime.Poller[*runtime.Pager[ManagementClientPutBastionShareableLinkResponse]], error)
BeginPutBastionShareableLink - Creates a Bastion Shareable Links for all the VMs specified in the request. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. bslRequest - Post request for all the Bastion Shareable Link endpoints. options - ManagementClientBeginPutBastionShareableLinkOptions contains the optional parameters for the ManagementClient.BeginPutBastionShareableLink method.
func (*ManagementClient) CheckDNSNameAvailability ¶ added in v0.3.0
func (client *ManagementClient) CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string, options *ManagementClientCheckDNSNameAvailabilityOptions) (ManagementClientCheckDNSNameAvailabilityResponse, error)
CheckDNSNameAvailability - Checks whether a domain name in the cloudapp.azure.com zone is available for use. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. domainNameLabel - The domain name to be verified. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. options - ManagementClientCheckDNSNameAvailabilityOptions contains the optional parameters for the ManagementClient.CheckDNSNameAvailability method.
func (*ManagementClient) NewDisconnectActiveSessionsPager ¶ added in v0.5.0
func (client *ManagementClient) NewDisconnectActiveSessionsPager(resourceGroupName string, bastionHostName string, sessionIDs SessionIDs, options *ManagementClientDisconnectActiveSessionsOptions) *runtime.Pager[ManagementClientDisconnectActiveSessionsResponse]
NewDisconnectActiveSessionsPager - Returns the list of currently active sessions on the Bastion. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. sessionIDs - The list of sessionids to disconnect. options - ManagementClientDisconnectActiveSessionsOptions contains the optional parameters for the ManagementClient.DisconnectActiveSessions method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/BastionSessionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewManagementClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewDisconnectActiveSessionsPager("rg1", "bastionhosttenant", armnetwork.SessionIDs{}, nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ManagementClient) NewGetBastionShareableLinkPager ¶ added in v0.5.0
func (client *ManagementClient) NewGetBastionShareableLinkPager(resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest, options *ManagementClientGetBastionShareableLinkOptions) *runtime.Pager[ManagementClientGetBastionShareableLinkResponse]
NewGetBastionShareableLinkPager - Return the Bastion Shareable Links for all the VMs specified in the request. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. bastionHostName - The name of the Bastion Host. bslRequest - Post request for all the Bastion Shareable Link endpoints. options - ManagementClientGetBastionShareableLinkOptions contains the optional parameters for the ManagementClient.GetBastionShareableLink method.
func (*ManagementClient) SupportedSecurityProviders ¶ added in v0.3.0
func (client *ManagementClient) SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string, options *ManagementClientSupportedSecurityProvidersOptions) (ManagementClientSupportedSecurityProvidersResponse, error)
SupportedSecurityProviders - Gives the supported security providers for the virtual wan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name. virtualWANName - The name of the VirtualWAN for which supported security providers are needed. options - ManagementClientSupportedSecurityProvidersOptions contains the optional parameters for the ManagementClient.SupportedSecurityProviders method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWanSupportedSecurityProviders.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewManagementClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.SupportedSecurityProviders(ctx, "rg1", "wan1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ManagementClientBeginDeleteBastionShareableLinkOptions ¶ added in v0.3.0
type ManagementClientBeginDeleteBastionShareableLinkOptions struct { string }ResumeToken
ManagementClientBeginDeleteBastionShareableLinkOptions contains the optional parameters for the ManagementClient.BeginDeleteBastionShareableLink method.
type ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions ¶ added in v0.3.0
type ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ManagementClientBeginGeneratevirtualwanvpnserverconfigurationvpnprofileOptions contains the optional parameters for the ManagementClient.BeginGeneratevirtualwanvpnserverconfigurationvpnprofile method.
type ManagementClientBeginGetActiveSessionsOptions ¶ added in v0.3.0
type ManagementClientBeginGetActiveSessionsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ManagementClientBeginGetActiveSessionsOptions contains the optional parameters for the ManagementClient.BeginGetActiveSessions method.
type ManagementClientBeginPutBastionShareableLinkOptions ¶ added in v0.3.0
type ManagementClientBeginPutBastionShareableLinkOptions struct { string }ResumeToken
ManagementClientBeginPutBastionShareableLinkOptions contains the optional parameters for the ManagementClient.BeginPutBastionShareableLink method.
type ManagementClientCheckDNSNameAvailabilityOptions ¶ added in v0.3.0
type ManagementClientCheckDNSNameAvailabilityOptions struct { }
ManagementClientCheckDNSNameAvailabilityOptions contains the optional parameters for the ManagementClient.CheckDNSNameAvailability method.
type ManagementClientCheckDNSNameAvailabilityResponse ¶ added in v0.3.0
type ManagementClientCheckDNSNameAvailabilityResponse struct {
DNSNameAvailabilityResult
}
ManagementClientCheckDNSNameAvailabilityResponse contains the response from method ManagementClient.CheckDNSNameAvailability.
type ManagementClientDeleteBastionShareableLinkResponse ¶ added in v0.3.0
type ManagementClientDeleteBastionShareableLinkResponse struct { }
ManagementClientDeleteBastionShareableLinkResponse contains the response from method ManagementClient.DeleteBastionShareableLink.
type ManagementClientDisconnectActiveSessionsOptions ¶ added in v0.3.0
type ManagementClientDisconnectActiveSessionsOptions struct { }
ManagementClientDisconnectActiveSessionsOptions contains the optional parameters for the ManagementClient.DisconnectActiveSessions method.
type ManagementClientDisconnectActiveSessionsResponse ¶ added in v0.3.0
type ManagementClientDisconnectActiveSessionsResponse struct {
BastionSessionDeleteResult
}
ManagementClientDisconnectActiveSessionsResponse contains the response from method ManagementClient.DisconnectActiveSessions.
type ManagementClientGeneratevirtualwanvpnserverconfigurationvpnprofileResponse ¶ added in v0.3.0
type ManagementClientGeneratevirtualwanvpnserverconfigurationvpnprofileResponse struct {
VPNProfileResponse
}
ManagementClientGeneratevirtualwanvpnserverconfigurationvpnprofileResponse contains the response from method ManagementClient.Generatevirtualwanvpnserverconfigurationvpnprofile.
type ManagementClientGetActiveSessionsResponse ¶ added in v0.3.0
type ManagementClientGetActiveSessionsResponse struct {
BastionActiveSessionListResult
}
ManagementClientGetActiveSessionsResponse contains the response from method ManagementClient.GetActiveSessions.
type ManagementClientGetBastionShareableLinkOptions ¶ added in v0.3.0
type ManagementClientGetBastionShareableLinkOptions struct { }
ManagementClientGetBastionShareableLinkOptions contains the optional parameters for the ManagementClient.GetBastionShareableLink method.
type ManagementClientGetBastionShareableLinkResponse ¶ added in v0.3.0
type ManagementClientGetBastionShareableLinkResponse struct {
}ManagementClientGetBastionShareableLinkResponse contains the response from method ManagementClient.GetBastionShareableLink.
type ManagementClientPutBastionShareableLinkResponse ¶ added in v0.3.0
type ManagementClientPutBastionShareableLinkResponse struct {
}ManagementClientPutBastionShareableLinkResponse contains the response from method ManagementClient.PutBastionShareableLink.
type ManagementClientSupportedSecurityProvidersOptions ¶ added in v0.3.0
type ManagementClientSupportedSecurityProvidersOptions struct { }
ManagementClientSupportedSecurityProvidersOptions contains the optional parameters for the ManagementClient.SupportedSecurityProviders method.
type ManagementClientSupportedSecurityProvidersResponse ¶ added in v0.3.0
type ManagementClientSupportedSecurityProvidersResponse struct {
VirtualWanSecurityProviders
}
ManagementClientSupportedSecurityProvidersResponse contains the response from method ManagementClient.SupportedSecurityProviders.
type MatchCondition ¶
type MatchCondition struct { // REQUIRED; Match value. MatchValues []*string `json:"matchValues,omitempty"` // REQUIRED; List of match variables. MatchVariables []*MatchVariable `json:"matchVariables,omitempty"` // REQUIRED; The operator to be matched. Operator *WebApplicationFirewallOperator `json:"operator,omitempty"` // Whether this is negate condition or not. NegationConditon *bool `json:"negationConditon,omitempty"` // List of transforms. Transforms []*WebApplicationFirewallTransform `json:"transforms,omitempty"` }
MatchCondition - Define match conditions.
func (MatchCondition) MarshalJSON ¶
func (m MatchCondition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MatchCondition.
type MatchVariable ¶
type MatchVariable struct { // REQUIRED; Match Variable. VariableName *WebApplicationFirewallMatchVariable `json:"variableName,omitempty"` // The selector of match variable. Selector *string `json:"selector,omitempty"` }
MatchVariable - Define match variables.
type MatchedRule ¶
type MatchedRule struct { // The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. Action *string `json:"action,omitempty"` // Name of the matched network security rule. RuleName *string `json:"ruleName,omitempty"` }
MatchedRule - Matched rule.
type MetricSpecification ¶
type MetricSpecification struct { // The aggregation type. AggregationType *string `json:"aggregationType,omitempty"` // List of availability. Availabilities []*Availability `json:"availabilities,omitempty"` // List of dimensions. Dimensions []*Dimension `json:"dimensions,omitempty"` // The description of the metric. DisplayDescription *string `json:"displayDescription,omitempty"` // The display name of the metric. DisplayName *string `json:"displayName,omitempty"` // Whether regional MDM account enabled. EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` // Whether gaps would be filled with zeros. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Whether the metric is internal. IsInternal *bool `json:"isInternal,omitempty"` // Pattern for the filter of the metric. MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` // The name of the metric. Name *string `json:"name,omitempty"` // The resource Id dimension name override. ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` // The source MDM account. SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` // The source MDM namespace. SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` // Units the metric to be displayed in. Unit *string `json:"unit,omitempty"` }
MetricSpecification - Description of metrics specification.
type NatGateway ¶
type NatGateway struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Nat Gateway properties. Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` // The nat gateway SKU. SKU *NatGatewaySKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting the zone in which Nat Gateway should be deployed. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
NatGateway - Nat Gateway resource.
func (NatGateway) MarshalJSON ¶
func (n NatGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NatGateway.
type NatGatewayListResult ¶
type NatGatewayListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of Nat Gateways that exists in a resource group. Value []*NatGateway `json:"value,omitempty"` }
NatGatewayListResult - Response for ListNatGateways API service call.
type NatGatewayPropertiesFormat ¶
type NatGatewayPropertiesFormat struct { // The idle timeout of the nat gateway. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // An array of public ip addresses associated with the nat gateway resource. PublicIPAddresses []*SubResource `json:"publicIpAddresses,omitempty"` // An array of public ip prefixes associated with the nat gateway resource. PublicIPPrefixes []*SubResource `json:"publicIpPrefixes,omitempty"` // READ-ONLY; The provisioning state of the NAT gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the NAT gateway resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; An array of references to the subnets using this nat gateway resource. Subnets []*SubResource `json:"subnets,omitempty" azure:"ro"` }
NatGatewayPropertiesFormat - Nat Gateway properties.
func (NatGatewayPropertiesFormat) MarshalJSON ¶
func (n NatGatewayPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NatGatewayPropertiesFormat.
type NatGatewaySKU ¶
type NatGatewaySKU struct { // Name of Nat Gateway SKU. Name *NatGatewaySKUName `json:"name,omitempty"` }
NatGatewaySKU - SKU of nat gateway.
type NatGatewaySKUName ¶
type NatGatewaySKUName string
NatGatewaySKUName - Name of Nat Gateway SKU.
const (
NatGatewaySKUNameStandard NatGatewaySKUName = "Standard"
)
func PossibleNatGatewaySKUNameValues ¶
func PossibleNatGatewaySKUNameValues() []NatGatewaySKUName
PossibleNatGatewaySKUNameValues returns the possible values for the NatGatewaySKUName const type.
type NatGatewaysClient ¶
type NatGatewaysClient struct {
// contains filtered or unexported fields
}
NatGatewaysClient contains the methods for the NatGateways group. Don't use this type directly, use NewNatGatewaysClient() instead.
func NewNatGatewaysClient ¶
func NewNatGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NatGatewaysClient, error)
NewNatGatewaysClient creates a new instance of NatGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*NatGatewaysClient) BeginCreateOrUpdate ¶
func (client *NatGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, natGatewayName string, parameters NatGateway, options *NatGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[NatGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a nat gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. natGatewayName - The name of the nat gateway. parameters - Parameters supplied to the create or update nat gateway operation. options - NatGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the NatGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayCreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-natgateway", armnetwork.NatGateway{ Location: to.Ptr("westus"), Properties: &armnetwork.NatGatewayPropertiesFormat{ PublicIPAddresses: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"), }}, PublicIPPrefixes: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"), }}, }, SKU: &armnetwork.NatGatewaySKU{ Name: to.Ptr(armnetwork.NatGatewaySKUNameStandard), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*NatGatewaysClient) BeginDelete ¶
func (client *NatGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, natGatewayName string, options *NatGatewaysClientBeginDeleteOptions) (*runtime.Poller[NatGatewaysClientDeleteResponse], error)
BeginDelete - Deletes the specified nat gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. natGatewayName - The name of the nat gateway. options - NatGatewaysClientBeginDeleteOptions contains the optional parameters for the NatGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-natGateway", 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 (*NatGatewaysClient) Get ¶
func (client *NatGatewaysClient) Get(ctx context.Context, resourceGroupName string, natGatewayName string, options *NatGatewaysClientGetOptions) (NatGatewaysClientGetResponse, error)
Get - Gets the specified nat gateway in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. natGatewayName - The name of the nat gateway. options - NatGatewaysClientGetOptions contains the optional parameters for the NatGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-natGateway", &armnetwork.NatGatewaysClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NatGatewaysClient) NewListAllPager ¶ added in v0.5.0
func (client *NatGatewaysClient) NewListAllPager(options *NatGatewaysClientListAllOptions) *runtime.Pager[NatGatewaysClientListAllResponse]
NewListAllPager - Gets all the Nat Gateways in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - NatGatewaysClientListAllOptions contains the optional parameters for the NatGatewaysClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*NatGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *NatGatewaysClient) NewListPager(resourceGroupName string, options *NatGatewaysClientListOptions) *runtime.Pager[NatGatewaysClientListResponse]
NewListPager - Gets all nat gateways in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - NatGatewaysClientListOptions contains the optional parameters for the NatGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*NatGatewaysClient) UpdateTags ¶
func (client *NatGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters TagsObject, options *NatGatewaysClientUpdateTagsOptions) (NatGatewaysClientUpdateTagsResponse, error)
UpdateTags - Updates nat gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. natGatewayName - The name of the nat gateway. parameters - Parameters supplied to update nat gateway tags. options - NatGatewaysClientUpdateTagsOptions contains the optional parameters for the NatGatewaysClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-natGateway", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type NatGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type NatGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NatGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the NatGatewaysClient.BeginCreateOrUpdate method.
type NatGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type NatGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NatGatewaysClientBeginDeleteOptions contains the optional parameters for the NatGatewaysClient.BeginDelete method.
type NatGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type NatGatewaysClientCreateOrUpdateResponse struct {
NatGateway
}
NatGatewaysClientCreateOrUpdateResponse contains the response from method NatGatewaysClient.CreateOrUpdate.
type NatGatewaysClientDeleteResponse ¶ added in v0.3.0
type NatGatewaysClientDeleteResponse struct { }
NatGatewaysClientDeleteResponse contains the response from method NatGatewaysClient.Delete.
type NatGatewaysClientGetOptions ¶ added in v0.3.0
type NatGatewaysClientGetOptions struct { // Expands referenced resources. Expand *string }
NatGatewaysClientGetOptions contains the optional parameters for the NatGatewaysClient.Get method.
type NatGatewaysClientGetResponse ¶ added in v0.3.0
type NatGatewaysClientGetResponse struct {
NatGateway
}
NatGatewaysClientGetResponse contains the response from method NatGatewaysClient.Get.
type NatGatewaysClientListAllOptions ¶ added in v0.3.0
type NatGatewaysClientListAllOptions struct { }
NatGatewaysClientListAllOptions contains the optional parameters for the NatGatewaysClient.ListAll method.
type NatGatewaysClientListAllResponse ¶ added in v0.3.0
type NatGatewaysClientListAllResponse struct {
NatGatewayListResult
}
NatGatewaysClientListAllResponse contains the response from method NatGatewaysClient.ListAll.
type NatGatewaysClientListOptions ¶ added in v0.3.0
type NatGatewaysClientListOptions struct { }
NatGatewaysClientListOptions contains the optional parameters for the NatGatewaysClient.List method.
type NatGatewaysClientListResponse ¶ added in v0.3.0
type NatGatewaysClientListResponse struct {
NatGatewayListResult
}
NatGatewaysClientListResponse contains the response from method NatGatewaysClient.List.
type NatGatewaysClientUpdateTagsOptions ¶ added in v0.3.0
type NatGatewaysClientUpdateTagsOptions struct { }
NatGatewaysClientUpdateTagsOptions contains the optional parameters for the NatGatewaysClient.UpdateTags method.
type NatGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type NatGatewaysClientUpdateTagsResponse struct {
NatGateway
}
NatGatewaysClientUpdateTagsResponse contains the response from method NatGatewaysClient.UpdateTags.
type NatRule ¶
type NatRule struct { // REQUIRED; Rule Type. RuleType *FirewallPolicyRuleType `json:"ruleType,omitempty"` // Description of the rule. Description *string `json:"description,omitempty"` // List of destination IP addresses or Service Tags. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of destination ports. DestinationPorts []*string `json:"destinationPorts,omitempty"` // Array of FirewallPolicyRuleNetworkProtocols. IPProtocols []*FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` // Name of the rule. Name *string `json:"name,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` // The translated address for this NAT rule. TranslatedAddress *string `json:"translatedAddress,omitempty"` // The translated FQDN for this NAT rule. TranslatedFqdn *string `json:"translatedFqdn,omitempty"` // The translated port for this NAT rule. TranslatedPort *string `json:"translatedPort,omitempty"` }
NatRule - Rule of type nat.
func (*NatRule) GetFirewallPolicyRule ¶ added in v0.3.0
func (n *NatRule) GetFirewallPolicyRule() *FirewallPolicyRule
GetFirewallPolicyRule implements the FirewallPolicyRuleClassification interface for type NatRule.
func (NatRule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type NatRule.
func (*NatRule) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type NatRule.
type NatRulePortMapping ¶ added in v0.2.0
type NatRulePortMapping struct { // Backend port. BackendPort *int32 `json:"backendPort,omitempty"` // Frontend port. FrontendPort *int32 `json:"frontendPort,omitempty"` // Name of inbound NAT rule. InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` }
NatRulePortMapping - Individual port mappings for inbound NAT rule created for backend pool.
type NatRulesClient ¶
type NatRulesClient struct {
// contains filtered or unexported fields
}
NatRulesClient contains the methods for the NatRules group. Don't use this type directly, use NewNatRulesClient() instead.
func NewNatRulesClient ¶
func NewNatRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NatRulesClient, error)
NewNatRulesClient creates a new instance of NatRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*NatRulesClient) BeginCreateOrUpdate ¶
func (client *NatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, natRuleName string, natRuleParameters VPNGatewayNatRule, options *NatRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[NatRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. natRuleName - The name of the nat rule. natRuleParameters - Parameters supplied to create or Update a Nat Rule. options - NatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the NatRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatRulePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "gateway1", "natRule1", armnetwork.VPNGatewayNatRule{ Properties: &armnetwork.VPNGatewayNatRuleProperties{ Type: to.Ptr(armnetwork.VPNNatRuleTypeStatic), ExternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("192.168.21.0/24"), }}, InternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("10.4.0.0/24"), }}, IPConfigurationID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default"), Mode: to.Ptr(armnetwork.VPNNatRuleModeEgressSnat), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*NatRulesClient) BeginDelete ¶
func (client *NatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, natRuleName string, options *NatRulesClientBeginDeleteOptions) (*runtime.Poller[NatRulesClientDeleteResponse], error)
BeginDelete - Deletes a nat rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. natRuleName - The name of the nat rule. options - NatRulesClientBeginDeleteOptions contains the optional parameters for the NatRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatRuleDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "gateway1", "natRule1", 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 (*NatRulesClient) Get ¶
func (client *NatRulesClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, natRuleName string, options *NatRulesClientGetOptions) (NatRulesClientGetResponse, error)
Get - Retrieves the details of a nat ruleGet. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. natRuleName - The name of the nat rule. options - NatRulesClientGetOptions contains the optional parameters for the NatRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NatRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "gateway1", "natRule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NatRulesClient) NewListByVPNGatewayPager ¶ added in v0.5.0
func (client *NatRulesClient) NewListByVPNGatewayPager(resourceGroupName string, gatewayName string, options *NatRulesClientListByVPNGatewayOptions) *runtime.Pager[NatRulesClientListByVPNGatewayResponse]
NewListByVPNGatewayPager - Retrieves all nat rules for a particular virtual wan vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - NatRulesClientListByVPNGatewayOptions contains the optional parameters for the NatRulesClient.ListByVPNGateway method.
type NatRulesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type NatRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the NatRulesClient.BeginCreateOrUpdate method.
type NatRulesClientBeginDeleteOptions ¶ added in v0.3.0
type NatRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NatRulesClientBeginDeleteOptions contains the optional parameters for the NatRulesClient.BeginDelete method.
type NatRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type NatRulesClientCreateOrUpdateResponse struct {
VPNGatewayNatRule
}
NatRulesClientCreateOrUpdateResponse contains the response from method NatRulesClient.CreateOrUpdate.
type NatRulesClientDeleteResponse ¶ added in v0.3.0
type NatRulesClientDeleteResponse struct { }
NatRulesClientDeleteResponse contains the response from method NatRulesClient.Delete.
type NatRulesClientGetOptions ¶ added in v0.3.0
type NatRulesClientGetOptions struct { }
NatRulesClientGetOptions contains the optional parameters for the NatRulesClient.Get method.
type NatRulesClientGetResponse ¶ added in v0.3.0
type NatRulesClientGetResponse struct {
VPNGatewayNatRule
}
NatRulesClientGetResponse contains the response from method NatRulesClient.Get.
type NatRulesClientListByVPNGatewayOptions ¶ added in v0.3.0
type NatRulesClientListByVPNGatewayOptions struct { }
NatRulesClientListByVPNGatewayOptions contains the optional parameters for the NatRulesClient.ListByVPNGateway method.
type NatRulesClientListByVPNGatewayResponse ¶ added in v0.3.0
type NatRulesClientListByVPNGatewayResponse struct {
ListVPNGatewayNatRulesResult
}
NatRulesClientListByVPNGatewayResponse contains the response from method NatRulesClient.ListByVPNGateway.
type NetworkInterfaceAuxiliaryMode ¶ added in v1.0.0
type NetworkInterfaceAuxiliaryMode string
NetworkInterfaceAuxiliaryMode - Auxiliary mode of Network Interface resource.
const ( NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" )
func PossibleNetworkInterfaceAuxiliaryModeValues ¶ added in v1.0.0
func PossibleNetworkInterfaceAuxiliaryModeValues() []NetworkInterfaceAuxiliaryMode
PossibleNetworkInterfaceAuxiliaryModeValues returns the possible values for the NetworkInterfaceAuxiliaryMode const type.
type NetworkInterfaceMigrationPhase ¶
type NetworkInterfaceMigrationPhase string
NetworkInterfaceMigrationPhase - Migration phase of Network Interface resource.
const ( NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" )
func PossibleNetworkInterfaceMigrationPhaseValues ¶
func PossibleNetworkInterfaceMigrationPhaseValues() []NetworkInterfaceMigrationPhase
PossibleNetworkInterfaceMigrationPhaseValues returns the possible values for the NetworkInterfaceMigrationPhase const type.
type NetworkInterfaceNicType ¶
type NetworkInterfaceNicType string
NetworkInterfaceNicType - Type of Network Interface resource.
const ( NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" )
func PossibleNetworkInterfaceNicTypeValues ¶
func PossibleNetworkInterfaceNicTypeValues() []NetworkInterfaceNicType
PossibleNetworkInterfaceNicTypeValues returns the possible values for the NetworkInterfaceNicType const type.
type NetworkOperationStatus ¶
type NetworkOperationStatus string
NetworkOperationStatus - Status of the Azure async operation.
const ( NetworkOperationStatusFailed NetworkOperationStatus = "Failed" NetworkOperationStatusInProgress NetworkOperationStatus = "InProgress" NetworkOperationStatusSucceeded NetworkOperationStatus = "Succeeded" )
func PossibleNetworkOperationStatusValues ¶
func PossibleNetworkOperationStatusValues() []NetworkOperationStatus
PossibleNetworkOperationStatusValues returns the possible values for the NetworkOperationStatus const type.
type NextHopParameters ¶
type NextHopParameters struct { // REQUIRED; The destination IP address. DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` // REQUIRED; The source IP address. SourceIPAddress *string `json:"sourceIPAddress,omitempty"` // REQUIRED; The resource identifier of the target resource against which the action is to be performed. TargetResourceID *string `json:"targetResourceId,omitempty"` // The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. // Otherwise optional). TargetNicResourceID *string `json:"targetNicResourceId,omitempty"` }
NextHopParameters - Parameters that define the source and destination endpoint.
type NextHopResult ¶
type NextHopResult struct { // Next hop IP Address. NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` // Next hop type. NextHopType *NextHopType `json:"nextHopType,omitempty"` // The resource identifier for the route table associated with the route being returned. If the route being returned does // not correspond to any user created routes then this field will be the string // 'System Route'. RouteTableID *string `json:"routeTableId,omitempty"` }
NextHopResult - The information about next hop from the specified VM.
type NextHopType ¶
type NextHopType string
NextHopType - Next hop type.
const ( NextHopTypeHyperNetGateway NextHopType = "HyperNetGateway" NextHopTypeInternet NextHopType = "Internet" NextHopTypeNone NextHopType = "None" NextHopTypeVirtualAppliance NextHopType = "VirtualAppliance" NextHopTypeVirtualNetworkGateway NextHopType = "VirtualNetworkGateway" NextHopTypeVnetLocal NextHopType = "VnetLocal" )
func PossibleNextHopTypeValues ¶
func PossibleNextHopTypeValues() []NextHopType
PossibleNextHopTypeValues returns the possible values for the NextHopType const type.
type O365BreakOutCategoryPolicies ¶
type O365BreakOutCategoryPolicies struct { // Flag to control allow category. Allow *bool `json:"allow,omitempty"` // Flag to control default category. Default *bool `json:"default,omitempty"` // Flag to control optimize category. Optimize *bool `json:"optimize,omitempty"` }
O365BreakOutCategoryPolicies - Office365 breakout categories.
type O365PolicyProperties ¶
type O365PolicyProperties struct { // Office365 breakout categories. BreakOutCategories *O365BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` }
O365PolicyProperties - The Office365 breakout policy.
type Office365PolicyProperties ¶
type Office365PolicyProperties struct { // Office 365 breakout categories. BreakOutCategories *BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` }
Office365PolicyProperties - Network Virtual Appliance Sku Properties.
type OfficeTrafficCategory ¶
type OfficeTrafficCategory string
OfficeTrafficCategory - The office traffic category.
const ( OfficeTrafficCategoryAll OfficeTrafficCategory = "All" OfficeTrafficCategoryNone OfficeTrafficCategory = "None" OfficeTrafficCategoryOptimize OfficeTrafficCategory = "Optimize" OfficeTrafficCategoryOptimizeAndAllow OfficeTrafficCategory = "OptimizeAndAllow" )
func PossibleOfficeTrafficCategoryValues ¶
func PossibleOfficeTrafficCategoryValues() []OfficeTrafficCategory
PossibleOfficeTrafficCategoryValues returns the possible values for the OfficeTrafficCategory const type.
type Operation ¶
type Operation struct { // Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` // Origin of the operation. Origin *string `json:"origin,omitempty"` // Operation properties format. Properties *OperationPropertiesFormat `json:"properties,omitempty"` }
Operation - Network REST API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Type of the operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft Network. Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` }
OperationDisplay - Display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Network operations supported by the Network resource provider. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Network operations. It contains a list of operations and a URL link to get the next set of results.
type OperationPropertiesFormat ¶
type OperationPropertiesFormat struct { // Specification of the service. ServiceSpecification *OperationPropertiesFormatServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationPropertiesFormat - Description of operation properties format.
type OperationPropertiesFormatServiceSpecification ¶
type OperationPropertiesFormatServiceSpecification struct { // Operation log specification. LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Operation service specification. MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
OperationPropertiesFormatServiceSpecification - Specification of the service.
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 ¶ added in v0.5.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Network Rest API operations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/OperationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type OrderBy ¶ added in v0.2.0
type OrderBy struct { // Describes the actual column name to sort by Field *string `json:"field,omitempty"` // Describes if results should be in ascending/descending order Order *FirewallPolicyIDPSQuerySortOrder `json:"order,omitempty"` }
OrderBy - Describes a column to sort
type Origin ¶
type Origin string
Origin - The origin of the issue.
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type OutboundRule ¶
type OutboundRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can be used // to access the resource. Name *string `json:"name,omitempty"` // Properties of load balancer outbound rule. Properties *OutboundRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
OutboundRule - Outbound rule of the load balancer.
type OutboundRulePropertiesFormat ¶
type OutboundRulePropertiesFormat struct { // REQUIRED; A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs. BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` // REQUIRED; The Frontend IP addresses of the load balancer. FrontendIPConfigurations []*SubResource `json:"frontendIPConfigurations,omitempty"` // REQUIRED; The protocol for the outbound rule in load balancer. Protocol *LoadBalancerOutboundRuleProtocol `json:"protocol,omitempty"` // The number of outbound ports to be used for NAT. AllocatedOutboundPorts *int32 `json:"allocatedOutboundPorts,omitempty"` // Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used // when the protocol is set to TCP. EnableTCPReset *bool `json:"enableTcpReset,omitempty"` // The timeout for the TCP idle connection. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // READ-ONLY; The provisioning state of the outbound rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
OutboundRulePropertiesFormat - Outbound rule of the load balancer.
func (OutboundRulePropertiesFormat) MarshalJSON ¶
func (o OutboundRulePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OutboundRulePropertiesFormat.
type OutputType ¶
type OutputType string
OutputType - Connection monitor output destination type. Currently, only "Workspace" is supported.
const (
OutputTypeWorkspace OutputType = "Workspace"
)
func PossibleOutputTypeValues ¶
func PossibleOutputTypeValues() []OutputType
PossibleOutputTypeValues returns the possible values for the OutputType const type.
type OwaspCrsExclusionEntry ¶
type OwaspCrsExclusionEntry struct { // REQUIRED; The variable to be excluded. MatchVariable *OwaspCrsExclusionEntryMatchVariable `json:"matchVariable,omitempty"` // REQUIRED; When matchVariable is a collection, operator used to specify which elements in the collection this exclusion // applies to. Selector *string `json:"selector,omitempty"` // REQUIRED; When matchVariable is a collection, operate on the selector to specify which elements in the collection this // exclusion applies to. SelectorMatchOperator *OwaspCrsExclusionEntrySelectorMatchOperator `json:"selectorMatchOperator,omitempty"` // The managed rule sets that are associated with the exclusion. ExclusionManagedRuleSets []*ExclusionManagedRuleSet `json:"exclusionManagedRuleSets,omitempty"` }
OwaspCrsExclusionEntry - Allow to exclude some variable satisfy the condition for the WAF check.
func (OwaspCrsExclusionEntry) MarshalJSON ¶ added in v0.2.0
func (o OwaspCrsExclusionEntry) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OwaspCrsExclusionEntry.
type OwaspCrsExclusionEntryMatchVariable ¶
type OwaspCrsExclusionEntryMatchVariable string
OwaspCrsExclusionEntryMatchVariable - The variable to be excluded.
const ( OwaspCrsExclusionEntryMatchVariableRequestArgKeys OwaspCrsExclusionEntryMatchVariable = "RequestArgKeys" OwaspCrsExclusionEntryMatchVariableRequestArgNames OwaspCrsExclusionEntryMatchVariable = "RequestArgNames" OwaspCrsExclusionEntryMatchVariableRequestArgValues OwaspCrsExclusionEntryMatchVariable = "RequestArgValues" OwaspCrsExclusionEntryMatchVariableRequestCookieKeys OwaspCrsExclusionEntryMatchVariable = "RequestCookieKeys" OwaspCrsExclusionEntryMatchVariableRequestCookieNames OwaspCrsExclusionEntryMatchVariable = "RequestCookieNames" OwaspCrsExclusionEntryMatchVariableRequestCookieValues OwaspCrsExclusionEntryMatchVariable = "RequestCookieValues" OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys OwaspCrsExclusionEntryMatchVariable = "RequestHeaderKeys" OwaspCrsExclusionEntryMatchVariableRequestHeaderNames OwaspCrsExclusionEntryMatchVariable = "RequestHeaderNames" OwaspCrsExclusionEntryMatchVariableRequestHeaderValues OwaspCrsExclusionEntryMatchVariable = "RequestHeaderValues" )
func PossibleOwaspCrsExclusionEntryMatchVariableValues ¶
func PossibleOwaspCrsExclusionEntryMatchVariableValues() []OwaspCrsExclusionEntryMatchVariable
PossibleOwaspCrsExclusionEntryMatchVariableValues returns the possible values for the OwaspCrsExclusionEntryMatchVariable const type.
type OwaspCrsExclusionEntrySelectorMatchOperator ¶
type OwaspCrsExclusionEntrySelectorMatchOperator string
OwaspCrsExclusionEntrySelectorMatchOperator - When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.
const ( OwaspCrsExclusionEntrySelectorMatchOperatorContains OwaspCrsExclusionEntrySelectorMatchOperator = "Contains" OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith OwaspCrsExclusionEntrySelectorMatchOperator = "EndsWith" OwaspCrsExclusionEntrySelectorMatchOperatorEquals OwaspCrsExclusionEntrySelectorMatchOperator = "Equals" OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny OwaspCrsExclusionEntrySelectorMatchOperator = "EqualsAny" OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith OwaspCrsExclusionEntrySelectorMatchOperator = "StartsWith" )
func PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues ¶
func PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues() []OwaspCrsExclusionEntrySelectorMatchOperator
PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues returns the possible values for the OwaspCrsExclusionEntrySelectorMatchOperator const type.
type P2SConnectionConfiguration ¶
type P2SConnectionConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the P2S connection configuration. Properties *P2SConnectionConfigurationProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
P2SConnectionConfiguration Resource.
type P2SConnectionConfigurationProperties ¶
type P2SConnectionConfigurationProperties struct { // Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not. EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` // The Routing Configuration indicating the associated and propagated route tables on this connection. RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` // The reference to the address space resource which represents Address space for P2S VpnClient. VPNClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` // READ-ONLY; List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to. ConfigurationPolicyGroupAssociations []*SubResource `json:"configurationPolicyGroupAssociations,omitempty" azure:"ro"` // READ-ONLY; List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to. PreviousConfigurationPolicyGroupAssociations []*VPNServerConfigurationPolicyGroup `json:"previousConfigurationPolicyGroupAssociations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the P2SConnectionConfiguration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
P2SConnectionConfigurationProperties - Parameters for P2SConnectionConfiguration.
func (P2SConnectionConfigurationProperties) MarshalJSON ¶ added in v1.0.0
func (p P2SConnectionConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type P2SConnectionConfigurationProperties.
type P2SVPNConnectionHealth ¶
type P2SVPNConnectionHealth struct { // Returned sas url of the blob to which the p2s vpn connection detailed health will be written. SasURL *string `json:"sasUrl,omitempty"` }
P2SVPNConnectionHealth - P2S Vpn connection detailed health written to sas url.
type P2SVPNConnectionHealthRequest ¶
type P2SVPNConnectionHealthRequest struct { // The sas-url to download the P2S Vpn connection health detail. OutputBlobSasURL *string `json:"outputBlobSasUrl,omitempty"` // The list of p2s vpn user names whose p2s vpn connection detailed health to retrieve for. VPNUserNamesFilter []*string `json:"vpnUserNamesFilter,omitempty"` }
P2SVPNConnectionHealthRequest - List of P2S Vpn connection health request.
func (P2SVPNConnectionHealthRequest) MarshalJSON ¶
func (p P2SVPNConnectionHealthRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type P2SVPNConnectionHealthRequest.
type P2SVPNConnectionRequest ¶
type P2SVPNConnectionRequest struct { // List of p2s vpn connection Ids. VPNConnectionIDs []*string `json:"vpnConnectionIds,omitempty"` }
P2SVPNConnectionRequest - List of p2s vpn connections to be disconnected.
func (P2SVPNConnectionRequest) MarshalJSON ¶
func (p P2SVPNConnectionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type P2SVPNConnectionRequest.
type P2SVPNGateway ¶
type P2SVPNGateway struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the P2SVpnGateway. Properties *P2SVPNGatewayProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
P2SVPNGateway - P2SVpnGateway Resource.
func (P2SVPNGateway) MarshalJSON ¶
func (p P2SVPNGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type P2SVPNGateway.
type P2SVPNGatewayProperties ¶
type P2SVPNGatewayProperties struct { // List of all customer specified DNS servers IP addresses. CustomDNSServers []*string `json:"customDnsServers,omitempty"` // Enable Routing Preference property for the Public IP Interface of the P2SVpnGateway. IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` // List of all p2s connection configurations of the gateway. P2SConnectionConfigurations []*P2SConnectionConfiguration `json:"p2SConnectionConfigurations,omitempty"` // The scale unit for this p2s vpn gateway. VPNGatewayScaleUnit *int32 `json:"vpnGatewayScaleUnit,omitempty"` // The VpnServerConfiguration to which the p2sVpnGateway is attached to. VPNServerConfiguration *SubResource `json:"vpnServerConfiguration,omitempty"` // The VirtualHub to which the gateway belongs. VirtualHub *SubResource `json:"virtualHub,omitempty"` // READ-ONLY; The provisioning state of the P2S VPN gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; All P2S VPN clients' connection health status. VPNClientConnectionHealth *VPNClientConnectionHealth `json:"vpnClientConnectionHealth,omitempty" azure:"ro"` }
P2SVPNGatewayProperties - Parameters for P2SVpnGateway.
func (P2SVPNGatewayProperties) MarshalJSON ¶
func (p P2SVPNGatewayProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type P2SVPNGatewayProperties.
type P2SVPNGatewaysClient ¶
type P2SVPNGatewaysClient struct {
// contains filtered or unexported fields
}
P2SVPNGatewaysClient contains the methods for the P2SVPNGateways group. Don't use this type directly, use NewP2SVPNGatewaysClient() instead.
func NewP2SVPNGatewaysClient ¶
func NewP2SVPNGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*P2SVPNGatewaysClient, error)
NewP2SVPNGatewaysClient creates a new instance of P2SVPNGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*P2SVPNGatewaysClient) BeginCreateOrUpdate ¶
func (client *P2SVPNGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, p2SVPNGatewayParameters P2SVPNGateway, options *P2SVPNGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[P2SVPNGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. gatewayName - The name of the gateway. p2SVPNGatewayParameters - Parameters supplied to create or Update a virtual wan p2s vpn gateway. options - P2SVPNGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "p2sVpnGateway1", armnetwork.P2SVPNGateway{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.P2SVPNGatewayProperties{ CustomDNSServers: []*string{ to.Ptr("1.1.1.1"), to.Ptr("2.2.2.2")}, IsRoutingPreferenceInternet: to.Ptr(false), P2SConnectionConfigurations: []*armnetwork.P2SConnectionConfiguration{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/p2sVpnGateways/p2sVpnGateway1/p2sConnectionConfigurations/P2SConnectionConfig1"), Name: to.Ptr("P2SConnectionConfig1"), Properties: &armnetwork.P2SConnectionConfigurationProperties{ RoutingConfiguration: &armnetwork.RoutingConfiguration{ AssociatedRouteTable: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), }, PropagatedRouteTables: &armnetwork.PropagatedRouteTable{ IDs: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), }, { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable2"), }, { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable3"), }}, Labels: []*string{ to.Ptr("label1"), to.Ptr("label2")}, }, VnetRoutes: &armnetwork.VnetRoute{ StaticRoutes: []*armnetwork.StaticRoute{}, }, }, VPNClientAddressPool: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("101.3.0.0/16")}, }, }, }}, VirtualHub: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1"), }, VPNGatewayScaleUnit: to.Ptr[int32](1), VPNServerConfiguration: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*P2SVPNGatewaysClient) BeginDelete ¶
func (client *P2SVPNGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, options *P2SVPNGatewaysClientBeginDeleteOptions) (*runtime.Poller[P2SVPNGatewaysClientDeleteResponse], error)
BeginDelete - Deletes a virtual wan p2s vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. gatewayName - The name of the gateway. options - P2SVPNGatewaysClientBeginDeleteOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "p2sVpnGateway1", 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 (*P2SVPNGatewaysClient) BeginDisconnectP2SVPNConnections ¶
func (client *P2SVPNGatewaysClient) BeginDisconnectP2SVPNConnections(ctx context.Context, resourceGroupName string, p2SVPNGatewayName string, request P2SVPNConnectionRequest, options *P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions) (*runtime.Poller[P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse], error)
BeginDisconnectP2SVPNConnections - Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. p2SVPNGatewayName - The name of the P2S Vpn Gateway. request - The parameters are supplied to disconnect p2s vpn connections. options - P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginDisconnectP2SVPNConnections method.
func (*P2SVPNGatewaysClient) BeginGenerateVPNProfile ¶
func (client *P2SVPNGatewaysClient) BeginGenerateVPNProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters P2SVPNProfileParameters, options *P2SVPNGatewaysClientBeginGenerateVPNProfileOptions) (*runtime.Poller[P2SVPNGatewaysClientGenerateVPNProfileResponse], error)
BeginGenerateVPNProfile - Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the P2SVpnGateway. parameters - Parameters supplied to the generate P2SVpnGateway VPN client package operation. options - P2SVPNGatewaysClientBeginGenerateVPNProfileOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGenerateVPNProfile method.
func (*P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealth ¶
func (client *P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string, options *P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions) (*runtime.Poller[P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse], error)
BeginGetP2SVPNConnectionHealth - Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the P2SVpnGateway. options - P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGetP2SVPNConnectionHealth method.
func (*P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealthDetailed ¶
func (client *P2SVPNGatewaysClient) BeginGetP2SVPNConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, request P2SVPNConnectionHealthRequest, options *P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions) (*runtime.Poller[P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse], error)
BeginGetP2SVPNConnectionHealthDetailed - Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the P2SVpnGateway. request - Request parameters supplied to get p2s vpn connections detailed health. options - P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGetP2SVPNConnectionHealthDetailed method.
func (*P2SVPNGatewaysClient) BeginReset ¶
func (client *P2SVPNGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, gatewayName string, options *P2SVPNGatewaysClientBeginResetOptions) (*runtime.Poller[P2SVPNGatewaysClientResetResponse], error)
BeginReset - Resets the primary of the p2s vpn gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. gatewayName - The name of the gateway. options - P2SVPNGatewaysClientBeginResetOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginReset method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayReset.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginReset(ctx, "rg1", "p2sVpnGateway1", 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) } // TODO: use response item _ = res }
Output:
func (*P2SVPNGatewaysClient) BeginUpdateTags ¶
func (client *P2SVPNGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVPNGatewayParameters TagsObject, options *P2SVPNGatewaysClientBeginUpdateTagsOptions) (*runtime.Poller[P2SVPNGatewaysClientUpdateTagsResponse], error)
BeginUpdateTags - Updates virtual wan p2s vpn gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. gatewayName - The name of the gateway. p2SVPNGatewayParameters - Parameters supplied to update a virtual wan p2s vpn gateway tags. options - P2SVPNGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "rg1", "p2sVpnGateway1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*P2SVPNGatewaysClient) Get ¶
func (client *P2SVPNGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, options *P2SVPNGatewaysClientGetOptions) (P2SVPNGatewaysClientGetResponse, error)
Get - Retrieves the details of a virtual wan p2s vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. gatewayName - The name of the gateway. options - P2SVPNGatewaysClientGetOptions contains the optional parameters for the P2SVPNGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "p2sVpnGateway1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*P2SVPNGatewaysClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *P2SVPNGatewaysClient) NewListByResourceGroupPager(resourceGroupName string, options *P2SVPNGatewaysClientListByResourceGroupOptions) *runtime.Pager[P2SVPNGatewaysClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the P2SVpnGateways in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the P2SVpnGateway. options - P2SVPNGatewaysClientListByResourceGroupOptions contains the optional parameters for the P2SVPNGatewaysClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*P2SVPNGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *P2SVPNGatewaysClient) NewListPager(options *P2SVPNGatewaysClientListOptions) *runtime.Pager[P2SVPNGatewaysClientListResponse]
NewListPager - Lists all the P2SVpnGateways in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - P2SVPNGatewaysClientListOptions contains the optional parameters for the P2SVPNGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/P2SVpnGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewP2SVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type P2SVPNGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginCreateOrUpdate method.
type P2SVPNGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginDeleteOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginDelete method.
type P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginDisconnectP2SVPNConnectionsOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginDisconnectP2SVPNConnections method.
type P2SVPNGatewaysClientBeginGenerateVPNProfileOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginGenerateVPNProfileOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginGenerateVPNProfileOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGenerateVPNProfile method.
type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthDetailedOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGetP2SVPNConnectionHealthDetailed method.
type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginGetP2SVPNConnectionHealthOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginGetP2SVPNConnectionHealth method.
type P2SVPNGatewaysClientBeginResetOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginResetOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginResetOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginReset method.
type P2SVPNGatewaysClientBeginUpdateTagsOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
P2SVPNGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the P2SVPNGatewaysClient.BeginUpdateTags method.
type P2SVPNGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientCreateOrUpdateResponse struct {
P2SVPNGateway
}
P2SVPNGatewaysClientCreateOrUpdateResponse contains the response from method P2SVPNGatewaysClient.CreateOrUpdate.
type P2SVPNGatewaysClientDeleteResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientDeleteResponse struct { }
P2SVPNGatewaysClientDeleteResponse contains the response from method P2SVPNGatewaysClient.Delete.
type P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse struct { }
P2SVPNGatewaysClientDisconnectP2SVPNConnectionsResponse contains the response from method P2SVPNGatewaysClient.DisconnectP2SVPNConnections.
type P2SVPNGatewaysClientGenerateVPNProfileResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientGenerateVPNProfileResponse struct {
VPNProfileResponse
}
P2SVPNGatewaysClientGenerateVPNProfileResponse contains the response from method P2SVPNGatewaysClient.GenerateVPNProfile.
type P2SVPNGatewaysClientGetOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientGetOptions struct { }
P2SVPNGatewaysClientGetOptions contains the optional parameters for the P2SVPNGatewaysClient.Get method.
type P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse struct {
P2SVPNConnectionHealth
}
P2SVPNGatewaysClientGetP2SVPNConnectionHealthDetailedResponse contains the response from method P2SVPNGatewaysClient.GetP2SVPNConnectionHealthDetailed.
type P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse struct {
P2SVPNGateway
}
P2SVPNGatewaysClientGetP2SVPNConnectionHealthResponse contains the response from method P2SVPNGatewaysClient.GetP2SVPNConnectionHealth.
type P2SVPNGatewaysClientGetResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientGetResponse struct {
P2SVPNGateway
}
P2SVPNGatewaysClientGetResponse contains the response from method P2SVPNGatewaysClient.Get.
type P2SVPNGatewaysClientListByResourceGroupOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientListByResourceGroupOptions struct { }
P2SVPNGatewaysClientListByResourceGroupOptions contains the optional parameters for the P2SVPNGatewaysClient.ListByResourceGroup method.
type P2SVPNGatewaysClientListByResourceGroupResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientListByResourceGroupResponse struct {
ListP2SVPNGatewaysResult
}
P2SVPNGatewaysClientListByResourceGroupResponse contains the response from method P2SVPNGatewaysClient.ListByResourceGroup.
type P2SVPNGatewaysClientListOptions ¶ added in v0.3.0
type P2SVPNGatewaysClientListOptions struct { }
P2SVPNGatewaysClientListOptions contains the optional parameters for the P2SVPNGatewaysClient.List method.
type P2SVPNGatewaysClientListResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientListResponse struct {
ListP2SVPNGatewaysResult
}
P2SVPNGatewaysClientListResponse contains the response from method P2SVPNGatewaysClient.List.
type P2SVPNGatewaysClientResetResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientResetResponse struct {
P2SVPNGateway
}
P2SVPNGatewaysClientResetResponse contains the response from method P2SVPNGatewaysClient.Reset.
type P2SVPNGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type P2SVPNGatewaysClientUpdateTagsResponse struct {
P2SVPNGateway
}
P2SVPNGatewaysClientUpdateTagsResponse contains the response from method P2SVPNGatewaysClient.UpdateTags.
type P2SVPNProfileParameters ¶
type P2SVPNProfileParameters struct { // VPN client authentication method. AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` }
P2SVPNProfileParameters - Vpn Client Parameters for package generation.
type PacketCapture ¶
type PacketCapture struct { // REQUIRED; Properties of the packet capture. Properties *PacketCaptureParameters `json:"properties,omitempty"` }
PacketCapture - Parameters that define the create packet capture operation.
type PacketCaptureFilter ¶
type PacketCaptureFilter struct { // Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. // "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently // supported. Mixing ranges with multiple entries not currently supported. Default = null. LocalIPAddress *string `json:"localIPAddress,omitempty"` // Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple // ranges not currently supported. Mixing ranges with multiple entries not // currently supported. Default = null. LocalPort *string `json:"localPort,omitempty"` // Protocol to be filtered on. Protocol *PcProtocol `json:"protocol,omitempty"` // Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. // "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently // supported. Mixing ranges with multiple entries not currently supported. Default = null. RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` // Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. // Multiple ranges not currently supported. Mixing ranges with multiple entries not // currently supported. Default = null. RemotePort *string `json:"remotePort,omitempty"` }
PacketCaptureFilter - Filter that is applied to packet capture request. Multiple filters can be applied.
type PacketCaptureListResult ¶
type PacketCaptureListResult struct { // Information about packet capture sessions. Value []*PacketCaptureResult `json:"value,omitempty"` }
PacketCaptureListResult - List of packet capture sessions.
type PacketCaptureParameters ¶
type PacketCaptureParameters struct { // REQUIRED; The storage location for a packet capture session. StorageLocation *PacketCaptureStorageLocation `json:"storageLocation,omitempty"` // REQUIRED; The ID of the targeted resource, only VM is currently supported. Target *string `json:"target,omitempty"` // Number of bytes captured per packet, the remaining bytes are truncated. BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` // A list of packet capture filters. Filters []*PacketCaptureFilter `json:"filters,omitempty"` // Maximum duration of the capture session in seconds. TimeLimitInSeconds *int32 `json:"timeLimitInSeconds,omitempty"` // Maximum size of the capture output. TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` }
PacketCaptureParameters - Parameters that define the create packet capture operation.
func (PacketCaptureParameters) MarshalJSON ¶
func (p PacketCaptureParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PacketCaptureParameters.
type PacketCaptureQueryStatusResult ¶
type PacketCaptureQueryStatusResult struct { // The start time of the packet capture session. CaptureStartTime *time.Time `json:"captureStartTime,omitempty"` // The ID of the packet capture resource. ID *string `json:"id,omitempty"` // The name of the packet capture resource. Name *string `json:"name,omitempty"` // List of errors of packet capture session. PacketCaptureError []*PcError `json:"packetCaptureError,omitempty"` // The status of the packet capture session. PacketCaptureStatus *PcStatus `json:"packetCaptureStatus,omitempty"` // The reason the current packet capture session was stopped. StopReason *string `json:"stopReason,omitempty"` }
PacketCaptureQueryStatusResult - Status of packet capture session.
func (*PacketCaptureQueryStatusResult) UnmarshalJSON ¶
func (p *PacketCaptureQueryStatusResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PacketCaptureQueryStatusResult.
type PacketCaptureResult ¶
type PacketCaptureResult struct { // Properties of the packet capture result. Properties *PacketCaptureResultProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; ID of the packet capture operation. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Name of the packet capture session. Name *string `json:"name,omitempty" azure:"ro"` }
PacketCaptureResult - Information about packet capture session.
type PacketCaptureResultProperties ¶
type PacketCaptureResultProperties struct { // REQUIRED; The storage location for a packet capture session. StorageLocation *PacketCaptureStorageLocation `json:"storageLocation,omitempty"` // REQUIRED; The ID of the targeted resource, only VM is currently supported. Target *string `json:"target,omitempty"` // Number of bytes captured per packet, the remaining bytes are truncated. BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` // A list of packet capture filters. Filters []*PacketCaptureFilter `json:"filters,omitempty"` // Maximum duration of the capture session in seconds. TimeLimitInSeconds *int32 `json:"timeLimitInSeconds,omitempty"` // Maximum size of the capture output. TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` // READ-ONLY; The provisioning state of the packet capture session. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PacketCaptureResultProperties - The properties of a packet capture session.
func (PacketCaptureResultProperties) MarshalJSON ¶
func (p PacketCaptureResultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PacketCaptureResultProperties.
type PacketCaptureStorageLocation ¶
type PacketCaptureStorageLocation struct { // A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it // must start with /var/captures. Required if no storage ID is provided, otherwise // optional. FilePath *string `json:"filePath,omitempty"` // The ID of the storage account to save the packet capture session. Required if no local file path is provided. StorageID *string `json:"storageId,omitempty"` // The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet // capture. StoragePath *string `json:"storagePath,omitempty"` }
PacketCaptureStorageLocation - The storage location for a packet capture session.
type PacketCapturesClient ¶
type PacketCapturesClient struct {
// contains filtered or unexported fields
}
PacketCapturesClient contains the methods for the PacketCaptures group. Don't use this type directly, use NewPacketCapturesClient() instead.
func NewPacketCapturesClient ¶
func NewPacketCapturesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PacketCapturesClient, error)
NewPacketCapturesClient creates a new instance of PacketCapturesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PacketCapturesClient) BeginCreate ¶
func (client *PacketCapturesClient) BeginCreate(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, parameters PacketCapture, options *PacketCapturesClientBeginCreateOptions) (*runtime.Poller[PacketCapturesClientCreateResponse], error)
BeginCreate - Create and start a packet capture on the specified VM. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. packetCaptureName - The name of the packet capture session. parameters - Parameters that define the create packet capture operation. options - PacketCapturesClientBeginCreateOptions contains the optional parameters for the PacketCapturesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCaptureCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "rg1", "nw1", "pc1", armnetwork.PacketCapture{ Properties: &armnetwork.PacketCaptureParameters{ BytesToCapturePerPacket: to.Ptr[int64](10000), Filters: []*armnetwork.PacketCaptureFilter{ { LocalIPAddress: to.Ptr("10.0.0.4"), LocalPort: to.Ptr("80"), Protocol: to.Ptr(armnetwork.PcProtocolTCP), }}, StorageLocation: &armnetwork.PacketCaptureStorageLocation{ FilePath: to.Ptr("D:\\capture\\pc1.cap"), StorageID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore"), StoragePath: to.Ptr("https://mytestaccountname.blob.core.windows.net/capture/pc1.cap"), }, Target: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), TimeLimitInSeconds: to.Ptr[int32](100), TotalBytesPerSession: to.Ptr[int64](100000), }, }, 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 (*PacketCapturesClient) BeginDelete ¶
func (client *PacketCapturesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, options *PacketCapturesClientBeginDeleteOptions) (*runtime.Poller[PacketCapturesClientDeleteResponse], error)
BeginDelete - Deletes the specified packet capture session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. packetCaptureName - The name of the packet capture session. options - PacketCapturesClientBeginDeleteOptions contains the optional parameters for the PacketCapturesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCaptureDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nw1", "pc1", 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 (*PacketCapturesClient) BeginGetStatus ¶
func (client *PacketCapturesClient) BeginGetStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, options *PacketCapturesClientBeginGetStatusOptions) (*runtime.Poller[PacketCapturesClientGetStatusResponse], error)
BeginGetStatus - Query the status of a running packet capture session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the Network Watcher resource. packetCaptureName - The name given to the packet capture session. options - PacketCapturesClientBeginGetStatusOptions contains the optional parameters for the PacketCapturesClient.BeginGetStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCaptureQueryStatus.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetStatus(ctx, "rg1", "nw1", "pc1", 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) } // TODO: use response item _ = res }
Output:
func (*PacketCapturesClient) BeginStop ¶
func (client *PacketCapturesClient) BeginStop(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, options *PacketCapturesClientBeginStopOptions) (*runtime.Poller[PacketCapturesClientStopResponse], error)
BeginStop - Stops a specified packet capture session. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. packetCaptureName - The name of the packet capture session. options - PacketCapturesClientBeginStopOptions contains the optional parameters for the PacketCapturesClient.BeginStop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCaptureStop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStop(ctx, "rg1", "nw1", "pc1", 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 (*PacketCapturesClient) Get ¶
func (client *PacketCapturesClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, packetCaptureName string, options *PacketCapturesClientGetOptions) (PacketCapturesClientGetResponse, error)
Get - Gets a packet capture session by name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. packetCaptureName - The name of the packet capture session. options - PacketCapturesClientGetOptions contains the optional parameters for the PacketCapturesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCaptureGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nw1", "pc1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PacketCapturesClient) NewListPager ¶ added in v0.5.0
func (client *PacketCapturesClient) NewListPager(resourceGroupName string, networkWatcherName string, options *PacketCapturesClientListOptions) *runtime.Pager[PacketCapturesClientListResponse]
NewListPager - Lists all packet capture sessions within the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the Network Watcher resource. options - PacketCapturesClientListOptions contains the optional parameters for the PacketCapturesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherPacketCapturesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPacketCapturesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "nw1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PacketCapturesClientBeginCreateOptions ¶ added in v0.3.0
type PacketCapturesClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PacketCapturesClientBeginCreateOptions contains the optional parameters for the PacketCapturesClient.BeginCreate method.
type PacketCapturesClientBeginDeleteOptions ¶ added in v0.3.0
type PacketCapturesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PacketCapturesClientBeginDeleteOptions contains the optional parameters for the PacketCapturesClient.BeginDelete method.
type PacketCapturesClientBeginGetStatusOptions ¶ added in v0.3.0
type PacketCapturesClientBeginGetStatusOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PacketCapturesClientBeginGetStatusOptions contains the optional parameters for the PacketCapturesClient.BeginGetStatus method.
type PacketCapturesClientBeginStopOptions ¶ added in v0.3.0
type PacketCapturesClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PacketCapturesClientBeginStopOptions contains the optional parameters for the PacketCapturesClient.BeginStop method.
type PacketCapturesClientCreateResponse ¶ added in v0.3.0
type PacketCapturesClientCreateResponse struct {
PacketCaptureResult
}
PacketCapturesClientCreateResponse contains the response from method PacketCapturesClient.Create.
type PacketCapturesClientDeleteResponse ¶ added in v0.3.0
type PacketCapturesClientDeleteResponse struct { }
PacketCapturesClientDeleteResponse contains the response from method PacketCapturesClient.Delete.
type PacketCapturesClientGetOptions ¶ added in v0.3.0
type PacketCapturesClientGetOptions struct { }
PacketCapturesClientGetOptions contains the optional parameters for the PacketCapturesClient.Get method.
type PacketCapturesClientGetResponse ¶ added in v0.3.0
type PacketCapturesClientGetResponse struct {
PacketCaptureResult
}
PacketCapturesClientGetResponse contains the response from method PacketCapturesClient.Get.
type PacketCapturesClientGetStatusResponse ¶ added in v0.3.0
type PacketCapturesClientGetStatusResponse struct {
PacketCaptureQueryStatusResult
}
PacketCapturesClientGetStatusResponse contains the response from method PacketCapturesClient.GetStatus.
type PacketCapturesClientListOptions ¶ added in v0.3.0
type PacketCapturesClientListOptions struct { }
PacketCapturesClientListOptions contains the optional parameters for the PacketCapturesClient.List method.
type PacketCapturesClientListResponse ¶ added in v0.3.0
type PacketCapturesClientListResponse struct {
PacketCaptureListResult
}
PacketCapturesClientListResponse contains the response from method PacketCapturesClient.List.
type PacketCapturesClientStopResponse ¶ added in v0.3.0
type PacketCapturesClientStopResponse struct { }
PacketCapturesClientStopResponse contains the response from method PacketCapturesClient.Stop.
type PatchRouteFilter ¶
type PatchRouteFilter struct { // Resource ID. ID *string `json:"id,omitempty"` // Properties of the route filter. Properties *RouteFilterPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PatchRouteFilter - Route Filter Resource.
func (PatchRouteFilter) MarshalJSON ¶
func (p PatchRouteFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PatchRouteFilter.
type PatchRouteFilterRule ¶
type PatchRouteFilterRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Properties of the route filter rule. Properties *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty" azure:"ro"` }
PatchRouteFilterRule - Route Filter Rule Resource.
type PcError ¶
type PcError string
func PossiblePcErrorValues ¶
func PossiblePcErrorValues() []PcError
PossiblePcErrorValues returns the possible values for the PcError const type.
type PcProtocol ¶
type PcProtocol string
PcProtocol - Protocol to be filtered on.
const ( PcProtocolAny PcProtocol = "Any" PcProtocolTCP PcProtocol = "TCP" PcProtocolUDP PcProtocol = "UDP" )
func PossiblePcProtocolValues ¶
func PossiblePcProtocolValues() []PcProtocol
PossiblePcProtocolValues returns the possible values for the PcProtocol const type.
type PcStatus ¶
type PcStatus string
PcStatus - The status of the packet capture session.
func PossiblePcStatusValues ¶
func PossiblePcStatusValues() []PcStatus
PossiblePcStatusValues returns the possible values for the PcStatus const type.
type PeerExpressRouteCircuitConnection ¶
type PeerExpressRouteCircuitConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the peer express route circuit connection. Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
PeerExpressRouteCircuitConnection - Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource.
type PeerExpressRouteCircuitConnectionListResult ¶
type PeerExpressRouteCircuitConnectionListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The global reach peer circuit connection associated with Private Peering in an ExpressRoute Circuit. Value []*PeerExpressRouteCircuitConnection `json:"value,omitempty"` }
PeerExpressRouteCircuitConnectionListResult - Response for ListPeeredConnections API service call retrieves all global reach peer circuit connections that belongs to a Private Peering for an ExpressRouteCircuit.
type PeerExpressRouteCircuitConnectionPropertiesFormat ¶
type PeerExpressRouteCircuitConnectionPropertiesFormat struct { // /29 IP address space to carve out Customer addresses for tunnels. AddressPrefix *string `json:"addressPrefix,omitempty"` // The resource guid of the authorization used for the express route circuit connection. AuthResourceGUID *string `json:"authResourceGuid,omitempty"` // The name of the express route circuit connection resource. ConnectionName *string `json:"connectionName,omitempty"` // Reference to Express Route Circuit Private Peering Resource of the circuit. ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` // Reference to Express Route Circuit Private Peering Resource of the peered circuit. PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` // READ-ONLY; Express Route Circuit connection state. CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the peer express route circuit connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PeerExpressRouteCircuitConnectionPropertiesFormat - Properties of the peer express route circuit connection.
type PeerExpressRouteCircuitConnectionsClient ¶
type PeerExpressRouteCircuitConnectionsClient struct {
// contains filtered or unexported fields
}
PeerExpressRouteCircuitConnectionsClient contains the methods for the PeerExpressRouteCircuitConnections group. Don't use this type directly, use NewPeerExpressRouteCircuitConnectionsClient() instead.
func NewPeerExpressRouteCircuitConnectionsClient ¶
func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PeerExpressRouteCircuitConnectionsClient, error)
NewPeerExpressRouteCircuitConnectionsClient creates a new instance of PeerExpressRouteCircuitConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PeerExpressRouteCircuitConnectionsClient) Get ¶
func (client *PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, options *PeerExpressRouteCircuitConnectionsClientGetOptions) (PeerExpressRouteCircuitConnectionsClientGetResponse, error)
Get - Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the express route circuit. peeringName - The name of the peering. connectionName - The name of the peer express route circuit connection. options - PeerExpressRouteCircuitConnectionsClientGetOptions contains the optional parameters for the PeerExpressRouteCircuitConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PeerExpressRouteCircuitConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPeerExpressRouteCircuitConnectionsClient("subid1", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "60aee347-e889-4a42-8c1b-0aae8b1e4013", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PeerExpressRouteCircuitConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *PeerExpressRouteCircuitConnectionsClient) NewListPager(resourceGroupName string, circuitName string, peeringName string, options *PeerExpressRouteCircuitConnectionsClientListOptions) *runtime.Pager[PeerExpressRouteCircuitConnectionsClientListResponse]
NewListPager - Gets all global reach peer connections associated with a private peering in an express route circuit. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. circuitName - The name of the circuit. peeringName - The name of the peering. options - PeerExpressRouteCircuitConnectionsClientListOptions contains the optional parameters for the PeerExpressRouteCircuitConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PeerExpressRouteCircuitConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPeerExpressRouteCircuitConnectionsClient("subid1", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PeerExpressRouteCircuitConnectionsClientGetOptions ¶ added in v0.3.0
type PeerExpressRouteCircuitConnectionsClientGetOptions struct { }
PeerExpressRouteCircuitConnectionsClientGetOptions contains the optional parameters for the PeerExpressRouteCircuitConnectionsClient.Get method.
type PeerExpressRouteCircuitConnectionsClientGetResponse ¶ added in v0.3.0
type PeerExpressRouteCircuitConnectionsClientGetResponse struct {
PeerExpressRouteCircuitConnection
}
PeerExpressRouteCircuitConnectionsClientGetResponse contains the response from method PeerExpressRouteCircuitConnectionsClient.Get.
type PeerExpressRouteCircuitConnectionsClientListOptions ¶ added in v0.3.0
type PeerExpressRouteCircuitConnectionsClientListOptions struct { }
PeerExpressRouteCircuitConnectionsClientListOptions contains the optional parameters for the PeerExpressRouteCircuitConnectionsClient.List method.
type PeerExpressRouteCircuitConnectionsClientListResponse ¶ added in v0.3.0
type PeerExpressRouteCircuitConnectionsClientListResponse struct {
PeerExpressRouteCircuitConnectionListResult
}
PeerExpressRouteCircuitConnectionsClientListResponse contains the response from method PeerExpressRouteCircuitConnectionsClient.List.
type PeerRoute ¶
type PeerRoute struct { // READ-ONLY; The route's AS path sequence. AsPath *string `json:"asPath,omitempty" azure:"ro"` // READ-ONLY; The peer's local address. LocalAddress *string `json:"localAddress,omitempty" azure:"ro"` // READ-ONLY; The route's network prefix. Network *string `json:"network,omitempty" azure:"ro"` // READ-ONLY; The route's next hop. NextHop *string `json:"nextHop,omitempty" azure:"ro"` // READ-ONLY; The source this route was learned from. Origin *string `json:"origin,omitempty" azure:"ro"` // READ-ONLY; The peer this route was learned from. SourcePeer *string `json:"sourcePeer,omitempty" azure:"ro"` // READ-ONLY; The route's weight. Weight *int32 `json:"weight,omitempty" azure:"ro"` }
PeerRoute - Peer routing details.
type PeerRouteList ¶
type PeerRouteList struct { // List of peer routes. Value []*PeerRoute `json:"value,omitempty"` }
PeerRouteList - List of virtual router peer routes.
type PfsGroup ¶
type PfsGroup string
PfsGroup - The Pfs Groups used in IKE Phase 2 for new child SA.
const ( PfsGroupECP256 PfsGroup = "ECP256" PfsGroupECP384 PfsGroup = "ECP384" PfsGroupNone PfsGroup = "None" PfsGroupPFS1 PfsGroup = "PFS1" PfsGroupPFS14 PfsGroup = "PFS14" PfsGroupPFS2 PfsGroup = "PFS2" PfsGroupPFS2048 PfsGroup = "PFS2048" PfsGroupPFS24 PfsGroup = "PFS24" PfsGroupPFSMM PfsGroup = "PFSMM" )
func PossiblePfsGroupValues ¶
func PossiblePfsGroupValues() []PfsGroup
PossiblePfsGroupValues returns the possible values for the PfsGroup const type.
type PolicySettings ¶
type PolicySettings struct { // Maximum file upload size in Mb for WAF. FileUploadLimitInMb *int32 `json:"fileUploadLimitInMb,omitempty"` // Maximum request body size in Kb for WAF. MaxRequestBodySizeInKb *int32 `json:"maxRequestBodySizeInKb,omitempty"` // The mode of the policy. Mode *WebApplicationFirewallMode `json:"mode,omitempty"` // Whether to allow WAF to check request Body. RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` // The state of the policy. State *WebApplicationFirewallEnabledState `json:"state,omitempty"` }
PolicySettings - Defines contents of a web application firewall global configuration.
type PreferredIPVersion ¶
type PreferredIPVersion string
PreferredIPVersion - The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters.
const ( PreferredIPVersionIPv4 PreferredIPVersion = "IPv4" PreferredIPVersionIPv6 PreferredIPVersion = "IPv6" )
func PossiblePreferredIPVersionValues ¶
func PossiblePreferredIPVersionValues() []PreferredIPVersion
PossiblePreferredIPVersionValues returns the possible values for the PreferredIPVersion const type.
type PreferredRoutingGateway ¶
type PreferredRoutingGateway string
PreferredRoutingGateway - The preferred routing gateway types
const ( PreferredRoutingGatewayExpressRoute PreferredRoutingGateway = "ExpressRoute" PreferredRoutingGatewayNone PreferredRoutingGateway = "None" PreferredRoutingGatewayVPNGateway PreferredRoutingGateway = "VpnGateway" )
func PossiblePreferredRoutingGatewayValues ¶
func PossiblePreferredRoutingGatewayValues() []PreferredRoutingGateway
PossiblePreferredRoutingGatewayValues returns the possible values for the PreferredRoutingGateway const type.
type PrepareNetworkPoliciesRequest ¶
type PrepareNetworkPoliciesRequest struct { // A list of NetworkIntentPolicyConfiguration. NetworkIntentPolicyConfigurations []*IntentPolicyConfiguration `json:"networkIntentPolicyConfigurations,omitempty"` // The name of the service for which subnet is being prepared for. ServiceName *string `json:"serviceName,omitempty"` }
PrepareNetworkPoliciesRequest - Details of PrepareNetworkPolicies for Subnet.
func (PrepareNetworkPoliciesRequest) MarshalJSON ¶
func (p PrepareNetworkPoliciesRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrepareNetworkPoliciesRequest.
type PrivateDNSZoneConfig ¶
type PrivateDNSZoneConfig struct { // Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the private dns zone configuration. Properties *PrivateDNSZonePropertiesFormat `json:"properties,omitempty"` }
PrivateDNSZoneConfig - PrivateDnsZoneConfig resource.
type PrivateDNSZoneGroup ¶
type PrivateDNSZoneGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the private dns zone group. Properties *PrivateDNSZoneGroupPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
PrivateDNSZoneGroup - Private dns zone group resource.
type PrivateDNSZoneGroupListResult ¶
type PrivateDNSZoneGroupListResult struct { // A list of private dns zone group resources in a private endpoint. Value []*PrivateDNSZoneGroup `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
PrivateDNSZoneGroupListResult - Response for the ListPrivateDnsZoneGroups API service call.
type PrivateDNSZoneGroupPropertiesFormat ¶
type PrivateDNSZoneGroupPropertiesFormat struct { // A collection of private dns zone configurations of the private dns zone group. PrivateDNSZoneConfigs []*PrivateDNSZoneConfig `json:"privateDnsZoneConfigs,omitempty"` // READ-ONLY; The provisioning state of the private dns zone group resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateDNSZoneGroupPropertiesFormat - Properties of the private dns zone group.
func (PrivateDNSZoneGroupPropertiesFormat) MarshalJSON ¶
func (p PrivateDNSZoneGroupPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateDNSZoneGroupPropertiesFormat.
type PrivateDNSZoneGroupsClient ¶
type PrivateDNSZoneGroupsClient struct {
// contains filtered or unexported fields
}
PrivateDNSZoneGroupsClient contains the methods for the PrivateDNSZoneGroups group. Don't use this type directly, use NewPrivateDNSZoneGroupsClient() instead.
func NewPrivateDNSZoneGroupsClient ¶
func NewPrivateDNSZoneGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateDNSZoneGroupsClient, error)
NewPrivateDNSZoneGroupsClient creates a new instance of PrivateDNSZoneGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateDNSZoneGroupsClient) BeginCreateOrUpdate ¶
func (client *PrivateDNSZoneGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, parameters PrivateDNSZoneGroup, options *PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateDNSZoneGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a private dns zone group in the specified private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. privateDNSZoneGroupName - The name of the private dns zone group. parameters - Parameters supplied to the create or update private dns zone group operation. options - PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointDnsZoneGroupCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateDNSZoneGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testPe", "testPdnsgroup", armnetwork.PrivateDNSZoneGroup{ Properties: &armnetwork.PrivateDNSZoneGroupPropertiesFormat{ PrivateDNSZoneConfigs: []*armnetwork.PrivateDNSZoneConfig{ { Properties: &armnetwork.PrivateDNSZonePropertiesFormat{ PrivateDNSZoneID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateDnsZones/zone1.com"), }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*PrivateDNSZoneGroupsClient) BeginDelete ¶
func (client *PrivateDNSZoneGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, options *PrivateDNSZoneGroupsClientBeginDeleteOptions) (*runtime.Poller[PrivateDNSZoneGroupsClientDeleteResponse], error)
BeginDelete - Deletes the specified private dns zone group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. privateDNSZoneGroupName - The name of the private dns zone group. options - PrivateDNSZoneGroupsClientBeginDeleteOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointDnsZoneGroupDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateDNSZoneGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testPe", "testPdnsgroup", 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 (*PrivateDNSZoneGroupsClient) Get ¶
func (client *PrivateDNSZoneGroupsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, privateDNSZoneGroupName string, options *PrivateDNSZoneGroupsClientGetOptions) (PrivateDNSZoneGroupsClientGetResponse, error)
Get - Gets the private dns zone group resource by specified private dns zone group name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. privateDNSZoneGroupName - The name of the private dns zone group. options - PrivateDNSZoneGroupsClientGetOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointDnsZoneGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateDNSZoneGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testPe", "testPdnsgroup", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateDNSZoneGroupsClient) NewListPager ¶ added in v0.5.0
func (client *PrivateDNSZoneGroupsClient) NewListPager(privateEndpointName string, resourceGroupName string, options *PrivateDNSZoneGroupsClientListOptions) *runtime.Pager[PrivateDNSZoneGroupsClientListResponse]
NewListPager - Gets all private dns zone groups in a private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 privateEndpointName - The name of the private endpoint. resourceGroupName - The name of the resource group. options - PrivateDNSZoneGroupsClientListOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointDnsZoneGroupList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateDNSZoneGroupsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("testPe", "rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateDNSZoneGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.BeginCreateOrUpdate method.
type PrivateDNSZoneGroupsClientBeginDeleteOptions ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateDNSZoneGroupsClientBeginDeleteOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.BeginDelete method.
type PrivateDNSZoneGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientCreateOrUpdateResponse struct {
PrivateDNSZoneGroup
}
PrivateDNSZoneGroupsClientCreateOrUpdateResponse contains the response from method PrivateDNSZoneGroupsClient.CreateOrUpdate.
type PrivateDNSZoneGroupsClientDeleteResponse ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientDeleteResponse struct { }
PrivateDNSZoneGroupsClientDeleteResponse contains the response from method PrivateDNSZoneGroupsClient.Delete.
type PrivateDNSZoneGroupsClientGetOptions ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientGetOptions struct { }
PrivateDNSZoneGroupsClientGetOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.Get method.
type PrivateDNSZoneGroupsClientGetResponse ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientGetResponse struct {
PrivateDNSZoneGroup
}
PrivateDNSZoneGroupsClientGetResponse contains the response from method PrivateDNSZoneGroupsClient.Get.
type PrivateDNSZoneGroupsClientListOptions ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientListOptions struct { }
PrivateDNSZoneGroupsClientListOptions contains the optional parameters for the PrivateDNSZoneGroupsClient.List method.
type PrivateDNSZoneGroupsClientListResponse ¶ added in v0.3.0
type PrivateDNSZoneGroupsClientListResponse struct {
PrivateDNSZoneGroupListResult
}
PrivateDNSZoneGroupsClientListResponse contains the response from method PrivateDNSZoneGroupsClient.List.
type PrivateDNSZonePropertiesFormat ¶
type PrivateDNSZonePropertiesFormat struct { // The resource id of the private dns zone. PrivateDNSZoneID *string `json:"privateDnsZoneId,omitempty"` // READ-ONLY; A collection of information regarding a recordSet, holding information to identify private resources. RecordSets []*RecordSet `json:"recordSets,omitempty" azure:"ro"` }
PrivateDNSZonePropertiesFormat - Properties of the private dns zone configuration resource.
func (PrivateDNSZonePropertiesFormat) MarshalJSON ¶
func (p PrivateDNSZonePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateDNSZonePropertiesFormat.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // The extended location of the load balancer. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the private endpoint. Properties *PrivateEndpointProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpoint - Private endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (p PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the private end point connection. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointConnection resource.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { // A list of PrivateEndpointConnection resources for a specific private link service. Value []*PrivateEndpointConnection `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
PrivateEndpointConnectionListResult - Response for the ListPrivateEndpointConnection API service call.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // READ-ONLY; The consumer link id. LinkIdentifier *string `json:"linkIdentifier,omitempty" azure:"ro"` // READ-ONLY; The resource of private end point. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the private endpoint connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
type PrivateEndpointIPConfiguration ¶
type PrivateEndpointIPConfiguration struct { // The name of the resource that is unique within a resource group. Name *string `json:"name,omitempty"` // Properties of private endpoint IP configurations. Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointIPConfiguration - An IP Configuration of the private endpoint.
type PrivateEndpointIPConfigurationProperties ¶
type PrivateEndpointIPConfigurationProperties struct { // The ID of a group obtained from the remote resource that this private endpoint should connect to. GroupID *string `json:"groupId,omitempty"` // The member name of a group obtained from the remote resource that this private endpoint should connect to. MemberName *string `json:"memberName,omitempty"` // A private ip address obtained from the private endpoint's subnet. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` }
PrivateEndpointIPConfigurationProperties - Properties of an IP Configuration of the private endpoint.
type PrivateEndpointListResult ¶
type PrivateEndpointListResult struct { // A list of private endpoint resources in a resource group. Value []*PrivateEndpoint `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
PrivateEndpointListResult - Response for the ListPrivateEndpoints API service call.
type PrivateEndpointProperties ¶
type PrivateEndpointProperties struct { // Application security groups in which the private endpoint IP configuration is included. ApplicationSecurityGroups []*ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` // An array of custom dns configurations. CustomDNSConfigs []*CustomDNSConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` // The custom name of the network interface attached to the private endpoint. CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` // A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints. IPConfigurations []*PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` // A grouping of information about the connection to the remote resource. Used when the network admin does not have access // to approve connections to the remote resource. ManualPrivateLinkServiceConnections []*PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` // A grouping of information about the connection to the remote resource. PrivateLinkServiceConnections []*PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` // The ID of the subnet from which the private IP will be allocated. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; An array of references to the network interfaces created for this private endpoint. NetworkInterfaces []*Interface `json:"networkInterfaces,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the private endpoint resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateEndpointProperties - Properties of the private endpoint.
func (PrivateEndpointProperties) MarshalJSON ¶
func (p PrivateEndpointProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointProperties.
type PrivateEndpointsClient ¶
type PrivateEndpointsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointsClient contains the methods for the PrivateEndpoints group. Don't use this type directly, use NewPrivateEndpointsClient() instead.
func NewPrivateEndpointsClient ¶
func NewPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointsClient, error)
NewPrivateEndpointsClient creates a new instance of PrivateEndpointsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateEndpointsClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, privateEndpointName string, parameters PrivateEndpoint, options *PrivateEndpointsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an private endpoint in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. parameters - Parameters supplied to the create or update private endpoint operation. options - PrivateEndpointsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateEndpointsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testPe", armnetwork.PrivateEndpoint{ Location: to.Ptr("eastus2euap"), Properties: &armnetwork.PrivateEndpointProperties{ CustomNetworkInterfaceName: to.Ptr("testPeNic"), IPConfigurations: []*armnetwork.PrivateEndpointIPConfiguration{ { Name: to.Ptr("pestaticconfig"), Properties: &armnetwork.PrivateEndpointIPConfigurationProperties{ GroupID: to.Ptr("file"), MemberName: to.Ptr("file"), PrivateIPAddress: to.Ptr("192.168.0.6"), }, }}, PrivateLinkServiceConnections: []*armnetwork.PrivateLinkServiceConnection{ { Properties: &armnetwork.PrivateLinkServiceConnectionProperties{ GroupIDs: []*string{ to.Ptr("groupIdFromResource")}, PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"), RequestMessage: to.Ptr("Please approve my connection."), }, }}, Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointsClient) BeginDelete ¶
func (client *PrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, privateEndpointName string, options *PrivateEndpointsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointsClientDeleteResponse], error)
BeginDelete - Deletes the specified private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. options - PrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateEndpointsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testPe", 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 (*PrivateEndpointsClient) Get ¶
func (client *PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, privateEndpointName string, options *PrivateEndpointsClientGetOptions) (PrivateEndpointsClientGetResponse, error)
Get - Gets the specified private endpoint by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. privateEndpointName - The name of the private endpoint. options - PrivateEndpointsClientGetOptions contains the optional parameters for the PrivateEndpointsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateEndpointsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testPe", &armnetwork.PrivateEndpointsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointsClient) NewListBySubscriptionPager ¶ added in v0.5.0
func (client *PrivateEndpointsClient) NewListBySubscriptionPager(options *PrivateEndpointsClientListBySubscriptionOptions) *runtime.Pager[PrivateEndpointsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets all private endpoints in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - PrivateEndpointsClientListBySubscriptionOptions contains the optional parameters for the PrivateEndpointsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateEndpointsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateEndpointsClient) NewListPager ¶ added in v0.5.0
func (client *PrivateEndpointsClient) NewListPager(resourceGroupName string, options *PrivateEndpointsClientListOptions) *runtime.Pager[PrivateEndpointsClientListResponse]
NewListPager - Gets all private endpoints in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - PrivateEndpointsClientListOptions contains the optional parameters for the PrivateEndpointsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateEndpointList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateEndpointsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateEndpointsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type PrivateEndpointsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointsClient.BeginCreateOrUpdate method.
type PrivateEndpointsClientBeginDeleteOptions ¶ added in v0.3.0
type PrivateEndpointsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointsClient.BeginDelete method.
type PrivateEndpointsClientCreateOrUpdateResponse ¶ added in v0.3.0
type PrivateEndpointsClientCreateOrUpdateResponse struct {
PrivateEndpoint
}
PrivateEndpointsClientCreateOrUpdateResponse contains the response from method PrivateEndpointsClient.CreateOrUpdate.
type PrivateEndpointsClientDeleteResponse ¶ added in v0.3.0
type PrivateEndpointsClientDeleteResponse struct { }
PrivateEndpointsClientDeleteResponse contains the response from method PrivateEndpointsClient.Delete.
type PrivateEndpointsClientGetOptions ¶ added in v0.3.0
type PrivateEndpointsClientGetOptions struct { // Expands referenced resources. Expand *string }
PrivateEndpointsClientGetOptions contains the optional parameters for the PrivateEndpointsClient.Get method.
type PrivateEndpointsClientGetResponse ¶ added in v0.3.0
type PrivateEndpointsClientGetResponse struct {
PrivateEndpoint
}
PrivateEndpointsClientGetResponse contains the response from method PrivateEndpointsClient.Get.
type PrivateEndpointsClientListBySubscriptionOptions ¶ added in v0.3.0
type PrivateEndpointsClientListBySubscriptionOptions struct { }
PrivateEndpointsClientListBySubscriptionOptions contains the optional parameters for the PrivateEndpointsClient.ListBySubscription method.
type PrivateEndpointsClientListBySubscriptionResponse ¶ added in v0.3.0
type PrivateEndpointsClientListBySubscriptionResponse struct {
PrivateEndpointListResult
}
PrivateEndpointsClientListBySubscriptionResponse contains the response from method PrivateEndpointsClient.ListBySubscription.
type PrivateEndpointsClientListOptions ¶ added in v0.3.0
type PrivateEndpointsClientListOptions struct { }
PrivateEndpointsClientListOptions contains the optional parameters for the PrivateEndpointsClient.List method.
type PrivateEndpointsClientListResponse ¶ added in v0.3.0
type PrivateEndpointsClientListResponse struct {
PrivateEndpointListResult
}
PrivateEndpointsClientListResponse contains the response from method PrivateEndpointsClient.List.
type PrivateLinkService ¶
type PrivateLinkService struct { // The extended location of the load balancer. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the private link service. Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkService - Private link service resource.
func (PrivateLinkService) MarshalJSON ¶
func (p PrivateLinkService) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkService.
type PrivateLinkServiceConnection ¶
type PrivateLinkServiceConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the private link service connection. Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkServiceConnection resource.
type PrivateLinkServiceConnectionProperties ¶
type PrivateLinkServiceConnectionProperties struct { // The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. GroupIDs []*string `json:"groupIds,omitempty"` // A collection of read-only information about the state of the connection to the remote resource. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // The resource id of private link service. PrivateLinkServiceID *string `json:"privateLinkServiceId,omitempty"` // A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. RequestMessage *string `json:"requestMessage,omitempty"` // READ-ONLY; The provisioning state of the private link service connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateLinkServiceConnectionProperties - Properties of the PrivateLinkServiceConnection.
func (PrivateLinkServiceConnectionProperties) MarshalJSON ¶
func (p PrivateLinkServiceConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionProperties.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string `json:"actionsRequired,omitempty"` // The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Status *string `json:"status,omitempty"` }
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
type PrivateLinkServiceIPConfiguration ¶
type PrivateLinkServiceIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of private link service ip configuration. Name *string `json:"name,omitempty"` // Properties of the private link service ip configuration. Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkServiceIPConfiguration - The private link service ip configuration.
type PrivateLinkServiceIPConfigurationProperties ¶
type PrivateLinkServiceIPConfigurationProperties struct { // Whether the ip configuration is primary or not. Primary *bool `json:"primary,omitempty"` // The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // The reference to the subnet resource. Subnet *Subnet `json:"subnet,omitempty"` // READ-ONLY; The provisioning state of the private link service IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateLinkServiceIPConfigurationProperties - Properties of private link service IP configuration.
type PrivateLinkServiceListResult ¶
type PrivateLinkServiceListResult struct { // A list of PrivateLinkService resources in a resource group. Value []*PrivateLinkService `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
PrivateLinkServiceListResult - Response for the ListPrivateLinkService API service call.
type PrivateLinkServiceProperties ¶
type PrivateLinkServiceProperties struct { // The auto-approval list of the private link service. AutoApproval *PrivateLinkServicePropertiesAutoApproval `json:"autoApproval,omitempty"` // Whether the private link service is enabled for proxy protocol or not. EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` // The list of Fqdn. Fqdns []*string `json:"fqdns,omitempty"` // An array of private link service IP configurations. IPConfigurations []*PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` // An array of references to the load balancer IP configurations. LoadBalancerFrontendIPConfigurations []*FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` // The visibility list of the private link service. Visibility *PrivateLinkServicePropertiesVisibility `json:"visibility,omitempty"` // READ-ONLY; The alias of the private link service. Alias *string `json:"alias,omitempty" azure:"ro"` // READ-ONLY; An array of references to the network interfaces created for this private link service. NetworkInterfaces []*Interface `json:"networkInterfaces,omitempty" azure:"ro"` // READ-ONLY; An array of list about connections to the private endpoint. PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the private link service resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateLinkServiceProperties - Properties of the private link service.
func (PrivateLinkServiceProperties) MarshalJSON ¶
func (p PrivateLinkServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceProperties.
type PrivateLinkServicePropertiesAutoApproval ¶
type PrivateLinkServicePropertiesAutoApproval struct { // The list of subscriptions. Subscriptions []*string `json:"subscriptions,omitempty"` }
PrivateLinkServicePropertiesAutoApproval - The auto-approval list of the private link service.
func (PrivateLinkServicePropertiesAutoApproval) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkServicePropertiesAutoApproval) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicePropertiesAutoApproval.
type PrivateLinkServicePropertiesVisibility ¶
type PrivateLinkServicePropertiesVisibility struct { // The list of subscriptions. Subscriptions []*string `json:"subscriptions,omitempty"` }
PrivateLinkServicePropertiesVisibility - The visibility list of the private link service.
func (PrivateLinkServicePropertiesVisibility) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkServicePropertiesVisibility) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicePropertiesVisibility.
type PrivateLinkServiceVisibility ¶
type PrivateLinkServiceVisibility struct { // Private Link Service Visibility (True/False). Visible *bool `json:"visible,omitempty"` }
PrivateLinkServiceVisibility - Response for the CheckPrivateLinkServiceVisibility API service call.
type PrivateLinkServicesClient ¶
type PrivateLinkServicesClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesClient contains the methods for the PrivateLinkServices group. Don't use this type directly, use NewPrivateLinkServicesClient() instead.
func NewPrivateLinkServicesClient ¶
func NewPrivateLinkServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesClient, error)
NewPrivateLinkServicesClient creates a new instance of PrivateLinkServicesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibility ¶
func (client *PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibility(ctx context.Context, location string, parameters CheckPrivateLinkServiceVisibilityRequest, options *PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions) (*runtime.Poller[PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityResponse], error)
BeginCheckPrivateLinkServiceVisibility - Checks whether the subscription is visible to private link service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. parameters - The request body of CheckPrivateLinkService API call. options - PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibility method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CheckPrivateLinkServiceVisibility.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCheckPrivateLinkServiceVisibility(ctx, "westus", armnetwork.CheckPrivateLinkServiceVisibilityRequest{ PrivateLinkServiceAlias: to.Ptr("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), }, 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) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibilityByResourceGroup ¶
func (client *PrivateLinkServicesClient) BeginCheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, location string, resourceGroupName string, parameters CheckPrivateLinkServiceVisibilityRequest, options *PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions) (*runtime.Poller[PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityByResourceGroupResponse], error)
BeginCheckPrivateLinkServiceVisibilityByResourceGroup - Checks whether the subscription is visible to private link service in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. resourceGroupName - The name of the resource group. parameters - The request body of CheckPrivateLinkService API call. options - PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibilityByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCheckPrivateLinkServiceVisibilityByResourceGroup(ctx, "westus", "rg1", armnetwork.CheckPrivateLinkServiceVisibilityRequest{ PrivateLinkServiceAlias: to.Ptr("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), }, 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) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkServicesClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PrivateLinkService, options *PrivateLinkServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an private link service in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. parameters - Parameters supplied to the create or update private link service operation. options - PrivateLinkServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testPls", armnetwork.PrivateLinkService{ Location: to.Ptr("eastus"), Properties: &armnetwork.PrivateLinkServiceProperties{ AutoApproval: &armnetwork.PrivateLinkServicePropertiesAutoApproval{ Subscriptions: []*string{ to.Ptr("subscription1"), to.Ptr("subscription2")}, }, Fqdns: []*string{ to.Ptr("fqdn1"), to.Ptr("fqdn2"), to.Ptr("fqdn3")}, IPConfigurations: []*armnetwork.PrivateLinkServiceIPConfiguration{ { Name: to.Ptr("fe-lb"), Properties: &armnetwork.PrivateLinkServiceIPConfigurationProperties{ PrivateIPAddress: to.Ptr("10.0.1.4"), PrivateIPAddressVersion: to.Ptr(armnetwork.IPVersionIPv4), PrivateIPAllocationMethod: to.Ptr(armnetwork.IPAllocationMethodStatic), Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb"), }, }, }}, LoadBalancerFrontendIPConfigurations: []*armnetwork.FrontendIPConfiguration{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), }}, Visibility: &armnetwork.PrivateLinkServicePropertiesVisibility{ Subscriptions: []*string{ to.Ptr("subscription1"), to.Ptr("subscription2"), to.Ptr("subscription3")}, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkServicesClient) BeginDelete ¶
func (client *PrivateLinkServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceName string, options *PrivateLinkServicesClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesClientDeleteResponse], error)
BeginDelete - Deletes the specified private link service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. options - PrivateLinkServicesClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testPls", 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 (*PrivateLinkServicesClient) BeginDeletePrivateEndpointConnection ¶
func (client *PrivateLinkServicesClient) BeginDeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, options *PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions) (*runtime.Poller[PrivateLinkServicesClientDeletePrivateEndpointConnectionResponse], error)
BeginDeletePrivateEndpointConnection - Delete private end point connection for a private link service in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. peConnectionName - The name of the private end point connection. options - PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.BeginDeletePrivateEndpointConnection method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDeletePrivateEndpointConnection(ctx, "rg1", "testPls", "testPlePeConnection", 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 (*PrivateLinkServicesClient) Get ¶
func (client *PrivateLinkServicesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, options *PrivateLinkServicesClientGetOptions) (PrivateLinkServicesClientGetResponse, error)
Get - Gets the specified private link service by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. options - PrivateLinkServicesClientGetOptions contains the optional parameters for the PrivateLinkServicesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testPls", &armnetwork.PrivateLinkServicesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkServicesClient) GetPrivateEndpointConnection ¶
func (client *PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, options *PrivateLinkServicesClientGetPrivateEndpointConnectionOptions) (PrivateLinkServicesClientGetPrivateEndpointConnectionResponse, error)
GetPrivateEndpointConnection - Get the specific private end point connection by specific private link service in the resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. peConnectionName - The name of the private end point connection. options - PrivateLinkServicesClientGetPrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.GetPrivateEndpointConnection method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetPrivateEndpointConnection(ctx, "rg1", "testPls", "testPlePeConnection", &armnetwork.PrivateLinkServicesClientGetPrivateEndpointConnectionOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesByResourceGroupPager ¶ added in v0.5.0
func (client *PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesByResourceGroupPager(location string, resourceGroupName string, options *PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupResponse]
NewListAutoApprovedPrivateLinkServicesByResourceGroupPager - Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. resourceGroupName - The name of the resource group. options - PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAutoApprovedPrivateLinkServicesByResourceGroupPager("regionName", "rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesPager ¶ added in v0.5.0
func (client *PrivateLinkServicesClient) NewListAutoApprovedPrivateLinkServicesPager(location string, options *PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions) *runtime.Pager[PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesResponse]
NewListAutoApprovedPrivateLinkServicesPager - Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location of the domain name. options - PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions contains the optional parameters for the PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AutoApprovedPrivateLinkServicesGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAutoApprovedPrivateLinkServicesPager("regionName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkServicesClient) NewListBySubscriptionPager ¶ added in v0.5.0
func (client *PrivateLinkServicesClient) NewListBySubscriptionPager(options *PrivateLinkServicesClientListBySubscriptionOptions) *runtime.Pager[PrivateLinkServicesClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets all private link service in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - PrivateLinkServicesClientListBySubscriptionOptions contains the optional parameters for the PrivateLinkServicesClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkServicesClient) NewListPager ¶ added in v0.5.0
func (client *PrivateLinkServicesClient) NewListPager(resourceGroupName string, options *PrivateLinkServicesClientListOptions) *runtime.Pager[PrivateLinkServicesClientListResponse]
NewListPager - Gets all private link services in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - PrivateLinkServicesClientListOptions contains the optional parameters for the PrivateLinkServicesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkServicesClient) NewListPrivateEndpointConnectionsPager ¶ added in v0.5.0
func (client *PrivateLinkServicesClient) NewListPrivateEndpointConnectionsPager(resourceGroupName string, serviceName string, options *PrivateLinkServicesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[PrivateLinkServicesClientListPrivateEndpointConnectionsResponse]
NewListPrivateEndpointConnectionsPager - Gets all private end point connections for a specific private link service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. options - PrivateLinkServicesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the PrivateLinkServicesClient.ListPrivateEndpointConnections method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPrivateEndpointConnectionsPager("rg1", "testPls", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkServicesClient) UpdatePrivateEndpointConnection ¶
func (client *PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters PrivateEndpointConnection, options *PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions) (PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse, error)
UpdatePrivateEndpointConnection - Approve or reject private end point connection for a private link service in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceName - The name of the private link service. peConnectionName - The name of the private end point connection. parameters - Parameters supplied to approve or reject the private end point connection. options - PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.UpdatePrivateEndpointConnection method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPrivateLinkServicesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdatePrivateEndpointConnection(ctx, "rg1", "testPls", "testPlePeConnection", armnetwork.PrivateEndpointConnection{ Name: to.Ptr("testPlePeConnection"), Properties: &armnetwork.PrivateEndpointConnectionProperties{ PrivateEndpoint: &armnetwork.PrivateEndpoint{ ID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe"), }, PrivateLinkServiceConnectionState: &armnetwork.PrivateLinkServiceConnectionState{ Description: to.Ptr("approved it for some reason."), Status: to.Ptr("Approved"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions ¶ added in v0.3.0
type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibilityByResourceGroup method.
type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions ¶ added in v0.3.0
type PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesClientBeginCheckPrivateLinkServiceVisibilityOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCheckPrivateLinkServiceVisibility method.
type PrivateLinkServicesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type PrivateLinkServicesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesClient.BeginCreateOrUpdate method.
type PrivateLinkServicesClientBeginDeleteOptions ¶ added in v0.3.0
type PrivateLinkServicesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesClient.BeginDelete method.
type PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions ¶ added in v0.3.0
type PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.BeginDeletePrivateEndpointConnection method.
type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityByResourceGroupResponse ¶ added in v0.3.0
type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityByResourceGroupResponse struct {
PrivateLinkServiceVisibility
}
PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityByResourceGroupResponse contains the response from method PrivateLinkServicesClient.CheckPrivateLinkServiceVisibilityByResourceGroup.
type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityResponse ¶ added in v0.3.0
type PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityResponse struct {
PrivateLinkServiceVisibility
}
PrivateLinkServicesClientCheckPrivateLinkServiceVisibilityResponse contains the response from method PrivateLinkServicesClient.CheckPrivateLinkServiceVisibility.
type PrivateLinkServicesClientCreateOrUpdateResponse ¶ added in v0.3.0
type PrivateLinkServicesClientCreateOrUpdateResponse struct {
PrivateLinkService
}
PrivateLinkServicesClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesClient.CreateOrUpdate.
type PrivateLinkServicesClientDeletePrivateEndpointConnectionResponse ¶ added in v0.3.0
type PrivateLinkServicesClientDeletePrivateEndpointConnectionResponse struct { }
PrivateLinkServicesClientDeletePrivateEndpointConnectionResponse contains the response from method PrivateLinkServicesClient.DeletePrivateEndpointConnection.
type PrivateLinkServicesClientDeleteResponse ¶ added in v0.3.0
type PrivateLinkServicesClientDeleteResponse struct { }
PrivateLinkServicesClientDeleteResponse contains the response from method PrivateLinkServicesClient.Delete.
type PrivateLinkServicesClientGetOptions ¶ added in v0.3.0
type PrivateLinkServicesClientGetOptions struct { // Expands referenced resources. Expand *string }
PrivateLinkServicesClientGetOptions contains the optional parameters for the PrivateLinkServicesClient.Get method.
type PrivateLinkServicesClientGetPrivateEndpointConnectionOptions ¶ added in v0.3.0
type PrivateLinkServicesClientGetPrivateEndpointConnectionOptions struct { // Expands referenced resources. Expand *string }
PrivateLinkServicesClientGetPrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.GetPrivateEndpointConnection method.
type PrivateLinkServicesClientGetPrivateEndpointConnectionResponse ¶ added in v0.3.0
type PrivateLinkServicesClientGetPrivateEndpointConnectionResponse struct {
PrivateEndpointConnection
}
PrivateLinkServicesClientGetPrivateEndpointConnectionResponse contains the response from method PrivateLinkServicesClient.GetPrivateEndpointConnection.
type PrivateLinkServicesClientGetResponse ¶ added in v0.3.0
type PrivateLinkServicesClientGetResponse struct {
PrivateLinkService
}
PrivateLinkServicesClientGetResponse contains the response from method PrivateLinkServicesClient.Get.
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions ¶ added in v0.3.0
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions struct { }
PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup method.
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupResponse ¶ added in v0.3.0
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupResponse struct {
AutoApprovedPrivateLinkServicesResult
}
PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesByResourceGroupResponse contains the response from method PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup.
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions ¶ added in v0.3.0
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions struct { }
PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesOptions contains the optional parameters for the PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices method.
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesResponse ¶ added in v0.3.0
type PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesResponse struct {
AutoApprovedPrivateLinkServicesResult
}
PrivateLinkServicesClientListAutoApprovedPrivateLinkServicesResponse contains the response from method PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices.
type PrivateLinkServicesClientListBySubscriptionOptions ¶ added in v0.3.0
type PrivateLinkServicesClientListBySubscriptionOptions struct { }
PrivateLinkServicesClientListBySubscriptionOptions contains the optional parameters for the PrivateLinkServicesClient.ListBySubscription method.
type PrivateLinkServicesClientListBySubscriptionResponse ¶ added in v0.3.0
type PrivateLinkServicesClientListBySubscriptionResponse struct {
PrivateLinkServiceListResult
}
PrivateLinkServicesClientListBySubscriptionResponse contains the response from method PrivateLinkServicesClient.ListBySubscription.
type PrivateLinkServicesClientListOptions ¶ added in v0.3.0
type PrivateLinkServicesClientListOptions struct { }
PrivateLinkServicesClientListOptions contains the optional parameters for the PrivateLinkServicesClient.List method.
type PrivateLinkServicesClientListPrivateEndpointConnectionsOptions ¶ added in v0.3.0
type PrivateLinkServicesClientListPrivateEndpointConnectionsOptions struct { }
PrivateLinkServicesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the PrivateLinkServicesClient.ListPrivateEndpointConnections method.
type PrivateLinkServicesClientListPrivateEndpointConnectionsResponse ¶ added in v0.3.0
type PrivateLinkServicesClientListPrivateEndpointConnectionsResponse struct {
PrivateEndpointConnectionListResult
}
PrivateLinkServicesClientListPrivateEndpointConnectionsResponse contains the response from method PrivateLinkServicesClient.ListPrivateEndpointConnections.
type PrivateLinkServicesClientListResponse ¶ added in v0.3.0
type PrivateLinkServicesClientListResponse struct {
PrivateLinkServiceListResult
}
PrivateLinkServicesClientListResponse contains the response from method PrivateLinkServicesClient.List.
type PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions ¶ added in v0.3.0
type PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions struct { }
PrivateLinkServicesClientUpdatePrivateEndpointConnectionOptions contains the optional parameters for the PrivateLinkServicesClient.UpdatePrivateEndpointConnection method.
type PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse ¶ added in v0.3.0
type PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse struct {
PrivateEndpointConnection
}
PrivateLinkServicesClientUpdatePrivateEndpointConnectionResponse contains the response from method PrivateLinkServicesClient.UpdatePrivateEndpointConnection.
type Probe ¶
type Probe struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within the set of probes used by the load balancer. This name can be used to access // the resource. Name *string `json:"name,omitempty"` // Properties of load balancer probe. Properties *ProbePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Probe - A load balancer probe.
type ProbePropertiesFormat ¶
type ProbePropertiesFormat struct { // REQUIRED; The port for communicating the probe. Possible values range from 1 to 65535, inclusive. Port *int32 `json:"port,omitempty"` // REQUIRED; The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. // If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required // for the probe to be successful. Protocol *ProbeProtocol `json:"protocol,omitempty"` // The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly // less than half the allocated timeout period (in seconds) which allows two full // probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` // The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. // This values allows endpoints to be taken out of rotation faster or slower than // the typical times used in Azure. NumberOfProbes *int32 `json:"numberOfProbes,omitempty"` // The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is // not allowed. There is no default value. RequestPath *string `json:"requestPath,omitempty"` // READ-ONLY; The load balancer rules that use this probe. LoadBalancingRules []*SubResource `json:"loadBalancingRules,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the probe resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ProbePropertiesFormat - Load balancer probe resource.
func (ProbePropertiesFormat) MarshalJSON ¶
func (p ProbePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProbePropertiesFormat.
type ProbeProtocol ¶
type ProbeProtocol string
ProbeProtocol - The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.
const ( ProbeProtocolHTTP ProbeProtocol = "Http" ProbeProtocolHTTPS ProbeProtocol = "Https" ProbeProtocolTCP ProbeProtocol = "Tcp" )
func PossibleProbeProtocolValues ¶
func PossibleProbeProtocolValues() []ProbeProtocol
PossibleProbeProtocolValues returns the possible values for the ProbeProtocol const type.
type ProcessorArchitecture ¶
type ProcessorArchitecture string
ProcessorArchitecture - VPN client Processor Architecture.
const ( ProcessorArchitectureAmd64 ProcessorArchitecture = "Amd64" ProcessorArchitectureX86 ProcessorArchitecture = "X86" )
func PossibleProcessorArchitectureValues ¶
func PossibleProcessorArchitectureValues() []ProcessorArchitecture
PossibleProcessorArchitectureValues returns the possible values for the ProcessorArchitecture const type.
type Profile ¶ added in v0.3.0
type Profile struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Network profile properties. Properties *ProfilePropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Profile - Network profile resource.
func (Profile) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Profile.
type ProfileListResult ¶ added in v0.3.0
type ProfileListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of network profiles that exist in a resource group. Value []*Profile `json:"value,omitempty"` }
ProfileListResult - Response for ListNetworkProfiles API service call.
type ProfilePropertiesFormat ¶ added in v0.3.0
type ProfilePropertiesFormat struct { // List of chid container network interface configurations. ContainerNetworkInterfaceConfigurations []*ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfigurations,omitempty"` // READ-ONLY; List of child container network interfaces. ContainerNetworkInterfaces []*ContainerNetworkInterface `json:"containerNetworkInterfaces,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the network profile resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the network profile resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
ProfilePropertiesFormat - Network profile properties.
func (ProfilePropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (p ProfilePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProfilePropertiesFormat.
type ProfilesClient ¶ added in v0.3.0
type ProfilesClient struct {
// contains filtered or unexported fields
}
ProfilesClient contains the methods for the NetworkProfiles group. Don't use this type directly, use NewProfilesClient() instead.
func NewProfilesClient ¶ added in v0.3.0
func NewProfilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProfilesClient, error)
NewProfilesClient creates a new instance of ProfilesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ProfilesClient) BeginDelete ¶ added in v0.3.0
func (client *ProfilesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkProfileName string, options *ProfilesClientBeginDeleteOptions) (*runtime.Poller[ProfilesClientDeleteResponse], error)
BeginDelete - Deletes the specified network profile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkProfileName - The name of the NetworkProfile. options - ProfilesClientBeginDeleteOptions contains the optional parameters for the ProfilesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "networkProfile1", 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 (*ProfilesClient) CreateOrUpdate ¶ added in v0.3.0
func (client *ProfilesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkProfileName string, parameters Profile, options *ProfilesClientCreateOrUpdateOptions) (ProfilesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a network profile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkProfileName - The name of the network profile. parameters - Parameters supplied to the create or update network profile operation. options - ProfilesClientCreateOrUpdateOptions contains the optional parameters for the ProfilesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileCreateConfigOnly.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "rg1", "networkProfile1", armnetwork.Profile{ Location: to.Ptr("westus"), Properties: &armnetwork.ProfilePropertiesFormat{ ContainerNetworkInterfaceConfigurations: []*armnetwork.ContainerNetworkInterfaceConfiguration{ { Name: to.Ptr("eth1"), Properties: &armnetwork.ContainerNetworkInterfaceConfigurationPropertiesFormat{ IPConfigurations: []*armnetwork.IPConfigurationProfile{ { Name: to.Ptr("ipconfig1"), Properties: &armnetwork.IPConfigurationProfilePropertiesFormat{ Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"), }, }, }}, }, }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProfilesClient) Get ¶ added in v0.3.0
func (client *ProfilesClient) Get(ctx context.Context, resourceGroupName string, networkProfileName string, options *ProfilesClientGetOptions) (ProfilesClientGetResponse, error)
Get - Gets the specified network profile in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkProfileName - The name of the public IP prefix. options - ProfilesClientGetOptions contains the optional parameters for the ProfilesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileGetConfigOnly.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "networkProfile1", &armnetwork.ProfilesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProfilesClient) NewListAllPager ¶ added in v0.5.0
func (client *ProfilesClient) NewListAllPager(options *ProfilesClientListAllOptions) *runtime.Pager[ProfilesClientListAllResponse]
NewListAllPager - Gets all the network profiles in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ProfilesClientListAllOptions contains the optional parameters for the ProfilesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ProfilesClient) NewListPager ¶ added in v0.5.0
func (client *ProfilesClient) NewListPager(resourceGroupName string, options *ProfilesClientListOptions) *runtime.Pager[ProfilesClientListResponse]
NewListPager - Gets all network profiles in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ProfilesClientListOptions contains the optional parameters for the ProfilesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ProfilesClient) UpdateTags ¶ added in v0.3.0
func (client *ProfilesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters TagsObject, options *ProfilesClientUpdateTagsOptions) (ProfilesClientUpdateTagsResponse, error)
UpdateTags - Updates network profile tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkProfileName - The name of the network profile. parameters - Parameters supplied to update network profile tags. options - ProfilesClientUpdateTagsOptions contains the optional parameters for the ProfilesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkProfileUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewProfilesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-np", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ProfilesClientBeginDeleteOptions ¶ added in v0.3.0
type ProfilesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProfilesClientBeginDeleteOptions contains the optional parameters for the ProfilesClient.BeginDelete method.
type ProfilesClientCreateOrUpdateOptions ¶ added in v0.3.0
type ProfilesClientCreateOrUpdateOptions struct { }
ProfilesClientCreateOrUpdateOptions contains the optional parameters for the ProfilesClient.CreateOrUpdate method.
type ProfilesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ProfilesClientCreateOrUpdateResponse struct {
Profile
}
ProfilesClientCreateOrUpdateResponse contains the response from method ProfilesClient.CreateOrUpdate.
type ProfilesClientDeleteResponse ¶ added in v0.3.0
type ProfilesClientDeleteResponse struct { }
ProfilesClientDeleteResponse contains the response from method ProfilesClient.Delete.
type ProfilesClientGetOptions ¶ added in v0.3.0
type ProfilesClientGetOptions struct { // Expands referenced resources. Expand *string }
ProfilesClientGetOptions contains the optional parameters for the ProfilesClient.Get method.
type ProfilesClientGetResponse ¶ added in v0.3.0
type ProfilesClientGetResponse struct {
Profile
}
ProfilesClientGetResponse contains the response from method ProfilesClient.Get.
type ProfilesClientListAllOptions ¶ added in v0.3.0
type ProfilesClientListAllOptions struct { }
ProfilesClientListAllOptions contains the optional parameters for the ProfilesClient.ListAll method.
type ProfilesClientListAllResponse ¶ added in v0.3.0
type ProfilesClientListAllResponse struct {
ProfileListResult
}
ProfilesClientListAllResponse contains the response from method ProfilesClient.ListAll.
type ProfilesClientListOptions ¶ added in v0.3.0
type ProfilesClientListOptions struct { }
ProfilesClientListOptions contains the optional parameters for the ProfilesClient.List method.
type ProfilesClientListResponse ¶ added in v0.3.0
type ProfilesClientListResponse struct {
ProfileListResult
}
ProfilesClientListResponse contains the response from method ProfilesClient.List.
type ProfilesClientUpdateTagsOptions ¶ added in v0.3.0
type ProfilesClientUpdateTagsOptions struct { }
ProfilesClientUpdateTagsOptions contains the optional parameters for the ProfilesClient.UpdateTags method.
type ProfilesClientUpdateTagsResponse ¶ added in v0.3.0
type ProfilesClientUpdateTagsResponse struct {
Profile
}
ProfilesClientUpdateTagsResponse contains the response from method ProfilesClient.UpdateTags.
type PropagatedRouteTable ¶
type PropagatedRouteTable struct { // The list of resource ids of all the RouteTables. IDs []*SubResource `json:"ids,omitempty"` // The list of labels. Labels []*string `json:"labels,omitempty"` }
PropagatedRouteTable - The list of RouteTables to advertise the routes to.
func (PropagatedRouteTable) MarshalJSON ¶
func (p PropagatedRouteTable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PropagatedRouteTable.
type Protocol ¶
type Protocol string
Protocol - Network protocol.
func PossibleProtocolValues ¶
func PossibleProtocolValues() []Protocol
PossibleProtocolValues returns the possible values for the Protocol const type.
type ProtocolConfiguration ¶
type ProtocolConfiguration struct { // HTTP configuration of the connectivity check. HTTPConfiguration *HTTPConfiguration `json:"HTTPConfiguration,omitempty"` }
ProtocolConfiguration - Configuration of the protocol.
type ProtocolCustomSettingsFormat ¶
type ProtocolCustomSettingsFormat struct { // The protocol for which the DDoS protection policy is being customized. Protocol *DdosCustomPolicyProtocol `json:"protocol,omitempty"` // The customized DDoS protection source rate. SourceRateOverride *string `json:"sourceRateOverride,omitempty"` // The customized DDoS protection trigger rate. TriggerRateOverride *string `json:"triggerRateOverride,omitempty"` // The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal // traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal // traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity // w.r.t. normal traffic. TriggerSensitivityOverride *DdosCustomPolicyTriggerSensitivityOverride `json:"triggerSensitivityOverride,omitempty"` }
ProtocolCustomSettingsFormat - DDoS custom policy properties.
type ProtocolType ¶
type ProtocolType string
ProtocolType - RNM supported protocol types.
const ( ProtocolTypeAh ProtocolType = "Ah" ProtocolTypeAll ProtocolType = "All" ProtocolTypeDoNotUse ProtocolType = "DoNotUse" ProtocolTypeEsp ProtocolType = "Esp" ProtocolTypeGre ProtocolType = "Gre" ProtocolTypeIcmp ProtocolType = "Icmp" ProtocolTypeTCP ProtocolType = "Tcp" ProtocolTypeUDP ProtocolType = "Udp" ProtocolTypeVxlan ProtocolType = "Vxlan" )
func PossibleProtocolTypeValues ¶
func PossibleProtocolTypeValues() []ProtocolType
PossibleProtocolTypeValues returns the possible values for the ProtocolType const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The current provisioning state.
const ( ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type PublicIPAddress ¶
type PublicIPAddress struct { // The extended location of the public ip address. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Public IP address properties. Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` // The public IP address SKU. SKU *PublicIPAddressSKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting the IP allocated for the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PublicIPAddress - Public IP address resource.
func (PublicIPAddress) MarshalJSON ¶
func (p PublicIPAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPAddress.
type PublicIPAddressDNSSettings ¶
type PublicIPAddressDNSSettings struct { // The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified // domain name associated with the public IP address. If a domain name label is // specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. DomainNameLabel *string `json:"domainNameLabel,omitempty"` // The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel // and the regionalized DNS zone. Fqdn *string `json:"fqdn,omitempty"` // The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn // is specified, then a PTR DNS record is created pointing from the IP address in // the in-addr.arpa domain to the reverse FQDN. ReverseFqdn *string `json:"reverseFqdn,omitempty"` }
PublicIPAddressDNSSettings - Contains FQDN of the DNS record associated with the public IP address.
type PublicIPAddressListResult ¶
type PublicIPAddressListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of public IP addresses that exists in a resource group. Value []*PublicIPAddress `json:"value,omitempty"` }
PublicIPAddressListResult - Response for ListPublicIpAddresses API service call.
type PublicIPAddressMigrationPhase ¶
type PublicIPAddressMigrationPhase string
PublicIPAddressMigrationPhase - Migration phase of Public IP Address.
const ( PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" )
func PossiblePublicIPAddressMigrationPhaseValues ¶
func PossiblePublicIPAddressMigrationPhaseValues() []PublicIPAddressMigrationPhase
PossiblePublicIPAddressMigrationPhaseValues returns the possible values for the PublicIPAddressMigrationPhase const type.
type PublicIPAddressPropertiesFormat ¶
type PublicIPAddressPropertiesFormat struct { // The FQDN of the DNS record associated with the public IP address. DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` // The DDoS protection custom policy associated with the public IP address. DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` // Specify what happens to the public IP address when the VM using it is deleted DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` // The IP address associated with the public IP address resource. IPAddress *string `json:"ipAddress,omitempty"` // The list of tags associated with the public IP address. IPTags []*IPTag `json:"ipTags,omitempty"` // The idle timeout of the public IP address. IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` // The linked public IP address of the public IP address resource. LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` // Migration phase of Public IP Address. MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` // The NatGateway for the Public IP address. NatGateway *NatGateway `json:"natGateway,omitempty"` // The public IP address version. PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` // The public IP address allocation method. PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` // The Public IP Prefix this Public IP Address should be allocated from. PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` // The service public IP address of the public IP address resource. ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` // READ-ONLY; The IP configuration associated with the public IP address. IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the public IP address resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the public IP address resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
PublicIPAddressPropertiesFormat - Public IP address properties.
func (PublicIPAddressPropertiesFormat) MarshalJSON ¶
func (p PublicIPAddressPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPAddressPropertiesFormat.
type PublicIPAddressSKU ¶
type PublicIPAddressSKU struct { // Name of a public IP address SKU. Name *PublicIPAddressSKUName `json:"name,omitempty"` // Tier of a public IP address SKU. Tier *PublicIPAddressSKUTier `json:"tier,omitempty"` }
PublicIPAddressSKU - SKU of a public IP address.
type PublicIPAddressSKUName ¶
type PublicIPAddressSKUName string
PublicIPAddressSKUName - Name of a public IP address SKU.
const ( PublicIPAddressSKUNameBasic PublicIPAddressSKUName = "Basic" PublicIPAddressSKUNameStandard PublicIPAddressSKUName = "Standard" )
func PossiblePublicIPAddressSKUNameValues ¶
func PossiblePublicIPAddressSKUNameValues() []PublicIPAddressSKUName
PossiblePublicIPAddressSKUNameValues returns the possible values for the PublicIPAddressSKUName const type.
type PublicIPAddressSKUTier ¶
type PublicIPAddressSKUTier string
PublicIPAddressSKUTier - Tier of a public IP address SKU.
const ( PublicIPAddressSKUTierGlobal PublicIPAddressSKUTier = "Global" PublicIPAddressSKUTierRegional PublicIPAddressSKUTier = "Regional" )
func PossiblePublicIPAddressSKUTierValues ¶
func PossiblePublicIPAddressSKUTierValues() []PublicIPAddressSKUTier
PossiblePublicIPAddressSKUTierValues returns the possible values for the PublicIPAddressSKUTier const type.
type PublicIPAddressesClient ¶
type PublicIPAddressesClient struct {
// contains filtered or unexported fields
}
PublicIPAddressesClient contains the methods for the PublicIPAddresses group. Don't use this type directly, use NewPublicIPAddressesClient() instead.
func NewPublicIPAddressesClient ¶
func NewPublicIPAddressesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PublicIPAddressesClient, error)
NewPublicIPAddressesClient creates a new instance of PublicIPAddressesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PublicIPAddressesClient) BeginCreateOrUpdate ¶
func (client *PublicIPAddressesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters PublicIPAddress, options *PublicIPAddressesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PublicIPAddressesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a static or dynamic public IP address. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPAddressName - The name of the public IP address. parameters - Parameters supplied to the create or update public IP address operation. options - PublicIPAddressesClientBeginCreateOrUpdateOptions contains the optional parameters for the PublicIPAddressesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressCreateDns.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-ip", armnetwork.PublicIPAddress{ Location: to.Ptr("eastus"), Properties: &armnetwork.PublicIPAddressPropertiesFormat{ DNSSettings: &armnetwork.PublicIPAddressDNSSettings{ DomainNameLabel: to.Ptr("dnslbl"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*PublicIPAddressesClient) BeginDelete ¶
func (client *PublicIPAddressesClient) BeginDelete(ctx context.Context, resourceGroupName string, publicIPAddressName string, options *PublicIPAddressesClientBeginDeleteOptions) (*runtime.Poller[PublicIPAddressesClientDeleteResponse], error)
BeginDelete - Deletes the specified public IP address. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPAddressName - The name of the public IP address. options - PublicIPAddressesClientBeginDeleteOptions contains the optional parameters for the PublicIPAddressesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-ip", 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 (*PublicIPAddressesClient) Get ¶
func (client *PublicIPAddressesClient) Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, options *PublicIPAddressesClientGetOptions) (PublicIPAddressesClientGetResponse, error)
Get - Gets the specified public IP address in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPAddressName - The name of the public IP address. options - PublicIPAddressesClientGetOptions contains the optional parameters for the PublicIPAddressesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testDNS-ip", &armnetwork.PublicIPAddressesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PublicIPAddressesClient) GetCloudServicePublicIPAddress ¶
func (client *PublicIPAddressesClient) GetCloudServicePublicIPAddress(ctx context.Context, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, ipConfigurationName string, publicIPAddressName string, options *PublicIPAddressesClientGetCloudServicePublicIPAddressOptions) (PublicIPAddressesClientGetCloudServicePublicIPAddressResponse, error)
GetCloudServicePublicIPAddress - Get the specified public IP address in a cloud service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. roleInstanceName - The role instance name. networkInterfaceName - The name of the network interface. ipConfigurationName - The name of the IP configuration. publicIPAddressName - The name of the public IP Address. options - PublicIPAddressesClientGetCloudServicePublicIPAddressOptions contains the optional parameters for the PublicIPAddressesClient.GetCloudServicePublicIPAddress method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServicePublicIpGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetCloudServicePublicIPAddress(ctx, "cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", "pub1", &armnetwork.PublicIPAddressesClientGetCloudServicePublicIPAddressOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress ¶
func (client *PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, ipConfigurationName string, publicIPAddressName string, options *PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions) (PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse, error)
GetVirtualMachineScaleSetPublicIPAddress - Get the specified public IP address in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. networkInterfaceName - The name of the network interface. ipConfigurationName - The name of the IP configuration. publicIPAddressName - The name of the public IP Address. options - PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions contains the optional parameters for the PublicIPAddressesClient.GetVirtualMachineScaleSetPublicIPAddress method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssPublicIpGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetVirtualMachineScaleSetPublicIPAddress(ctx, "vmss-tester", "vmss1", "1", "nic1", "ip1", "pub1", &armnetwork.PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PublicIPAddressesClient) NewListAllPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListAllPager(options *PublicIPAddressesClientListAllOptions) *runtime.Pager[PublicIPAddressesClientListAllResponse]
NewListAllPager - Gets all the public IP addresses in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - PublicIPAddressesClientListAllOptions contains the optional parameters for the PublicIPAddressesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) NewListCloudServicePublicIPAddressesPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListCloudServicePublicIPAddressesPager(resourceGroupName string, cloudServiceName string, options *PublicIPAddressesClientListCloudServicePublicIPAddressesOptions) *runtime.Pager[PublicIPAddressesClientListCloudServicePublicIPAddressesResponse]
NewListCloudServicePublicIPAddressesPager - Gets information about all public IP addresses on a cloud service level. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. options - PublicIPAddressesClientListCloudServicePublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListCloudServicePublicIPAddresses method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServicePublicIpListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListCloudServicePublicIPAddressesPager("cs-tester", "cs1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) NewListCloudServiceRoleInstancePublicIPAddressesPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListCloudServiceRoleInstancePublicIPAddressesPager(resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string, ipConfigurationName string, options *PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions) *runtime.Pager[PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesResponse]
NewListCloudServiceRoleInstancePublicIPAddressesPager - Gets information about all public IP addresses in a role instance IP configuration in a cloud service. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. cloudServiceName - The name of the cloud service. roleInstanceName - The name of role instance. networkInterfaceName - The network interface name. ipConfigurationName - The IP configuration name. options - PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListCloudServiceRoleInstancePublicIPAddresses method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/CloudServiceRoleInstancePublicIpList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListCloudServiceRoleInstancePublicIPAddressesPager("cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) NewListPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListPager(resourceGroupName string, options *PublicIPAddressesClientListOptions) *runtime.Pager[PublicIPAddressesClientListResponse]
NewListPager - Gets all public IP addresses in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - PublicIPAddressesClientListOptions contains the optional parameters for the PublicIPAddressesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) NewListVirtualMachineScaleSetPublicIPAddressesPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListVirtualMachineScaleSetPublicIPAddressesPager(resourceGroupName string, virtualMachineScaleSetName string, options *PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions) *runtime.Pager[PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesResponse]
NewListVirtualMachineScaleSetPublicIPAddressesPager - Gets information about all public IP addresses on a virtual machine scale set level. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. options - PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListVirtualMachineScaleSetPublicIPAddresses method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssPublicIpListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListVirtualMachineScaleSetPublicIPAddressesPager("vmss-tester", "vmss1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) NewListVirtualMachineScaleSetVMPublicIPAddressesPager ¶ added in v0.5.0
func (client *PublicIPAddressesClient) NewListVirtualMachineScaleSetVMPublicIPAddressesPager(resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, ipConfigurationName string, options *PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions) *runtime.Pager[PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesResponse]
NewListVirtualMachineScaleSetVMPublicIPAddressesPager - Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualMachineScaleSetName - The name of the virtual machine scale set. virtualmachineIndex - The virtual machine index. networkInterfaceName - The network interface name. ipConfigurationName - The IP configuration name. options - PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListVirtualMachineScaleSetVMPublicIPAddresses method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VmssVmPublicIpList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListVirtualMachineScaleSetVMPublicIPAddressesPager("vmss-tester", "vmss1", "1", "nic1", "ip1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPAddressesClient) UpdateTags ¶
func (client *PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters TagsObject, options *PublicIPAddressesClientUpdateTagsOptions) (PublicIPAddressesClientUpdateTagsResponse, error)
UpdateTags - Updates public IP address tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPAddressName - The name of the public IP address. parameters - Parameters supplied to update public IP address tags. options - PublicIPAddressesClientUpdateTagsOptions contains the optional parameters for the PublicIPAddressesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpAddressUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPAddressesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-ip", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type PublicIPAddressesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type PublicIPAddressesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PublicIPAddressesClientBeginCreateOrUpdateOptions contains the optional parameters for the PublicIPAddressesClient.BeginCreateOrUpdate method.
type PublicIPAddressesClientBeginDeleteOptions ¶ added in v0.3.0
type PublicIPAddressesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PublicIPAddressesClientBeginDeleteOptions contains the optional parameters for the PublicIPAddressesClient.BeginDelete method.
type PublicIPAddressesClientCreateOrUpdateResponse ¶ added in v0.3.0
type PublicIPAddressesClientCreateOrUpdateResponse struct {
PublicIPAddress
}
PublicIPAddressesClientCreateOrUpdateResponse contains the response from method PublicIPAddressesClient.CreateOrUpdate.
type PublicIPAddressesClientDeleteResponse ¶ added in v0.3.0
type PublicIPAddressesClientDeleteResponse struct { }
PublicIPAddressesClientDeleteResponse contains the response from method PublicIPAddressesClient.Delete.
type PublicIPAddressesClientGetCloudServicePublicIPAddressOptions ¶ added in v0.3.0
type PublicIPAddressesClientGetCloudServicePublicIPAddressOptions struct { // Expands referenced resources. Expand *string }
PublicIPAddressesClientGetCloudServicePublicIPAddressOptions contains the optional parameters for the PublicIPAddressesClient.GetCloudServicePublicIPAddress method.
type PublicIPAddressesClientGetCloudServicePublicIPAddressResponse ¶ added in v0.3.0
type PublicIPAddressesClientGetCloudServicePublicIPAddressResponse struct {
PublicIPAddress
}
PublicIPAddressesClientGetCloudServicePublicIPAddressResponse contains the response from method PublicIPAddressesClient.GetCloudServicePublicIPAddress.
type PublicIPAddressesClientGetOptions ¶ added in v0.3.0
type PublicIPAddressesClientGetOptions struct { // Expands referenced resources. Expand *string }
PublicIPAddressesClientGetOptions contains the optional parameters for the PublicIPAddressesClient.Get method.
type PublicIPAddressesClientGetResponse ¶ added in v0.3.0
type PublicIPAddressesClientGetResponse struct {
PublicIPAddress
}
PublicIPAddressesClientGetResponse contains the response from method PublicIPAddressesClient.Get.
type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions ¶ added in v0.3.0
type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions struct { // Expands referenced resources. Expand *string }
PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions contains the optional parameters for the PublicIPAddressesClient.GetVirtualMachineScaleSetPublicIPAddress method.
type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse ¶ added in v0.3.0
type PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse struct {
PublicIPAddress
}
PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse contains the response from method PublicIPAddressesClient.GetVirtualMachineScaleSetPublicIPAddress.
type PublicIPAddressesClientListAllOptions ¶ added in v0.3.0
type PublicIPAddressesClientListAllOptions struct { }
PublicIPAddressesClientListAllOptions contains the optional parameters for the PublicIPAddressesClient.ListAll method.
type PublicIPAddressesClientListAllResponse ¶ added in v0.3.0
type PublicIPAddressesClientListAllResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListAllResponse contains the response from method PublicIPAddressesClient.ListAll.
type PublicIPAddressesClientListCloudServicePublicIPAddressesOptions ¶ added in v0.3.0
type PublicIPAddressesClientListCloudServicePublicIPAddressesOptions struct { }
PublicIPAddressesClientListCloudServicePublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListCloudServicePublicIPAddresses method.
type PublicIPAddressesClientListCloudServicePublicIPAddressesResponse ¶ added in v0.3.0
type PublicIPAddressesClientListCloudServicePublicIPAddressesResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListCloudServicePublicIPAddressesResponse contains the response from method PublicIPAddressesClient.ListCloudServicePublicIPAddresses.
type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions ¶ added in v0.3.0
type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions struct { }
PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListCloudServiceRoleInstancePublicIPAddresses method.
type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesResponse ¶ added in v0.3.0
type PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListCloudServiceRoleInstancePublicIPAddressesResponse contains the response from method PublicIPAddressesClient.ListCloudServiceRoleInstancePublicIPAddresses.
type PublicIPAddressesClientListOptions ¶ added in v0.3.0
type PublicIPAddressesClientListOptions struct { }
PublicIPAddressesClientListOptions contains the optional parameters for the PublicIPAddressesClient.List method.
type PublicIPAddressesClientListResponse ¶ added in v0.3.0
type PublicIPAddressesClientListResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListResponse contains the response from method PublicIPAddressesClient.List.
type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions ¶ added in v0.3.0
type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions struct { }
PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListVirtualMachineScaleSetPublicIPAddresses method.
type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesResponse ¶ added in v0.3.0
type PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListVirtualMachineScaleSetPublicIPAddressesResponse contains the response from method PublicIPAddressesClient.ListVirtualMachineScaleSetPublicIPAddresses.
type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions ¶ added in v0.3.0
type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions struct { }
PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesOptions contains the optional parameters for the PublicIPAddressesClient.ListVirtualMachineScaleSetVMPublicIPAddresses method.
type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesResponse ¶ added in v0.3.0
type PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesResponse struct {
PublicIPAddressListResult
}
PublicIPAddressesClientListVirtualMachineScaleSetVMPublicIPAddressesResponse contains the response from method PublicIPAddressesClient.ListVirtualMachineScaleSetVMPublicIPAddresses.
type PublicIPAddressesClientUpdateTagsOptions ¶ added in v0.3.0
type PublicIPAddressesClientUpdateTagsOptions struct { }
PublicIPAddressesClientUpdateTagsOptions contains the optional parameters for the PublicIPAddressesClient.UpdateTags method.
type PublicIPAddressesClientUpdateTagsResponse ¶ added in v0.3.0
type PublicIPAddressesClientUpdateTagsResponse struct {
PublicIPAddress
}
PublicIPAddressesClientUpdateTagsResponse contains the response from method PublicIPAddressesClient.UpdateTags.
type PublicIPPrefix ¶
type PublicIPPrefix struct { // The extended location of the public ip address. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Public IP prefix properties. Properties *PublicIPPrefixPropertiesFormat `json:"properties,omitempty"` // The public IP prefix SKU. SKU *PublicIPPrefixSKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // A list of availability zones denoting the IP allocated for the resource needs to come from. Zones []*string `json:"zones,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PublicIPPrefix - Public IP prefix resource.
func (PublicIPPrefix) MarshalJSON ¶
func (p PublicIPPrefix) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPPrefix.
type PublicIPPrefixListResult ¶
type PublicIPPrefixListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of public IP prefixes that exists in a resource group. Value []*PublicIPPrefix `json:"value,omitempty"` }
PublicIPPrefixListResult - Response for ListPublicIpPrefixes API service call.
type PublicIPPrefixPropertiesFormat ¶
type PublicIPPrefixPropertiesFormat struct { // The customIpPrefix that this prefix is associated with. CustomIPPrefix *SubResource `json:"customIPPrefix,omitempty"` // The list of tags associated with the public IP prefix. IPTags []*IPTag `json:"ipTags,omitempty"` // NatGateway of Public IP Prefix. NatGateway *NatGateway `json:"natGateway,omitempty"` // The Length of the Public IP Prefix. PrefixLength *int32 `json:"prefixLength,omitempty"` // The public IP address version. PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` // READ-ONLY; The allocated Prefix. IPPrefix *string `json:"ipPrefix,omitempty" azure:"ro"` // READ-ONLY; The reference to load balancer frontend IP configuration associated with the public IP prefix. LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIpConfiguration,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the public IP prefix resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The list of all referenced PublicIPAddresses. PublicIPAddresses []*ReferencedPublicIPAddress `json:"publicIPAddresses,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the public IP prefix resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
PublicIPPrefixPropertiesFormat - Public IP prefix properties.
func (PublicIPPrefixPropertiesFormat) MarshalJSON ¶
func (p PublicIPPrefixPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPPrefixPropertiesFormat.
type PublicIPPrefixSKU ¶
type PublicIPPrefixSKU struct { // Name of a public IP prefix SKU. Name *PublicIPPrefixSKUName `json:"name,omitempty"` // Tier of a public IP prefix SKU. Tier *PublicIPPrefixSKUTier `json:"tier,omitempty"` }
PublicIPPrefixSKU - SKU of a public IP prefix.
type PublicIPPrefixSKUName ¶
type PublicIPPrefixSKUName string
PublicIPPrefixSKUName - Name of a public IP prefix SKU.
const (
PublicIPPrefixSKUNameStandard PublicIPPrefixSKUName = "Standard"
)
func PossiblePublicIPPrefixSKUNameValues ¶
func PossiblePublicIPPrefixSKUNameValues() []PublicIPPrefixSKUName
PossiblePublicIPPrefixSKUNameValues returns the possible values for the PublicIPPrefixSKUName const type.
type PublicIPPrefixSKUTier ¶
type PublicIPPrefixSKUTier string
PublicIPPrefixSKUTier - Tier of a public IP prefix SKU.
const ( PublicIPPrefixSKUTierGlobal PublicIPPrefixSKUTier = "Global" PublicIPPrefixSKUTierRegional PublicIPPrefixSKUTier = "Regional" )
func PossiblePublicIPPrefixSKUTierValues ¶
func PossiblePublicIPPrefixSKUTierValues() []PublicIPPrefixSKUTier
PossiblePublicIPPrefixSKUTierValues returns the possible values for the PublicIPPrefixSKUTier const type.
type PublicIPPrefixesClient ¶
type PublicIPPrefixesClient struct {
// contains filtered or unexported fields
}
PublicIPPrefixesClient contains the methods for the PublicIPPrefixes group. Don't use this type directly, use NewPublicIPPrefixesClient() instead.
func NewPublicIPPrefixesClient ¶
func NewPublicIPPrefixesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PublicIPPrefixesClient, error)
NewPublicIPPrefixesClient creates a new instance of PublicIPPrefixesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PublicIPPrefixesClient) BeginCreateOrUpdate ¶
func (client *PublicIPPrefixesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters PublicIPPrefix, options *PublicIPPrefixesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PublicIPPrefixesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a static or dynamic public IP prefix. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPPrefixName - The name of the public IP prefix. parameters - Parameters supplied to the create or update public IP prefix operation. options - PublicIPPrefixesClientBeginCreateOrUpdateOptions contains the optional parameters for the PublicIPPrefixesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixCreateCustomizedValues.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-ipprefix", armnetwork.PublicIPPrefix{ Location: to.Ptr("westus"), Properties: &armnetwork.PublicIPPrefixPropertiesFormat{ PrefixLength: to.Ptr[int32](30), PublicIPAddressVersion: to.Ptr(armnetwork.IPVersionIPv4), }, SKU: &armnetwork.PublicIPPrefixSKU{ Name: to.Ptr(armnetwork.PublicIPPrefixSKUNameStandard), Tier: to.Ptr(armnetwork.PublicIPPrefixSKUTierRegional), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*PublicIPPrefixesClient) BeginDelete ¶
func (client *PublicIPPrefixesClient) BeginDelete(ctx context.Context, resourceGroupName string, publicIPPrefixName string, options *PublicIPPrefixesClientBeginDeleteOptions) (*runtime.Poller[PublicIPPrefixesClientDeleteResponse], error)
BeginDelete - Deletes the specified public IP prefix. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPPrefixName - The name of the PublicIpPrefix. options - PublicIPPrefixesClientBeginDeleteOptions contains the optional parameters for the PublicIPPrefixesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-ipprefix", 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 (*PublicIPPrefixesClient) Get ¶
func (client *PublicIPPrefixesClient) Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, options *PublicIPPrefixesClientGetOptions) (PublicIPPrefixesClientGetResponse, error)
Get - Gets the specified public IP prefix in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPPrefixName - The name of the public IP prefix. options - PublicIPPrefixesClientGetOptions contains the optional parameters for the PublicIPPrefixesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-ipprefix", &armnetwork.PublicIPPrefixesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PublicIPPrefixesClient) NewListAllPager ¶ added in v0.5.0
func (client *PublicIPPrefixesClient) NewListAllPager(options *PublicIPPrefixesClientListAllOptions) *runtime.Pager[PublicIPPrefixesClientListAllResponse]
NewListAllPager - Gets all the public IP prefixes in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - PublicIPPrefixesClientListAllOptions contains the optional parameters for the PublicIPPrefixesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPPrefixesClient) NewListPager ¶ added in v0.5.0
func (client *PublicIPPrefixesClient) NewListPager(resourceGroupName string, options *PublicIPPrefixesClientListOptions) *runtime.Pager[PublicIPPrefixesClientListResponse]
NewListPager - Gets all public IP prefixes in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - PublicIPPrefixesClientListOptions contains the optional parameters for the PublicIPPrefixesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PublicIPPrefixesClient) UpdateTags ¶
func (client *PublicIPPrefixesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters TagsObject, options *PublicIPPrefixesClientUpdateTagsOptions) (PublicIPPrefixesClientUpdateTagsResponse, error)
UpdateTags - Updates public IP prefix tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. publicIPPrefixName - The name of the public IP prefix. parameters - Parameters supplied to update public IP prefix tags. options - PublicIPPrefixesClientUpdateTagsOptions contains the optional parameters for the PublicIPPrefixesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/PublicIpPrefixUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewPublicIPPrefixesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-ipprefix", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type PublicIPPrefixesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type PublicIPPrefixesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PublicIPPrefixesClientBeginCreateOrUpdateOptions contains the optional parameters for the PublicIPPrefixesClient.BeginCreateOrUpdate method.
type PublicIPPrefixesClientBeginDeleteOptions ¶ added in v0.3.0
type PublicIPPrefixesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PublicIPPrefixesClientBeginDeleteOptions contains the optional parameters for the PublicIPPrefixesClient.BeginDelete method.
type PublicIPPrefixesClientCreateOrUpdateResponse ¶ added in v0.3.0
type PublicIPPrefixesClientCreateOrUpdateResponse struct {
PublicIPPrefix
}
PublicIPPrefixesClientCreateOrUpdateResponse contains the response from method PublicIPPrefixesClient.CreateOrUpdate.
type PublicIPPrefixesClientDeleteResponse ¶ added in v0.3.0
type PublicIPPrefixesClientDeleteResponse struct { }
PublicIPPrefixesClientDeleteResponse contains the response from method PublicIPPrefixesClient.Delete.
type PublicIPPrefixesClientGetOptions ¶ added in v0.3.0
type PublicIPPrefixesClientGetOptions struct { // Expands referenced resources. Expand *string }
PublicIPPrefixesClientGetOptions contains the optional parameters for the PublicIPPrefixesClient.Get method.
type PublicIPPrefixesClientGetResponse ¶ added in v0.3.0
type PublicIPPrefixesClientGetResponse struct {
PublicIPPrefix
}
PublicIPPrefixesClientGetResponse contains the response from method PublicIPPrefixesClient.Get.
type PublicIPPrefixesClientListAllOptions ¶ added in v0.3.0
type PublicIPPrefixesClientListAllOptions struct { }
PublicIPPrefixesClientListAllOptions contains the optional parameters for the PublicIPPrefixesClient.ListAll method.
type PublicIPPrefixesClientListAllResponse ¶ added in v0.3.0
type PublicIPPrefixesClientListAllResponse struct {
PublicIPPrefixListResult
}
PublicIPPrefixesClientListAllResponse contains the response from method PublicIPPrefixesClient.ListAll.
type PublicIPPrefixesClientListOptions ¶ added in v0.3.0
type PublicIPPrefixesClientListOptions struct { }
PublicIPPrefixesClientListOptions contains the optional parameters for the PublicIPPrefixesClient.List method.
type PublicIPPrefixesClientListResponse ¶ added in v0.3.0
type PublicIPPrefixesClientListResponse struct {
PublicIPPrefixListResult
}
PublicIPPrefixesClientListResponse contains the response from method PublicIPPrefixesClient.List.
type PublicIPPrefixesClientUpdateTagsOptions ¶ added in v0.3.0
type PublicIPPrefixesClientUpdateTagsOptions struct { }
PublicIPPrefixesClientUpdateTagsOptions contains the optional parameters for the PublicIPPrefixesClient.UpdateTags method.
type PublicIPPrefixesClientUpdateTagsResponse ¶ added in v0.3.0
type PublicIPPrefixesClientUpdateTagsResponse struct {
PublicIPPrefix
}
PublicIPPrefixesClientUpdateTagsResponse contains the response from method PublicIPPrefixesClient.UpdateTags.
type QosDefinition ¶
type QosDefinition struct { // Destination IP ranges. DestinationIPRanges []*QosIPRange `json:"destinationIpRanges,omitempty"` // Destination port ranges. DestinationPortRanges []*QosPortRange `json:"destinationPortRanges,omitempty"` // List of markings to be used in the configuration. Markings []*int32 `json:"markings,omitempty"` // RNM supported protocol types. Protocol *ProtocolType `json:"protocol,omitempty"` // Source IP ranges. SourceIPRanges []*QosIPRange `json:"sourceIpRanges,omitempty"` // Sources port ranges. SourcePortRanges []*QosPortRange `json:"sourcePortRanges,omitempty"` }
QosDefinition - Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.
func (QosDefinition) MarshalJSON ¶
func (q QosDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QosDefinition.
type QosIPRange ¶
type QosIPRange struct { // End IP Address. EndIP *string `json:"endIP,omitempty"` // Start IP Address. StartIP *string `json:"startIP,omitempty"` }
QosIPRange - Qos Traffic Profiler IP Range properties.
type QosPortRange ¶
type QosPortRange struct { // Qos Port Range end. End *int32 `json:"end,omitempty"` // Qos Port Range start. Start *int32 `json:"start,omitempty"` }
QosPortRange - Qos Traffic Profiler Port range properties.
type QueryInboundNatRulePortMappingRequest ¶ added in v0.2.0
type QueryInboundNatRulePortMappingRequest struct { // IP address set in load balancer backend address. IPAddress *string `json:"ipAddress,omitempty"` // NetworkInterfaceIPConfiguration set in load balancer backend address. IPConfiguration *SubResource `json:"ipConfiguration,omitempty"` }
QueryInboundNatRulePortMappingRequest - The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set
type QueryResults ¶ added in v0.2.0
type QueryResults struct { // Number of total records matching the query. MatchingRecordsCount *int64 `json:"matchingRecordsCount,omitempty"` // Array containing the results of the query Signatures []*SingleQueryResult `json:"signatures,omitempty"` }
QueryResults - Query result
type QueryTroubleshootingParameters ¶
type QueryTroubleshootingParameters struct { // REQUIRED; The target resource ID to query the troubleshooting result. TargetResourceID *string `json:"targetResourceId,omitempty"` }
QueryTroubleshootingParameters - Parameters that define the resource to query the troubleshooting result.
type RadiusServer ¶
type RadiusServer struct { // REQUIRED; The address of this radius server. RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` // The initial score assigned to this radius server. RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` // The secret used for this radius server. RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` }
RadiusServer - Radius Server Settings.
type RecordSet ¶
type RecordSet struct { // Fqdn that resolves to private endpoint ip address. Fqdn *string `json:"fqdn,omitempty"` // The private ip address of the private endpoint. IPAddresses []*string `json:"ipAddresses,omitempty"` // Recordset name. RecordSetName *string `json:"recordSetName,omitempty"` // Resource record type. RecordType *string `json:"recordType,omitempty"` // Recordset time to live. TTL *int32 `json:"ttl,omitempty"` // READ-ONLY; The provisioning state of the recordset. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RecordSet - A collective group of information about the record set information.
func (RecordSet) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type RecordSet.
type ReferencedPublicIPAddress ¶
type ReferencedPublicIPAddress struct { // The PublicIPAddress Reference. ID *string `json:"id,omitempty"` }
ReferencedPublicIPAddress - Reference to a public IP address.
type Resource ¶
type Resource struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common resource representation.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
const ( ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" ResourceIdentityTypeNone ResourceIdentityType = "None" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
type ResourceNavigationLink ¶
type ResourceNavigationLink struct { string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` Etag *string `json:"etag,omitempty" azure:"ro"` Type *string `json:"type,omitempty" azure:"ro"` }ID *
ResourceNavigationLink resource.
type ResourceNavigationLinkFormat ¶
type ResourceNavigationLinkFormat struct { string `json:"link,omitempty"` LinkedResourceType *string `json:"linkedResourceType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }Link *
ResourceNavigationLinkFormat - Properties of ResourceNavigationLink.
type ResourceNavigationLinksClient ¶
type ResourceNavigationLinksClient struct {
// contains filtered or unexported fields
}
ResourceNavigationLinksClient contains the methods for the ResourceNavigationLinks group. Don't use this type directly, use NewResourceNavigationLinksClient() instead.
func NewResourceNavigationLinksClient ¶
func NewResourceNavigationLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceNavigationLinksClient, error)
NewResourceNavigationLinksClient creates a new instance of ResourceNavigationLinksClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ResourceNavigationLinksClient) List ¶
func (client *ResourceNavigationLinksClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *ResourceNavigationLinksClientListOptions) (ResourceNavigationLinksClientListResponse, error)
List - Gets a list of resource navigation links for a subnet. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. options - ResourceNavigationLinksClientListOptions contains the optional parameters for the ResourceNavigationLinksClient.List method.
type ResourceNavigationLinksClientListOptions ¶ added in v0.3.0
type ResourceNavigationLinksClientListOptions struct { }
ResourceNavigationLinksClientListOptions contains the optional parameters for the ResourceNavigationLinksClient.List method.
type ResourceNavigationLinksClientListResponse ¶ added in v0.3.0
type ResourceNavigationLinksClientListResponse struct {
}ResourceNavigationLinksClientListResponse contains the response from method ResourceNavigationLinksClient.List.
type ResourceNavigationLinksListResult ¶
type ResourceNavigationLinksListResult struct { ResourceNavigationLink `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty" azure:"ro"` }Value []*
ResourceNavigationLinksListResult - Response for ResourceNavigationLinks_List operation.
type ResourceSet ¶
type ResourceSet struct { // The list of subscriptions. Subscriptions []*string `json:"subscriptions,omitempty"` }
ResourceSet - The base resource set for visibility and auto-approval.
func (ResourceSet) MarshalJSON ¶
func (r ResourceSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSet.
type RetentionPolicyParameters ¶
type RetentionPolicyParameters struct { // Number of days to retain flow log records. Days *int32 `json:"days,omitempty"` // Flag to enable/disable retention. Enabled *bool `json:"enabled,omitempty"` }
RetentionPolicyParameters - Parameters that define the retention policy for flow log.
type Route ¶
type Route struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the route. Properties *RoutePropertiesFormat `json:"properties,omitempty"` // The type of the resource. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
Route resource.
type RouteFilter ¶
type RouteFilter struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the route filter. Properties *RouteFilterPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
RouteFilter - Route Filter Resource.
func (RouteFilter) MarshalJSON ¶
func (r RouteFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RouteFilter.
type RouteFilterListResult ¶
type RouteFilterListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of route filters in a resource group. Value []*RouteFilter `json:"value,omitempty"` }
RouteFilterListResult - Response for the ListRouteFilters API service call.
type RouteFilterPropertiesFormat ¶
type RouteFilterPropertiesFormat struct { // Collection of RouteFilterRules contained within a route filter. Rules []*RouteFilterRule `json:"rules,omitempty"` // READ-ONLY; A collection of references to express route circuit ipv6 peerings. IPv6Peerings []*ExpressRouteCircuitPeering `json:"ipv6Peerings,omitempty" azure:"ro"` // READ-ONLY; A collection of references to express route circuit peerings. Peerings []*ExpressRouteCircuitPeering `json:"peerings,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the route filter resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RouteFilterPropertiesFormat - Route Filter Resource.
func (RouteFilterPropertiesFormat) MarshalJSON ¶
func (r RouteFilterPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RouteFilterPropertiesFormat.
type RouteFilterRule ¶
type RouteFilterRule struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the route filter rule. Properties *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
RouteFilterRule - Route Filter Rule Resource.
type RouteFilterRuleListResult ¶
type RouteFilterRuleListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of RouteFilterRules in a resource group. Value []*RouteFilterRule `json:"value,omitempty"` }
RouteFilterRuleListResult - Response for the ListRouteFilterRules API service call.
type RouteFilterRulePropertiesFormat ¶
type RouteFilterRulePropertiesFormat struct { // REQUIRED; The access type of the rule. Access *Access `json:"access,omitempty"` // REQUIRED; The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. Communities []*string `json:"communities,omitempty"` // REQUIRED; The rule type of the rule. RouteFilterRuleType *RouteFilterRuleType `json:"routeFilterRuleType,omitempty"` // READ-ONLY; The provisioning state of the route filter rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RouteFilterRulePropertiesFormat - Route Filter Rule Resource.
func (RouteFilterRulePropertiesFormat) MarshalJSON ¶
func (r RouteFilterRulePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RouteFilterRulePropertiesFormat.
type RouteFilterRuleType ¶
type RouteFilterRuleType string
RouteFilterRuleType - The rule type of the rule.
const (
RouteFilterRuleTypeCommunity RouteFilterRuleType = "Community"
)
func PossibleRouteFilterRuleTypeValues ¶
func PossibleRouteFilterRuleTypeValues() []RouteFilterRuleType
PossibleRouteFilterRuleTypeValues returns the possible values for the RouteFilterRuleType const type.
type RouteFilterRulesClient ¶
type RouteFilterRulesClient struct {
// contains filtered or unexported fields
}
RouteFilterRulesClient contains the methods for the RouteFilterRules group. Don't use this type directly, use NewRouteFilterRulesClient() instead.
func NewRouteFilterRulesClient ¶
func NewRouteFilterRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RouteFilterRulesClient, error)
NewRouteFilterRulesClient creates a new instance of RouteFilterRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RouteFilterRulesClient) BeginCreateOrUpdate ¶
func (client *RouteFilterRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters RouteFilterRule, options *RouteFilterRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[RouteFilterRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a route in the specified route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. ruleName - The name of the route filter rule. routeFilterRuleParameters - Parameters supplied to the create or update route filter rule operation. options - RouteFilterRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteFilterRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterRuleCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFilterRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "filterName", "ruleName", armnetwork.RouteFilterRule{ Properties: &armnetwork.RouteFilterRulePropertiesFormat{ Access: to.Ptr(armnetwork.AccessAllow), Communities: []*string{ to.Ptr("12076:5030"), to.Ptr("12076:5040")}, RouteFilterRuleType: to.Ptr(armnetwork.RouteFilterRuleTypeCommunity), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*RouteFilterRulesClient) BeginDelete ¶
func (client *RouteFilterRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, options *RouteFilterRulesClientBeginDeleteOptions) (*runtime.Poller[RouteFilterRulesClientDeleteResponse], error)
BeginDelete - Deletes the specified rule from a route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. ruleName - The name of the rule. options - RouteFilterRulesClientBeginDeleteOptions contains the optional parameters for the RouteFilterRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterRuleDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFilterRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "filterName", "ruleName", 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 (*RouteFilterRulesClient) Get ¶
func (client *RouteFilterRulesClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, options *RouteFilterRulesClientGetOptions) (RouteFilterRulesClientGetResponse, error)
Get - Gets the specified rule from a route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. ruleName - The name of the rule. options - RouteFilterRulesClientGetOptions contains the optional parameters for the RouteFilterRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFilterRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "filterName", "filterName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RouteFilterRulesClient) NewListByRouteFilterPager ¶ added in v0.5.0
func (client *RouteFilterRulesClient) NewListByRouteFilterPager(resourceGroupName string, routeFilterName string, options *RouteFilterRulesClientListByRouteFilterOptions) *runtime.Pager[RouteFilterRulesClientListByRouteFilterResponse]
NewListByRouteFilterPager - Gets all RouteFilterRules in a route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. options - RouteFilterRulesClientListByRouteFilterOptions contains the optional parameters for the RouteFilterRulesClient.ListByRouteFilter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterRuleListByRouteFilter.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFilterRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByRouteFilterPager("rg1", "filterName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RouteFilterRulesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type RouteFilterRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteFilterRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteFilterRulesClient.BeginCreateOrUpdate method.
type RouteFilterRulesClientBeginDeleteOptions ¶ added in v0.3.0
type RouteFilterRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteFilterRulesClientBeginDeleteOptions contains the optional parameters for the RouteFilterRulesClient.BeginDelete method.
type RouteFilterRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type RouteFilterRulesClientCreateOrUpdateResponse struct {
RouteFilterRule
}
RouteFilterRulesClientCreateOrUpdateResponse contains the response from method RouteFilterRulesClient.CreateOrUpdate.
type RouteFilterRulesClientDeleteResponse ¶ added in v0.3.0
type RouteFilterRulesClientDeleteResponse struct { }
RouteFilterRulesClientDeleteResponse contains the response from method RouteFilterRulesClient.Delete.
type RouteFilterRulesClientGetOptions ¶ added in v0.3.0
type RouteFilterRulesClientGetOptions struct { }
RouteFilterRulesClientGetOptions contains the optional parameters for the RouteFilterRulesClient.Get method.
type RouteFilterRulesClientGetResponse ¶ added in v0.3.0
type RouteFilterRulesClientGetResponse struct {
RouteFilterRule
}
RouteFilterRulesClientGetResponse contains the response from method RouteFilterRulesClient.Get.
type RouteFilterRulesClientListByRouteFilterOptions ¶ added in v0.3.0
type RouteFilterRulesClientListByRouteFilterOptions struct { }
RouteFilterRulesClientListByRouteFilterOptions contains the optional parameters for the RouteFilterRulesClient.ListByRouteFilter method.
type RouteFilterRulesClientListByRouteFilterResponse ¶ added in v0.3.0
type RouteFilterRulesClientListByRouteFilterResponse struct {
RouteFilterRuleListResult
}
RouteFilterRulesClientListByRouteFilterResponse contains the response from method RouteFilterRulesClient.ListByRouteFilter.
type RouteFiltersClient ¶
type RouteFiltersClient struct {
// contains filtered or unexported fields
}
RouteFiltersClient contains the methods for the RouteFilters group. Don't use this type directly, use NewRouteFiltersClient() instead.
func NewRouteFiltersClient ¶
func NewRouteFiltersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RouteFiltersClient, error)
NewRouteFiltersClient creates a new instance of RouteFiltersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RouteFiltersClient) BeginCreateOrUpdate ¶
func (client *RouteFiltersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters RouteFilter, options *RouteFiltersClientBeginCreateOrUpdateOptions) (*runtime.Poller[RouteFiltersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a route filter in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. routeFilterParameters - Parameters supplied to the create or update route filter operation. options - RouteFiltersClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteFiltersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "filterName", armnetwork.RouteFilter{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.RouteFilterPropertiesFormat{ Rules: []*armnetwork.RouteFilterRule{ { Name: to.Ptr("ruleName"), Properties: &armnetwork.RouteFilterRulePropertiesFormat{ Access: to.Ptr(armnetwork.AccessAllow), Communities: []*string{ to.Ptr("12076:5030"), to.Ptr("12076:5040")}, RouteFilterRuleType: to.Ptr(armnetwork.RouteFilterRuleTypeCommunity), }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*RouteFiltersClient) BeginDelete ¶
func (client *RouteFiltersClient) BeginDelete(ctx context.Context, resourceGroupName string, routeFilterName string, options *RouteFiltersClientBeginDeleteOptions) (*runtime.Poller[RouteFiltersClientDeleteResponse], error)
BeginDelete - Deletes the specified route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. options - RouteFiltersClientBeginDeleteOptions contains the optional parameters for the RouteFiltersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "filterName", 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 (*RouteFiltersClient) Get ¶
func (client *RouteFiltersClient) Get(ctx context.Context, resourceGroupName string, routeFilterName string, options *RouteFiltersClientGetOptions) (RouteFiltersClientGetResponse, error)
Get - Gets the specified route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. options - RouteFiltersClientGetOptions contains the optional parameters for the RouteFiltersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "filterName", &armnetwork.RouteFiltersClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RouteFiltersClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *RouteFiltersClient) NewListByResourceGroupPager(resourceGroupName string, options *RouteFiltersClientListByResourceGroupOptions) *runtime.Pager[RouteFiltersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all route filters in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - RouteFiltersClientListByResourceGroupOptions contains the optional parameters for the RouteFiltersClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RouteFiltersClient) NewListPager ¶ added in v0.5.0
func (client *RouteFiltersClient) NewListPager(options *RouteFiltersClientListOptions) *runtime.Pager[RouteFiltersClientListResponse]
NewListPager - Gets all route filters in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - RouteFiltersClientListOptions contains the optional parameters for the RouteFiltersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RouteFiltersClient) UpdateTags ¶
func (client *RouteFiltersClient) UpdateTags(ctx context.Context, resourceGroupName string, routeFilterName string, parameters TagsObject, options *RouteFiltersClientUpdateTagsOptions) (RouteFiltersClientUpdateTagsResponse, error)
UpdateTags - Updates tags of a route filter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeFilterName - The name of the route filter. parameters - Parameters supplied to update route filter tags. options - RouteFiltersClientUpdateTagsOptions contains the optional parameters for the RouteFiltersClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteFilterUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteFiltersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "filterName", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type RouteFiltersClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type RouteFiltersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteFiltersClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteFiltersClient.BeginCreateOrUpdate method.
type RouteFiltersClientBeginDeleteOptions ¶ added in v0.3.0
type RouteFiltersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteFiltersClientBeginDeleteOptions contains the optional parameters for the RouteFiltersClient.BeginDelete method.
type RouteFiltersClientCreateOrUpdateResponse ¶ added in v0.3.0
type RouteFiltersClientCreateOrUpdateResponse struct {
RouteFilter
}
RouteFiltersClientCreateOrUpdateResponse contains the response from method RouteFiltersClient.CreateOrUpdate.
type RouteFiltersClientDeleteResponse ¶ added in v0.3.0
type RouteFiltersClientDeleteResponse struct { }
RouteFiltersClientDeleteResponse contains the response from method RouteFiltersClient.Delete.
type RouteFiltersClientGetOptions ¶ added in v0.3.0
type RouteFiltersClientGetOptions struct { // Expands referenced express route bgp peering resources. Expand *string }
RouteFiltersClientGetOptions contains the optional parameters for the RouteFiltersClient.Get method.
type RouteFiltersClientGetResponse ¶ added in v0.3.0
type RouteFiltersClientGetResponse struct {
RouteFilter
}
RouteFiltersClientGetResponse contains the response from method RouteFiltersClient.Get.
type RouteFiltersClientListByResourceGroupOptions ¶ added in v0.3.0
type RouteFiltersClientListByResourceGroupOptions struct { }
RouteFiltersClientListByResourceGroupOptions contains the optional parameters for the RouteFiltersClient.ListByResourceGroup method.
type RouteFiltersClientListByResourceGroupResponse ¶ added in v0.3.0
type RouteFiltersClientListByResourceGroupResponse struct {
RouteFilterListResult
}
RouteFiltersClientListByResourceGroupResponse contains the response from method RouteFiltersClient.ListByResourceGroup.
type RouteFiltersClientListOptions ¶ added in v0.3.0
type RouteFiltersClientListOptions struct { }
RouteFiltersClientListOptions contains the optional parameters for the RouteFiltersClient.List method.
type RouteFiltersClientListResponse ¶ added in v0.3.0
type RouteFiltersClientListResponse struct {
RouteFilterListResult
}
RouteFiltersClientListResponse contains the response from method RouteFiltersClient.List.
type RouteFiltersClientUpdateTagsOptions ¶ added in v0.3.0
type RouteFiltersClientUpdateTagsOptions struct { }
RouteFiltersClientUpdateTagsOptions contains the optional parameters for the RouteFiltersClient.UpdateTags method.
type RouteFiltersClientUpdateTagsResponse ¶ added in v0.3.0
type RouteFiltersClientUpdateTagsResponse struct {
RouteFilter
}
RouteFiltersClientUpdateTagsResponse contains the response from method RouteFiltersClient.UpdateTags.
type RouteListResult ¶
type RouteListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of routes in a resource group. Value []*Route `json:"value,omitempty"` }
RouteListResult - Response for the ListRoute API service call.
type RouteNextHopType ¶
type RouteNextHopType string
RouteNextHopType - The type of Azure hop the packet should be sent to.
const ( RouteNextHopTypeInternet RouteNextHopType = "Internet" RouteNextHopTypeNone RouteNextHopType = "None" RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" )
func PossibleRouteNextHopTypeValues ¶
func PossibleRouteNextHopTypeValues() []RouteNextHopType
PossibleRouteNextHopTypeValues returns the possible values for the RouteNextHopType const type.
type RoutePropertiesFormat ¶
type RoutePropertiesFormat struct { // REQUIRED; The type of Azure hop the packet should be sent to. NextHopType *RouteNextHopType `json:"nextHopType,omitempty"` // The destination CIDR to which the route applies. AddressPrefix *string `json:"addressPrefix,omitempty"` // A value indicating whether this route overrides overlapping BGP routes regardless of LPM. HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` // The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` // READ-ONLY; The provisioning state of the route resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RoutePropertiesFormat - Route resource.
type RouteTable ¶
type RouteTable struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the route table. Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
RouteTable - Route table resource.
func (RouteTable) MarshalJSON ¶
func (r RouteTable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RouteTable.
type RouteTableListResult ¶
type RouteTableListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of route tables in a resource group. Value []*RouteTable `json:"value,omitempty"` }
RouteTableListResult - Response for the ListRouteTable API service call.
type RouteTablePropertiesFormat ¶
type RouteTablePropertiesFormat struct { // Whether to disable the routes learned by BGP on that route table. True means disable. DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` // Collection of routes contained within a route table. Routes []*Route `json:"routes,omitempty"` // READ-ONLY; The provisioning state of the route table resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the route table. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; A collection of references to subnets. Subnets []*Subnet `json:"subnets,omitempty" azure:"ro"` }
RouteTablePropertiesFormat - Route Table resource.
func (RouteTablePropertiesFormat) MarshalJSON ¶
func (r RouteTablePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RouteTablePropertiesFormat.
type RouteTablesClient ¶
type RouteTablesClient struct {
// contains filtered or unexported fields
}
RouteTablesClient contains the methods for the RouteTables group. Don't use this type directly, use NewRouteTablesClient() instead.
func NewRouteTablesClient ¶
func NewRouteTablesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RouteTablesClient, error)
NewRouteTablesClient creates a new instance of RouteTablesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RouteTablesClient) BeginCreateOrUpdate ¶
func (client *RouteTablesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, parameters RouteTable, options *RouteTablesClientBeginCreateOrUpdateOptions) (*runtime.Poller[RouteTablesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or updates a route table in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. parameters - Parameters supplied to the create or update route table operation. options - RouteTablesClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteTablesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testrt", armnetwork.RouteTable{ Location: to.Ptr("westus"), }, 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) } // TODO: use response item _ = res }
Output:
func (*RouteTablesClient) BeginDelete ¶
func (client *RouteTablesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeTableName string, options *RouteTablesClientBeginDeleteOptions) (*runtime.Poller[RouteTablesClientDeleteResponse], error)
BeginDelete - Deletes the specified route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. options - RouteTablesClientBeginDeleteOptions contains the optional parameters for the RouteTablesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testrt", 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 (*RouteTablesClient) Get ¶
func (client *RouteTablesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, options *RouteTablesClientGetOptions) (RouteTablesClientGetResponse, error)
Get - Gets the specified route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. options - RouteTablesClientGetOptions contains the optional parameters for the RouteTablesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testrt", &armnetwork.RouteTablesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RouteTablesClient) NewListAllPager ¶ added in v0.5.0
func (client *RouteTablesClient) NewListAllPager(options *RouteTablesClientListAllOptions) *runtime.Pager[RouteTablesClientListAllResponse]
NewListAllPager - Gets all route tables in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - RouteTablesClientListAllOptions contains the optional parameters for the RouteTablesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RouteTablesClient) NewListPager ¶ added in v0.5.0
func (client *RouteTablesClient) NewListPager(resourceGroupName string, options *RouteTablesClientListOptions) *runtime.Pager[RouteTablesClientListResponse]
NewListPager - Gets all route tables in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - RouteTablesClientListOptions contains the optional parameters for the RouteTablesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RouteTablesClient) UpdateTags ¶
func (client *RouteTablesClient) UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters TagsObject, options *RouteTablesClientUpdateTagsOptions) (RouteTablesClientUpdateTagsResponse, error)
UpdateTags - Updates a route table tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. parameters - Parameters supplied to update route table tags. options - RouteTablesClientUpdateTagsOptions contains the optional parameters for the RouteTablesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRouteTablesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "testrt", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type RouteTablesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type RouteTablesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteTablesClientBeginCreateOrUpdateOptions contains the optional parameters for the RouteTablesClient.BeginCreateOrUpdate method.
type RouteTablesClientBeginDeleteOptions ¶ added in v0.3.0
type RouteTablesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RouteTablesClientBeginDeleteOptions contains the optional parameters for the RouteTablesClient.BeginDelete method.
type RouteTablesClientCreateOrUpdateResponse ¶ added in v0.3.0
type RouteTablesClientCreateOrUpdateResponse struct {
RouteTable
}
RouteTablesClientCreateOrUpdateResponse contains the response from method RouteTablesClient.CreateOrUpdate.
type RouteTablesClientDeleteResponse ¶ added in v0.3.0
type RouteTablesClientDeleteResponse struct { }
RouteTablesClientDeleteResponse contains the response from method RouteTablesClient.Delete.
type RouteTablesClientGetOptions ¶ added in v0.3.0
type RouteTablesClientGetOptions struct { // Expands referenced resources. Expand *string }
RouteTablesClientGetOptions contains the optional parameters for the RouteTablesClient.Get method.
type RouteTablesClientGetResponse ¶ added in v0.3.0
type RouteTablesClientGetResponse struct {
RouteTable
}
RouteTablesClientGetResponse contains the response from method RouteTablesClient.Get.
type RouteTablesClientListAllOptions ¶ added in v0.3.0
type RouteTablesClientListAllOptions struct { }
RouteTablesClientListAllOptions contains the optional parameters for the RouteTablesClient.ListAll method.
type RouteTablesClientListAllResponse ¶ added in v0.3.0
type RouteTablesClientListAllResponse struct {
RouteTableListResult
}
RouteTablesClientListAllResponse contains the response from method RouteTablesClient.ListAll.
type RouteTablesClientListOptions ¶ added in v0.3.0
type RouteTablesClientListOptions struct { }
RouteTablesClientListOptions contains the optional parameters for the RouteTablesClient.List method.
type RouteTablesClientListResponse ¶ added in v0.3.0
type RouteTablesClientListResponse struct {
RouteTableListResult
}
RouteTablesClientListResponse contains the response from method RouteTablesClient.List.
type RouteTablesClientUpdateTagsOptions ¶ added in v0.3.0
type RouteTablesClientUpdateTagsOptions struct { }
RouteTablesClientUpdateTagsOptions contains the optional parameters for the RouteTablesClient.UpdateTags method.
type RouteTablesClientUpdateTagsResponse ¶ added in v0.3.0
type RouteTablesClientUpdateTagsResponse struct {
RouteTable
}
RouteTablesClientUpdateTagsResponse contains the response from method RouteTablesClient.UpdateTags.
type RoutesClient ¶
type RoutesClient struct {
// contains filtered or unexported fields
}
RoutesClient contains the methods for the Routes group. Don't use this type directly, use NewRoutesClient() instead.
func NewRoutesClient ¶
func NewRoutesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RoutesClient, error)
NewRoutesClient creates a new instance of RoutesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RoutesClient) BeginCreateOrUpdate ¶
func (client *RoutesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters Route, options *RoutesClientBeginCreateOrUpdateOptions) (*runtime.Poller[RoutesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a route in the specified route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. routeName - The name of the route. routeParameters - Parameters supplied to the create or update route operation. options - RoutesClientBeginCreateOrUpdateOptions contains the optional parameters for the RoutesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableRouteCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testrt", "route1", armnetwork.Route{ Properties: &armnetwork.RoutePropertiesFormat{ AddressPrefix: to.Ptr("10.0.3.0/24"), NextHopType: to.Ptr(armnetwork.RouteNextHopTypeVirtualNetworkGateway), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*RoutesClient) BeginDelete ¶
func (client *RoutesClient) BeginDelete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, options *RoutesClientBeginDeleteOptions) (*runtime.Poller[RoutesClientDeleteResponse], error)
BeginDelete - Deletes the specified route from a route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. routeName - The name of the route. options - RoutesClientBeginDeleteOptions contains the optional parameters for the RoutesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableRouteDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testrt", "route1", 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 (*RoutesClient) Get ¶
func (client *RoutesClient) Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, options *RoutesClientGetOptions) (RoutesClientGetResponse, error)
Get - Gets the specified route from a route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. routeName - The name of the route. options - RoutesClientGetOptions contains the optional parameters for the RoutesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableRouteGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testrt", "route1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RoutesClient) NewListPager ¶ added in v0.5.0
func (client *RoutesClient) NewListPager(resourceGroupName string, routeTableName string, options *RoutesClientListOptions) *runtime.Pager[RoutesClientListResponse]
NewListPager - Gets all routes in a route table. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. routeTableName - The name of the route table. options - RoutesClientListOptions contains the optional parameters for the RoutesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RouteTableRouteList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "testrt", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RoutesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type RoutesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RoutesClientBeginCreateOrUpdateOptions contains the optional parameters for the RoutesClient.BeginCreateOrUpdate method.
type RoutesClientBeginDeleteOptions ¶ added in v0.3.0
type RoutesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RoutesClientBeginDeleteOptions contains the optional parameters for the RoutesClient.BeginDelete method.
type RoutesClientCreateOrUpdateResponse ¶ added in v0.3.0
type RoutesClientCreateOrUpdateResponse struct {
Route
}
RoutesClientCreateOrUpdateResponse contains the response from method RoutesClient.CreateOrUpdate.
type RoutesClientDeleteResponse ¶ added in v0.3.0
type RoutesClientDeleteResponse struct { }
RoutesClientDeleteResponse contains the response from method RoutesClient.Delete.
type RoutesClientGetOptions ¶ added in v0.3.0
type RoutesClientGetOptions struct { }
RoutesClientGetOptions contains the optional parameters for the RoutesClient.Get method.
type RoutesClientGetResponse ¶ added in v0.3.0
type RoutesClientGetResponse struct {
Route
}
RoutesClientGetResponse contains the response from method RoutesClient.Get.
type RoutesClientListOptions ¶ added in v0.3.0
type RoutesClientListOptions struct { }
RoutesClientListOptions contains the optional parameters for the RoutesClient.List method.
type RoutesClientListResponse ¶ added in v0.3.0
type RoutesClientListResponse struct {
RouteListResult
}
RoutesClientListResponse contains the response from method RoutesClient.List.
type RoutingConfiguration ¶
type RoutingConfiguration struct { // The resource id RouteTable associated with this RoutingConfiguration. AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` // The list of RouteTables to advertise the routes to. PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` // List of routes that control routing from VirtualHub into a virtual network connection. VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` }
RoutingConfiguration - Routing Configuration indicating the associated and propagated route tables for this connection.
type RoutingIntent ¶ added in v0.2.0
type RoutingIntent struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the RoutingIntent resource. Properties *RoutingIntentProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
RoutingIntent - The routing intent child resource of a Virtual hub.
type RoutingIntentClient ¶ added in v0.2.0
type RoutingIntentClient struct {
// contains filtered or unexported fields
}
RoutingIntentClient contains the methods for the RoutingIntent group. Don't use this type directly, use NewRoutingIntentClient() instead.
func NewRoutingIntentClient ¶ added in v0.2.0
func NewRoutingIntentClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RoutingIntentClient, error)
NewRoutingIntentClient creates a new instance of RoutingIntentClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RoutingIntentClient) BeginCreateOrUpdate ¶ added in v0.2.0
func (client *RoutingIntentClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routingIntentName string, routingIntentParameters RoutingIntent, options *RoutingIntentClientBeginCreateOrUpdateOptions) (*runtime.Poller[RoutingIntentClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the RoutingIntent. virtualHubName - The name of the VirtualHub. routingIntentName - The name of the per VirtualHub singleton Routing Intent resource. routingIntentParameters - Parameters supplied to create or update RoutingIntent. options - RoutingIntentClientBeginCreateOrUpdateOptions contains the optional parameters for the RoutingIntentClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RoutingIntentPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutingIntentClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualHub1", "Intent1", armnetwork.RoutingIntent{ Properties: &armnetwork.RoutingIntentProperties{ RoutingPolicies: []*armnetwork.RoutingPolicy{ { Name: to.Ptr("InternetTraffic"), Destinations: []*string{ to.Ptr("Internet")}, NextHop: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"), }, { Name: to.Ptr("PrivateTrafficPolicy"), Destinations: []*string{ to.Ptr("PrivateTraffic")}, NextHop: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*RoutingIntentClient) BeginDelete ¶ added in v0.2.0
func (client *RoutingIntentClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, routingIntentName string, options *RoutingIntentClientBeginDeleteOptions) (*runtime.Poller[RoutingIntentClientDeleteResponse], error)
BeginDelete - Deletes a RoutingIntent. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the RoutingIntent. virtualHubName - The name of the VirtualHub. routingIntentName - The name of the RoutingIntent. options - RoutingIntentClientBeginDeleteOptions contains the optional parameters for the RoutingIntentClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RoutingIntentDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutingIntentClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualHub1", "Intent1", 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 (*RoutingIntentClient) Get ¶ added in v0.2.0
func (client *RoutingIntentClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, routingIntentName string, options *RoutingIntentClientGetOptions) (RoutingIntentClientGetResponse, error)
Get - Retrieves the details of a RoutingIntent. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the RoutingIntent. virtualHubName - The name of the VirtualHub. routingIntentName - The name of the RoutingIntent. options - RoutingIntentClientGetOptions contains the optional parameters for the RoutingIntentClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RoutingIntentGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutingIntentClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualHub1", "Intent1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RoutingIntentClient) NewListPager ¶ added in v0.5.0
func (client *RoutingIntentClient) NewListPager(resourceGroupName string, virtualHubName string, options *RoutingIntentClientListOptions) *runtime.Pager[RoutingIntentClientListResponse]
NewListPager - Retrieves the details of all RoutingIntent child resources of the VirtualHub. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - RoutingIntentClientListOptions contains the optional parameters for the RoutingIntentClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/RoutingIntentList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewRoutingIntentClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "virtualHub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RoutingIntentClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type RoutingIntentClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RoutingIntentClientBeginCreateOrUpdateOptions contains the optional parameters for the RoutingIntentClient.BeginCreateOrUpdate method.
type RoutingIntentClientBeginDeleteOptions ¶ added in v0.3.0
type RoutingIntentClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RoutingIntentClientBeginDeleteOptions contains the optional parameters for the RoutingIntentClient.BeginDelete method.
type RoutingIntentClientCreateOrUpdateResponse ¶ added in v0.3.0
type RoutingIntentClientCreateOrUpdateResponse struct {
RoutingIntent
}
RoutingIntentClientCreateOrUpdateResponse contains the response from method RoutingIntentClient.CreateOrUpdate.
type RoutingIntentClientDeleteResponse ¶ added in v0.3.0
type RoutingIntentClientDeleteResponse struct { }
RoutingIntentClientDeleteResponse contains the response from method RoutingIntentClient.Delete.
type RoutingIntentClientGetOptions ¶ added in v0.3.0
type RoutingIntentClientGetOptions struct { }
RoutingIntentClientGetOptions contains the optional parameters for the RoutingIntentClient.Get method.
type RoutingIntentClientGetResponse ¶ added in v0.3.0
type RoutingIntentClientGetResponse struct {
RoutingIntent
}
RoutingIntentClientGetResponse contains the response from method RoutingIntentClient.Get.
type RoutingIntentClientListOptions ¶ added in v0.3.0
type RoutingIntentClientListOptions struct { }
RoutingIntentClientListOptions contains the optional parameters for the RoutingIntentClient.List method.
type RoutingIntentClientListResponse ¶ added in v0.3.0
type RoutingIntentClientListResponse struct {
ListRoutingIntentResult
}
RoutingIntentClientListResponse contains the response from method RoutingIntentClient.List.
type RoutingIntentProperties ¶ added in v0.2.0
type RoutingIntentProperties struct { // List of routing policies. RoutingPolicies []*RoutingPolicy `json:"routingPolicies,omitempty"` // READ-ONLY; The provisioning state of the RoutingIntent resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RoutingIntentProperties - The properties of a RoutingIntent resource.
func (RoutingIntentProperties) MarshalJSON ¶ added in v0.2.0
func (r RoutingIntentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RoutingIntentProperties.
type RoutingPolicy ¶ added in v0.2.0
type RoutingPolicy struct { // REQUIRED; List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic). Destinations []*string `json:"destinations,omitempty"` // REQUIRED; The unique name for the routing policy. Name *string `json:"name,omitempty"` // REQUIRED; The next hop resource id on which this routing policy is applicable to. NextHop *string `json:"nextHop,omitempty"` }
RoutingPolicy - The routing policy object used in a RoutingIntent resource.
func (RoutingPolicy) MarshalJSON ¶ added in v0.2.0
func (r RoutingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RoutingPolicy.
type RoutingState ¶
type RoutingState string
RoutingState - The current routing state of the VirtualHub.
const ( RoutingStateFailed RoutingState = "Failed" RoutingStateNone RoutingState = "None" RoutingStateProvisioned RoutingState = "Provisioned" RoutingStateProvisioning RoutingState = "Provisioning" )
func PossibleRoutingStateValues ¶
func PossibleRoutingStateValues() []RoutingState
PossibleRoutingStateValues returns the possible values for the RoutingState const type.
type Rule ¶ added in v0.3.0
type Rule struct { // REQUIRED; Rule Type. RuleType *FirewallPolicyRuleType `json:"ruleType,omitempty"` // Description of the rule. Description *string `json:"description,omitempty"` // List of destination IP addresses or Service Tags. DestinationAddresses []*string `json:"destinationAddresses,omitempty"` // List of destination FQDNs. DestinationFqdns []*string `json:"destinationFqdns,omitempty"` // List of destination IpGroups for this rule. DestinationIPGroups []*string `json:"destinationIpGroups,omitempty"` // List of destination ports. DestinationPorts []*string `json:"destinationPorts,omitempty"` // Array of FirewallPolicyRuleNetworkProtocols. IPProtocols []*FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` // Name of the rule. Name *string `json:"name,omitempty"` // List of source IP addresses for this rule. SourceAddresses []*string `json:"sourceAddresses,omitempty"` // List of source IpGroups for this rule. SourceIPGroups []*string `json:"sourceIpGroups,omitempty"` }
Rule of type network.
func (*Rule) GetFirewallPolicyRule ¶ added in v0.3.0
func (r *Rule) GetFirewallPolicyRule() *FirewallPolicyRule
GetFirewallPolicyRule implements the FirewallPolicyRuleClassification interface for type Rule.
func (Rule) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Rule.
func (*Rule) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON implements the json.Unmarshaller interface for type Rule.
type SKU ¶
type SKU struct { // The name of this Bastion Host. Name *BastionHostSKUName `json:"name,omitempty"` }
SKU - The sku of this Bastion Host.
type SecurityGroup ¶ added in v0.3.0
type SecurityGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the network security group. Properties *SecurityGroupPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
SecurityGroup - NetworkSecurityGroup resource.
func (SecurityGroup) MarshalJSON ¶ added in v0.3.0
func (s SecurityGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityGroup.
type SecurityGroupListResult ¶ added in v0.3.0
type SecurityGroupListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of NetworkSecurityGroup resources. Value []*SecurityGroup `json:"value,omitempty"` }
SecurityGroupListResult - Response for ListNetworkSecurityGroups API service call.
type SecurityGroupNetworkInterface ¶
type SecurityGroupNetworkInterface struct { // ID of the network interface. ID *string `json:"id,omitempty"` // All security rules associated with the network interface. SecurityRuleAssociations *SecurityRuleAssociations `json:"securityRuleAssociations,omitempty"` }
SecurityGroupNetworkInterface - Network interface and all its associated security rules.
type SecurityGroupPropertiesFormat ¶ added in v0.3.0
type SecurityGroupPropertiesFormat struct { // A collection of security rules of the network security group. SecurityRules []*SecurityRule `json:"securityRules,omitempty"` // READ-ONLY; The default security rules of network security group. DefaultSecurityRules []*SecurityRule `json:"defaultSecurityRules,omitempty" azure:"ro"` // READ-ONLY; A collection of references to flow log resources. FlowLogs []*FlowLog `json:"flowLogs,omitempty" azure:"ro"` // READ-ONLY; A collection of references to network interfaces. NetworkInterfaces []*Interface `json:"networkInterfaces,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the network security group resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the network security group resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; A collection of references to subnets. Subnets []*Subnet `json:"subnets,omitempty" azure:"ro"` }
SecurityGroupPropertiesFormat - Network Security Group resource.
func (SecurityGroupPropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (s SecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityGroupPropertiesFormat.
type SecurityGroupResult ¶ added in v0.3.0
type SecurityGroupResult struct { // The network traffic is allowed or denied. SecurityRuleAccessResult *SecurityRuleAccess `json:"securityRuleAccessResult,omitempty"` // READ-ONLY; List of results network security groups diagnostic. EvaluatedNetworkSecurityGroups []*EvaluatedNetworkSecurityGroup `json:"evaluatedNetworkSecurityGroups,omitempty" azure:"ro"` }
SecurityGroupResult - Network configuration diagnostic result corresponded provided traffic query.
type SecurityGroupViewParameters ¶
type SecurityGroupViewParameters struct { // REQUIRED; ID of the target VM. TargetResourceID *string `json:"targetResourceId,omitempty"` }
SecurityGroupViewParameters - Parameters that define the VM to check security groups for.
type SecurityGroupViewResult ¶
type SecurityGroupViewResult struct { // List of network interfaces on the specified VM. NetworkInterfaces []*SecurityGroupNetworkInterface `json:"networkInterfaces,omitempty"` }
SecurityGroupViewResult - The information about security rules applied to the specified VM.
type SecurityGroupsClient ¶ added in v0.3.0
type SecurityGroupsClient struct {
// contains filtered or unexported fields
}
SecurityGroupsClient contains the methods for the NetworkSecurityGroups group. Don't use this type directly, use NewSecurityGroupsClient() instead.
func NewSecurityGroupsClient ¶ added in v0.3.0
func NewSecurityGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecurityGroupsClient, error)
NewSecurityGroupsClient creates a new instance of SecurityGroupsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecurityGroupsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *SecurityGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters SecurityGroup, options *SecurityGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SecurityGroupsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a network security group in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. parameters - Parameters supplied to the create or update network security group operation. options - SecurityGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityGroupsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testnsg", armnetwork.SecurityGroup{ Location: to.Ptr("eastus"), }, 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) } // TODO: use response item _ = res }
Output:
func (*SecurityGroupsClient) BeginDelete ¶ added in v0.3.0
func (client *SecurityGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, options *SecurityGroupsClientBeginDeleteOptions) (*runtime.Poller[SecurityGroupsClientDeleteResponse], error)
BeginDelete - Deletes the specified network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. options - SecurityGroupsClientBeginDeleteOptions contains the optional parameters for the SecurityGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testnsg", 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 (*SecurityGroupsClient) Get ¶ added in v0.3.0
func (client *SecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, options *SecurityGroupsClientGetOptions) (SecurityGroupsClientGetResponse, error)
Get - Gets the specified network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. options - SecurityGroupsClientGetOptions contains the optional parameters for the SecurityGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testnsg", &armnetwork.SecurityGroupsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SecurityGroupsClient) NewListAllPager ¶ added in v0.5.0
func (client *SecurityGroupsClient) NewListAllPager(options *SecurityGroupsClientListAllOptions) *runtime.Pager[SecurityGroupsClientListAllResponse]
NewListAllPager - Gets all network security groups in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - SecurityGroupsClientListAllOptions contains the optional parameters for the SecurityGroupsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecurityGroupsClient) NewListPager ¶ added in v0.5.0
func (client *SecurityGroupsClient) NewListPager(resourceGroupName string, options *SecurityGroupsClientListOptions) *runtime.Pager[SecurityGroupsClientListResponse]
NewListPager - Gets all network security groups in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - SecurityGroupsClientListOptions contains the optional parameters for the SecurityGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecurityGroupsClient) UpdateTags ¶ added in v0.3.0
func (client *SecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters TagsObject, options *SecurityGroupsClientUpdateTagsOptions) (SecurityGroupsClientUpdateTagsResponse, error)
UpdateTags - Updates a network security group tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. parameters - Parameters supplied to update network security group tags. options - SecurityGroupsClientUpdateTagsOptions contains the optional parameters for the SecurityGroupsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityGroupsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "testnsg", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type SecurityGroupsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type SecurityGroupsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityGroupsClient.BeginCreateOrUpdate method.
type SecurityGroupsClientBeginDeleteOptions ¶ added in v0.3.0
type SecurityGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityGroupsClientBeginDeleteOptions contains the optional parameters for the SecurityGroupsClient.BeginDelete method.
type SecurityGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type SecurityGroupsClientCreateOrUpdateResponse struct {
SecurityGroup
}
SecurityGroupsClientCreateOrUpdateResponse contains the response from method SecurityGroupsClient.CreateOrUpdate.
type SecurityGroupsClientDeleteResponse ¶ added in v0.3.0
type SecurityGroupsClientDeleteResponse struct { }
SecurityGroupsClientDeleteResponse contains the response from method SecurityGroupsClient.Delete.
type SecurityGroupsClientGetOptions ¶ added in v0.3.0
type SecurityGroupsClientGetOptions struct { // Expands referenced resources. Expand *string }
SecurityGroupsClientGetOptions contains the optional parameters for the SecurityGroupsClient.Get method.
type SecurityGroupsClientGetResponse ¶ added in v0.3.0
type SecurityGroupsClientGetResponse struct {
SecurityGroup
}
SecurityGroupsClientGetResponse contains the response from method SecurityGroupsClient.Get.
type SecurityGroupsClientListAllOptions ¶ added in v0.3.0
type SecurityGroupsClientListAllOptions struct { }
SecurityGroupsClientListAllOptions contains the optional parameters for the SecurityGroupsClient.ListAll method.
type SecurityGroupsClientListAllResponse ¶ added in v0.3.0
type SecurityGroupsClientListAllResponse struct {
SecurityGroupListResult
}
SecurityGroupsClientListAllResponse contains the response from method SecurityGroupsClient.ListAll.
type SecurityGroupsClientListOptions ¶ added in v0.3.0
type SecurityGroupsClientListOptions struct { }
SecurityGroupsClientListOptions contains the optional parameters for the SecurityGroupsClient.List method.
type SecurityGroupsClientListResponse ¶ added in v0.3.0
type SecurityGroupsClientListResponse struct {
SecurityGroupListResult
}
SecurityGroupsClientListResponse contains the response from method SecurityGroupsClient.List.
type SecurityGroupsClientUpdateTagsOptions ¶ added in v0.3.0
type SecurityGroupsClientUpdateTagsOptions struct { }
SecurityGroupsClientUpdateTagsOptions contains the optional parameters for the SecurityGroupsClient.UpdateTags method.
type SecurityGroupsClientUpdateTagsResponse ¶ added in v0.3.0
type SecurityGroupsClientUpdateTagsResponse struct {
SecurityGroup
}
SecurityGroupsClientUpdateTagsResponse contains the response from method SecurityGroupsClient.UpdateTags.
type SecurityPartnerProvider ¶
type SecurityPartnerProvider struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the Security Partner Provider. Properties *SecurityPartnerProviderPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
SecurityPartnerProvider - Security Partner Provider resource.
func (SecurityPartnerProvider) MarshalJSON ¶
func (s SecurityPartnerProvider) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPartnerProvider.
type SecurityPartnerProviderConnectionStatus ¶
type SecurityPartnerProviderConnectionStatus string
SecurityPartnerProviderConnectionStatus - The current state of the connection with Security Partner Provider.
const ( SecurityPartnerProviderConnectionStatusConnected SecurityPartnerProviderConnectionStatus = "Connected" SecurityPartnerProviderConnectionStatusNotConnected SecurityPartnerProviderConnectionStatus = "NotConnected" SecurityPartnerProviderConnectionStatusPartiallyConnected SecurityPartnerProviderConnectionStatus = "PartiallyConnected" SecurityPartnerProviderConnectionStatusUnknown SecurityPartnerProviderConnectionStatus = "Unknown" )
func PossibleSecurityPartnerProviderConnectionStatusValues ¶
func PossibleSecurityPartnerProviderConnectionStatusValues() []SecurityPartnerProviderConnectionStatus
PossibleSecurityPartnerProviderConnectionStatusValues returns the possible values for the SecurityPartnerProviderConnectionStatus const type.
type SecurityPartnerProviderListResult ¶
type SecurityPartnerProviderListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Security Partner Providers in a resource group. Value []*SecurityPartnerProvider `json:"value,omitempty"` }
SecurityPartnerProviderListResult - Response for ListSecurityPartnerProviders API service call.
type SecurityPartnerProviderPropertiesFormat ¶
type SecurityPartnerProviderPropertiesFormat struct { // The security provider name. SecurityProviderName *SecurityProviderName `json:"securityProviderName,omitempty"` // The virtualHub to which the Security Partner Provider belongs. VirtualHub *SubResource `json:"virtualHub,omitempty"` // READ-ONLY; The connection status with the Security Partner Provider. ConnectionStatus *SecurityPartnerProviderConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the Security Partner Provider resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
SecurityPartnerProviderPropertiesFormat - Properties of the Security Partner Provider.
type SecurityPartnerProvidersClient ¶
type SecurityPartnerProvidersClient struct {
// contains filtered or unexported fields
}
SecurityPartnerProvidersClient contains the methods for the SecurityPartnerProviders group. Don't use this type directly, use NewSecurityPartnerProvidersClient() instead.
func NewSecurityPartnerProvidersClient ¶
func NewSecurityPartnerProvidersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecurityPartnerProvidersClient, error)
NewSecurityPartnerProvidersClient creates a new instance of SecurityPartnerProvidersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecurityPartnerProvidersClient) BeginCreateOrUpdate ¶
func (client *SecurityPartnerProvidersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters SecurityPartnerProvider, options *SecurityPartnerProvidersClientBeginCreateOrUpdateOptions) (*runtime.Poller[SecurityPartnerProvidersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Security Partner Provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. securityPartnerProviderName - The name of the Security Partner Provider. parameters - Parameters supplied to the create or update Security Partner Provider operation. options - SecurityPartnerProvidersClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityPartnerProvidersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "securityPartnerProvider", armnetwork.SecurityPartnerProvider{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.SecurityPartnerProviderPropertiesFormat{ SecurityProviderName: to.Ptr(armnetwork.SecurityProviderNameZScaler), VirtualHub: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SecurityPartnerProvidersClient) BeginDelete ¶
func (client *SecurityPartnerProvidersClient) BeginDelete(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, options *SecurityPartnerProvidersClientBeginDeleteOptions) (*runtime.Poller[SecurityPartnerProvidersClientDeleteResponse], error)
BeginDelete - Deletes the specified Security Partner Provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. securityPartnerProviderName - The name of the Security Partner Provider. options - SecurityPartnerProvidersClientBeginDeleteOptions contains the optional parameters for the SecurityPartnerProvidersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "securityPartnerProvider", 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 (*SecurityPartnerProvidersClient) Get ¶
func (client *SecurityPartnerProvidersClient) Get(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, options *SecurityPartnerProvidersClientGetOptions) (SecurityPartnerProvidersClientGetResponse, error)
Get - Gets the specified Security Partner Provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. securityPartnerProviderName - The name of the Security Partner Provider. options - SecurityPartnerProvidersClientGetOptions contains the optional parameters for the SecurityPartnerProvidersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "securityPartnerProvider", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SecurityPartnerProvidersClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *SecurityPartnerProvidersClient) NewListByResourceGroupPager(resourceGroupName string, options *SecurityPartnerProvidersClientListByResourceGroupOptions) *runtime.Pager[SecurityPartnerProvidersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all Security Partner Providers in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - SecurityPartnerProvidersClientListByResourceGroupOptions contains the optional parameters for the SecurityPartnerProvidersClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecurityPartnerProvidersClient) NewListPager ¶ added in v0.5.0
func (client *SecurityPartnerProvidersClient) NewListPager(options *SecurityPartnerProvidersClientListOptions) *runtime.Pager[SecurityPartnerProvidersClientListResponse]
NewListPager - Gets all the Security Partner Providers in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - SecurityPartnerProvidersClientListOptions contains the optional parameters for the SecurityPartnerProvidersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecurityPartnerProvidersClient) UpdateTags ¶
func (client *SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, resourceGroupName string, securityPartnerProviderName string, parameters TagsObject, options *SecurityPartnerProvidersClientUpdateTagsOptions) (SecurityPartnerProvidersClientUpdateTagsResponse, error)
UpdateTags - Updates tags of a Security Partner Provider resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. securityPartnerProviderName - The name of the Security Partner Provider. parameters - Parameters supplied to update Security Partner Provider tags. options - SecurityPartnerProvidersClientUpdateTagsOptions contains the optional parameters for the SecurityPartnerProvidersClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SecurityPartnerProviderUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityPartnerProvidersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "securityPartnerProvider", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type SecurityPartnerProvidersClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityPartnerProvidersClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityPartnerProvidersClient.BeginCreateOrUpdate method.
type SecurityPartnerProvidersClientBeginDeleteOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityPartnerProvidersClientBeginDeleteOptions contains the optional parameters for the SecurityPartnerProvidersClient.BeginDelete method.
type SecurityPartnerProvidersClientCreateOrUpdateResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientCreateOrUpdateResponse struct {
SecurityPartnerProvider
}
SecurityPartnerProvidersClientCreateOrUpdateResponse contains the response from method SecurityPartnerProvidersClient.CreateOrUpdate.
type SecurityPartnerProvidersClientDeleteResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientDeleteResponse struct { }
SecurityPartnerProvidersClientDeleteResponse contains the response from method SecurityPartnerProvidersClient.Delete.
type SecurityPartnerProvidersClientGetOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientGetOptions struct { }
SecurityPartnerProvidersClientGetOptions contains the optional parameters for the SecurityPartnerProvidersClient.Get method.
type SecurityPartnerProvidersClientGetResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientGetResponse struct {
SecurityPartnerProvider
}
SecurityPartnerProvidersClientGetResponse contains the response from method SecurityPartnerProvidersClient.Get.
type SecurityPartnerProvidersClientListByResourceGroupOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientListByResourceGroupOptions struct { }
SecurityPartnerProvidersClientListByResourceGroupOptions contains the optional parameters for the SecurityPartnerProvidersClient.ListByResourceGroup method.
type SecurityPartnerProvidersClientListByResourceGroupResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientListByResourceGroupResponse struct {
SecurityPartnerProviderListResult
}
SecurityPartnerProvidersClientListByResourceGroupResponse contains the response from method SecurityPartnerProvidersClient.ListByResourceGroup.
type SecurityPartnerProvidersClientListOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientListOptions struct { }
SecurityPartnerProvidersClientListOptions contains the optional parameters for the SecurityPartnerProvidersClient.List method.
type SecurityPartnerProvidersClientListResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientListResponse struct {
SecurityPartnerProviderListResult
}
SecurityPartnerProvidersClientListResponse contains the response from method SecurityPartnerProvidersClient.List.
type SecurityPartnerProvidersClientUpdateTagsOptions ¶ added in v0.3.0
type SecurityPartnerProvidersClientUpdateTagsOptions struct { }
SecurityPartnerProvidersClientUpdateTagsOptions contains the optional parameters for the SecurityPartnerProvidersClient.UpdateTags method.
type SecurityPartnerProvidersClientUpdateTagsResponse ¶ added in v0.3.0
type SecurityPartnerProvidersClientUpdateTagsResponse struct {
SecurityPartnerProvider
}
SecurityPartnerProvidersClientUpdateTagsResponse contains the response from method SecurityPartnerProvidersClient.UpdateTags.
type SecurityProviderName ¶
type SecurityProviderName string
SecurityProviderName - The Security Providers.
const ( SecurityProviderNameCheckpoint SecurityProviderName = "Checkpoint" SecurityProviderNameIBoss SecurityProviderName = "IBoss" SecurityProviderNameZScaler SecurityProviderName = "ZScaler" )
func PossibleSecurityProviderNameValues ¶
func PossibleSecurityProviderNameValues() []SecurityProviderName
PossibleSecurityProviderNameValues returns the possible values for the SecurityProviderName const type.
type SecurityRule ¶
type SecurityRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the security rule. Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` // The type of the resource. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
SecurityRule - Network security rule.
type SecurityRuleAccess ¶
type SecurityRuleAccess string
SecurityRuleAccess - Whether network traffic is allowed or denied.
const ( SecurityRuleAccessAllow SecurityRuleAccess = "Allow" SecurityRuleAccessDeny SecurityRuleAccess = "Deny" )
func PossibleSecurityRuleAccessValues ¶
func PossibleSecurityRuleAccessValues() []SecurityRuleAccess
PossibleSecurityRuleAccessValues returns the possible values for the SecurityRuleAccess const type.
type SecurityRuleAssociations ¶
type SecurityRuleAssociations struct { // Collection of default security rules of the network security group. DefaultSecurityRules []*SecurityRule `json:"defaultSecurityRules,omitempty"` // Collection of effective security rules. EffectiveSecurityRules []*EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` // Network interface and it's custom security rules. NetworkInterfaceAssociation *InterfaceAssociation `json:"networkInterfaceAssociation,omitempty"` // Subnet and it's custom security rules. SubnetAssociation *SubnetAssociation `json:"subnetAssociation,omitempty"` }
SecurityRuleAssociations - All security rules associated with the network interface.
type SecurityRuleDirection ¶
type SecurityRuleDirection string
SecurityRuleDirection - The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
const ( SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" )
func PossibleSecurityRuleDirectionValues ¶
func PossibleSecurityRuleDirectionValues() []SecurityRuleDirection
PossibleSecurityRuleDirectionValues returns the possible values for the SecurityRuleDirection const type.
type SecurityRuleListResult ¶
type SecurityRuleListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The security rules in a network security group. Value []*SecurityRule `json:"value,omitempty"` }
SecurityRuleListResult - Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group.
type SecurityRulePropertiesFormat ¶
type SecurityRulePropertiesFormat struct { // REQUIRED; The network traffic is allowed or denied. Access *SecurityRuleAccess `json:"access,omitempty"` // REQUIRED; The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Direction *SecurityRuleDirection `json:"direction,omitempty"` // REQUIRED; Network protocol this rule applies to. Protocol *SecurityRuleProtocol `json:"protocol,omitempty"` // A description for this rule. Restricted to 140 chars. Description *string `json:"description,omitempty"` // The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default // tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also // be used. DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` // The destination address prefixes. CIDR or destination IP ranges. DestinationAddressPrefixes []*string `json:"destinationAddressPrefixes,omitempty"` // The application security group specified as destination. DestinationApplicationSecurityGroups []*ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` // The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. DestinationPortRange *string `json:"destinationPortRange,omitempty"` // The destination port ranges. DestinationPortRanges []*string `json:"destinationPortRanges,omitempty"` // The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the // collection. The lower the priority number, the higher the priority of the rule. Priority *int32 `json:"priority,omitempty"` // The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', // 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress // rule, specifies where network traffic originates from. SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` // The CIDR or source IP ranges. SourceAddressPrefixes []*string `json:"sourceAddressPrefixes,omitempty"` // The application security group specified as source. SourceApplicationSecurityGroups []*ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` // The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. SourcePortRange *string `json:"sourcePortRange,omitempty"` // The source port ranges. SourcePortRanges []*string `json:"sourcePortRanges,omitempty"` // READ-ONLY; The provisioning state of the security rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
SecurityRulePropertiesFormat - Security rule resource.
func (SecurityRulePropertiesFormat) MarshalJSON ¶
func (s SecurityRulePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityRulePropertiesFormat.
type SecurityRuleProtocol ¶
type SecurityRuleProtocol string
SecurityRuleProtocol - Network protocol this rule applies to.
const ( SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" SecurityRuleProtocolAsterisk SecurityRuleProtocol = "*" SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" SecurityRuleProtocolTCP SecurityRuleProtocol = "Tcp" SecurityRuleProtocolUDP SecurityRuleProtocol = "Udp" )
func PossibleSecurityRuleProtocolValues ¶
func PossibleSecurityRuleProtocolValues() []SecurityRuleProtocol
PossibleSecurityRuleProtocolValues returns the possible values for the SecurityRuleProtocol const type.
type SecurityRulesClient ¶
type SecurityRulesClient struct {
// contains filtered or unexported fields
}
SecurityRulesClient contains the methods for the SecurityRules group. Don't use this type directly, use NewSecurityRulesClient() instead.
func NewSecurityRulesClient ¶
func NewSecurityRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecurityRulesClient, error)
NewSecurityRulesClient creates a new instance of SecurityRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecurityRulesClient) BeginCreateOrUpdate ¶
func (client *SecurityRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, securityRuleParameters SecurityRule, options *SecurityRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[SecurityRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a security rule in the specified network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. securityRuleName - The name of the security rule. securityRuleParameters - Parameters supplied to the create or update network security rule operation. options - SecurityRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupRuleCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testnsg", "rule1", armnetwork.SecurityRule{ Properties: &armnetwork.SecurityRulePropertiesFormat{ Access: to.Ptr(armnetwork.SecurityRuleAccessDeny), DestinationAddressPrefix: to.Ptr("11.0.0.0/8"), DestinationPortRange: to.Ptr("8080"), Direction: to.Ptr(armnetwork.SecurityRuleDirectionOutbound), Priority: to.Ptr[int32](100), SourceAddressPrefix: to.Ptr("10.0.0.0/8"), SourcePortRange: to.Ptr("*"), Protocol: to.Ptr(armnetwork.SecurityRuleProtocolAsterisk), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SecurityRulesClient) BeginDelete ¶
func (client *SecurityRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, options *SecurityRulesClientBeginDeleteOptions) (*runtime.Poller[SecurityRulesClientDeleteResponse], error)
BeginDelete - Deletes the specified network security rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. securityRuleName - The name of the security rule. options - SecurityRulesClientBeginDeleteOptions contains the optional parameters for the SecurityRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupRuleDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testnsg", "rule1", 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 (*SecurityRulesClient) Get ¶
func (client *SecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string, options *SecurityRulesClientGetOptions) (SecurityRulesClientGetResponse, error)
Get - Get the specified network security rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. securityRuleName - The name of the security rule. options - SecurityRulesClientGetOptions contains the optional parameters for the SecurityRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testnsg", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SecurityRulesClient) NewListPager ¶ added in v0.5.0
func (client *SecurityRulesClient) NewListPager(resourceGroupName string, networkSecurityGroupName string, options *SecurityRulesClientListOptions) *runtime.Pager[SecurityRulesClientListResponse]
NewListPager - Gets all security rules in a network security group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkSecurityGroupName - The name of the network security group. options - SecurityRulesClientListOptions contains the optional parameters for the SecurityRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkSecurityGroupRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSecurityRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "testnsg", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SecurityRulesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type SecurityRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityRulesClient.BeginCreateOrUpdate method.
type SecurityRulesClientBeginDeleteOptions ¶ added in v0.3.0
type SecurityRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SecurityRulesClientBeginDeleteOptions contains the optional parameters for the SecurityRulesClient.BeginDelete method.
type SecurityRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type SecurityRulesClientCreateOrUpdateResponse struct {
SecurityRule
}
SecurityRulesClientCreateOrUpdateResponse contains the response from method SecurityRulesClient.CreateOrUpdate.
type SecurityRulesClientDeleteResponse ¶ added in v0.3.0
type SecurityRulesClientDeleteResponse struct { }
SecurityRulesClientDeleteResponse contains the response from method SecurityRulesClient.Delete.
type SecurityRulesClientGetOptions ¶ added in v0.3.0
type SecurityRulesClientGetOptions struct { }
SecurityRulesClientGetOptions contains the optional parameters for the SecurityRulesClient.Get method.
type SecurityRulesClientGetResponse ¶ added in v0.3.0
type SecurityRulesClientGetResponse struct {
SecurityRule
}
SecurityRulesClientGetResponse contains the response from method SecurityRulesClient.Get.
type SecurityRulesClientListOptions ¶ added in v0.3.0
type SecurityRulesClientListOptions struct { }
SecurityRulesClientListOptions contains the optional parameters for the SecurityRulesClient.List method.
type SecurityRulesClientListResponse ¶ added in v0.3.0
type SecurityRulesClientListResponse struct {
SecurityRuleListResult
}
SecurityRulesClientListResponse contains the response from method SecurityRulesClient.List.
type SecurityRulesEvaluationResult ¶ added in v0.3.0
type SecurityRulesEvaluationResult struct { // Value indicating whether destination is matched. DestinationMatched *bool `json:"destinationMatched,omitempty"` // Value indicating whether destination port is matched. DestinationPortMatched *bool `json:"destinationPortMatched,omitempty"` // Name of the network security rule. Name *string `json:"name,omitempty"` // Value indicating whether protocol is matched. ProtocolMatched *bool `json:"protocolMatched,omitempty"` // Value indicating whether source is matched. SourceMatched *bool `json:"sourceMatched,omitempty"` // Value indicating whether source port is matched. SourcePortMatched *bool `json:"sourcePortMatched,omitempty"` }
SecurityRulesEvaluationResult - Network security rules evaluation result.
type ServiceAssociationLink ¶
type ServiceAssociationLink struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Resource navigation link properties format. Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ServiceAssociationLink resource.
type ServiceAssociationLinkPropertiesFormat ¶
type ServiceAssociationLinkPropertiesFormat struct { // If true, the resource can be deleted. AllowDelete *bool `json:"allowDelete,omitempty"` // Link to the external resource. Link *string `json:"link,omitempty"` // Resource type of the linked resource. LinkedResourceType *string `json:"linkedResourceType,omitempty"` // A list of locations. Locations []*string `json:"locations,omitempty"` // READ-ONLY; The provisioning state of the service association link resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServiceAssociationLinkPropertiesFormat - Properties of ServiceAssociationLink.
func (ServiceAssociationLinkPropertiesFormat) MarshalJSON ¶
func (s ServiceAssociationLinkPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceAssociationLinkPropertiesFormat.
type ServiceAssociationLinksClient ¶
type ServiceAssociationLinksClient struct {
// contains filtered or unexported fields
}
ServiceAssociationLinksClient contains the methods for the ServiceAssociationLinks group. Don't use this type directly, use NewServiceAssociationLinksClient() instead.
func NewServiceAssociationLinksClient ¶
func NewServiceAssociationLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceAssociationLinksClient, error)
NewServiceAssociationLinksClient creates a new instance of ServiceAssociationLinksClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceAssociationLinksClient) List ¶
func (client *ServiceAssociationLinksClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *ServiceAssociationLinksClientListOptions) (ServiceAssociationLinksClientListResponse, error)
List - Gets a list of service association links for a subnet. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. options - ServiceAssociationLinksClientListOptions contains the optional parameters for the ServiceAssociationLinksClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGetServiceAssociationLinks.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceAssociationLinksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "rg1", "vnet", "subnet", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ServiceAssociationLinksClientListOptions ¶ added in v0.3.0
type ServiceAssociationLinksClientListOptions struct { }
ServiceAssociationLinksClientListOptions contains the optional parameters for the ServiceAssociationLinksClient.List method.
type ServiceAssociationLinksClientListResponse ¶ added in v0.3.0
type ServiceAssociationLinksClientListResponse struct {
ServiceAssociationLinksListResult
}
ServiceAssociationLinksClientListResponse contains the response from method ServiceAssociationLinksClient.List.
type ServiceAssociationLinksListResult ¶
type ServiceAssociationLinksListResult struct { // The service association links in a subnet. Value []*ServiceAssociationLink `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ServiceAssociationLinksListResult - Response for ServiceAssociationLinks_List operation.
type ServiceDelegationPropertiesFormat ¶
type ServiceDelegationPropertiesFormat struct { // The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers). ServiceName *string `json:"serviceName,omitempty"` // READ-ONLY; The actions permitted to the service upon delegation. Actions []*string `json:"actions,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the service delegation resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServiceDelegationPropertiesFormat - Properties of a service delegation.
func (ServiceDelegationPropertiesFormat) MarshalJSON ¶
func (s ServiceDelegationPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceDelegationPropertiesFormat.
type ServiceEndpointPoliciesClient ¶
type ServiceEndpointPoliciesClient struct {
// contains filtered or unexported fields
}
ServiceEndpointPoliciesClient contains the methods for the ServiceEndpointPolicies group. Don't use this type directly, use NewServiceEndpointPoliciesClient() instead.
func NewServiceEndpointPoliciesClient ¶
func NewServiceEndpointPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceEndpointPoliciesClient, error)
NewServiceEndpointPoliciesClient creates a new instance of ServiceEndpointPoliciesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceEndpointPoliciesClient) BeginCreateOrUpdate ¶
func (client *ServiceEndpointPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters ServiceEndpointPolicy, options *ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServiceEndpointPoliciesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a service Endpoint Policies. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy. parameters - Parameters supplied to the create or update service endpoint policy operation. options - ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceEndpointPoliciesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testPolicy", armnetwork.ServiceEndpointPolicy{ Location: to.Ptr("westus"), }, 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) } // TODO: use response item _ = res }
Output:
func (*ServiceEndpointPoliciesClient) BeginDelete ¶
func (client *ServiceEndpointPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, options *ServiceEndpointPoliciesClientBeginDeleteOptions) (*runtime.Poller[ServiceEndpointPoliciesClientDeleteResponse], error)
BeginDelete - Deletes the specified service endpoint policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy. options - ServiceEndpointPoliciesClientBeginDeleteOptions contains the optional parameters for the ServiceEndpointPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "serviceEndpointPolicy1", 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 (*ServiceEndpointPoliciesClient) Get ¶
func (client *ServiceEndpointPoliciesClient) Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, options *ServiceEndpointPoliciesClientGetOptions) (ServiceEndpointPoliciesClientGetResponse, error)
Get - Gets the specified service Endpoint Policies in a specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy. options - ServiceEndpointPoliciesClientGetOptions contains the optional parameters for the ServiceEndpointPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testServiceEndpointPolicy", &armnetwork.ServiceEndpointPoliciesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ServiceEndpointPoliciesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *ServiceEndpointPoliciesClient) NewListByResourceGroupPager(resourceGroupName string, options *ServiceEndpointPoliciesClientListByResourceGroupOptions) *runtime.Pager[ServiceEndpointPoliciesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all service endpoint Policies in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - ServiceEndpointPoliciesClientListByResourceGroupOptions contains the optional parameters for the ServiceEndpointPoliciesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ServiceEndpointPoliciesClient) NewListPager ¶ added in v0.5.0
func (client *ServiceEndpointPoliciesClient) NewListPager(options *ServiceEndpointPoliciesClientListOptions) *runtime.Pager[ServiceEndpointPoliciesClientListResponse]
NewListPager - Gets all the service endpoint policies in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - ServiceEndpointPoliciesClientListOptions contains the optional parameters for the ServiceEndpointPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ServiceEndpointPoliciesClient) UpdateTags ¶
func (client *ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters TagsObject, options *ServiceEndpointPoliciesClientUpdateTagsOptions) (ServiceEndpointPoliciesClientUpdateTagsResponse, error)
UpdateTags - Updates tags of a service endpoint policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy. parameters - Parameters supplied to update service endpoint policy tags. options - ServiceEndpointPoliciesClientUpdateTagsOptions contains the optional parameters for the ServiceEndpointPoliciesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "testServiceEndpointPolicy", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceEndpointPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceEndpointPoliciesClient.BeginCreateOrUpdate method.
type ServiceEndpointPoliciesClientBeginDeleteOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceEndpointPoliciesClientBeginDeleteOptions contains the optional parameters for the ServiceEndpointPoliciesClient.BeginDelete method.
type ServiceEndpointPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientCreateOrUpdateResponse struct {
ServiceEndpointPolicy
}
ServiceEndpointPoliciesClientCreateOrUpdateResponse contains the response from method ServiceEndpointPoliciesClient.CreateOrUpdate.
type ServiceEndpointPoliciesClientDeleteResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientDeleteResponse struct { }
ServiceEndpointPoliciesClientDeleteResponse contains the response from method ServiceEndpointPoliciesClient.Delete.
type ServiceEndpointPoliciesClientGetOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientGetOptions struct { // Expands referenced resources. Expand *string }
ServiceEndpointPoliciesClientGetOptions contains the optional parameters for the ServiceEndpointPoliciesClient.Get method.
type ServiceEndpointPoliciesClientGetResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientGetResponse struct {
ServiceEndpointPolicy
}
ServiceEndpointPoliciesClientGetResponse contains the response from method ServiceEndpointPoliciesClient.Get.
type ServiceEndpointPoliciesClientListByResourceGroupOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientListByResourceGroupOptions struct { }
ServiceEndpointPoliciesClientListByResourceGroupOptions contains the optional parameters for the ServiceEndpointPoliciesClient.ListByResourceGroup method.
type ServiceEndpointPoliciesClientListByResourceGroupResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientListByResourceGroupResponse struct {
ServiceEndpointPolicyListResult
}
ServiceEndpointPoliciesClientListByResourceGroupResponse contains the response from method ServiceEndpointPoliciesClient.ListByResourceGroup.
type ServiceEndpointPoliciesClientListOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientListOptions struct { }
ServiceEndpointPoliciesClientListOptions contains the optional parameters for the ServiceEndpointPoliciesClient.List method.
type ServiceEndpointPoliciesClientListResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientListResponse struct {
ServiceEndpointPolicyListResult
}
ServiceEndpointPoliciesClientListResponse contains the response from method ServiceEndpointPoliciesClient.List.
type ServiceEndpointPoliciesClientUpdateTagsOptions ¶ added in v0.3.0
type ServiceEndpointPoliciesClientUpdateTagsOptions struct { }
ServiceEndpointPoliciesClientUpdateTagsOptions contains the optional parameters for the ServiceEndpointPoliciesClient.UpdateTags method.
type ServiceEndpointPoliciesClientUpdateTagsResponse ¶ added in v0.3.0
type ServiceEndpointPoliciesClientUpdateTagsResponse struct {
ServiceEndpointPolicy
}
ServiceEndpointPoliciesClientUpdateTagsResponse contains the response from method ServiceEndpointPoliciesClient.UpdateTags.
type ServiceEndpointPolicy ¶
type ServiceEndpointPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the service end point policy. Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Kind of service endpoint policy. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ServiceEndpointPolicy - Service End point policy resource.
func (ServiceEndpointPolicy) MarshalJSON ¶
func (s ServiceEndpointPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceEndpointPolicy.
type ServiceEndpointPolicyDefinition ¶
type ServiceEndpointPolicyDefinition struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the service endpoint policy definition. Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` // The type of the resource. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
ServiceEndpointPolicyDefinition - Service Endpoint policy definitions.
type ServiceEndpointPolicyDefinitionListResult ¶
type ServiceEndpointPolicyDefinitionListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The service endpoint policy definition in a service endpoint policy. Value []*ServiceEndpointPolicyDefinition `json:"value,omitempty"` }
ServiceEndpointPolicyDefinitionListResult - Response for ListServiceEndpointPolicyDefinition API service call. Retrieves all service endpoint policy definition that belongs to a service endpoint policy.
type ServiceEndpointPolicyDefinitionPropertiesFormat ¶
type ServiceEndpointPolicyDefinitionPropertiesFormat struct { // A description for this rule. Restricted to 140 chars. Description *string `json:"description,omitempty"` // Service endpoint name. Service *string `json:"service,omitempty"` // A list of service resources. ServiceResources []*string `json:"serviceResources,omitempty"` // READ-ONLY; The provisioning state of the service endpoint policy definition resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServiceEndpointPolicyDefinitionPropertiesFormat - Service Endpoint policy definition resource.
func (ServiceEndpointPolicyDefinitionPropertiesFormat) MarshalJSON ¶
func (s ServiceEndpointPolicyDefinitionPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceEndpointPolicyDefinitionPropertiesFormat.
type ServiceEndpointPolicyDefinitionsClient ¶
type ServiceEndpointPolicyDefinitionsClient struct {
// contains filtered or unexported fields
}
ServiceEndpointPolicyDefinitionsClient contains the methods for the ServiceEndpointPolicyDefinitions group. Don't use this type directly, use NewServiceEndpointPolicyDefinitionsClient() instead.
func NewServiceEndpointPolicyDefinitionsClient ¶
func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceEndpointPolicyDefinitionsClient, error)
NewServiceEndpointPolicyDefinitionsClient creates a new instance of ServiceEndpointPolicyDefinitionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceEndpointPolicyDefinitionsClient) BeginCreateOrUpdate ¶
func (client *ServiceEndpointPolicyDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, serviceEndpointPolicyDefinitions ServiceEndpointPolicyDefinition, options *ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a service endpoint policy definition in the specified service endpoint policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy. serviceEndpointPolicyDefinitionName - The name of the service endpoint policy definition name. serviceEndpointPolicyDefinitions - Parameters supplied to the create or update service endpoint policy operation. options - ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyDefinitionCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPolicyDefinitionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "testPolicy", "testDefinition", armnetwork.ServiceEndpointPolicyDefinition{ Properties: &armnetwork.ServiceEndpointPolicyDefinitionPropertiesFormat{ Description: to.Ptr("Storage Service EndpointPolicy Definition"), Service: to.Ptr("Microsoft.Storage"), ServiceResources: []*string{ to.Ptr("/subscriptions/subid1"), to.Ptr("/subscriptions/subid1/resourceGroups/storageRg"), to.Ptr("/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount")}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*ServiceEndpointPolicyDefinitionsClient) BeginDelete ¶
func (client *ServiceEndpointPolicyDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, options *ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions) (*runtime.Poller[ServiceEndpointPolicyDefinitionsClientDeleteResponse], error)
BeginDelete - Deletes the specified ServiceEndpoint policy definitions. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the Service Endpoint Policy. serviceEndpointPolicyDefinitionName - The name of the service endpoint policy definition. options - ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyDefinitionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPolicyDefinitionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "testPolicy", "testDefinition", 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 (*ServiceEndpointPolicyDefinitionsClient) Get ¶
func (client *ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string, options *ServiceEndpointPolicyDefinitionsClientGetOptions) (ServiceEndpointPolicyDefinitionsClientGetResponse, error)
Get - Get the specified service endpoint policy definitions from service endpoint policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy name. serviceEndpointPolicyDefinitionName - The name of the service endpoint policy definition name. options - ServiceEndpointPolicyDefinitionsClientGetOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyDefinitionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPolicyDefinitionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testPolicy", "testDefinition", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ServiceEndpointPolicyDefinitionsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *ServiceEndpointPolicyDefinitionsClient) NewListByResourceGroupPager(resourceGroupName string, serviceEndpointPolicyName string, options *ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ServiceEndpointPolicyDefinitionsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all service endpoint policy definitions in a service end point policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. serviceEndpointPolicyName - The name of the service endpoint policy name. options - ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceEndpointPolicyDefinitionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceEndpointPolicyDefinitionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", "testPolicy", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceEndpointPolicyDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.BeginCreateOrUpdate method.
type ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServiceEndpointPolicyDefinitionsClientBeginDeleteOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.BeginDelete method.
type ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse struct {
ServiceEndpointPolicyDefinition
}
ServiceEndpointPolicyDefinitionsClientCreateOrUpdateResponse contains the response from method ServiceEndpointPolicyDefinitionsClient.CreateOrUpdate.
type ServiceEndpointPolicyDefinitionsClientDeleteResponse ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientDeleteResponse struct { }
ServiceEndpointPolicyDefinitionsClientDeleteResponse contains the response from method ServiceEndpointPolicyDefinitionsClient.Delete.
type ServiceEndpointPolicyDefinitionsClientGetOptions ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientGetOptions struct { }
ServiceEndpointPolicyDefinitionsClientGetOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.Get method.
type ServiceEndpointPolicyDefinitionsClientGetResponse ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientGetResponse struct {
ServiceEndpointPolicyDefinition
}
ServiceEndpointPolicyDefinitionsClientGetResponse contains the response from method ServiceEndpointPolicyDefinitionsClient.Get.
type ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions struct { }
ServiceEndpointPolicyDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup method.
type ServiceEndpointPolicyDefinitionsClientListByResourceGroupResponse ¶ added in v0.3.0
type ServiceEndpointPolicyDefinitionsClientListByResourceGroupResponse struct {
ServiceEndpointPolicyDefinitionListResult
}
ServiceEndpointPolicyDefinitionsClientListByResourceGroupResponse contains the response from method ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup.
type ServiceEndpointPolicyListResult ¶
type ServiceEndpointPolicyListResult struct { // A list of ServiceEndpointPolicy resources. Value []*ServiceEndpointPolicy `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ServiceEndpointPolicyListResult - Response for ListServiceEndpointPolicies API service call.
type ServiceEndpointPolicyPropertiesFormat ¶
type ServiceEndpointPolicyPropertiesFormat struct { // A collection of contextual service endpoint policy. ContextualServiceEndpointPolicies []*string `json:"contextualServiceEndpointPolicies,omitempty"` // The alias indicating if the policy belongs to a service ServiceAlias *string `json:"serviceAlias,omitempty"` // A collection of service endpoint policy definitions of the service endpoint policy. ServiceEndpointPolicyDefinitions []*ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` // READ-ONLY; The provisioning state of the service endpoint policy resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the service endpoint policy resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; A collection of references to subnets. Subnets []*Subnet `json:"subnets,omitempty" azure:"ro"` }
ServiceEndpointPolicyPropertiesFormat - Service Endpoint Policy resource.
func (ServiceEndpointPolicyPropertiesFormat) MarshalJSON ¶
func (s ServiceEndpointPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceEndpointPolicyPropertiesFormat.
type ServiceEndpointPropertiesFormat ¶
type ServiceEndpointPropertiesFormat struct { // A list of locations. Locations []*string `json:"locations,omitempty"` // The type of the endpoint service. Service *string `json:"service,omitempty"` // READ-ONLY; The provisioning state of the service endpoint resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServiceEndpointPropertiesFormat - The service endpoint properties.
func (ServiceEndpointPropertiesFormat) MarshalJSON ¶
func (s ServiceEndpointPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceEndpointPropertiesFormat.
type ServiceProviderProvisioningState ¶
type ServiceProviderProvisioningState string
ServiceProviderProvisioningState - The ServiceProviderProvisioningState state of the resource.
const ( ServiceProviderProvisioningStateDeprovisioning ServiceProviderProvisioningState = "Deprovisioning" ServiceProviderProvisioningStateNotProvisioned ServiceProviderProvisioningState = "NotProvisioned" ServiceProviderProvisioningStateProvisioned ServiceProviderProvisioningState = "Provisioned" ServiceProviderProvisioningStateProvisioning ServiceProviderProvisioningState = "Provisioning" )
func PossibleServiceProviderProvisioningStateValues ¶
func PossibleServiceProviderProvisioningStateValues() []ServiceProviderProvisioningState
PossibleServiceProviderProvisioningStateValues returns the possible values for the ServiceProviderProvisioningState const type.
type ServiceTagInformation ¶
type ServiceTagInformation struct { // READ-ONLY; The ID of service tag. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of service tag. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Properties of the service tag information. Properties *ServiceTagInformationPropertiesFormat `json:"properties,omitempty" azure:"ro"` // READ-ONLY; The iteration number of service tag object for region. ServiceTagChangeNumber *string `json:"serviceTagChangeNumber,omitempty" azure:"ro"` }
ServiceTagInformation - The service tag information.
type ServiceTagInformationClient ¶
type ServiceTagInformationClient struct {
// contains filtered or unexported fields
}
ServiceTagInformationClient contains the methods for the ServiceTagInformation group. Don't use this type directly, use NewServiceTagInformationClient() instead.
func NewServiceTagInformationClient ¶
func NewServiceTagInformationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceTagInformationClient, error)
NewServiceTagInformationClient creates a new instance of ServiceTagInformationClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceTagInformationClient) NewListPager ¶ added in v0.5.0
func (client *ServiceTagInformationClient) NewListPager(location string, options *ServiceTagInformationClientListOptions) *runtime.Pager[ServiceTagInformationClientListResponse]
NewListPager - Gets a list of service tag information resources with pagination. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location that will be used as a reference for cloud (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to). options - ServiceTagInformationClientListOptions contains the optional parameters for the ServiceTagInformationClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceTagInformationListResult.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceTagInformationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westeurope", &armnetwork.ServiceTagInformationClientListOptions{NoAddressPrefixes: nil, TagName: nil, }) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ServiceTagInformationClientListOptions ¶ added in v0.3.0
type ServiceTagInformationClientListOptions struct { // Do not return address prefixes for the tag(s). NoAddressPrefixes *bool // Return tag information for a particular tag. TagName *string }
ServiceTagInformationClientListOptions contains the optional parameters for the ServiceTagInformationClient.List method.
type ServiceTagInformationClientListResponse ¶ added in v0.3.0
type ServiceTagInformationClientListResponse struct {
ServiceTagInformationListResult
}
ServiceTagInformationClientListResponse contains the response from method ServiceTagInformationClient.List.
type ServiceTagInformationListResult ¶
type ServiceTagInformationListResult struct { // The list of service tag information resources. Value []*ServiceTagInformation `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ServiceTagInformationListResult - Response for Get ServiceTagInformation API service call. Retrieves the list of service tag information resources.
type ServiceTagInformationPropertiesFormat ¶
type ServiceTagInformationPropertiesFormat struct { // READ-ONLY; The list of IP address prefixes. AddressPrefixes []*string `json:"addressPrefixes,omitempty" azure:"ro"` // READ-ONLY; The iteration number of service tag. ChangeNumber *string `json:"changeNumber,omitempty" azure:"ro"` // READ-ONLY; The region of service tag. Region *string `json:"region,omitempty" azure:"ro"` // READ-ONLY; The state of the service tag. State *string `json:"state,omitempty" azure:"ro"` // READ-ONLY; The name of system service. SystemService *string `json:"systemService,omitempty" azure:"ro"` }
ServiceTagInformationPropertiesFormat - Properties of the service tag information.
type ServiceTagsClient ¶
type ServiceTagsClient struct {
// contains filtered or unexported fields
}
ServiceTagsClient contains the methods for the ServiceTags group. Don't use this type directly, use NewServiceTagsClient() instead.
func NewServiceTagsClient ¶
func NewServiceTagsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceTagsClient, error)
NewServiceTagsClient creates a new instance of ServiceTagsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServiceTagsClient) List ¶
func (client *ServiceTagsClient) List(ctx context.Context, location string, options *ServiceTagsClientListOptions) (ServiceTagsClientListResponse, error)
List - Gets a list of service tag information resources. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location that will be used as a reference for version (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to). options - ServiceTagsClientListOptions contains the optional parameters for the ServiceTagsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/ServiceTagsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewServiceTagsClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "westcentralus", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ServiceTagsClientListOptions ¶ added in v0.3.0
type ServiceTagsClientListOptions struct { }
ServiceTagsClientListOptions contains the optional parameters for the ServiceTagsClient.List method.
type ServiceTagsClientListResponse ¶ added in v0.3.0
type ServiceTagsClientListResponse struct {
ServiceTagsListResult
}
ServiceTagsClientListResponse contains the response from method ServiceTagsClient.List.
type ServiceTagsListResult ¶
type ServiceTagsListResult struct { // READ-ONLY; The iteration number. ChangeNumber *string `json:"changeNumber,omitempty" azure:"ro"` // READ-ONLY; The name of the cloud. Cloud *string `json:"cloud,omitempty" azure:"ro"` // READ-ONLY; The ID of the cloud. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the cloud. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The URL to get next page of service tag information resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The azure resource type. Type *string `json:"type,omitempty" azure:"ro"` // READ-ONLY; The list of service tag information resources. Values []*ServiceTagInformation `json:"values,omitempty" azure:"ro"` }
ServiceTagsListResult - Response for the ListServiceTags API service call.
type SessionIDs ¶
type SessionIDs struct { // List of session IDs. SessionIDs []*string `json:"sessionIds,omitempty"` }
SessionIDs - List of session IDs.
func (SessionIDs) MarshalJSON ¶
func (s SessionIDs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SessionIDs.
type Severity ¶
type Severity string
Severity - The severity of the issue.
func PossibleSeverityValues ¶
func PossibleSeverityValues() []Severity
PossibleSeverityValues returns the possible values for the Severity const type.
type SignatureOverridesFilterValuesQuery ¶ added in v0.2.0
type SignatureOverridesFilterValuesQuery struct { // Describes the name of the column which values will be returned FilterName *string `json:"filterName,omitempty"` }
SignatureOverridesFilterValuesQuery - Describes the filter values possibles for a given column
type SignatureOverridesFilterValuesResponse ¶ added in v0.2.0
type SignatureOverridesFilterValuesResponse struct { // Describes the possible values FilterValues []*string `json:"filterValues,omitempty"` }
SignatureOverridesFilterValuesResponse - Describes the list of all possible values for a specific filter value
type SignaturesOverrides ¶ added in v0.2.0
type SignaturesOverrides struct { // Will contain the resource id of the signature override resource ID *string `json:"id,omitempty"` // Contains the name of the resource (default) Name *string `json:"name,omitempty"` // Will contain the properties of the resource (the actual signature overrides) Properties *SignaturesOverridesProperties `json:"properties,omitempty"` // Will contain the type of the resource: Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides Type *string `json:"type,omitempty"` }
SignaturesOverrides - Contains all specific policy signatures overrides for the IDPS
func (SignaturesOverrides) MarshalJSON ¶ added in v0.2.0
func (s SignaturesOverrides) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SignaturesOverrides.
type SignaturesOverridesList ¶ added in v0.2.0
type SignaturesOverridesList struct { // Describes a list consisting exactly one item describing the policy's signature override status Value []*SignaturesOverrides `json:"value,omitempty"` }
SignaturesOverridesList - Describes an object containing an array with a single item
type SignaturesOverridesProperties ¶ added in v0.2.0
type SignaturesOverridesProperties struct { // Dictionary of Signatures map[string]*string `json:"signatures,omitempty"` }
SignaturesOverridesProperties - Will contain the properties of the resource (the actual signature overrides)
func (SignaturesOverridesProperties) MarshalJSON ¶ added in v0.2.0
func (s SignaturesOverridesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SignaturesOverridesProperties.
type SingleQueryResult ¶ added in v0.2.0
type SingleQueryResult struct { // Describes what is the signature enforces Description *string `json:"description,omitempty"` // Describes the list of destination ports related to this signature DestinationPorts []*string `json:"destinationPorts,omitempty"` // Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional Direction *FirewallPolicyIDPSSignatureDirection `json:"direction,omitempty"` // Describes the groups the signature belongs to Group *string `json:"group,omitempty"` // Describes if this override is inherited from base policy or not InheritedFromParentPolicy *bool `json:"inheritedFromParentPolicy,omitempty"` // Describes the last updated time of the signature (provided from 3rd party vendor) LastUpdated *string `json:"lastUpdated,omitempty"` // The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny Mode *FirewallPolicyIDPSSignatureMode `json:"mode,omitempty"` // Describes the protocol the signatures is being enforced in Protocol *string `json:"protocol,omitempty"` // Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High Severity *FirewallPolicyIDPSSignatureSeverity `json:"severity,omitempty"` // The ID of the signature SignatureID *int32 `json:"signatureId,omitempty"` // Describes the list of source ports related to this signature SourcePorts []*string `json:"sourcePorts,omitempty"` }
type StaticRoute ¶
type StaticRoute struct { // List of all address prefixes. AddressPrefixes []*string `json:"addressPrefixes,omitempty"` // The name of the StaticRoute that is unique within a VnetRoute. Name *string `json:"name,omitempty"` // The ip address of the next hop. NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` }
StaticRoute - List of all Static Routes.
func (StaticRoute) MarshalJSON ¶
func (s StaticRoute) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StaticRoute.
type SubResource ¶
type SubResource struct { // Resource ID. ID *string `json:"id,omitempty"` }
SubResource - Reference to another subresource.
type Subnet ¶
type Subnet struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the subnet. Properties *SubnetPropertiesFormat `json:"properties,omitempty"` // Resource type. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
Subnet in a virtual network resource.
type SubnetAssociation ¶
type SubnetAssociation struct { // Collection of custom security rules. SecurityRules []*SecurityRule `json:"securityRules,omitempty"` // READ-ONLY; Subnet ID. ID *string `json:"id,omitempty" azure:"ro"` }
SubnetAssociation - Subnet and it's custom security rules.
type SubnetListResult ¶
type SubnetListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The subnets in a virtual network. Value []*Subnet `json:"value,omitempty"` }
SubnetListResult - Response for ListSubnets API service callRetrieves all subnet that belongs to a virtual network.
type SubnetPropertiesFormat ¶
type SubnetPropertiesFormat struct { // The address prefix for the subnet. AddressPrefix *string `json:"addressPrefix,omitempty"` // List of address prefixes for the subnet. AddressPrefixes []*string `json:"addressPrefixes,omitempty"` // Application gateway IP configurations of virtual network resource. ApplicationGatewayIPConfigurations []*ApplicationGatewayIPConfiguration `json:"applicationGatewayIpConfigurations,omitempty"` // An array of references to the delegations on the subnet. Delegations []*Delegation `json:"delegations,omitempty"` // Array of IpAllocation which reference this subnet. IPAllocations []*SubResource `json:"ipAllocations,omitempty"` // Nat gateway associated with this subnet. NatGateway *SubResource `json:"natGateway,omitempty"` // The reference to the NetworkSecurityGroup resource. NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` // Enable or Disable apply network policies on private end point in the subnet. PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` // Enable or Disable apply network policies on private link service in the subnet. PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` // The reference to the RouteTable resource. RouteTable *RouteTable `json:"routeTable,omitempty"` // An array of service endpoint policies. ServiceEndpointPolicies []*ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` // An array of service endpoints. ServiceEndpoints []*ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` // READ-ONLY; Array of IP configuration profiles which reference this subnet. IPConfigurationProfiles []*IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty" azure:"ro"` // READ-ONLY; An array of references to the network interface IP configurations using subnet. IPConfigurations []*IPConfiguration `json:"ipConfigurations,omitempty" azure:"ro"` // READ-ONLY; An array of references to private endpoints. PrivateEndpoints []*PrivateEndpoint `json:"privateEndpoints,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the subnet resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; A read-only string identifying the intention of use for this subnet based on delegations and other user-defined // properties. Purpose *string `json:"purpose,omitempty" azure:"ro"` ResourceNavigationLinks []*ResourceNavigationLink `json:"resourceNavigationLinks,omitempty" azure:"ro"` // READ-ONLY; An array of references to services injecting into this subnet. ServiceAssociationLinks []*ServiceAssociationLink `json:"serviceAssociationLinks,omitempty" azure:"ro"` }
SubnetPropertiesFormat - Properties of the subnet.
func (SubnetPropertiesFormat) MarshalJSON ¶
func (s SubnetPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubnetPropertiesFormat.
type SubnetsClient ¶
type SubnetsClient struct {
// contains filtered or unexported fields
}
SubnetsClient contains the methods for the Subnets group. Don't use this type directly, use NewSubnetsClient() instead.
func NewSubnetsClient ¶
func NewSubnetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubnetsClient, error)
NewSubnetsClient creates a new instance of SubnetsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SubnetsClient) BeginCreateOrUpdate ¶
func (client *SubnetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters Subnet, options *SubnetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SubnetsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a subnet in the specified virtual network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. subnetParameters - Parameters supplied to the create or update subnet operation. options - SubnetsClientBeginCreateOrUpdateOptions contains the optional parameters for the SubnetsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "subnet-test", "vnetname", "subnet1", armnetwork.Subnet{ Properties: &armnetwork.SubnetPropertiesFormat{ AddressPrefix: to.Ptr("10.0.0.0/16"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SubnetsClient) BeginDelete ¶
func (client *SubnetsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *SubnetsClientBeginDeleteOptions) (*runtime.Poller[SubnetsClientDeleteResponse], error)
BeginDelete - Deletes the specified subnet. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. options - SubnetsClientBeginDeleteOptions contains the optional parameters for the SubnetsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "subnet-test", "vnetname", "subnet1", 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 (*SubnetsClient) BeginPrepareNetworkPolicies ¶
func (client *SubnetsClient) BeginPrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters PrepareNetworkPoliciesRequest, options *SubnetsClientBeginPrepareNetworkPoliciesOptions) (*runtime.Poller[SubnetsClientPrepareNetworkPoliciesResponse], error)
BeginPrepareNetworkPolicies - Prepares a subnet by applying network intent policies. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies. options - SubnetsClientBeginPrepareNetworkPoliciesOptions contains the optional parameters for the SubnetsClient.BeginPrepareNetworkPolicies method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetPrepareNetworkPolicies.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginPrepareNetworkPolicies(ctx, "rg1", "test-vnet", "subnet1", armnetwork.PrepareNetworkPoliciesRequest{ ServiceName: to.Ptr("Microsoft.Sql/managedInstances"), }, 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 (*SubnetsClient) BeginUnprepareNetworkPolicies ¶
func (client *SubnetsClient) BeginUnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters UnprepareNetworkPoliciesRequest, options *SubnetsClientBeginUnprepareNetworkPoliciesOptions) (*runtime.Poller[SubnetsClientUnprepareNetworkPoliciesResponse], error)
BeginUnprepareNetworkPolicies - Unprepares a subnet by removing network intent policies. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies. options - SubnetsClientBeginUnprepareNetworkPoliciesOptions contains the optional parameters for the SubnetsClient.BeginUnprepareNetworkPolicies method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetUnprepareNetworkPolicies.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUnprepareNetworkPolicies(ctx, "rg1", "test-vnet", "subnet1", armnetwork.UnprepareNetworkPoliciesRequest{ ServiceName: to.Ptr("Microsoft.Sql/managedInstances"), }, 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 (*SubnetsClient) Get ¶
func (client *SubnetsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *SubnetsClientGetOptions) (SubnetsClientGetResponse, error)
Get - Gets the specified subnet by virtual network and resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. subnetName - The name of the subnet. options - SubnetsClientGetOptions contains the optional parameters for the SubnetsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "subnet-test", "vnetname", "subnet1", &armnetwork.SubnetsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SubnetsClient) NewListPager ¶ added in v0.5.0
func (client *SubnetsClient) NewListPager(resourceGroupName string, virtualNetworkName string, options *SubnetsClientListOptions) *runtime.Pager[SubnetsClientListResponse]
NewListPager - Gets all subnets in a virtual network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. options - SubnetsClientListOptions contains the optional parameters for the SubnetsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/SubnetList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewSubnetsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("subnet-test", "vnetname", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SubnetsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type SubnetsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubnetsClientBeginCreateOrUpdateOptions contains the optional parameters for the SubnetsClient.BeginCreateOrUpdate method.
type SubnetsClientBeginDeleteOptions ¶ added in v0.3.0
type SubnetsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubnetsClientBeginDeleteOptions contains the optional parameters for the SubnetsClient.BeginDelete method.
type SubnetsClientBeginPrepareNetworkPoliciesOptions ¶ added in v0.3.0
type SubnetsClientBeginPrepareNetworkPoliciesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubnetsClientBeginPrepareNetworkPoliciesOptions contains the optional parameters for the SubnetsClient.BeginPrepareNetworkPolicies method.
type SubnetsClientBeginUnprepareNetworkPoliciesOptions ¶ added in v0.3.0
type SubnetsClientBeginUnprepareNetworkPoliciesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubnetsClientBeginUnprepareNetworkPoliciesOptions contains the optional parameters for the SubnetsClient.BeginUnprepareNetworkPolicies method.
type SubnetsClientCreateOrUpdateResponse ¶ added in v0.3.0
type SubnetsClientCreateOrUpdateResponse struct {
Subnet
}
SubnetsClientCreateOrUpdateResponse contains the response from method SubnetsClient.CreateOrUpdate.
type SubnetsClientDeleteResponse ¶ added in v0.3.0
type SubnetsClientDeleteResponse struct { }
SubnetsClientDeleteResponse contains the response from method SubnetsClient.Delete.
type SubnetsClientGetOptions ¶ added in v0.3.0
type SubnetsClientGetOptions struct { // Expands referenced resources. Expand *string }
SubnetsClientGetOptions contains the optional parameters for the SubnetsClient.Get method.
type SubnetsClientGetResponse ¶ added in v0.3.0
type SubnetsClientGetResponse struct {
Subnet
}
SubnetsClientGetResponse contains the response from method SubnetsClient.Get.
type SubnetsClientListOptions ¶ added in v0.3.0
type SubnetsClientListOptions struct { }
SubnetsClientListOptions contains the optional parameters for the SubnetsClient.List method.
type SubnetsClientListResponse ¶ added in v0.3.0
type SubnetsClientListResponse struct {
SubnetListResult
}
SubnetsClientListResponse contains the response from method SubnetsClient.List.
type SubnetsClientPrepareNetworkPoliciesResponse ¶ added in v0.3.0
type SubnetsClientPrepareNetworkPoliciesResponse struct { }
SubnetsClientPrepareNetworkPoliciesResponse contains the response from method SubnetsClient.PrepareNetworkPolicies.
type SubnetsClientUnprepareNetworkPoliciesResponse ¶ added in v0.3.0
type SubnetsClientUnprepareNetworkPoliciesResponse struct { }
SubnetsClientUnprepareNetworkPoliciesResponse contains the response from method SubnetsClient.UnprepareNetworkPolicies.
type SyncRemoteAddressSpace ¶
type SyncRemoteAddressSpace string
const (
SyncRemoteAddressSpaceTrue SyncRemoteAddressSpace = "true"
)
func PossibleSyncRemoteAddressSpaceValues ¶
func PossibleSyncRemoteAddressSpaceValues() []SyncRemoteAddressSpace
PossibleSyncRemoteAddressSpaceValues returns the possible values for the SyncRemoteAddressSpace const type.
type TagsObject ¶
TagsObject - Tags object for patch operations.
func (TagsObject) MarshalJSON ¶
func (t TagsObject) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TagsObject.
type Topology ¶
type Topology struct { // A list of topology resources. Resources []*TopologyResource `json:"resources,omitempty"` // READ-ONLY; The datetime when the topology was initially created for the resource group. CreatedDateTime *time.Time `json:"createdDateTime,omitempty" azure:"ro"` // READ-ONLY; GUID representing the operation id. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The datetime when the topology was last modified. LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` }
Topology of the specified resource group.
func (*Topology) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Topology.
type TopologyAssociation ¶
type TopologyAssociation struct { // The association type of the child resource to the parent resource. AssociationType *AssociationType `json:"associationType,omitempty"` // The name of the resource that is associated with the parent resource. Name *string `json:"name,omitempty"` // The ID of the resource that is associated with the parent resource. ResourceID *string `json:"resourceId,omitempty"` }
TopologyAssociation - Resources that have an association with the parent resource.
type TopologyParameters ¶
type TopologyParameters struct { // The name of the target resource group to perform topology on. TargetResourceGroupName *string `json:"targetResourceGroupName,omitempty"` // The reference to the Subnet resource. TargetSubnet *SubResource `json:"targetSubnet,omitempty"` // The reference to the Virtual Network resource. TargetVirtualNetwork *SubResource `json:"targetVirtualNetwork,omitempty"` }
TopologyParameters - Parameters that define the representation of topology.
type TopologyResource ¶
type TopologyResource struct { // Holds the associations the resource has with other resources in the resource group. Associations []*TopologyAssociation `json:"associations,omitempty"` // ID of the resource. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Name of the resource. Name *string `json:"name,omitempty"` }
TopologyResource - The network resource topology information for the given resource group.
type TrafficAnalyticsConfigurationProperties ¶
type TrafficAnalyticsConfigurationProperties struct { // Flag to enable/disable traffic analytics. Enabled *bool `json:"enabled,omitempty"` // The interval in minutes which would decide how frequently TA service should do flow analytics. TrafficAnalyticsInterval *int32 `json:"trafficAnalyticsInterval,omitempty"` // The resource guid of the attached workspace. WorkspaceID *string `json:"workspaceId,omitempty"` // The location of the attached workspace. WorkspaceRegion *string `json:"workspaceRegion,omitempty"` // Resource Id of the attached workspace. WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` }
TrafficAnalyticsConfigurationProperties - Parameters that define the configuration of traffic analytics.
type TrafficAnalyticsProperties ¶
type TrafficAnalyticsProperties struct { // Parameters that define the configuration of traffic analytics. NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` }
TrafficAnalyticsProperties - Parameters that define the configuration of traffic analytics.
type TrafficSelectorPolicy ¶
type TrafficSelectorPolicy struct { // REQUIRED; A collection of local address spaces in CIDR format. LocalAddressRanges []*string `json:"localAddressRanges,omitempty"` // REQUIRED; A collection of remote address spaces in CIDR format. RemoteAddressRanges []*string `json:"remoteAddressRanges,omitempty"` }
TrafficSelectorPolicy - An traffic selector policy for a virtual network gateway connection.
func (TrafficSelectorPolicy) MarshalJSON ¶
func (t TrafficSelectorPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficSelectorPolicy.
type TransportProtocol ¶
type TransportProtocol string
TransportProtocol - The transport protocol for the endpoint.
const ( TransportProtocolAll TransportProtocol = "All" TransportProtocolTCP TransportProtocol = "Tcp" TransportProtocolUDP TransportProtocol = "Udp" )
func PossibleTransportProtocolValues ¶
func PossibleTransportProtocolValues() []TransportProtocol
PossibleTransportProtocolValues returns the possible values for the TransportProtocol const type.
type TroubleshootingDetails ¶
type TroubleshootingDetails struct { // Details on troubleshooting results. Detail *string `json:"detail,omitempty"` // The id of the get troubleshoot operation. ID *string `json:"id,omitempty"` // Reason type of failure. ReasonType *string `json:"reasonType,omitempty"` // List of recommended actions. RecommendedActions []*TroubleshootingRecommendedActions `json:"recommendedActions,omitempty"` // A summary of troubleshooting. Summary *string `json:"summary,omitempty"` }
TroubleshootingDetails - Information gained from troubleshooting of specified resource.
type TroubleshootingParameters ¶
type TroubleshootingParameters struct { // REQUIRED; Properties of the troubleshooting resource. Properties *TroubleshootingProperties `json:"properties,omitempty"` // REQUIRED; The target resource to troubleshoot. TargetResourceID *string `json:"targetResourceId,omitempty"` }
TroubleshootingParameters - Parameters that define the resource to troubleshoot.
type TroubleshootingProperties ¶
type TroubleshootingProperties struct { // REQUIRED; The ID for the storage account to save the troubleshoot result. StorageID *string `json:"storageId,omitempty"` // REQUIRED; The path to the blob to save the troubleshoot result in. StoragePath *string `json:"storagePath,omitempty"` }
TroubleshootingProperties - Storage location provided for troubleshoot.
type TroubleshootingRecommendedActions ¶
type TroubleshootingRecommendedActions struct { // ID of the recommended action. ActionID *string `json:"actionId,omitempty"` // Description of recommended actions. ActionText *string `json:"actionText,omitempty"` // The uri linking to a documentation for the recommended troubleshooting actions. ActionURI *string `json:"actionUri,omitempty"` // The information from the URI for the recommended troubleshooting actions. ActionURIText *string `json:"actionUriText,omitempty"` }
TroubleshootingRecommendedActions - Recommended actions based on discovered issues.
type TroubleshootingResult ¶
type TroubleshootingResult struct { // The result code of the troubleshooting. Code *string `json:"code,omitempty"` // The end time of the troubleshooting. EndTime *time.Time `json:"endTime,omitempty"` // Information from troubleshooting. Results []*TroubleshootingDetails `json:"results,omitempty"` // The start time of the troubleshooting. StartTime *time.Time `json:"startTime,omitempty"` }
TroubleshootingResult - Troubleshooting information gained from specified resource.
func (*TroubleshootingResult) UnmarshalJSON ¶
func (t *TroubleshootingResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TroubleshootingResult.
type TunnelConnectionHealth ¶
type TunnelConnectionHealth struct { // READ-ONLY; Virtual Network Gateway connection status. ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; The Egress Bytes Transferred in this connection. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The Ingress Bytes Transferred in this connection. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The time at which connection was established in Utc format. LastConnectionEstablishedUTCTime *string `json:"lastConnectionEstablishedUtcTime,omitempty" azure:"ro"` // READ-ONLY; Tunnel name. Tunnel *string `json:"tunnel,omitempty" azure:"ro"` }
TunnelConnectionHealth - VirtualNetworkGatewayConnection properties.
type TunnelConnectionStatus ¶
type TunnelConnectionStatus string
TunnelConnectionStatus - The current state of the tunnel.
const ( TunnelConnectionStatusConnected TunnelConnectionStatus = "Connected" TunnelConnectionStatusConnecting TunnelConnectionStatus = "Connecting" TunnelConnectionStatusNotConnected TunnelConnectionStatus = "NotConnected" TunnelConnectionStatusUnknown TunnelConnectionStatus = "Unknown" )
func PossibleTunnelConnectionStatusValues ¶
func PossibleTunnelConnectionStatusValues() []TunnelConnectionStatus
PossibleTunnelConnectionStatusValues returns the possible values for the TunnelConnectionStatus const type.
type UnprepareNetworkPoliciesRequest ¶
type UnprepareNetworkPoliciesRequest struct { // The name of the service for which subnet is being unprepared for. ServiceName *string `json:"serviceName,omitempty"` }
UnprepareNetworkPoliciesRequest - Details of UnprepareNetworkPolicies for Subnet.
type Usage ¶
type Usage struct { // REQUIRED; The current value of the usage. CurrentValue *int64 `json:"currentValue,omitempty"` // REQUIRED; The limit of usage. Limit *int64 `json:"limit,omitempty"` // REQUIRED; The name of the type of usage. Name *UsageName `json:"name,omitempty"` // REQUIRED; An enum describing the unit of measurement. Unit *UsageUnit `json:"unit,omitempty"` // READ-ONLY; Resource identifier. ID *string `json:"id,omitempty" azure:"ro"` }
Usage - The network resource usage.
type UsageName ¶
type UsageName struct { // A localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty"` // A string describing the resource name. Value *string `json:"value,omitempty"` }
UsageName - The usage names.
type UsageUnit ¶
type UsageUnit string
UsageUnit - An enum describing the unit of measurement.
const (
UsageUnitCount UsageUnit = "Count"
)
func PossibleUsageUnitValues ¶
func PossibleUsageUnitValues() []UsageUnit
PossibleUsageUnitValues returns the possible values for the UsageUnit const type.
type UsagesClient ¶
type UsagesClient struct {
// contains filtered or unexported fields
}
UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.
func NewUsagesClient ¶
func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error)
NewUsagesClient creates a new instance of UsagesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*UsagesClient) NewListPager ¶ added in v0.5.0
func (client *UsagesClient) NewListPager(location string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]
NewListPager - List network usages for a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 location - The location where resource usage is queried. options - UsagesClientListOptions contains the optional parameters for the UsagesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/UsageList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewUsagesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("westus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type UsagesClientListOptions ¶ added in v0.3.0
type UsagesClientListOptions struct { }
UsagesClientListOptions contains the optional parameters for the UsagesClient.List method.
type UsagesClientListResponse ¶ added in v0.3.0
type UsagesClientListResponse struct {
UsagesListResult
}
UsagesClientListResponse contains the response from method UsagesClient.List.
type UsagesListResult ¶
type UsagesListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The list network resource usages. Value []*Usage `json:"value,omitempty"` }
UsagesListResult - The list usages operation response.
type VM ¶
type VM struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VM - Describes a Virtual Machine.
func (VM) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type VM.
type VPNAuthenticationType ¶
type VPNAuthenticationType string
VPNAuthenticationType - VPN authentication types enabled for the virtual network gateway.
const ( VPNAuthenticationTypeAAD VPNAuthenticationType = "AAD" VPNAuthenticationTypeCertificate VPNAuthenticationType = "Certificate" VPNAuthenticationTypeRadius VPNAuthenticationType = "Radius" )
func PossibleVPNAuthenticationTypeValues ¶
func PossibleVPNAuthenticationTypeValues() []VPNAuthenticationType
PossibleVPNAuthenticationTypeValues returns the possible values for the VPNAuthenticationType const type.
type VPNClientConfiguration ¶
type VPNClientConfiguration struct { // The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. AADAudience *string `json:"aadAudience,omitempty"` // The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. AADIssuer *string `json:"aadIssuer,omitempty"` // The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. AADTenant *string `json:"aadTenant,omitempty"` // The radius server address property of the VirtualNetworkGateway resource for vpn client connection. RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` // The radius secret property of the VirtualNetworkGateway resource for vpn client connection. RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` // The radiusServers property for multiple radius server configuration. RadiusServers []*RadiusServer `json:"radiusServers,omitempty"` // VPN authentication types for the virtual network gateway.. VPNAuthenticationTypes []*VPNAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` // The reference to the address space resource which represents Address space for P2S VpnClient. VPNClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` // VpnClientIpsecPolicies for virtual network gateway P2S client. VPNClientIPSecPolicies []*IPSecPolicy `json:"vpnClientIpsecPolicies,omitempty"` // VpnClientProtocols for Virtual network gateway. VPNClientProtocols []*VPNClientProtocol `json:"vpnClientProtocols,omitempty"` // VpnClientRevokedCertificate for Virtual network gateway. VPNClientRevokedCertificates []*VPNClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` // VpnClientRootCertificate for virtual network gateway. VPNClientRootCertificates []*VPNClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` }
VPNClientConfiguration - VpnClientConfiguration for P2S client.
func (VPNClientConfiguration) MarshalJSON ¶
func (v VPNClientConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNClientConfiguration.
type VPNClientConnectionHealth ¶
type VPNClientConnectionHealth struct { // List of allocated ip addresses to the connected p2s vpn clients. AllocatedIPAddresses []*string `json:"allocatedIpAddresses,omitempty"` // The total of p2s vpn clients connected at this time to this P2SVpnGateway. VPNClientConnectionsCount *int32 `json:"vpnClientConnectionsCount,omitempty"` // READ-ONLY; Total of the Egress Bytes Transferred in this connection. TotalEgressBytesTransferred *int64 `json:"totalEgressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; Total of the Ingress Bytes Transferred in this P2S Vpn connection. TotalIngressBytesTransferred *int64 `json:"totalIngressBytesTransferred,omitempty" azure:"ro"` }
VPNClientConnectionHealth - VpnClientConnectionHealth properties.
func (VPNClientConnectionHealth) MarshalJSON ¶
func (v VPNClientConnectionHealth) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNClientConnectionHealth.
type VPNClientConnectionHealthDetail ¶
type VPNClientConnectionHealthDetail struct { // READ-ONLY; The egress bytes per second. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The egress packets per second. EgressPacketsTransferred *int64 `json:"egressPacketsTransferred,omitempty" azure:"ro"` // READ-ONLY; The ingress bytes per second. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The ingress packets per second. IngressPacketsTransferred *int64 `json:"ingressPacketsTransferred,omitempty" azure:"ro"` // READ-ONLY; The max band width. MaxBandwidth *int64 `json:"maxBandwidth,omitempty" azure:"ro"` // READ-ONLY; The max packets transferred per second. MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty" azure:"ro"` // READ-ONLY; The assigned private Ip of a connected vpn client. PrivateIPAddress *string `json:"privateIpAddress,omitempty" azure:"ro"` // READ-ONLY; The public Ip of a connected vpn client. PublicIPAddress *string `json:"publicIpAddress,omitempty" azure:"ro"` // READ-ONLY; The duration time of a connected vpn client. VPNConnectionDuration *int64 `json:"vpnConnectionDuration,omitempty" azure:"ro"` // READ-ONLY; The vpn client Id. VPNConnectionID *string `json:"vpnConnectionId,omitempty" azure:"ro"` // READ-ONLY; The start time of a connected vpn client. VPNConnectionTime *string `json:"vpnConnectionTime,omitempty" azure:"ro"` // READ-ONLY; The user name of a connected vpn client. VPNUserName *string `json:"vpnUserName,omitempty" azure:"ro"` }
VPNClientConnectionHealthDetail - VPN client connection health detail.
type VPNClientConnectionHealthDetailListResult ¶
type VPNClientConnectionHealthDetailListResult struct { // List of vpn client connection health. Value []*VPNClientConnectionHealthDetail `json:"value,omitempty"` }
VPNClientConnectionHealthDetailListResult - List of virtual network gateway vpn client connection health.
type VPNClientIPsecParameters ¶
type VPNClientIPsecParameters struct { // REQUIRED; The DH Group used in IKE Phase 1 for initial SA. DhGroup *DhGroup `json:"dhGroup,omitempty"` // REQUIRED; The IPSec encryption algorithm (IKE phase 1). IPSecEncryption *IPSecEncryption `json:"ipsecEncryption,omitempty"` // REQUIRED; The IPSec integrity algorithm (IKE phase 1). IPSecIntegrity *IPSecIntegrity `json:"ipsecIntegrity,omitempty"` // REQUIRED; The IKE encryption algorithm (IKE phase 2). IkeEncryption *IkeEncryption `json:"ikeEncryption,omitempty"` // REQUIRED; The IKE integrity algorithm (IKE phase 2). IkeIntegrity *IkeIntegrity `json:"ikeIntegrity,omitempty"` // REQUIRED; The Pfs Group used in IKE Phase 2 for new child SA. PfsGroup *PfsGroup `json:"pfsGroup,omitempty"` // REQUIRED; The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. SaDataSizeKilobytes *int32 `json:"saDataSizeKilobytes,omitempty"` // REQUIRED; The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. SaLifeTimeSeconds *int32 `json:"saLifeTimeSeconds,omitempty"` }
VPNClientIPsecParameters - An IPSec parameters for a virtual network gateway P2S connection.
type VPNClientParameters ¶
type VPNClientParameters struct { // VPN client authentication method. AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` // A list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external // radius based authentication with EAPTLS. ClientRootCertificates []*string `json:"clientRootCertificates,omitempty"` // VPN client Processor Architecture. ProcessorArchitecture *ProcessorArchitecture `json:"processorArchitecture,omitempty"` // The public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only // if external radius authentication has been configured with EAPTLS // authentication. RadiusServerAuthCertificate *string `json:"radiusServerAuthCertificate,omitempty"` }
VPNClientParameters - Vpn Client Parameters for package generation.
func (VPNClientParameters) MarshalJSON ¶
func (v VPNClientParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNClientParameters.
type VPNClientProtocol ¶
type VPNClientProtocol string
VPNClientProtocol - VPN client protocol enabled for the virtual network gateway.
const ( VPNClientProtocolIkeV2 VPNClientProtocol = "IkeV2" VPNClientProtocolOpenVPN VPNClientProtocol = "OpenVPN" VPNClientProtocolSSTP VPNClientProtocol = "SSTP" )
func PossibleVPNClientProtocolValues ¶
func PossibleVPNClientProtocolValues() []VPNClientProtocol
PossibleVPNClientProtocolValues returns the possible values for the VPNClientProtocol const type.
type VPNClientRevokedCertificate ¶
type VPNClientRevokedCertificate struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the vpn client revoked certificate. Properties *VPNClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VPNClientRevokedCertificate - VPN client revoked certificate of virtual network gateway.
type VPNClientRevokedCertificatePropertiesFormat ¶
type VPNClientRevokedCertificatePropertiesFormat struct { // The revoked VPN client certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` // READ-ONLY; The provisioning state of the VPN client revoked certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNClientRevokedCertificatePropertiesFormat - Properties of the revoked VPN client certificate of virtual network gateway.
type VPNClientRootCertificate ¶
type VPNClientRootCertificate struct { // REQUIRED; Properties of the vpn client root certificate. Properties *VPNClientRootCertificatePropertiesFormat `json:"properties,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VPNClientRootCertificate - VPN client root certificate of virtual network gateway.
type VPNClientRootCertificatePropertiesFormat ¶
type VPNClientRootCertificatePropertiesFormat struct { // REQUIRED; The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` // READ-ONLY; The provisioning state of the VPN client root certificate resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNClientRootCertificatePropertiesFormat - Properties of SSL certificates of application gateway.
type VPNConnection ¶
type VPNConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the VPN connection. Properties *VPNConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VPNConnection - VpnConnection Resource.
type VPNConnectionPacketCaptureStartParameters ¶
type VPNConnectionPacketCaptureStartParameters struct { // Start Packet capture parameters on vpn connection. FilterData *string `json:"filterData,omitempty"` // List of site link connection names. LinkConnectionNames []*string `json:"linkConnectionNames,omitempty"` }
VPNConnectionPacketCaptureStartParameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
func (VPNConnectionPacketCaptureStartParameters) MarshalJSON ¶
func (v VPNConnectionPacketCaptureStartParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNConnectionPacketCaptureStartParameters.
type VPNConnectionPacketCaptureStopParameters ¶
type VPNConnectionPacketCaptureStopParameters struct { // List of site link connection names. LinkConnectionNames []*string `json:"linkConnectionNames,omitempty"` // SAS url for packet capture on vpn connection. SasURL *string `json:"sasUrl,omitempty"` }
VPNConnectionPacketCaptureStopParameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
func (VPNConnectionPacketCaptureStopParameters) MarshalJSON ¶
func (v VPNConnectionPacketCaptureStopParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNConnectionPacketCaptureStopParameters.
type VPNConnectionProperties ¶
type VPNConnectionProperties struct { // Expected bandwidth in MBPS. ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` // DPD timeout in seconds for vpn connection. DpdTimeoutSeconds *int32 `json:"dpdTimeoutSeconds,omitempty"` // EnableBgp flag. EnableBgp *bool `json:"enableBgp,omitempty"` // Enable internet security. EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` // EnableBgp flag. EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` // The IPSec Policies to be considered by this connection. IPSecPolicies []*IPSecPolicy `json:"ipsecPolicies,omitempty"` // Id of the connected vpn site. RemoteVPNSite *SubResource `json:"remoteVpnSite,omitempty"` // The Routing Configuration indicating the associated and propagated route tables on this connection. RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` // Routing weight for vpn connection. RoutingWeight *int32 `json:"routingWeight,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // The Traffic Selector Policies to be considered by this connection. TrafficSelectorPolicies []*TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` // Use local azure ip to initiate connection. UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` // Enable policy-based traffic selectors. UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` // Connection protocol used for this connection. VPNConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` // List of all vpn site link connections to the gateway. VPNLinkConnections []*VPNSiteLinkConnection `json:"vpnLinkConnections,omitempty"` // READ-ONLY; The connection status. ConnectionStatus *VPNConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; Egress bytes transferred. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; Ingress bytes transferred. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the VPN connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNConnectionProperties - Parameters for VpnConnection.
func (VPNConnectionProperties) MarshalJSON ¶
func (v VPNConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNConnectionProperties.
type VPNConnectionStatus ¶
type VPNConnectionStatus string
VPNConnectionStatus - The current state of the vpn connection.
const ( VPNConnectionStatusConnected VPNConnectionStatus = "Connected" VPNConnectionStatusConnecting VPNConnectionStatus = "Connecting" VPNConnectionStatusNotConnected VPNConnectionStatus = "NotConnected" VPNConnectionStatusUnknown VPNConnectionStatus = "Unknown" )
func PossibleVPNConnectionStatusValues ¶
func PossibleVPNConnectionStatusValues() []VPNConnectionStatus
PossibleVPNConnectionStatusValues returns the possible values for the VPNConnectionStatus const type.
type VPNConnectionsClient ¶
type VPNConnectionsClient struct {
// contains filtered or unexported fields
}
VPNConnectionsClient contains the methods for the VPNConnections group. Don't use this type directly, use NewVPNConnectionsClient() instead.
func NewVPNConnectionsClient ¶
func NewVPNConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNConnectionsClient, error)
NewVPNConnectionsClient creates a new instance of VPNConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNConnectionsClient) BeginCreateOrUpdate ¶
func (client *VPNConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, vpnConnectionParameters VPNConnection, options *VPNConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VPNConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. connectionName - The name of the connection. vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection. options - VPNConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnConnectionPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "gateway1", "vpnConnection1", armnetwork.VPNConnection{ Properties: &armnetwork.VPNConnectionProperties{ RemoteVPNSite: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1"), }, TrafficSelectorPolicies: []*armnetwork.TrafficSelectorPolicy{}, VPNLinkConnections: []*armnetwork.VPNSiteLinkConnection{ { Name: to.Ptr("Connection-Link1"), Properties: &armnetwork.VPNSiteLinkConnectionProperties{ ConnectionBandwidth: to.Ptr[int32](200), SharedKey: to.Ptr("key"), UsePolicyBasedTrafficSelectors: to.Ptr(false), VPNConnectionProtocolType: to.Ptr(armnetwork.VirtualNetworkGatewayConnectionProtocolIKEv2), VPNLinkConnectionMode: to.Ptr(armnetwork.VPNLinkConnectionModeDefault), VPNSiteLink: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1"), }, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VPNConnectionsClient) BeginDelete ¶
func (client *VPNConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, options *VPNConnectionsClientBeginDeleteOptions) (*runtime.Poller[VPNConnectionsClientDeleteResponse], error)
BeginDelete - Deletes a vpn connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. connectionName - The name of the connection. options - VPNConnectionsClientBeginDeleteOptions contains the optional parameters for the VPNConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "gateway1", "vpnConnection1", 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 (*VPNConnectionsClient) BeginStartPacketCapture ¶
func (client *VPNConnectionsClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, options *VPNConnectionsClientBeginStartPacketCaptureOptions) (*runtime.Poller[VPNConnectionsClientStartPacketCaptureResponse], error)
BeginStartPacketCapture - Starts packet capture on Vpn connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the gateway. vpnConnectionName - The name of the vpn connection. options - VPNConnectionsClientBeginStartPacketCaptureOptions contains the optional parameters for the VPNConnectionsClient.BeginStartPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnConnectionStartPacketCaptureFilterData.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStartPacketCapture(ctx, "rg1", "gateway1", "vpnConnection1", &armnetwork.VPNConnectionsClientBeginStartPacketCaptureOptions{Parameters: &armnetwork.VPNConnectionPacketCaptureStartParameters{ FilterData: to.Ptr("{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), LinkConnectionNames: []*string{ to.Ptr("siteLink1"), to.Ptr("siteLink2")}, }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VPNConnectionsClient) BeginStopPacketCapture ¶
func (client *VPNConnectionsClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, vpnConnectionName string, options *VPNConnectionsClientBeginStopPacketCaptureOptions) (*runtime.Poller[VPNConnectionsClientStopPacketCaptureResponse], error)
BeginStopPacketCapture - Stops packet capture on Vpn connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the gateway. vpnConnectionName - The name of the vpn connection. options - VPNConnectionsClientBeginStopPacketCaptureOptions contains the optional parameters for the VPNConnectionsClient.BeginStopPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnConnectionStopPacketCapture.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStopPacketCapture(ctx, "rg1", "gateway1", "vpnConnection1", &armnetwork.VPNConnectionsClientBeginStopPacketCaptureOptions{Parameters: &armnetwork.VPNConnectionPacketCaptureStopParameters{ LinkConnectionNames: []*string{ to.Ptr("vpnSiteLink1"), to.Ptr("vpnSiteLink2")}, SasURL: to.Ptr("https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VPNConnectionsClient) Get ¶
func (client *VPNConnectionsClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, options *VPNConnectionsClientGetOptions) (VPNConnectionsClientGetResponse, error)
Get - Retrieves the details of a vpn connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. connectionName - The name of the vpn connection. options - VPNConnectionsClientGetOptions contains the optional parameters for the VPNConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "gateway1", "vpnConnection1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VPNConnectionsClient) NewListByVPNGatewayPager ¶ added in v0.5.0
func (client *VPNConnectionsClient) NewListByVPNGatewayPager(resourceGroupName string, gatewayName string, options *VPNConnectionsClientListByVPNGatewayOptions) *runtime.Pager[VPNConnectionsClientListByVPNGatewayResponse]
NewListByVPNGatewayPager - Retrieves all vpn connections for a particular virtual wan vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNConnectionsClientListByVPNGatewayOptions contains the optional parameters for the VPNConnectionsClient.ListByVPNGateway method.
type VPNConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VPNConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNConnectionsClient.BeginCreateOrUpdate method.
type VPNConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type VPNConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNConnectionsClientBeginDeleteOptions contains the optional parameters for the VPNConnectionsClient.BeginDelete method.
type VPNConnectionsClientBeginStartPacketCaptureOptions ¶ added in v0.3.0
type VPNConnectionsClientBeginStartPacketCaptureOptions struct { // Vpn Connection packet capture parameters supplied to start packet capture on gateway connection. Parameters *VPNConnectionPacketCaptureStartParameters // Resumes the LRO from the provided token. ResumeToken string }
VPNConnectionsClientBeginStartPacketCaptureOptions contains the optional parameters for the VPNConnectionsClient.BeginStartPacketCapture method.
type VPNConnectionsClientBeginStopPacketCaptureOptions ¶ added in v0.3.0
type VPNConnectionsClientBeginStopPacketCaptureOptions struct { // Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. Parameters *VPNConnectionPacketCaptureStopParameters // Resumes the LRO from the provided token. ResumeToken string }
VPNConnectionsClientBeginStopPacketCaptureOptions contains the optional parameters for the VPNConnectionsClient.BeginStopPacketCapture method.
type VPNConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VPNConnectionsClientCreateOrUpdateResponse struct {
VPNConnection
}
VPNConnectionsClientCreateOrUpdateResponse contains the response from method VPNConnectionsClient.CreateOrUpdate.
type VPNConnectionsClientDeleteResponse ¶ added in v0.3.0
type VPNConnectionsClientDeleteResponse struct { }
VPNConnectionsClientDeleteResponse contains the response from method VPNConnectionsClient.Delete.
type VPNConnectionsClientGetOptions ¶ added in v0.3.0
type VPNConnectionsClientGetOptions struct { }
VPNConnectionsClientGetOptions contains the optional parameters for the VPNConnectionsClient.Get method.
type VPNConnectionsClientGetResponse ¶ added in v0.3.0
type VPNConnectionsClientGetResponse struct {
VPNConnection
}
VPNConnectionsClientGetResponse contains the response from method VPNConnectionsClient.Get.
type VPNConnectionsClientListByVPNGatewayOptions ¶ added in v0.3.0
type VPNConnectionsClientListByVPNGatewayOptions struct { }
VPNConnectionsClientListByVPNGatewayOptions contains the optional parameters for the VPNConnectionsClient.ListByVPNGateway method.
type VPNConnectionsClientListByVPNGatewayResponse ¶ added in v0.3.0
type VPNConnectionsClientListByVPNGatewayResponse struct {
ListVPNConnectionsResult
}
VPNConnectionsClientListByVPNGatewayResponse contains the response from method VPNConnectionsClient.ListByVPNGateway.
type VPNConnectionsClientStartPacketCaptureResponse ¶ added in v0.3.0
type VPNConnectionsClientStartPacketCaptureResponse struct {
Value *string
}
VPNConnectionsClientStartPacketCaptureResponse contains the response from method VPNConnectionsClient.StartPacketCapture.
func (*VPNConnectionsClientStartPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VPNConnectionsClientStartPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VPNConnectionsClientStartPacketCaptureResponse.
type VPNConnectionsClientStopPacketCaptureResponse ¶ added in v0.3.0
type VPNConnectionsClientStopPacketCaptureResponse struct {
Value *string
}
VPNConnectionsClientStopPacketCaptureResponse contains the response from method VPNConnectionsClient.StopPacketCapture.
func (*VPNConnectionsClientStopPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VPNConnectionsClientStopPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VPNConnectionsClientStopPacketCaptureResponse.
type VPNDeviceScriptParameters ¶
type VPNDeviceScriptParameters struct { // The device family for the vpn device. DeviceFamily *string `json:"deviceFamily,omitempty"` // The firmware version for the vpn device. FirmwareVersion *string `json:"firmwareVersion,omitempty"` // The vendor for the vpn device. Vendor *string `json:"vendor,omitempty"` }
VPNDeviceScriptParameters - Vpn device configuration script generation parameters.
type VPNGateway ¶
type VPNGateway struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the VPN gateway. Properties *VPNGatewayProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNGateway - VpnGateway Resource.
func (VPNGateway) MarshalJSON ¶
func (v VPNGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNGateway.
type VPNGatewayGeneration ¶
type VPNGatewayGeneration string
VPNGatewayGeneration - The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.
const ( VPNGatewayGenerationGeneration1 VPNGatewayGeneration = "Generation1" VPNGatewayGenerationGeneration2 VPNGatewayGeneration = "Generation2" VPNGatewayGenerationNone VPNGatewayGeneration = "None" )
func PossibleVPNGatewayGenerationValues ¶
func PossibleVPNGatewayGenerationValues() []VPNGatewayGeneration
PossibleVPNGatewayGenerationValues returns the possible values for the VPNGatewayGeneration const type.
type VPNGatewayIPConfiguration ¶
type VPNGatewayIPConfiguration struct { // The identifier of the IP configuration for a VPN Gateway. ID *string `json:"id,omitempty"` // The private IP address of this IP configuration. PrivateIPAddress *string `json:"privateIpAddress,omitempty"` // The public IP address of this IP configuration. PublicIPAddress *string `json:"publicIpAddress,omitempty"` }
VPNGatewayIPConfiguration - IP Configuration of a VPN Gateway Resource.
type VPNGatewayNatRule ¶
type VPNGatewayNatRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the VpnGateway NAT rule. Properties *VPNGatewayNatRuleProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNGatewayNatRule - VpnGatewayNatRule Resource.
type VPNGatewayNatRuleProperties ¶
type VPNGatewayNatRuleProperties struct { // The private IP address external mapping for NAT. ExternalMappings []*VPNNatRuleMapping `json:"externalMappings,omitempty"` // The IP Configuration ID this NAT rule applies to. IPConfigurationID *string `json:"ipConfigurationId,omitempty"` // The private IP address internal mapping for NAT. InternalMappings []*VPNNatRuleMapping `json:"internalMappings,omitempty"` // The Source NAT direction of a VPN NAT. Mode *VPNNatRuleMode `json:"mode,omitempty"` // The type of NAT rule for VPN NAT. Type *VPNNatRuleType `json:"type,omitempty"` // READ-ONLY; List of egress VpnSiteLinkConnections. EgressVPNSiteLinkConnections []*SubResource `json:"egressVpnSiteLinkConnections,omitempty" azure:"ro"` // READ-ONLY; List of ingress VpnSiteLinkConnections. IngressVPNSiteLinkConnections []*SubResource `json:"ingressVpnSiteLinkConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the NAT Rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNGatewayNatRuleProperties - Parameters for VpnGatewayNatRule.
func (VPNGatewayNatRuleProperties) MarshalJSON ¶
func (v VPNGatewayNatRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNGatewayNatRuleProperties.
type VPNGatewayPacketCaptureStartParameters ¶
type VPNGatewayPacketCaptureStartParameters struct { // Start Packet capture parameters on vpn gateway. FilterData *string `json:"filterData,omitempty"` }
VPNGatewayPacketCaptureStartParameters - Start packet capture parameters.
type VPNGatewayPacketCaptureStopParameters ¶
type VPNGatewayPacketCaptureStopParameters struct { // SAS url for packet capture on vpn gateway. SasURL *string `json:"sasUrl,omitempty"` }
VPNGatewayPacketCaptureStopParameters - Stop packet capture parameters.
type VPNGatewayProperties ¶
type VPNGatewayProperties struct { // Local network gateway's BGP speaker settings. BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` // List of all vpn connections to the gateway. Connections []*VPNConnection `json:"connections,omitempty"` // Enable BGP routes translation for NAT on this VpnGateway. EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` // Enable Routing Preference property for the Public IP Interface of the VpnGateway. IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` // List of all the nat Rules associated with the gateway. NatRules []*VPNGatewayNatRule `json:"natRules,omitempty"` // The scale unit for this vpn gateway. VPNGatewayScaleUnit *int32 `json:"vpnGatewayScaleUnit,omitempty"` // The VirtualHub to which the gateway belongs. VirtualHub *SubResource `json:"virtualHub,omitempty"` // READ-ONLY; List of all IPs configured on the gateway. IPConfigurations []*VPNGatewayIPConfiguration `json:"ipConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the VPN gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNGatewayProperties - Parameters for VpnGateway.
func (VPNGatewayProperties) MarshalJSON ¶
func (v VPNGatewayProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNGatewayProperties.
type VPNGatewayTunnelingProtocol ¶
type VPNGatewayTunnelingProtocol string
VPNGatewayTunnelingProtocol - VPN protocol enabled for the VpnServerConfiguration.
const ( VPNGatewayTunnelingProtocolIkeV2 VPNGatewayTunnelingProtocol = "IkeV2" VPNGatewayTunnelingProtocolOpenVPN VPNGatewayTunnelingProtocol = "OpenVPN" )
func PossibleVPNGatewayTunnelingProtocolValues ¶
func PossibleVPNGatewayTunnelingProtocolValues() []VPNGatewayTunnelingProtocol
PossibleVPNGatewayTunnelingProtocolValues returns the possible values for the VPNGatewayTunnelingProtocol const type.
type VPNGatewaysClient ¶
type VPNGatewaysClient struct {
// contains filtered or unexported fields
}
VPNGatewaysClient contains the methods for the VPNGateways group. Don't use this type directly, use NewVPNGatewaysClient() instead.
func NewVPNGatewaysClient ¶
func NewVPNGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNGatewaysClient, error)
NewVPNGatewaysClient creates a new instance of VPNGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNGatewaysClient) BeginCreateOrUpdate ¶
func (client *VPNGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters VPNGateway, options *VPNGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[VPNGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. vpnGatewayParameters - Parameters supplied to create or Update a virtual wan vpn gateway. options - VPNGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "gateway1", armnetwork.VPNGateway{ Location: to.Ptr("westcentralus"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VPNGatewayProperties{ BgpSettings: &armnetwork.BgpSettings{ Asn: to.Ptr[int64](65515), BgpPeeringAddresses: []*armnetwork.IPConfigurationBgpPeeringAddress{ { CustomBgpIPAddresses: []*string{ to.Ptr("169.254.21.5")}, IPConfigurationID: to.Ptr("Instance0"), }, { CustomBgpIPAddresses: []*string{ to.Ptr("169.254.21.10")}, IPConfigurationID: to.Ptr("Instance1"), }}, PeerWeight: to.Ptr[int32](0), }, Connections: []*armnetwork.VPNConnection{ { Name: to.Ptr("vpnConnection1"), Properties: &armnetwork.VPNConnectionProperties{ RemoteVPNSite: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1"), }, VPNLinkConnections: []*armnetwork.VPNSiteLinkConnection{ { Name: to.Ptr("Connection-Link1"), Properties: &armnetwork.VPNSiteLinkConnectionProperties{ ConnectionBandwidth: to.Ptr[int32](200), EgressNatRules: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/nat03"), }}, SharedKey: to.Ptr("key"), VPNConnectionProtocolType: to.Ptr(armnetwork.VirtualNetworkGatewayConnectionProtocolIKEv2), VPNSiteLink: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1"), }, }, }}, }, }}, EnableBgpRouteTranslationForNat: to.Ptr(false), IsRoutingPreferenceInternet: to.Ptr(false), NatRules: []*armnetwork.VPNGatewayNatRule{ { Name: to.Ptr("nat03"), Properties: &armnetwork.VPNGatewayNatRuleProperties{ Type: to.Ptr(armnetwork.VPNNatRuleTypeStatic), ExternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("192.168.0.0/26"), }}, InternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("0.0.0.0/26"), }}, IPConfigurationID: to.Ptr(""), Mode: to.Ptr(armnetwork.VPNNatRuleModeEgressSnat), }, }}, VirtualHub: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) BeginDelete ¶
func (client *VPNGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, options *VPNGatewaysClientBeginDeleteOptions) (*runtime.Poller[VPNGatewaysClientDeleteResponse], error)
BeginDelete - Deletes a virtual wan vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNGatewaysClientBeginDeleteOptions contains the optional parameters for the VPNGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "gateway1", 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 (*VPNGatewaysClient) BeginReset ¶
func (client *VPNGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, gatewayName string, options *VPNGatewaysClientBeginResetOptions) (*runtime.Poller[VPNGatewaysClientResetResponse], error)
BeginReset - Resets the primary of the vpn gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNGatewaysClientBeginResetOptions contains the optional parameters for the VPNGatewaysClient.BeginReset method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayReset.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginReset(ctx, "rg1", "vpngw", 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) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) BeginStartPacketCapture ¶
func (client *VPNGatewaysClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, options *VPNGatewaysClientBeginStartPacketCaptureOptions) (*runtime.Poller[VPNGatewaysClientStartPacketCaptureResponse], error)
BeginStartPacketCapture - Starts packet capture on vpn gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNGatewaysClientBeginStartPacketCaptureOptions contains the optional parameters for the VPNGatewaysClient.BeginStartPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayStartPacketCaptureFilterData.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStartPacketCapture(ctx, "rg1", "vpngw", &armnetwork.VPNGatewaysClientBeginStartPacketCaptureOptions{Parameters: &armnetwork.VPNGatewayPacketCaptureStartParameters{ FilterData: to.Ptr("{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) BeginStopPacketCapture ¶
func (client *VPNGatewaysClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, gatewayName string, options *VPNGatewaysClientBeginStopPacketCaptureOptions) (*runtime.Poller[VPNGatewaysClientStopPacketCaptureResponse], error)
BeginStopPacketCapture - Stops packet capture on vpn gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNGatewaysClientBeginStopPacketCaptureOptions contains the optional parameters for the VPNGatewaysClient.BeginStopPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayStopPacketCapture.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStopPacketCapture(ctx, "rg1", "vpngw", &armnetwork.VPNGatewaysClientBeginStopPacketCaptureOptions{Parameters: &armnetwork.VPNGatewayPacketCaptureStopParameters{ SasURL: to.Ptr("https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) BeginUpdateTags ¶
func (client *VPNGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters TagsObject, options *VPNGatewaysClientBeginUpdateTagsOptions) (*runtime.Poller[VPNGatewaysClientUpdateTagsResponse], error)
BeginUpdateTags - Updates virtual wan vpn gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. vpnGatewayParameters - Parameters supplied to update a virtual wan vpn gateway tags. options - VPNGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the VPNGatewaysClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "rg1", "gateway1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) Get ¶
func (client *VPNGatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, options *VPNGatewaysClientGetOptions) (VPNGatewaysClientGetResponse, error)
Get - Retrieves the details of a virtual wan vpn gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. options - VPNGatewaysClientGetOptions contains the optional parameters for the VPNGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "gateway1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VPNGatewaysClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VPNGatewaysClient) NewListByResourceGroupPager(resourceGroupName string, options *VPNGatewaysClientListByResourceGroupOptions) *runtime.Pager[VPNGatewaysClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the VpnGateways in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. options - VPNGatewaysClientListByResourceGroupOptions contains the optional parameters for the VPNGatewaysClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VPNGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *VPNGatewaysClient) NewListPager(options *VPNGatewaysClientListOptions) *runtime.Pager[VPNGatewaysClientListResponse]
NewListPager - Lists all the VpnGateways in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VPNGatewaysClientListOptions contains the optional parameters for the VPNGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VPNGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNGatewaysClient.BeginCreateOrUpdate method.
type VPNGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginDeleteOptions contains the optional parameters for the VPNGatewaysClient.BeginDelete method.
type VPNGatewaysClientBeginResetOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginResetOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginResetOptions contains the optional parameters for the VPNGatewaysClient.BeginReset method.
type VPNGatewaysClientBeginStartPacketCaptureOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginStartPacketCaptureOptions struct { // Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. Parameters *VPNGatewayPacketCaptureStartParameters // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginStartPacketCaptureOptions contains the optional parameters for the VPNGatewaysClient.BeginStartPacketCapture method.
type VPNGatewaysClientBeginStopPacketCaptureOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginStopPacketCaptureOptions struct { // Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. Parameters *VPNGatewayPacketCaptureStopParameters // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginStopPacketCaptureOptions contains the optional parameters for the VPNGatewaysClient.BeginStopPacketCapture method.
type VPNGatewaysClientBeginUpdateTagsOptions ¶ added in v0.3.0
type VPNGatewaysClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the VPNGatewaysClient.BeginUpdateTags method.
type VPNGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type VPNGatewaysClientCreateOrUpdateResponse struct {
VPNGateway
}
VPNGatewaysClientCreateOrUpdateResponse contains the response from method VPNGatewaysClient.CreateOrUpdate.
type VPNGatewaysClientDeleteResponse ¶ added in v0.3.0
type VPNGatewaysClientDeleteResponse struct { }
VPNGatewaysClientDeleteResponse contains the response from method VPNGatewaysClient.Delete.
type VPNGatewaysClientGetOptions ¶ added in v0.3.0
type VPNGatewaysClientGetOptions struct { }
VPNGatewaysClientGetOptions contains the optional parameters for the VPNGatewaysClient.Get method.
type VPNGatewaysClientGetResponse ¶ added in v0.3.0
type VPNGatewaysClientGetResponse struct {
VPNGateway
}
VPNGatewaysClientGetResponse contains the response from method VPNGatewaysClient.Get.
type VPNGatewaysClientListByResourceGroupOptions ¶ added in v0.3.0
type VPNGatewaysClientListByResourceGroupOptions struct { }
VPNGatewaysClientListByResourceGroupOptions contains the optional parameters for the VPNGatewaysClient.ListByResourceGroup method.
type VPNGatewaysClientListByResourceGroupResponse ¶ added in v0.3.0
type VPNGatewaysClientListByResourceGroupResponse struct {
ListVPNGatewaysResult
}
VPNGatewaysClientListByResourceGroupResponse contains the response from method VPNGatewaysClient.ListByResourceGroup.
type VPNGatewaysClientListOptions ¶ added in v0.3.0
type VPNGatewaysClientListOptions struct { }
VPNGatewaysClientListOptions contains the optional parameters for the VPNGatewaysClient.List method.
type VPNGatewaysClientListResponse ¶ added in v0.3.0
type VPNGatewaysClientListResponse struct {
ListVPNGatewaysResult
}
VPNGatewaysClientListResponse contains the response from method VPNGatewaysClient.List.
type VPNGatewaysClientResetResponse ¶ added in v0.3.0
type VPNGatewaysClientResetResponse struct {
VPNGateway
}
VPNGatewaysClientResetResponse contains the response from method VPNGatewaysClient.Reset.
type VPNGatewaysClientStartPacketCaptureResponse ¶ added in v0.3.0
type VPNGatewaysClientStartPacketCaptureResponse struct {
Value *string
}
VPNGatewaysClientStartPacketCaptureResponse contains the response from method VPNGatewaysClient.StartPacketCapture.
func (*VPNGatewaysClientStartPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VPNGatewaysClientStartPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VPNGatewaysClientStartPacketCaptureResponse.
type VPNGatewaysClientStopPacketCaptureResponse ¶ added in v0.3.0
type VPNGatewaysClientStopPacketCaptureResponse struct {
Value *string
}
VPNGatewaysClientStopPacketCaptureResponse contains the response from method VPNGatewaysClient.StopPacketCapture.
func (*VPNGatewaysClientStopPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VPNGatewaysClientStopPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VPNGatewaysClientStopPacketCaptureResponse.
type VPNGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type VPNGatewaysClientUpdateTagsResponse struct {
VPNGateway
}
VPNGatewaysClientUpdateTagsResponse contains the response from method VPNGatewaysClient.UpdateTags.
type VPNLinkBgpSettings ¶
type VPNLinkBgpSettings struct { // The BGP speaker's ASN. Asn *int64 `json:"asn,omitempty"` // The BGP peering address and BGP identifier of this BGP speaker. BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` }
VPNLinkBgpSettings - BGP settings details for a link.
type VPNLinkConnectionMode ¶
type VPNLinkConnectionMode string
VPNLinkConnectionMode - Vpn link connection mode.
const ( VPNLinkConnectionModeDefault VPNLinkConnectionMode = "Default" VPNLinkConnectionModeInitiatorOnly VPNLinkConnectionMode = "InitiatorOnly" VPNLinkConnectionModeResponderOnly VPNLinkConnectionMode = "ResponderOnly" )
func PossibleVPNLinkConnectionModeValues ¶
func PossibleVPNLinkConnectionModeValues() []VPNLinkConnectionMode
PossibleVPNLinkConnectionModeValues returns the possible values for the VPNLinkConnectionMode const type.
type VPNLinkConnectionsClient ¶
type VPNLinkConnectionsClient struct {
// contains filtered or unexported fields
}
VPNLinkConnectionsClient contains the methods for the VPNLinkConnections group. Don't use this type directly, use NewVPNLinkConnectionsClient() instead.
func NewVPNLinkConnectionsClient ¶
func NewVPNLinkConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNLinkConnectionsClient, error)
NewVPNLinkConnectionsClient creates a new instance of VPNLinkConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNLinkConnectionsClient) BeginGetIkeSas ¶
func (client *VPNLinkConnectionsClient) BeginGetIkeSas(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string, options *VPNLinkConnectionsClientBeginGetIkeSasOptions) (*runtime.Poller[VPNLinkConnectionsClientGetIkeSasResponse], error)
BeginGetIkeSas - Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the gateway. connectionName - The name of the vpn connection. linkConnectionName - The name of the vpn link connection. options - VPNLinkConnectionsClientBeginGetIkeSasOptions contains the optional parameters for the VPNLinkConnectionsClient.BeginGetIkeSas method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteLinkConnectionGetIkeSas.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNLinkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetIkeSas(ctx, "rg1", "gateway1", "vpnConnection1", "Connection-Link1", 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) } // TODO: use response item _ = res }
Output:
func (*VPNLinkConnectionsClient) BeginResetConnection ¶
func (client *VPNLinkConnectionsClient) BeginResetConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string, options *VPNLinkConnectionsClientBeginResetConnectionOptions) (*runtime.Poller[VPNLinkConnectionsClientResetConnectionResponse], error)
BeginResetConnection - Resets the VpnLink connection specified. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. gatewayName - The name of the gateway. connectionName - The name of the vpn connection. linkConnectionName - The name of the vpn link connection. options - VPNLinkConnectionsClientBeginResetConnectionOptions contains the optional parameters for the VPNLinkConnectionsClient.BeginResetConnection method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteLinkConnectionReset.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNLinkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginResetConnection(ctx, "rg1", "gateway1", "vpnConnection1", "Connection-Link1", 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 (*VPNLinkConnectionsClient) NewListByVPNConnectionPager ¶ added in v0.5.0
func (client *VPNLinkConnectionsClient) NewListByVPNConnectionPager(resourceGroupName string, gatewayName string, connectionName string, options *VPNLinkConnectionsClientListByVPNConnectionOptions) *runtime.Pager[VPNLinkConnectionsClientListByVPNConnectionResponse]
NewListByVPNConnectionPager - Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the vpn gateway. gatewayName - The name of the gateway. connectionName - The name of the vpn connection. options - VPNLinkConnectionsClientListByVPNConnectionOptions contains the optional parameters for the VPNLinkConnectionsClient.ListByVPNConnection method.
type VPNLinkConnectionsClientBeginGetIkeSasOptions ¶ added in v0.3.0
type VPNLinkConnectionsClientBeginGetIkeSasOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNLinkConnectionsClientBeginGetIkeSasOptions contains the optional parameters for the VPNLinkConnectionsClient.BeginGetIkeSas method.
type VPNLinkConnectionsClientBeginResetConnectionOptions ¶ added in v0.3.0
type VPNLinkConnectionsClientBeginResetConnectionOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNLinkConnectionsClientBeginResetConnectionOptions contains the optional parameters for the VPNLinkConnectionsClient.BeginResetConnection method.
type VPNLinkConnectionsClientGetIkeSasResponse ¶ added in v0.3.0
type VPNLinkConnectionsClientGetIkeSasResponse struct {
Value *string
}
VPNLinkConnectionsClientGetIkeSasResponse contains the response from method VPNLinkConnectionsClient.GetIkeSas.
func (*VPNLinkConnectionsClientGetIkeSasResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VPNLinkConnectionsClientGetIkeSasResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VPNLinkConnectionsClientGetIkeSasResponse.
type VPNLinkConnectionsClientListByVPNConnectionOptions ¶ added in v0.3.0
type VPNLinkConnectionsClientListByVPNConnectionOptions struct { }
VPNLinkConnectionsClientListByVPNConnectionOptions contains the optional parameters for the VPNLinkConnectionsClient.ListByVPNConnection method.
type VPNLinkConnectionsClientListByVPNConnectionResponse ¶ added in v0.3.0
type VPNLinkConnectionsClientListByVPNConnectionResponse struct {
ListVPNSiteLinkConnectionsResult
}
VPNLinkConnectionsClientListByVPNConnectionResponse contains the response from method VPNLinkConnectionsClient.ListByVPNConnection.
type VPNLinkConnectionsClientResetConnectionResponse ¶ added in v0.3.0
type VPNLinkConnectionsClientResetConnectionResponse struct { }
VPNLinkConnectionsClientResetConnectionResponse contains the response from method VPNLinkConnectionsClient.ResetConnection.
type VPNLinkProviderProperties ¶
type VPNLinkProviderProperties struct { // Name of the link provider. LinkProviderName *string `json:"linkProviderName,omitempty"` // Link speed. LinkSpeedInMbps *int32 `json:"linkSpeedInMbps,omitempty"` }
VPNLinkProviderProperties - List of properties of a link provider.
type VPNNatRuleMapping ¶
type VPNNatRuleMapping struct { // Address space for Vpn NatRule mapping. AddressSpace *string `json:"addressSpace,omitempty"` // Port range for Vpn NatRule mapping. PortRange *string `json:"portRange,omitempty"` }
VPNNatRuleMapping - Vpn NatRule mapping.
type VPNNatRuleMode ¶
type VPNNatRuleMode string
VPNNatRuleMode - The Source NAT direction of a VPN NAT.
const ( VPNNatRuleModeEgressSnat VPNNatRuleMode = "EgressSnat" VPNNatRuleModeIngressSnat VPNNatRuleMode = "IngressSnat" )
func PossibleVPNNatRuleModeValues ¶
func PossibleVPNNatRuleModeValues() []VPNNatRuleMode
PossibleVPNNatRuleModeValues returns the possible values for the VPNNatRuleMode const type.
type VPNNatRuleType ¶
type VPNNatRuleType string
VPNNatRuleType - The type of NAT rule for VPN NAT.
const ( VPNNatRuleTypeDynamic VPNNatRuleType = "Dynamic" VPNNatRuleTypeStatic VPNNatRuleType = "Static" )
func PossibleVPNNatRuleTypeValues ¶
func PossibleVPNNatRuleTypeValues() []VPNNatRuleType
PossibleVPNNatRuleTypeValues returns the possible values for the VPNNatRuleType const type.
type VPNPacketCaptureStartParameters ¶
type VPNPacketCaptureStartParameters struct { // Start Packet capture parameters. FilterData *string `json:"filterData,omitempty"` }
VPNPacketCaptureStartParameters - Start packet capture parameters on virtual network gateway.
type VPNPacketCaptureStopParameters ¶
type VPNPacketCaptureStopParameters struct { // SAS url for packet capture on virtual network gateway. SasURL *string `json:"sasUrl,omitempty"` }
VPNPacketCaptureStopParameters - Stop packet capture parameters.
type VPNPolicyMemberAttributeType ¶ added in v1.0.0
type VPNPolicyMemberAttributeType string
VPNPolicyMemberAttributeType - The Vpn Policy member attribute type.
const ( VPNPolicyMemberAttributeTypeAADGroupID VPNPolicyMemberAttributeType = "AADGroupId" VPNPolicyMemberAttributeTypeCertificateGroupID VPNPolicyMemberAttributeType = "CertificateGroupId" VPNPolicyMemberAttributeTypeRadiusAzureGroupID VPNPolicyMemberAttributeType = "RadiusAzureGroupId" )
func PossibleVPNPolicyMemberAttributeTypeValues ¶ added in v1.0.0
func PossibleVPNPolicyMemberAttributeTypeValues() []VPNPolicyMemberAttributeType
PossibleVPNPolicyMemberAttributeTypeValues returns the possible values for the VPNPolicyMemberAttributeType const type.
type VPNProfileResponse ¶
type VPNProfileResponse struct { // URL to the VPN profile. ProfileURL *string `json:"profileUrl,omitempty"` }
VPNProfileResponse - Vpn Profile Response for package generation.
type VPNServerConfigRadiusClientRootCertificate ¶
type VPNServerConfigRadiusClientRootCertificate struct { // The certificate name. Name *string `json:"name,omitempty"` // The Radius client root certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` }
VPNServerConfigRadiusClientRootCertificate - Properties of the Radius client root certificate of VpnServerConfiguration.
type VPNServerConfigRadiusServerRootCertificate ¶
type VPNServerConfigRadiusServerRootCertificate struct { // The certificate name. Name *string `json:"name,omitempty"` // The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` }
VPNServerConfigRadiusServerRootCertificate - Properties of Radius Server root certificate of VpnServerConfiguration.
type VPNServerConfigVPNClientRevokedCertificate ¶
type VPNServerConfigVPNClientRevokedCertificate struct { // The certificate name. Name *string `json:"name,omitempty"` // The revoked VPN client certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` }
VPNServerConfigVPNClientRevokedCertificate - Properties of the revoked VPN client certificate of VpnServerConfiguration.
type VPNServerConfigVPNClientRootCertificate ¶
type VPNServerConfigVPNClientRootCertificate struct { // The certificate name. Name *string `json:"name,omitempty"` // The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` }
VPNServerConfigVPNClientRootCertificate - Properties of VPN client root certificate of VpnServerConfiguration.
type VPNServerConfiguration ¶
type VPNServerConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the P2SVpnServer configuration. Properties *VPNServerConfigurationProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNServerConfiguration - VpnServerConfiguration Resource.
func (VPNServerConfiguration) MarshalJSON ¶
func (v VPNServerConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNServerConfiguration.
type VPNServerConfigurationPolicyGroup ¶ added in v1.0.0
type VPNServerConfigurationPolicyGroup struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the VpnServerConfigurationPolicyGroup. Properties *VPNServerConfigurationPolicyGroupProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNServerConfigurationPolicyGroup - VpnServerConfigurationPolicyGroup Resource.
type VPNServerConfigurationPolicyGroupMember ¶ added in v1.0.0
type VPNServerConfigurationPolicyGroupMember struct { // The Vpn Policy member attribute type. AttributeType *VPNPolicyMemberAttributeType `json:"attributeType,omitempty"` // The value of Attribute used for this VpnServerConfigurationPolicyGroupMember. AttributeValue *string `json:"attributeValue,omitempty"` // Name of the VpnServerConfigurationPolicyGroupMember. Name *string `json:"name,omitempty"` }
VPNServerConfigurationPolicyGroupMember - VpnServerConfiguration PolicyGroup member
type VPNServerConfigurationPolicyGroupProperties ¶ added in v1.0.0
type VPNServerConfigurationPolicyGroupProperties struct { // Shows if this is a Default VpnServerConfigurationPolicyGroup or not. IsDefault *bool `json:"isDefault,omitempty"` // Multiple PolicyMembers for VpnServerConfigurationPolicyGroup. PolicyMembers []*VPNServerConfigurationPolicyGroupMember `json:"policyMembers,omitempty"` // Priority for VpnServerConfigurationPolicyGroup. Priority *int32 `json:"priority,omitempty"` // READ-ONLY; List of references to P2SConnectionConfigurations. P2SConnectionConfigurations []*SubResource `json:"p2SConnectionConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the VpnServerConfigurationPolicyGroup resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNServerConfigurationPolicyGroupProperties - Parameters for VpnServerConfigurationPolicyGroup.
func (VPNServerConfigurationPolicyGroupProperties) MarshalJSON ¶ added in v1.0.0
func (v VPNServerConfigurationPolicyGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNServerConfigurationPolicyGroupProperties.
type VPNServerConfigurationProperties ¶
type VPNServerConfigurationProperties struct { // The set of aad vpn authentication parameters. AADAuthenticationParameters *AADAuthenticationParameters `json:"aadAuthenticationParameters,omitempty"` // List of all VpnServerConfigurationPolicyGroups. ConfigurationPolicyGroups []*VPNServerConfigurationPolicyGroup `json:"configurationPolicyGroups,omitempty"` // The name of the VpnServerConfiguration that is unique within a resource group. Name *string `json:"name,omitempty"` // Radius client root certificate of VpnServerConfiguration. RadiusClientRootCertificates []*VPNServerConfigRadiusClientRootCertificate `json:"radiusClientRootCertificates,omitempty"` // The radius server address property of the VpnServerConfiguration resource for point to site client connection. RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` // Radius Server root certificate of VpnServerConfiguration. RadiusServerRootCertificates []*VPNServerConfigRadiusServerRootCertificate `json:"radiusServerRootCertificates,omitempty"` // The radius secret property of the VpnServerConfiguration resource for point to site client connection. RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` // Multiple Radius Server configuration for VpnServerConfiguration. RadiusServers []*RadiusServer `json:"radiusServers,omitempty"` // VPN authentication types for the VpnServerConfiguration. VPNAuthenticationTypes []*VPNAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` // VpnClientIpsecPolicies for VpnServerConfiguration. VPNClientIPSecPolicies []*IPSecPolicy `json:"vpnClientIpsecPolicies,omitempty"` // VPN client revoked certificate of VpnServerConfiguration. VPNClientRevokedCertificates []*VPNServerConfigVPNClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` // VPN client root certificate of VpnServerConfiguration. VPNClientRootCertificates []*VPNServerConfigVPNClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` // VPN protocols for the VpnServerConfiguration. VPNProtocols []*VPNGatewayTunnelingProtocol `json:"vpnProtocols,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; List of references to P2SVpnGateways. P2SVPNGateways []*P2SVPNGateway `json:"p2SVpnGateways,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', // and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
VPNServerConfigurationProperties - Parameters for VpnServerConfiguration.
func (VPNServerConfigurationProperties) MarshalJSON ¶
func (v VPNServerConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNServerConfigurationProperties.
type VPNServerConfigurationsAssociatedWithVirtualWanClient ¶
type VPNServerConfigurationsAssociatedWithVirtualWanClient struct {
// contains filtered or unexported fields
}
VPNServerConfigurationsAssociatedWithVirtualWanClient contains the methods for the VPNServerConfigurationsAssociatedWithVirtualWan group. Don't use this type directly, use NewVPNServerConfigurationsAssociatedWithVirtualWanClient() instead.
func NewVPNServerConfigurationsAssociatedWithVirtualWanClient ¶
func NewVPNServerConfigurationsAssociatedWithVirtualWanClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNServerConfigurationsAssociatedWithVirtualWanClient, error)
NewVPNServerConfigurationsAssociatedWithVirtualWanClient creates a new instance of VPNServerConfigurationsAssociatedWithVirtualWanClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNServerConfigurationsAssociatedWithVirtualWanClient) BeginList ¶
func (client *VPNServerConfigurationsAssociatedWithVirtualWanClient) BeginList(ctx context.Context, resourceGroupName string, virtualWANName string, options *VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions) (*runtime.Poller[VPNServerConfigurationsAssociatedWithVirtualWanClientListResponse], error)
BeginList - Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name. virtualWANName - The name of the VirtualWAN whose associated VpnServerConfigurations is needed. options - VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions contains the optional parameters for the VPNServerConfigurationsAssociatedWithVirtualWanClient.BeginList method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/GetVirtualWanVpnServerConfigurations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsAssociatedWithVirtualWanClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginList(ctx, "rg1", "wan1", 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) } // TODO: use response item _ = res }
Output:
type VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions ¶ added in v0.3.0
type VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNServerConfigurationsAssociatedWithVirtualWanClientBeginListOptions contains the optional parameters for the VPNServerConfigurationsAssociatedWithVirtualWanClient.BeginList method.
type VPNServerConfigurationsAssociatedWithVirtualWanClientListResponse ¶ added in v0.3.0
type VPNServerConfigurationsAssociatedWithVirtualWanClientListResponse struct {
VPNServerConfigurationsResponse
}
VPNServerConfigurationsAssociatedWithVirtualWanClientListResponse contains the response from method VPNServerConfigurationsAssociatedWithVirtualWanClient.List.
type VPNServerConfigurationsClient ¶
type VPNServerConfigurationsClient struct {
// contains filtered or unexported fields
}
VPNServerConfigurationsClient contains the methods for the VPNServerConfigurations group. Don't use this type directly, use NewVPNServerConfigurationsClient() instead.
func NewVPNServerConfigurationsClient ¶
func NewVPNServerConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNServerConfigurationsClient, error)
NewVPNServerConfigurationsClient creates a new instance of VPNServerConfigurationsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNServerConfigurationsClient) BeginCreateOrUpdate ¶
func (client *VPNServerConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters VPNServerConfiguration, options *VPNServerConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VPNServerConfigurationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration being created or updated. vpnServerConfigurationParameters - Parameters supplied to create or update VpnServerConfiguration. options - VPNServerConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNServerConfigurationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "vpnServerConfiguration1", armnetwork.VPNServerConfiguration{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VPNServerConfigurationProperties{ ConfigurationPolicyGroups: []*armnetwork.VPNServerConfigurationPolicyGroup{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1"), Name: to.Ptr("policyGroup1"), Properties: &armnetwork.VPNServerConfigurationPolicyGroupProperties{ IsDefault: to.Ptr(true), PolicyMembers: []*armnetwork.VPNServerConfigurationPolicyGroupMember{ { Name: to.Ptr("policy1"), AttributeType: to.Ptr(armnetwork.VPNPolicyMemberAttributeTypeRadiusAzureGroupID), AttributeValue: to.Ptr("6ad1bd08"), }}, Priority: to.Ptr[int32](0), }, }, { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup2"), Name: to.Ptr("policyGroup2"), Properties: &armnetwork.VPNServerConfigurationPolicyGroupProperties{ IsDefault: to.Ptr(true), PolicyMembers: []*armnetwork.VPNServerConfigurationPolicyGroupMember{ { Name: to.Ptr("policy2"), AttributeType: to.Ptr(armnetwork.VPNPolicyMemberAttributeTypeCertificateGroupID), AttributeValue: to.Ptr("red.com"), }}, Priority: to.Ptr[int32](0), }, }}, RadiusClientRootCertificates: []*armnetwork.VPNServerConfigRadiusClientRootCertificate{ { Name: to.Ptr("vpnServerConfigRadiusClientRootCert1"), Thumbprint: to.Ptr("83FFBFC8848B5A5836C94D0112367E16148A286F"), }}, RadiusServerRootCertificates: []*armnetwork.VPNServerConfigRadiusServerRootCertificate{ { Name: to.Ptr("vpnServerConfigRadiusServerRootCer1"), PublicCertData: to.Ptr("MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM"), }}, RadiusServers: []*armnetwork.RadiusServer{ { RadiusServerAddress: to.Ptr("10.0.0.0"), RadiusServerScore: to.Ptr[int64](25), RadiusServerSecret: to.Ptr("radiusServerSecret"), }}, VPNClientIPSecPolicies: []*armnetwork.IPSecPolicy{ { DhGroup: to.Ptr(armnetwork.DhGroupDHGroup14), IkeEncryption: to.Ptr(armnetwork.IkeEncryptionAES256), IkeIntegrity: to.Ptr(armnetwork.IkeIntegritySHA384), IPSecEncryption: to.Ptr(armnetwork.IPSecEncryptionAES256), IPSecIntegrity: to.Ptr(armnetwork.IPSecIntegritySHA256), PfsGroup: to.Ptr(armnetwork.PfsGroupPFS14), SaDataSizeKilobytes: to.Ptr[int32](429497), SaLifeTimeSeconds: to.Ptr[int32](86472), }}, VPNClientRevokedCertificates: []*armnetwork.VPNServerConfigVPNClientRevokedCertificate{ { Name: to.Ptr("vpnServerConfigVpnClientRevokedCert1"), Thumbprint: to.Ptr("83FFBFC8848B5A5836C94D0112367E16148A286F"), }}, VPNClientRootCertificates: []*armnetwork.VPNServerConfigVPNClientRootCertificate{ { Name: to.Ptr("vpnServerConfigVpnClientRootCert1"), PublicCertData: to.Ptr("MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN"), }}, VPNProtocols: []*armnetwork.VPNGatewayTunnelingProtocol{ to.Ptr(armnetwork.VPNGatewayTunnelingProtocolIkeV2)}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VPNServerConfigurationsClient) BeginDelete ¶
func (client *VPNServerConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, options *VPNServerConfigurationsClientBeginDeleteOptions) (*runtime.Poller[VPNServerConfigurationsClientDeleteResponse], error)
BeginDelete - Deletes a VpnServerConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration being deleted. options - VPNServerConfigurationsClientBeginDeleteOptions contains the optional parameters for the VPNServerConfigurationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "vpnServerConfiguration1", 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 (*VPNServerConfigurationsClient) Get ¶
func (client *VPNServerConfigurationsClient) Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, options *VPNServerConfigurationsClientGetOptions) (VPNServerConfigurationsClientGetResponse, error)
Get - Retrieves the details of a VpnServerConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration being retrieved. options - VPNServerConfigurationsClientGetOptions contains the optional parameters for the VPNServerConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "vpnServerConfiguration1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VPNServerConfigurationsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VPNServerConfigurationsClient) NewListByResourceGroupPager(resourceGroupName string, options *VPNServerConfigurationsClientListByResourceGroupOptions) *runtime.Pager[VPNServerConfigurationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the vpnServerConfigurations in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. options - VPNServerConfigurationsClientListByResourceGroupOptions contains the optional parameters for the VPNServerConfigurationsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VPNServerConfigurationsClient) NewListPager ¶ added in v0.5.0
func (client *VPNServerConfigurationsClient) NewListPager(options *VPNServerConfigurationsClientListOptions) *runtime.Pager[VPNServerConfigurationsClientListResponse]
NewListPager - Lists all the VpnServerConfigurations in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VPNServerConfigurationsClientListOptions contains the optional parameters for the VPNServerConfigurationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VPNServerConfigurationsClient) UpdateTags ¶
func (client *VPNServerConfigurationsClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters TagsObject, options *VPNServerConfigurationsClientUpdateTagsOptions) (VPNServerConfigurationsClientUpdateTagsResponse, error)
UpdateTags - Updates VpnServerConfiguration tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnServerConfiguration. vpnServerConfigurationName - The name of the VpnServerConfiguration being updated. vpnServerConfigurationParameters - Parameters supplied to update VpnServerConfiguration tags. options - VPNServerConfigurationsClientUpdateTagsOptions contains the optional parameters for the VPNServerConfigurationsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnServerConfigurationUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNServerConfigurationsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "vpnServerConfiguration1", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VPNServerConfigurationsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNServerConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNServerConfigurationsClient.BeginCreateOrUpdate method.
type VPNServerConfigurationsClientBeginDeleteOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNServerConfigurationsClientBeginDeleteOptions contains the optional parameters for the VPNServerConfigurationsClient.BeginDelete method.
type VPNServerConfigurationsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientCreateOrUpdateResponse struct {
VPNServerConfiguration
}
VPNServerConfigurationsClientCreateOrUpdateResponse contains the response from method VPNServerConfigurationsClient.CreateOrUpdate.
type VPNServerConfigurationsClientDeleteResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientDeleteResponse struct { }
VPNServerConfigurationsClientDeleteResponse contains the response from method VPNServerConfigurationsClient.Delete.
type VPNServerConfigurationsClientGetOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientGetOptions struct { }
VPNServerConfigurationsClientGetOptions contains the optional parameters for the VPNServerConfigurationsClient.Get method.
type VPNServerConfigurationsClientGetResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientGetResponse struct {
VPNServerConfiguration
}
VPNServerConfigurationsClientGetResponse contains the response from method VPNServerConfigurationsClient.Get.
type VPNServerConfigurationsClientListByResourceGroupOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientListByResourceGroupOptions struct { }
VPNServerConfigurationsClientListByResourceGroupOptions contains the optional parameters for the VPNServerConfigurationsClient.ListByResourceGroup method.
type VPNServerConfigurationsClientListByResourceGroupResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientListByResourceGroupResponse struct {
ListVPNServerConfigurationsResult
}
VPNServerConfigurationsClientListByResourceGroupResponse contains the response from method VPNServerConfigurationsClient.ListByResourceGroup.
type VPNServerConfigurationsClientListOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientListOptions struct { }
VPNServerConfigurationsClientListOptions contains the optional parameters for the VPNServerConfigurationsClient.List method.
type VPNServerConfigurationsClientListResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientListResponse struct {
ListVPNServerConfigurationsResult
}
VPNServerConfigurationsClientListResponse contains the response from method VPNServerConfigurationsClient.List.
type VPNServerConfigurationsClientUpdateTagsOptions ¶ added in v0.3.0
type VPNServerConfigurationsClientUpdateTagsOptions struct { }
VPNServerConfigurationsClientUpdateTagsOptions contains the optional parameters for the VPNServerConfigurationsClient.UpdateTags method.
type VPNServerConfigurationsClientUpdateTagsResponse ¶ added in v0.3.0
type VPNServerConfigurationsClientUpdateTagsResponse struct {
VPNServerConfiguration
}
VPNServerConfigurationsClientUpdateTagsResponse contains the response from method VPNServerConfigurationsClient.UpdateTags.
type VPNServerConfigurationsResponse ¶
type VPNServerConfigurationsResponse struct { // List of VpnServerConfigurations associated with VirtualWan. VPNServerConfigurationResourceIDs []*string `json:"vpnServerConfigurationResourceIds,omitempty"` }
VPNServerConfigurationsResponse - VpnServerConfigurations list associated with VirtualWan Response.
type VPNSite ¶
type VPNSite struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the VPN site. Properties *VPNSiteProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNSite - VpnSite Resource.
func (VPNSite) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type VPNSite.
type VPNSiteID ¶
type VPNSiteID struct { // READ-ONLY; The resource-uri of the vpn-site for which config is to be fetched. VPNSite *string `json:"vpnSite,omitempty" azure:"ro"` }
VPNSiteID - VpnSite Resource.
type VPNSiteLink ¶
type VPNSiteLink struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the VPN site link. Properties *VPNSiteLinkProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNSiteLink - VpnSiteLink Resource.
type VPNSiteLinkConnection ¶
type VPNSiteLinkConnection struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the VPN site link connection. Properties *VPNSiteLinkConnectionProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VPNSiteLinkConnection - VpnSiteLinkConnection Resource.
type VPNSiteLinkConnectionProperties ¶
type VPNSiteLinkConnectionProperties struct { // Expected bandwidth in MBPS. ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` // List of egress NatRules. EgressNatRules []*SubResource `json:"egressNatRules,omitempty"` // EnableBgp flag. EnableBgp *bool `json:"enableBgp,omitempty"` // EnableBgp flag. EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` // The IPSec Policies to be considered by this connection. IPSecPolicies []*IPSecPolicy `json:"ipsecPolicies,omitempty"` // List of ingress NatRules. IngressNatRules []*SubResource `json:"ingressNatRules,omitempty"` // Routing weight for vpn connection. RoutingWeight *int32 `json:"routingWeight,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // Use local azure ip to initiate connection. UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` // Enable policy-based traffic selectors. UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` // Connection protocol used for this connection. VPNConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` // vpnGatewayCustomBgpAddresses used by this connection. VPNGatewayCustomBgpAddresses []*GatewayCustomBgpIPAddressIPConfiguration `json:"vpnGatewayCustomBgpAddresses,omitempty"` // Vpn link connection mode. VPNLinkConnectionMode *VPNLinkConnectionMode `json:"vpnLinkConnectionMode,omitempty"` // Id of the connected vpn site link. VPNSiteLink *SubResource `json:"vpnSiteLink,omitempty"` // READ-ONLY; The connection status. ConnectionStatus *VPNConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; Egress bytes transferred. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; Ingress bytes transferred. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the VPN site link connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNSiteLinkConnectionProperties - Parameters for VpnConnection.
func (VPNSiteLinkConnectionProperties) MarshalJSON ¶
func (v VPNSiteLinkConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNSiteLinkConnectionProperties.
type VPNSiteLinkConnectionsClient ¶
type VPNSiteLinkConnectionsClient struct {
// contains filtered or unexported fields
}
VPNSiteLinkConnectionsClient contains the methods for the VPNSiteLinkConnections group. Don't use this type directly, use NewVPNSiteLinkConnectionsClient() instead.
func NewVPNSiteLinkConnectionsClient ¶
func NewVPNSiteLinkConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNSiteLinkConnectionsClient, error)
NewVPNSiteLinkConnectionsClient creates a new instance of VPNSiteLinkConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNSiteLinkConnectionsClient) Get ¶
func (client *VPNSiteLinkConnectionsClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string, linkConnectionName string, options *VPNSiteLinkConnectionsClientGetOptions) (VPNSiteLinkConnectionsClientGetResponse, error)
Get - Retrieves the details of a vpn site link connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnGateway. gatewayName - The name of the gateway. connectionName - The name of the vpn connection. linkConnectionName - The name of the vpn connection. options - VPNSiteLinkConnectionsClientGetOptions contains the optional parameters for the VPNSiteLinkConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteLinkConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSiteLinkConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "gateway1", "vpnConnection1", "Connection-Link1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VPNSiteLinkConnectionsClientGetOptions ¶ added in v0.3.0
type VPNSiteLinkConnectionsClientGetOptions struct { }
VPNSiteLinkConnectionsClientGetOptions contains the optional parameters for the VPNSiteLinkConnectionsClient.Get method.
type VPNSiteLinkConnectionsClientGetResponse ¶ added in v0.3.0
type VPNSiteLinkConnectionsClientGetResponse struct {
VPNSiteLinkConnection
}
VPNSiteLinkConnectionsClientGetResponse contains the response from method VPNSiteLinkConnectionsClient.Get.
type VPNSiteLinkProperties ¶
type VPNSiteLinkProperties struct { // The set of bgp properties. BgpProperties *VPNLinkBgpSettings `json:"bgpProperties,omitempty"` // FQDN of vpn-site-link. Fqdn *string `json:"fqdn,omitempty"` // The ip-address for the vpn-site-link. IPAddress *string `json:"ipAddress,omitempty"` // The link provider properties. LinkProperties *VPNLinkProviderProperties `json:"linkProperties,omitempty"` // READ-ONLY; The provisioning state of the VPN site link resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNSiteLinkProperties - Parameters for VpnSite.
type VPNSiteLinksClient ¶
type VPNSiteLinksClient struct {
// contains filtered or unexported fields
}
VPNSiteLinksClient contains the methods for the VPNSiteLinks group. Don't use this type directly, use NewVPNSiteLinksClient() instead.
func NewVPNSiteLinksClient ¶
func NewVPNSiteLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNSiteLinksClient, error)
NewVPNSiteLinksClient creates a new instance of VPNSiteLinksClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNSiteLinksClient) Get ¶
func (client *VPNSiteLinksClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string, options *VPNSiteLinksClientGetOptions) (VPNSiteLinksClientGetResponse, error)
Get - Retrieves the details of a VPN site link. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite. vpnSiteLinkName - The name of the VpnSiteLink being retrieved. options - VPNSiteLinksClientGetOptions contains the optional parameters for the VPNSiteLinksClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteLinkGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSiteLinksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "vpnSite1", "vpnSiteLink1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VPNSiteLinksClient) NewListByVPNSitePager ¶ added in v0.5.0
func (client *VPNSiteLinksClient) NewListByVPNSitePager(resourceGroupName string, vpnSiteName string, options *VPNSiteLinksClientListByVPNSiteOptions) *runtime.Pager[VPNSiteLinksClientListByVPNSiteResponse]
NewListByVPNSitePager - Lists all the vpnSiteLinks in a resource group for a vpn site. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite. options - VPNSiteLinksClientListByVPNSiteOptions contains the optional parameters for the VPNSiteLinksClient.ListByVPNSite method.
type VPNSiteLinksClientGetOptions ¶ added in v0.3.0
type VPNSiteLinksClientGetOptions struct { }
VPNSiteLinksClientGetOptions contains the optional parameters for the VPNSiteLinksClient.Get method.
type VPNSiteLinksClientGetResponse ¶ added in v0.3.0
type VPNSiteLinksClientGetResponse struct {
VPNSiteLink
}
VPNSiteLinksClientGetResponse contains the response from method VPNSiteLinksClient.Get.
type VPNSiteLinksClientListByVPNSiteOptions ¶ added in v0.3.0
type VPNSiteLinksClientListByVPNSiteOptions struct { }
VPNSiteLinksClientListByVPNSiteOptions contains the optional parameters for the VPNSiteLinksClient.ListByVPNSite method.
type VPNSiteLinksClientListByVPNSiteResponse ¶ added in v0.3.0
type VPNSiteLinksClientListByVPNSiteResponse struct {
ListVPNSiteLinksResult
}
VPNSiteLinksClientListByVPNSiteResponse contains the response from method VPNSiteLinksClient.ListByVPNSite.
type VPNSiteProperties ¶
type VPNSiteProperties struct { // The AddressSpace that contains an array of IP address ranges. AddressSpace *AddressSpace `json:"addressSpace,omitempty"` // The set of bgp properties. BgpProperties *BgpSettings `json:"bgpProperties,omitempty"` // The device properties. DeviceProperties *DeviceProperties `json:"deviceProperties,omitempty"` // The ip-address for the vpn-site. IPAddress *string `json:"ipAddress,omitempty"` // IsSecuritySite flag. IsSecuritySite *bool `json:"isSecuritySite,omitempty"` // Office365 Policy. O365Policy *O365PolicyProperties `json:"o365Policy,omitempty"` // The key for vpn-site that can be used for connections. SiteKey *string `json:"siteKey,omitempty"` // List of all vpn site links. VPNSiteLinks []*VPNSiteLink `json:"vpnSiteLinks,omitempty"` // The VirtualWAN to which the vpnSite belongs. VirtualWan *SubResource `json:"virtualWan,omitempty"` // READ-ONLY; The provisioning state of the VPN site resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VPNSiteProperties - Parameters for VpnSite.
func (VPNSiteProperties) MarshalJSON ¶
func (v VPNSiteProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VPNSiteProperties.
type VPNSitesClient ¶
type VPNSitesClient struct {
// contains filtered or unexported fields
}
VPNSitesClient contains the methods for the VPNSites group. Don't use this type directly, use NewVPNSitesClient() instead.
func NewVPNSitesClient ¶
func NewVPNSitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNSitesClient, error)
NewVPNSitesClient creates a new instance of VPNSitesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNSitesClient) BeginCreateOrUpdate ¶
func (client *VPNSitesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VPNSite, options *VPNSitesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VPNSitesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite being created or updated. vpnSiteParameters - Parameters supplied to create or update VpnSite. options - VPNSitesClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNSitesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSitePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "vpnSite1", armnetwork.VPNSite{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VPNSiteProperties{ AddressSpace: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("10.0.0.0/16")}, }, IsSecuritySite: to.Ptr(false), O365Policy: &armnetwork.O365PolicyProperties{ BreakOutCategories: &armnetwork.O365BreakOutCategoryPolicies{ Default: to.Ptr(false), Allow: to.Ptr(true), Optimize: to.Ptr(true), }, }, VirtualWan: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1"), }, VPNSiteLinks: []*armnetwork.VPNSiteLink{ { Name: to.Ptr("vpnSiteLink1"), Properties: &armnetwork.VPNSiteLinkProperties{ BgpProperties: &armnetwork.VPNLinkBgpSettings{ Asn: to.Ptr[int64](1234), BgpPeeringAddress: to.Ptr("192.168.0.0"), }, Fqdn: to.Ptr("link1.vpnsite1.contoso.com"), IPAddress: to.Ptr("50.50.50.56"), LinkProperties: &armnetwork.VPNLinkProviderProperties{ LinkProviderName: to.Ptr("vendor1"), LinkSpeedInMbps: to.Ptr[int32](0), }, }, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VPNSitesClient) BeginDelete ¶
func (client *VPNSitesClient) BeginDelete(ctx context.Context, resourceGroupName string, vpnSiteName string, options *VPNSitesClientBeginDeleteOptions) (*runtime.Poller[VPNSitesClientDeleteResponse], error)
BeginDelete - Deletes a VpnSite. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite being deleted. options - VPNSitesClientBeginDeleteOptions contains the optional parameters for the VPNSitesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "vpnSite1", 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 (*VPNSitesClient) Get ¶
func (client *VPNSitesClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string, options *VPNSitesClientGetOptions) (VPNSitesClientGetResponse, error)
Get - Retrieves the details of a VPN site. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite being retrieved. options - VPNSitesClientGetOptions contains the optional parameters for the VPNSitesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "vpnSite1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VPNSitesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VPNSitesClient) NewListByResourceGroupPager(resourceGroupName string, options *VPNSitesClientListByResourceGroupOptions) *runtime.Pager[VPNSitesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the vpnSites in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. options - VPNSitesClientListByResourceGroupOptions contains the optional parameters for the VPNSitesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VPNSitesClient) NewListPager ¶ added in v0.5.0
func (client *VPNSitesClient) NewListPager(options *VPNSitesClientListOptions) *runtime.Pager[VPNSitesClientListResponse]
NewListPager - Lists all the VpnSites in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VPNSitesClientListOptions contains the optional parameters for the VPNSitesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VPNSitesClient) UpdateTags ¶
func (client *VPNSitesClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters TagsObject, options *VPNSitesClientUpdateTagsOptions) (VPNSitesClientUpdateTagsResponse, error)
UpdateTags - Updates VpnSite tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VpnSite. vpnSiteName - The name of the VpnSite being updated. vpnSiteParameters - Parameters supplied to update VpnSite tags. options - VPNSitesClientUpdateTagsOptions contains the optional parameters for the VPNSitesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSiteUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "vpnSite1", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VPNSitesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VPNSitesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNSitesClientBeginCreateOrUpdateOptions contains the optional parameters for the VPNSitesClient.BeginCreateOrUpdate method.
type VPNSitesClientBeginDeleteOptions ¶ added in v0.3.0
type VPNSitesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNSitesClientBeginDeleteOptions contains the optional parameters for the VPNSitesClient.BeginDelete method.
type VPNSitesClientCreateOrUpdateResponse ¶ added in v0.3.0
type VPNSitesClientCreateOrUpdateResponse struct {
VPNSite
}
VPNSitesClientCreateOrUpdateResponse contains the response from method VPNSitesClient.CreateOrUpdate.
type VPNSitesClientDeleteResponse ¶ added in v0.3.0
type VPNSitesClientDeleteResponse struct { }
VPNSitesClientDeleteResponse contains the response from method VPNSitesClient.Delete.
type VPNSitesClientGetOptions ¶ added in v0.3.0
type VPNSitesClientGetOptions struct { }
VPNSitesClientGetOptions contains the optional parameters for the VPNSitesClient.Get method.
type VPNSitesClientGetResponse ¶ added in v0.3.0
type VPNSitesClientGetResponse struct {
VPNSite
}
VPNSitesClientGetResponse contains the response from method VPNSitesClient.Get.
type VPNSitesClientListByResourceGroupOptions ¶ added in v0.3.0
type VPNSitesClientListByResourceGroupOptions struct { }
VPNSitesClientListByResourceGroupOptions contains the optional parameters for the VPNSitesClient.ListByResourceGroup method.
type VPNSitesClientListByResourceGroupResponse ¶ added in v0.3.0
type VPNSitesClientListByResourceGroupResponse struct {
ListVPNSitesResult
}
VPNSitesClientListByResourceGroupResponse contains the response from method VPNSitesClient.ListByResourceGroup.
type VPNSitesClientListOptions ¶ added in v0.3.0
type VPNSitesClientListOptions struct { }
VPNSitesClientListOptions contains the optional parameters for the VPNSitesClient.List method.
type VPNSitesClientListResponse ¶ added in v0.3.0
type VPNSitesClientListResponse struct {
ListVPNSitesResult
}
VPNSitesClientListResponse contains the response from method VPNSitesClient.List.
type VPNSitesClientUpdateTagsOptions ¶ added in v0.3.0
type VPNSitesClientUpdateTagsOptions struct { }
VPNSitesClientUpdateTagsOptions contains the optional parameters for the VPNSitesClient.UpdateTags method.
type VPNSitesClientUpdateTagsResponse ¶ added in v0.3.0
type VPNSitesClientUpdateTagsResponse struct {
VPNSite
}
VPNSitesClientUpdateTagsResponse contains the response from method VPNSitesClient.UpdateTags.
type VPNSitesConfigurationClient ¶
type VPNSitesConfigurationClient struct {
// contains filtered or unexported fields
}
VPNSitesConfigurationClient contains the methods for the VPNSitesConfiguration group. Don't use this type directly, use NewVPNSitesConfigurationClient() instead.
func NewVPNSitesConfigurationClient ¶
func NewVPNSitesConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VPNSitesConfigurationClient, error)
NewVPNSitesConfigurationClient creates a new instance of VPNSitesConfigurationClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VPNSitesConfigurationClient) BeginDownload ¶
func (client *VPNSitesConfigurationClient) BeginDownload(ctx context.Context, resourceGroupName string, virtualWANName string, request GetVPNSitesConfigurationRequest, options *VPNSitesConfigurationClientBeginDownloadOptions) (*runtime.Poller[VPNSitesConfigurationClientDownloadResponse], error)
BeginDownload - Gives the sas-url to download the configurations for vpn-sites in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name. virtualWANName - The name of the VirtualWAN for which configuration of all vpn-sites is needed. request - Parameters supplied to download vpn-sites configuration. options - VPNSitesConfigurationClientBeginDownloadOptions contains the optional parameters for the VPNSitesConfigurationClient.BeginDownload method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VpnSitesConfigurationDownload.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVPNSitesConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDownload(ctx, "rg1", "wan1", armnetwork.GetVPNSitesConfigurationRequest{ OutputBlobSasURL: to.Ptr("https://blobcortextesturl.blob.core.windows.net/folderforconfig/vpnFile?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b"), VPNSites: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/abc")}, }, 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:
type VPNSitesConfigurationClientBeginDownloadOptions ¶ added in v0.3.0
type VPNSitesConfigurationClientBeginDownloadOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VPNSitesConfigurationClientBeginDownloadOptions contains the optional parameters for the VPNSitesConfigurationClient.BeginDownload method.
type VPNSitesConfigurationClientDownloadResponse ¶ added in v0.3.0
type VPNSitesConfigurationClientDownloadResponse struct { }
VPNSitesConfigurationClientDownloadResponse contains the response from method VPNSitesConfigurationClient.Download.
type VPNType ¶
type VPNType string
VPNType - The type of this virtual network gateway.
func PossibleVPNTypeValues ¶
func PossibleVPNTypeValues() []VPNType
PossibleVPNTypeValues returns the possible values for the VPNType const type.
type VerbosityLevel ¶
type VerbosityLevel string
VerbosityLevel - Verbosity level.
const ( VerbosityLevelFull VerbosityLevel = "Full" VerbosityLevelMinimum VerbosityLevel = "Minimum" VerbosityLevelNormal VerbosityLevel = "Normal" )
func PossibleVerbosityLevelValues ¶
func PossibleVerbosityLevelValues() []VerbosityLevel
PossibleVerbosityLevelValues returns the possible values for the VerbosityLevel const type.
type VerificationIPFlowParameters ¶
type VerificationIPFlowParameters struct { // REQUIRED; The direction of the packet represented as a 5-tuple. Direction *Direction `json:"direction,omitempty"` // REQUIRED; The local IP address. Acceptable values are valid IPv4 addresses. LocalIPAddress *string `json:"localIPAddress,omitempty"` // REQUIRED; The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, // which depends on the direction. LocalPort *string `json:"localPort,omitempty"` // REQUIRED; Protocol to be verified on. Protocol *IPFlowProtocol `json:"protocol,omitempty"` // REQUIRED; The remote IP address. Acceptable values are valid IPv4 addresses. RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` // REQUIRED; The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source // port, which depends on the direction. RemotePort *string `json:"remotePort,omitempty"` // REQUIRED; The ID of the target resource to perform next-hop on. TargetResourceID *string `json:"targetResourceId,omitempty"` // The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. // Otherwise optional). TargetNicResourceID *string `json:"targetNicResourceId,omitempty"` }
VerificationIPFlowParameters - Parameters that define the IP flow to be verified.
type VerificationIPFlowResult ¶
type VerificationIPFlowResult struct { // Indicates whether the traffic is allowed or denied. Access *Access `json:"access,omitempty"` // Name of the rule. If input is not matched against any security rule, it is not displayed. RuleName *string `json:"ruleName,omitempty"` }
VerificationIPFlowResult - Results of IP flow verification on the target resource.
type VirtualAppliance ¶ added in v0.3.0
type VirtualAppliance struct { // Resource ID. ID *string `json:"id,omitempty"` // The service principal that has read access to cloud-init and config blob. Identity *ManagedServiceIdentity `json:"identity,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the Network Virtual Appliance. Properties *VirtualAppliancePropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualAppliance - NetworkVirtualAppliance Resource.
func (VirtualAppliance) MarshalJSON ¶ added in v0.3.0
func (v VirtualAppliance) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualAppliance.
type VirtualApplianceListResult ¶ added in v0.3.0
type VirtualApplianceListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Network Virtual Appliances. Value []*VirtualAppliance `json:"value,omitempty"` }
VirtualApplianceListResult - Response for ListNetworkVirtualAppliances API service call.
type VirtualApplianceNicProperties ¶
type VirtualApplianceNicProperties struct { // READ-ONLY; NIC name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Private IP address. PrivateIPAddress *string `json:"privateIpAddress,omitempty" azure:"ro"` // READ-ONLY; Public IP address. PublicIPAddress *string `json:"publicIpAddress,omitempty" azure:"ro"` }
VirtualApplianceNicProperties - Network Virtual Appliance NIC properties.
type VirtualAppliancePropertiesFormat ¶ added in v0.3.0
type VirtualAppliancePropertiesFormat struct { // BootStrapConfigurationBlobs storage URLs. BootStrapConfigurationBlobs []*string `json:"bootStrapConfigurationBlobs,omitempty"` // CloudInitConfiguration string in plain text. CloudInitConfiguration *string `json:"cloudInitConfiguration,omitempty"` // CloudInitConfigurationBlob storage URLs. CloudInitConfigurationBlobs []*string `json:"cloudInitConfigurationBlobs,omitempty"` // Network Virtual Appliance SKU. NvaSKU *VirtualApplianceSKUProperties `json:"nvaSku,omitempty"` // Public key for SSH login. SSHPublicKey *string `json:"sshPublicKey,omitempty"` // VirtualAppliance ASN. VirtualApplianceAsn *int64 `json:"virtualApplianceAsn,omitempty"` // The Virtual Hub where Network Virtual Appliance is being deployed. VirtualHub *SubResource `json:"virtualHub,omitempty"` // READ-ONLY; Address Prefix. AddressPrefix *string `json:"addressPrefix,omitempty" azure:"ro"` // READ-ONLY; List of references to InboundSecurityRules. InboundSecurityRules []*SubResource `json:"inboundSecurityRules,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; List of Virtual Appliance Network Interfaces. VirtualApplianceNics []*VirtualApplianceNicProperties `json:"virtualApplianceNics,omitempty" azure:"ro"` // READ-ONLY; List of references to VirtualApplianceSite. VirtualApplianceSites []*SubResource `json:"virtualApplianceSites,omitempty" azure:"ro"` }
VirtualAppliancePropertiesFormat - Network Virtual Appliance definition.
func (VirtualAppliancePropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (v VirtualAppliancePropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualAppliancePropertiesFormat.
type VirtualApplianceSKU ¶ added in v0.3.0
type VirtualApplianceSKU struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // NetworkVirtualApplianceSku properties. Properties *VirtualApplianceSKUPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualApplianceSKU - Definition of the NetworkVirtualApplianceSkus resource.
func (VirtualApplianceSKU) MarshalJSON ¶ added in v0.3.0
func (v VirtualApplianceSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualApplianceSKU.
type VirtualApplianceSKUInstances ¶ added in v0.3.0
type VirtualApplianceSKUInstances struct { // READ-ONLY; Instance Count. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Scale Unit. ScaleUnit *string `json:"scaleUnit,omitempty" azure:"ro"` }
VirtualApplianceSKUInstances - List of available Sku and instances.
type VirtualApplianceSKUListResult ¶ added in v0.3.0
type VirtualApplianceSKUListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Network Virtual Appliance Skus that are available. Value []*VirtualApplianceSKU `json:"value,omitempty"` }
VirtualApplianceSKUListResult - Response for ListNetworkVirtualApplianceSkus API service call.
type VirtualApplianceSKUProperties ¶
type VirtualApplianceSKUProperties struct { // Virtual Appliance Scale Unit. BundledScaleUnit *string `json:"bundledScaleUnit,omitempty"` // Virtual Appliance Version. MarketPlaceVersion *string `json:"marketPlaceVersion,omitempty"` // Virtual Appliance Vendor. Vendor *string `json:"vendor,omitempty"` }
VirtualApplianceSKUProperties - Network Virtual Appliance Sku Properties.
type VirtualApplianceSKUPropertiesFormat ¶ added in v0.3.0
type VirtualApplianceSKUPropertiesFormat struct { // The list of scale units available. AvailableScaleUnits []*VirtualApplianceSKUInstances `json:"availableScaleUnits,omitempty"` // READ-ONLY; Available Network Virtual Appliance versions. AvailableVersions []*string `json:"availableVersions,omitempty" azure:"ro"` // READ-ONLY; Network Virtual Appliance Sku vendor. Vendor *string `json:"vendor,omitempty" azure:"ro"` }
VirtualApplianceSKUPropertiesFormat - Properties specific to NetworkVirtualApplianceSkus.
func (VirtualApplianceSKUPropertiesFormat) MarshalJSON ¶ added in v0.3.0
func (v VirtualApplianceSKUPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualApplianceSKUPropertiesFormat.
type VirtualApplianceSKUsClient ¶
type VirtualApplianceSKUsClient struct {
// contains filtered or unexported fields
}
VirtualApplianceSKUsClient contains the methods for the VirtualApplianceSKUs group. Don't use this type directly, use NewVirtualApplianceSKUsClient() instead.
func NewVirtualApplianceSKUsClient ¶
func NewVirtualApplianceSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualApplianceSKUsClient, error)
NewVirtualApplianceSKUsClient creates a new instance of VirtualApplianceSKUsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualApplianceSKUsClient) Get ¶
func (client *VirtualApplianceSKUsClient) Get(ctx context.Context, skuName string, options *VirtualApplianceSKUsClientGetOptions) (VirtualApplianceSKUsClientGetResponse, error)
Get - Retrieves a single available sku for network virtual appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 skuName - Name of the Sku. options - VirtualApplianceSKUsClientGetOptions contains the optional parameters for the VirtualApplianceSKUsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSkuGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSKUsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "ciscoSdwan", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualApplianceSKUsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualApplianceSKUsClient) NewListPager(options *VirtualApplianceSKUsClientListOptions) *runtime.Pager[VirtualApplianceSKUsClientListResponse]
NewListPager - List all SKUs available for a virtual appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualApplianceSKUsClientListOptions contains the optional parameters for the VirtualApplianceSKUsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSkuList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSKUsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualApplianceSKUsClientGetOptions ¶ added in v0.3.0
type VirtualApplianceSKUsClientGetOptions struct { }
VirtualApplianceSKUsClientGetOptions contains the optional parameters for the VirtualApplianceSKUsClient.Get method.
type VirtualApplianceSKUsClientGetResponse ¶ added in v0.3.0
type VirtualApplianceSKUsClientGetResponse struct {
VirtualApplianceSKU
}
VirtualApplianceSKUsClientGetResponse contains the response from method VirtualApplianceSKUsClient.Get.
type VirtualApplianceSKUsClientListOptions ¶ added in v0.3.0
type VirtualApplianceSKUsClientListOptions struct { }
VirtualApplianceSKUsClientListOptions contains the optional parameters for the VirtualApplianceSKUsClient.List method.
type VirtualApplianceSKUsClientListResponse ¶ added in v0.3.0
type VirtualApplianceSKUsClientListResponse struct {
VirtualApplianceSKUListResult
}
VirtualApplianceSKUsClientListResponse contains the response from method VirtualApplianceSKUsClient.List.
type VirtualApplianceSite ¶
type VirtualApplianceSite struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the virtual appliance site. Name *string `json:"name,omitempty"` // The properties of the Virtual Appliance Sites. Properties *VirtualApplianceSiteProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Site type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualApplianceSite - Virtual Appliance Site resource.
type VirtualApplianceSiteListResult ¶ added in v0.3.0
type VirtualApplianceSiteListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Network Virtual Appliance sites. Value []*VirtualApplianceSite `json:"value,omitempty"` }
VirtualApplianceSiteListResult - Response for ListNetworkVirtualApplianceSites API service call.
type VirtualApplianceSiteProperties ¶
type VirtualApplianceSiteProperties struct { // Address Prefix. AddressPrefix *string `json:"addressPrefix,omitempty"` // Office 365 Policy. O365Policy *Office365PolicyProperties `json:"o365Policy,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualApplianceSiteProperties - Properties of the rule group.
type VirtualApplianceSitesClient ¶
type VirtualApplianceSitesClient struct {
// contains filtered or unexported fields
}
VirtualApplianceSitesClient contains the methods for the VirtualApplianceSites group. Don't use this type directly, use NewVirtualApplianceSitesClient() instead.
func NewVirtualApplianceSitesClient ¶
func NewVirtualApplianceSitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualApplianceSitesClient, error)
NewVirtualApplianceSitesClient creates a new instance of VirtualApplianceSitesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualApplianceSitesClient) BeginCreateOrUpdate ¶
func (client *VirtualApplianceSitesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, parameters VirtualApplianceSite, options *VirtualApplianceSitesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualApplianceSitesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Network Virtual Appliance Site. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of the Network Virtual Appliance. siteName - The name of the site. parameters - Parameters supplied to the create or update Network Virtual Appliance Site operation. options - VirtualApplianceSitesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualApplianceSitesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSitePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "nva", "site1", armnetwork.VirtualApplianceSite{ Properties: &armnetwork.VirtualApplianceSiteProperties{ AddressPrefix: to.Ptr("192.168.1.0/24"), O365Policy: &armnetwork.Office365PolicyProperties{ BreakOutCategories: &armnetwork.BreakOutCategoryPolicies{ Default: to.Ptr(true), Allow: to.Ptr(true), Optimize: to.Ptr(true), }, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualApplianceSitesClient) BeginDelete ¶
func (client *VirtualApplianceSitesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, options *VirtualApplianceSitesClientBeginDeleteOptions) (*runtime.Poller[VirtualApplianceSitesClientDeleteResponse], error)
BeginDelete - Deletes the specified site from a Virtual Appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of the Network Virtual Appliance. siteName - The name of the site. options - VirtualApplianceSitesClientBeginDeleteOptions contains the optional parameters for the VirtualApplianceSitesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSiteDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nva", "site1", 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 (*VirtualApplianceSitesClient) Get ¶
func (client *VirtualApplianceSitesClient) Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, siteName string, options *VirtualApplianceSitesClientGetOptions) (VirtualApplianceSitesClientGetResponse, error)
Get - Gets the specified Virtual Appliance Site. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of the Network Virtual Appliance. siteName - The name of the site. options - VirtualApplianceSitesClientGetOptions contains the optional parameters for the VirtualApplianceSitesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSiteGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nva", "site1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualApplianceSitesClient) NewListPager ¶ added in v0.5.0
func (client *VirtualApplianceSitesClient) NewListPager(resourceGroupName string, networkVirtualApplianceName string, options *VirtualApplianceSitesClientListOptions) *runtime.Pager[VirtualApplianceSitesClientListResponse]
NewListPager - Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of the Network Virtual Appliance. options - VirtualApplianceSitesClientListOptions contains the optional parameters for the VirtualApplianceSitesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceSiteList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualApplianceSitesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "nva", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualApplianceSitesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualApplianceSitesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualApplianceSitesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualApplianceSitesClient.BeginCreateOrUpdate method.
type VirtualApplianceSitesClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualApplianceSitesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualApplianceSitesClientBeginDeleteOptions contains the optional parameters for the VirtualApplianceSitesClient.BeginDelete method.
type VirtualApplianceSitesClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualApplianceSitesClientCreateOrUpdateResponse struct {
VirtualApplianceSite
}
VirtualApplianceSitesClientCreateOrUpdateResponse contains the response from method VirtualApplianceSitesClient.CreateOrUpdate.
type VirtualApplianceSitesClientDeleteResponse ¶ added in v0.3.0
type VirtualApplianceSitesClientDeleteResponse struct { }
VirtualApplianceSitesClientDeleteResponse contains the response from method VirtualApplianceSitesClient.Delete.
type VirtualApplianceSitesClientGetOptions ¶ added in v0.3.0
type VirtualApplianceSitesClientGetOptions struct { }
VirtualApplianceSitesClientGetOptions contains the optional parameters for the VirtualApplianceSitesClient.Get method.
type VirtualApplianceSitesClientGetResponse ¶ added in v0.3.0
type VirtualApplianceSitesClientGetResponse struct {
VirtualApplianceSite
}
VirtualApplianceSitesClientGetResponse contains the response from method VirtualApplianceSitesClient.Get.
type VirtualApplianceSitesClientListOptions ¶ added in v0.3.0
type VirtualApplianceSitesClientListOptions struct { }
VirtualApplianceSitesClientListOptions contains the optional parameters for the VirtualApplianceSitesClient.List method.
type VirtualApplianceSitesClientListResponse ¶ added in v0.3.0
type VirtualApplianceSitesClientListResponse struct {
VirtualApplianceSiteListResult
}
VirtualApplianceSitesClientListResponse contains the response from method VirtualApplianceSitesClient.List.
type VirtualAppliancesClient ¶ added in v0.3.0
type VirtualAppliancesClient struct {
// contains filtered or unexported fields
}
VirtualAppliancesClient contains the methods for the NetworkVirtualAppliances group. Don't use this type directly, use NewVirtualAppliancesClient() instead.
func NewVirtualAppliancesClient ¶ added in v0.3.0
func NewVirtualAppliancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualAppliancesClient, error)
NewVirtualAppliancesClient creates a new instance of VirtualAppliancesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualAppliancesClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *VirtualAppliancesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters VirtualAppliance, options *VirtualAppliancesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualAppliancesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Network Virtual Appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of Network Virtual Appliance. parameters - Parameters supplied to the create or update Network Virtual Appliance. options - VirtualAppliancesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualAppliancesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualAppliancePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "nva", armnetwork.VirtualAppliance{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Identity: &armnetwork.ManagedServiceIdentity{ Type: to.Ptr(armnetwork.ResourceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armnetwork.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, }, }, Properties: &armnetwork.VirtualAppliancePropertiesFormat{ BootStrapConfigurationBlobs: []*string{ to.Ptr("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")}, CloudInitConfigurationBlobs: []*string{ to.Ptr("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")}, NvaSKU: &armnetwork.VirtualApplianceSKUProperties{ BundledScaleUnit: to.Ptr("1"), MarketPlaceVersion: to.Ptr("12.1"), Vendor: to.Ptr("Cisco SDWAN"), }, VirtualApplianceAsn: to.Ptr[int64](10000), VirtualHub: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualAppliancesClient) BeginDelete ¶ added in v0.3.0
func (client *VirtualAppliancesClient) BeginDelete(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, options *VirtualAppliancesClientBeginDeleteOptions) (*runtime.Poller[VirtualAppliancesClientDeleteResponse], error)
BeginDelete - Deletes the specified Network Virtual Appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of Network Virtual Appliance. options - VirtualAppliancesClientBeginDeleteOptions contains the optional parameters for the VirtualAppliancesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nva", 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 (*VirtualAppliancesClient) Get ¶ added in v0.3.0
func (client *VirtualAppliancesClient) Get(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, options *VirtualAppliancesClientGetOptions) (VirtualAppliancesClientGetResponse, error)
Get - Gets the specified Network Virtual Appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkVirtualApplianceName - The name of Network Virtual Appliance. options - VirtualAppliancesClientGetOptions contains the optional parameters for the VirtualAppliancesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nva", &armnetwork.VirtualAppliancesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualAppliancesClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VirtualAppliancesClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualAppliancesClientListByResourceGroupOptions) *runtime.Pager[VirtualAppliancesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all Network Virtual Appliances in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualAppliancesClientListByResourceGroupOptions contains the optional parameters for the VirtualAppliancesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualAppliancesClient) NewListPager ¶ added in v0.5.0
func (client *VirtualAppliancesClient) NewListPager(options *VirtualAppliancesClientListOptions) *runtime.Pager[VirtualAppliancesClientListResponse]
NewListPager - Gets all Network Virtual Appliances in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualAppliancesClientListOptions contains the optional parameters for the VirtualAppliancesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualAppliancesClient) UpdateTags ¶ added in v0.3.0
func (client *VirtualAppliancesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkVirtualApplianceName string, parameters TagsObject, options *VirtualAppliancesClientUpdateTagsOptions) (VirtualAppliancesClientUpdateTagsResponse, error)
UpdateTags - Updates a Network Virtual Appliance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of Network Virtual Appliance. networkVirtualApplianceName - The name of Network Virtual Appliance being updated. parameters - Parameters supplied to Update Network Virtual Appliance Tags. options - VirtualAppliancesClientUpdateTagsOptions contains the optional parameters for the VirtualAppliancesClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkVirtualApplianceUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualAppliancesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "nva", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualAppliancesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualAppliancesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualAppliancesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualAppliancesClient.BeginCreateOrUpdate method.
type VirtualAppliancesClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualAppliancesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualAppliancesClientBeginDeleteOptions contains the optional parameters for the VirtualAppliancesClient.BeginDelete method.
type VirtualAppliancesClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualAppliancesClientCreateOrUpdateResponse struct {
VirtualAppliance
}
VirtualAppliancesClientCreateOrUpdateResponse contains the response from method VirtualAppliancesClient.CreateOrUpdate.
type VirtualAppliancesClientDeleteResponse ¶ added in v0.3.0
type VirtualAppliancesClientDeleteResponse struct { }
VirtualAppliancesClientDeleteResponse contains the response from method VirtualAppliancesClient.Delete.
type VirtualAppliancesClientGetOptions ¶ added in v0.3.0
type VirtualAppliancesClientGetOptions struct { // Expands referenced resources. Expand *string }
VirtualAppliancesClientGetOptions contains the optional parameters for the VirtualAppliancesClient.Get method.
type VirtualAppliancesClientGetResponse ¶ added in v0.3.0
type VirtualAppliancesClientGetResponse struct {
VirtualAppliance
}
VirtualAppliancesClientGetResponse contains the response from method VirtualAppliancesClient.Get.
type VirtualAppliancesClientListByResourceGroupOptions ¶ added in v0.3.0
type VirtualAppliancesClientListByResourceGroupOptions struct { }
VirtualAppliancesClientListByResourceGroupOptions contains the optional parameters for the VirtualAppliancesClient.ListByResourceGroup method.
type VirtualAppliancesClientListByResourceGroupResponse ¶ added in v0.3.0
type VirtualAppliancesClientListByResourceGroupResponse struct {
VirtualApplianceListResult
}
VirtualAppliancesClientListByResourceGroupResponse contains the response from method VirtualAppliancesClient.ListByResourceGroup.
type VirtualAppliancesClientListOptions ¶ added in v0.3.0
type VirtualAppliancesClientListOptions struct { }
VirtualAppliancesClientListOptions contains the optional parameters for the VirtualAppliancesClient.List method.
type VirtualAppliancesClientListResponse ¶ added in v0.3.0
type VirtualAppliancesClientListResponse struct {
VirtualApplianceListResult
}
VirtualAppliancesClientListResponse contains the response from method VirtualAppliancesClient.List.
type VirtualAppliancesClientUpdateTagsOptions ¶ added in v0.3.0
type VirtualAppliancesClientUpdateTagsOptions struct { }
VirtualAppliancesClientUpdateTagsOptions contains the optional parameters for the VirtualAppliancesClient.UpdateTags method.
type VirtualAppliancesClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualAppliancesClientUpdateTagsResponse struct {
VirtualAppliance
}
VirtualAppliancesClientUpdateTagsResponse contains the response from method VirtualAppliancesClient.UpdateTags.
type VirtualHub ¶
type VirtualHub struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the virtual hub. Properties *VirtualHubProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server. Kind *string `json:"kind,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualHub Resource.
func (VirtualHub) MarshalJSON ¶
func (v VirtualHub) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHub.
type VirtualHubBgpConnectionClient ¶
type VirtualHubBgpConnectionClient struct {
// contains filtered or unexported fields
}
VirtualHubBgpConnectionClient contains the methods for the VirtualHubBgpConnection group. Don't use this type directly, use NewVirtualHubBgpConnectionClient() instead.
func NewVirtualHubBgpConnectionClient ¶
func NewVirtualHubBgpConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualHubBgpConnectionClient, error)
NewVirtualHubBgpConnectionClient creates a new instance of VirtualHubBgpConnectionClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualHubBgpConnectionClient) BeginCreateOrUpdate ¶
func (client *VirtualHubBgpConnectionClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, parameters BgpConnection, options *VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualHubBgpConnectionClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. connectionName - The name of the connection. parameters - Parameters of Bgp connection. options - VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubBgpConnectionClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubBgpConnectionPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "hub1", "conn1", armnetwork.BgpConnection{ Properties: &armnetwork.BgpConnectionProperties{ HubVirtualNetworkConnection: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/hubVnetConn1"), }, PeerAsn: to.Ptr[int64](20000), PeerIP: to.Ptr("192.168.1.5"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubBgpConnectionClient) BeginDelete ¶
func (client *VirtualHubBgpConnectionClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, options *VirtualHubBgpConnectionClientBeginDeleteOptions) (*runtime.Poller[VirtualHubBgpConnectionClientDeleteResponse], error)
BeginDelete - Deletes a VirtualHubBgpConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHubBgpConnection. virtualHubName - The name of the VirtualHub. connectionName - The name of the connection. options - VirtualHubBgpConnectionClientBeginDeleteOptions contains the optional parameters for the VirtualHubBgpConnectionClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubBgpConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "hub1", "conn1", 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 (*VirtualHubBgpConnectionClient) Get ¶
func (client *VirtualHubBgpConnectionClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string, options *VirtualHubBgpConnectionClientGetOptions) (VirtualHubBgpConnectionClientGetResponse, error)
Get - Retrieves the details of a Virtual Hub Bgp Connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. connectionName - The name of the connection. options - VirtualHubBgpConnectionClientGetOptions contains the optional parameters for the VirtualHubBgpConnectionClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubBgpConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "hub1", "conn1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubBgpConnectionClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubBgpConnectionClient.BeginCreateOrUpdate method.
type VirtualHubBgpConnectionClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubBgpConnectionClientBeginDeleteOptions contains the optional parameters for the VirtualHubBgpConnectionClient.BeginDelete method.
type VirtualHubBgpConnectionClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionClientCreateOrUpdateResponse struct {
BgpConnection
}
VirtualHubBgpConnectionClientCreateOrUpdateResponse contains the response from method VirtualHubBgpConnectionClient.CreateOrUpdate.
type VirtualHubBgpConnectionClientDeleteResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionClientDeleteResponse struct { }
VirtualHubBgpConnectionClientDeleteResponse contains the response from method VirtualHubBgpConnectionClient.Delete.
type VirtualHubBgpConnectionClientGetOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionClientGetOptions struct { }
VirtualHubBgpConnectionClientGetOptions contains the optional parameters for the VirtualHubBgpConnectionClient.Get method.
type VirtualHubBgpConnectionClientGetResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionClientGetResponse struct {
BgpConnection
}
VirtualHubBgpConnectionClientGetResponse contains the response from method VirtualHubBgpConnectionClient.Get.
type VirtualHubBgpConnectionsClient ¶
type VirtualHubBgpConnectionsClient struct {
// contains filtered or unexported fields
}
VirtualHubBgpConnectionsClient contains the methods for the VirtualHubBgpConnections group. Don't use this type directly, use NewVirtualHubBgpConnectionsClient() instead.
func NewVirtualHubBgpConnectionsClient ¶
func NewVirtualHubBgpConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualHubBgpConnectionsClient, error)
NewVirtualHubBgpConnectionsClient creates a new instance of VirtualHubBgpConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualHubBgpConnectionsClient) BeginListAdvertisedRoutes ¶
func (client *VirtualHubBgpConnectionsClient) BeginListAdvertisedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string, options *VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions) (*runtime.Poller[VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse], error)
BeginListAdvertisedRoutes - Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. hubName - The name of the virtual hub. connectionName - The name of the virtual hub bgp connection. options - VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.BeginListAdvertisedRoutes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeerListAdvertisedRoute.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListAdvertisedRoutes(ctx, "rg1", "virtualRouter1", "peer1", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubBgpConnectionsClient) BeginListLearnedRoutes ¶
func (client *VirtualHubBgpConnectionsClient) BeginListLearnedRoutes(ctx context.Context, resourceGroupName string, hubName string, connectionName string, options *VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions) (*runtime.Poller[VirtualHubBgpConnectionsClientListLearnedRoutesResponse], error)
BeginListLearnedRoutes - Retrieves a list of routes the virtual hub bgp connection has learned. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. hubName - The name of the virtual hub. connectionName - The name of the virtual hub bgp connection. options - VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.BeginListLearnedRoutes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeerListLearnedRoute.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListLearnedRoutes(ctx, "rg1", "virtualRouter1", "peer1", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubBgpConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualHubBgpConnectionsClient) NewListPager(resourceGroupName string, virtualHubName string, options *VirtualHubBgpConnectionsClientListOptions) *runtime.Pager[VirtualHubBgpConnectionsClientListResponse]
NewListPager - Retrieves the details of all VirtualHubBgpConnections. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubBgpConnectionsClientListOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubBgpConnectionList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubBgpConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "hub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubBgpConnectionsClientBeginListAdvertisedRoutesOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.BeginListAdvertisedRoutes method.
type VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubBgpConnectionsClientBeginListLearnedRoutesOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.BeginListLearnedRoutes method.
type VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse struct {
PeerRouteList
}
VirtualHubBgpConnectionsClientListAdvertisedRoutesResponse contains the response from method VirtualHubBgpConnectionsClient.ListAdvertisedRoutes.
type VirtualHubBgpConnectionsClientListLearnedRoutesResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientListLearnedRoutesResponse struct {
PeerRouteList
}
VirtualHubBgpConnectionsClientListLearnedRoutesResponse contains the response from method VirtualHubBgpConnectionsClient.ListLearnedRoutes.
type VirtualHubBgpConnectionsClientListOptions ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientListOptions struct { }
VirtualHubBgpConnectionsClientListOptions contains the optional parameters for the VirtualHubBgpConnectionsClient.List method.
type VirtualHubBgpConnectionsClientListResponse ¶ added in v0.3.0
type VirtualHubBgpConnectionsClientListResponse struct {
ListVirtualHubBgpConnectionResults
}
VirtualHubBgpConnectionsClientListResponse contains the response from method VirtualHubBgpConnectionsClient.List.
type VirtualHubEffectiveRoute ¶
type VirtualHubEffectiveRoute struct { // The list of address prefixes. AddressPrefixes []*string `json:"addressPrefixes,omitempty"` // The ASPath of this route. AsPath *string `json:"asPath,omitempty"` // The type of the next hop. NextHopType *string `json:"nextHopType,omitempty"` // The list of next hops. NextHops []*string `json:"nextHops,omitempty"` // The origin of this route. RouteOrigin *string `json:"routeOrigin,omitempty"` }
VirtualHubEffectiveRoute - The effective route configured on the virtual hub or specified resource.
type VirtualHubEffectiveRouteList ¶
type VirtualHubEffectiveRouteList struct { // The list of effective routes configured on the virtual hub or the specified resource. Value []*VirtualHubEffectiveRoute `json:"value,omitempty"` }
VirtualHubEffectiveRouteList - EffectiveRoutes List.
type VirtualHubID ¶
type VirtualHubID struct { // The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and // the ExpressRoute gateway resource reside in the same subscription. ID *string `json:"id,omitempty"` }
VirtualHubID - Virtual Hub identifier.
type VirtualHubIPConfigurationClient ¶
type VirtualHubIPConfigurationClient struct {
// contains filtered or unexported fields
}
VirtualHubIPConfigurationClient contains the methods for the VirtualHubIPConfiguration group. Don't use this type directly, use NewVirtualHubIPConfigurationClient() instead.
func NewVirtualHubIPConfigurationClient ¶
func NewVirtualHubIPConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualHubIPConfigurationClient, error)
NewVirtualHubIPConfigurationClient creates a new instance of VirtualHubIPConfigurationClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualHubIPConfigurationClient) BeginCreateOrUpdate ¶
func (client *VirtualHubIPConfigurationClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, ipConfigName string, parameters HubIPConfiguration, options *VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualHubIPConfigurationClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. ipConfigName - The name of the ipconfig. parameters - Hub Ip Configuration parameters. options - VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubIPConfigurationClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubIpConfigurationPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubIPConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "hub1", "ipconfig1", armnetwork.HubIPConfiguration{ Properties: &armnetwork.HubIPConfigurationPropertiesFormat{ Subnet: &armnetwork.Subnet{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubIPConfigurationClient) BeginDelete ¶
func (client *VirtualHubIPConfigurationClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, ipConfigName string, options *VirtualHubIPConfigurationClientBeginDeleteOptions) (*runtime.Poller[VirtualHubIPConfigurationClientDeleteResponse], error)
BeginDelete - Deletes a VirtualHubIpConfiguration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHubBgpConnection. virtualHubName - The name of the VirtualHub. ipConfigName - The name of the ipconfig. options - VirtualHubIPConfigurationClientBeginDeleteOptions contains the optional parameters for the VirtualHubIPConfigurationClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubIpConfigurationDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubIPConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "hub1", "ipconfig1", 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 (*VirtualHubIPConfigurationClient) Get ¶
func (client *VirtualHubIPConfigurationClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, ipConfigName string, options *VirtualHubIPConfigurationClientGetOptions) (VirtualHubIPConfigurationClientGetResponse, error)
Get - Retrieves the details of a Virtual Hub Ip configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. ipConfigName - The name of the ipconfig. options - VirtualHubIPConfigurationClientGetOptions contains the optional parameters for the VirtualHubIPConfigurationClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubIpConfigurationGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubIPConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "hub1", "ipconfig1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualHubIPConfigurationClient) NewListPager ¶ added in v0.5.0
func (client *VirtualHubIPConfigurationClient) NewListPager(resourceGroupName string, virtualHubName string, options *VirtualHubIPConfigurationClientListOptions) *runtime.Pager[VirtualHubIPConfigurationClientListResponse]
NewListPager - Retrieves the details of all VirtualHubIpConfigurations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubIPConfigurationClientListOptions contains the optional parameters for the VirtualHubIPConfigurationClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubIpConfigurationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubIPConfigurationClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "hub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubIPConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubIPConfigurationClient.BeginCreateOrUpdate method.
type VirtualHubIPConfigurationClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualHubIPConfigurationClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubIPConfigurationClientBeginDeleteOptions contains the optional parameters for the VirtualHubIPConfigurationClient.BeginDelete method.
type VirtualHubIPConfigurationClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualHubIPConfigurationClientCreateOrUpdateResponse struct {
HubIPConfiguration
}
VirtualHubIPConfigurationClientCreateOrUpdateResponse contains the response from method VirtualHubIPConfigurationClient.CreateOrUpdate.
type VirtualHubIPConfigurationClientDeleteResponse ¶ added in v0.3.0
type VirtualHubIPConfigurationClientDeleteResponse struct { }
VirtualHubIPConfigurationClientDeleteResponse contains the response from method VirtualHubIPConfigurationClient.Delete.
type VirtualHubIPConfigurationClientGetOptions ¶ added in v0.3.0
type VirtualHubIPConfigurationClientGetOptions struct { }
VirtualHubIPConfigurationClientGetOptions contains the optional parameters for the VirtualHubIPConfigurationClient.Get method.
type VirtualHubIPConfigurationClientGetResponse ¶ added in v0.3.0
type VirtualHubIPConfigurationClientGetResponse struct {
HubIPConfiguration
}
VirtualHubIPConfigurationClientGetResponse contains the response from method VirtualHubIPConfigurationClient.Get.
type VirtualHubIPConfigurationClientListOptions ¶ added in v0.3.0
type VirtualHubIPConfigurationClientListOptions struct { }
VirtualHubIPConfigurationClientListOptions contains the optional parameters for the VirtualHubIPConfigurationClient.List method.
type VirtualHubIPConfigurationClientListResponse ¶ added in v0.3.0
type VirtualHubIPConfigurationClientListResponse struct {
ListVirtualHubIPConfigurationResults
}
VirtualHubIPConfigurationClientListResponse contains the response from method VirtualHubIPConfigurationClient.List.
type VirtualHubProperties ¶
type VirtualHubProperties struct { // Address-prefix for this VirtualHub. AddressPrefix *string `json:"addressPrefix,omitempty"` // Flag to control transit for VirtualRouter hub. AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` // The azureFirewall associated with this VirtualHub. AzureFirewall *SubResource `json:"azureFirewall,omitempty"` // The expressRouteGateway associated with this VirtualHub. ExpressRouteGateway *SubResource `json:"expressRouteGateway,omitempty"` // The hubRoutingPreference of this VirtualHub. HubRoutingPreference *HubRoutingPreference `json:"hubRoutingPreference,omitempty"` // The P2SVpnGateway associated with this VirtualHub. P2SVPNGateway *SubResource `json:"p2SVpnGateway,omitempty"` // The preferred gateway to route on-prem traffic PreferredRoutingGateway *PreferredRoutingGateway `json:"preferredRoutingGateway,omitempty"` // The routeTable associated with this virtual hub. RouteTable *VirtualHubRouteTable `json:"routeTable,omitempty"` // The sku of this VirtualHub. SKU *string `json:"sku,omitempty"` // The securityPartnerProvider associated with this VirtualHub. SecurityPartnerProvider *SubResource `json:"securityPartnerProvider,omitempty"` // The Security Provider name. SecurityProviderName *string `json:"securityProviderName,omitempty"` // The VpnGateway associated with this VirtualHub. VPNGateway *SubResource `json:"vpnGateway,omitempty"` // List of all virtual hub route table v2s associated with this VirtualHub. VirtualHubRouteTableV2S []*VirtualHubRouteTableV2 `json:"virtualHubRouteTableV2s,omitempty"` // VirtualRouter ASN. VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` // VirtualRouter IPs. VirtualRouterIPs []*string `json:"virtualRouterIps,omitempty"` // The VirtualWAN to which the VirtualHub belongs. VirtualWan *SubResource `json:"virtualWan,omitempty"` // READ-ONLY; List of references to Bgp Connections. BgpConnections []*SubResource `json:"bgpConnections,omitempty" azure:"ro"` // READ-ONLY; List of references to IpConfigurations. IPConfigurations []*SubResource `json:"ipConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual hub resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The routing state. RoutingState *RoutingState `json:"routingState,omitempty" azure:"ro"` }
VirtualHubProperties - Parameters for VirtualHub.
func (VirtualHubProperties) MarshalJSON ¶
func (v VirtualHubProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHubProperties.
type VirtualHubRoute ¶
type VirtualHubRoute struct { // List of all addressPrefixes. AddressPrefixes []*string `json:"addressPrefixes,omitempty"` // NextHop ip address. NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` }
VirtualHubRoute - VirtualHub route.
func (VirtualHubRoute) MarshalJSON ¶
func (v VirtualHubRoute) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHubRoute.
type VirtualHubRouteTable ¶
type VirtualHubRouteTable struct { // List of all routes. Routes []*VirtualHubRoute `json:"routes,omitempty"` }
VirtualHubRouteTable - VirtualHub route table.
func (VirtualHubRouteTable) MarshalJSON ¶
func (v VirtualHubRouteTable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHubRouteTable.
type VirtualHubRouteTableV2 ¶
type VirtualHubRouteTableV2 struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the virtual hub route table v2. Properties *VirtualHubRouteTableV2Properties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VirtualHubRouteTableV2 Resource.
type VirtualHubRouteTableV2Properties ¶
type VirtualHubRouteTableV2Properties struct { // List of all connections attached to this route table v2. AttachedConnections []*string `json:"attachedConnections,omitempty"` // List of all routes. Routes []*VirtualHubRouteV2 `json:"routes,omitempty"` // READ-ONLY; The provisioning state of the virtual hub route table v2 resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualHubRouteTableV2Properties - Parameters for VirtualHubRouteTableV2.
func (VirtualHubRouteTableV2Properties) MarshalJSON ¶
func (v VirtualHubRouteTableV2Properties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHubRouteTableV2Properties.
type VirtualHubRouteTableV2SClient ¶
type VirtualHubRouteTableV2SClient struct {
// contains filtered or unexported fields
}
VirtualHubRouteTableV2SClient contains the methods for the VirtualHubRouteTableV2S group. Don't use this type directly, use NewVirtualHubRouteTableV2SClient() instead.
func NewVirtualHubRouteTableV2SClient ¶
func NewVirtualHubRouteTableV2SClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualHubRouteTableV2SClient, error)
NewVirtualHubRouteTableV2SClient creates a new instance of VirtualHubRouteTableV2SClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualHubRouteTableV2SClient) BeginCreateOrUpdate ¶
func (client *VirtualHubRouteTableV2SClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, virtualHubRouteTableV2Parameters VirtualHubRouteTableV2, options *VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualHubRouteTableV2SClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. routeTableName - The name of the VirtualHubRouteTableV2. virtualHubRouteTableV2Parameters - Parameters supplied to create or update VirtualHubRouteTableV2. options - VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubRouteTableV2Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubRouteTableV2SClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualHub1", "virtualHubRouteTable1a", armnetwork.VirtualHubRouteTableV2{ Properties: &armnetwork.VirtualHubRouteTableV2Properties{ AttachedConnections: []*string{ to.Ptr("All_Vnets")}, Routes: []*armnetwork.VirtualHubRouteV2{ { DestinationType: to.Ptr("CIDR"), Destinations: []*string{ to.Ptr("20.10.0.0/16"), to.Ptr("20.20.0.0/16")}, NextHopType: to.Ptr("IPAddress"), NextHops: []*string{ to.Ptr("10.0.0.68")}, }, { DestinationType: to.Ptr("CIDR"), Destinations: []*string{ to.Ptr("0.0.0.0/0")}, NextHopType: to.Ptr("IPAddress"), NextHops: []*string{ to.Ptr("10.0.0.68")}, }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubRouteTableV2SClient) BeginDelete ¶
func (client *VirtualHubRouteTableV2SClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, options *VirtualHubRouteTableV2SClientBeginDeleteOptions) (*runtime.Poller[VirtualHubRouteTableV2SClientDeleteResponse], error)
BeginDelete - Deletes a VirtualHubRouteTableV2. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHubRouteTableV2. virtualHubName - The name of the VirtualHub. routeTableName - The name of the VirtualHubRouteTableV2. options - VirtualHubRouteTableV2SClientBeginDeleteOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubRouteTableV2Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubRouteTableV2SClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualHub1", "virtualHubRouteTable1a", 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 (*VirtualHubRouteTableV2SClient) Get ¶
func (client *VirtualHubRouteTableV2SClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string, options *VirtualHubRouteTableV2SClientGetOptions) (VirtualHubRouteTableV2SClientGetResponse, error)
Get - Retrieves the details of a VirtualHubRouteTableV2. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHubRouteTableV2. virtualHubName - The name of the VirtualHub. routeTableName - The name of the VirtualHubRouteTableV2. options - VirtualHubRouteTableV2SClientGetOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubRouteTableV2Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubRouteTableV2SClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualHub1", "virtualHubRouteTable1a", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualHubRouteTableV2SClient) NewListPager ¶ added in v0.5.0
func (client *VirtualHubRouteTableV2SClient) NewListPager(resourceGroupName string, virtualHubName string, options *VirtualHubRouteTableV2SClientListOptions) *runtime.Pager[VirtualHubRouteTableV2SClientListResponse]
NewListPager - Retrieves the details of all VirtualHubRouteTableV2s. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubRouteTableV2SClientListOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubRouteTableV2List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubRouteTableV2SClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "virtualHub1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubRouteTableV2SClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.BeginCreateOrUpdate method.
type VirtualHubRouteTableV2SClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubRouteTableV2SClientBeginDeleteOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.BeginDelete method.
type VirtualHubRouteTableV2SClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientCreateOrUpdateResponse struct {
VirtualHubRouteTableV2
}
VirtualHubRouteTableV2SClientCreateOrUpdateResponse contains the response from method VirtualHubRouteTableV2SClient.CreateOrUpdate.
type VirtualHubRouteTableV2SClientDeleteResponse ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientDeleteResponse struct { }
VirtualHubRouteTableV2SClientDeleteResponse contains the response from method VirtualHubRouteTableV2SClient.Delete.
type VirtualHubRouteTableV2SClientGetOptions ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientGetOptions struct { }
VirtualHubRouteTableV2SClientGetOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.Get method.
type VirtualHubRouteTableV2SClientGetResponse ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientGetResponse struct {
VirtualHubRouteTableV2
}
VirtualHubRouteTableV2SClientGetResponse contains the response from method VirtualHubRouteTableV2SClient.Get.
type VirtualHubRouteTableV2SClientListOptions ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientListOptions struct { }
VirtualHubRouteTableV2SClientListOptions contains the optional parameters for the VirtualHubRouteTableV2SClient.List method.
type VirtualHubRouteTableV2SClientListResponse ¶ added in v0.3.0
type VirtualHubRouteTableV2SClientListResponse struct {
ListVirtualHubRouteTableV2SResult
}
VirtualHubRouteTableV2SClientListResponse contains the response from method VirtualHubRouteTableV2SClient.List.
type VirtualHubRouteV2 ¶
type VirtualHubRouteV2 struct { // The type of destinations. DestinationType *string `json:"destinationType,omitempty"` // List of all destinations. Destinations []*string `json:"destinations,omitempty"` // The type of next hops. NextHopType *string `json:"nextHopType,omitempty"` // NextHops ip address. NextHops []*string `json:"nextHops,omitempty"` }
VirtualHubRouteV2 - VirtualHubRouteTableV2 route.
func (VirtualHubRouteV2) MarshalJSON ¶
func (v VirtualHubRouteV2) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualHubRouteV2.
type VirtualHubsClient ¶
type VirtualHubsClient struct {
// contains filtered or unexported fields
}
VirtualHubsClient contains the methods for the VirtualHubs group. Don't use this type directly, use NewVirtualHubsClient() instead.
func NewVirtualHubsClient ¶
func NewVirtualHubsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualHubsClient, error)
NewVirtualHubsClient creates a new instance of VirtualHubsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualHubsClient) BeginCreateOrUpdate ¶
func (client *VirtualHubsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters VirtualHub, options *VirtualHubsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualHubsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. virtualHubParameters - Parameters supplied to create or update VirtualHub. options - VirtualHubsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualHub2", armnetwork.VirtualHub{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VirtualHubProperties{ AddressPrefix: to.Ptr("10.168.0.0/24"), SKU: to.Ptr("Basic"), VirtualWan: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualHubsClient) BeginDelete ¶
func (client *VirtualHubsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualHubName string, options *VirtualHubsClientBeginDeleteOptions) (*runtime.Poller[VirtualHubsClientDeleteResponse], error)
BeginDelete - Deletes a VirtualHub. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubsClientBeginDeleteOptions contains the optional parameters for the VirtualHubsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualHub1", 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 (*VirtualHubsClient) BeginGetEffectiveVirtualHubRoutes ¶
func (client *VirtualHubsClient) BeginGetEffectiveVirtualHubRoutes(ctx context.Context, resourceGroupName string, virtualHubName string, options *VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions) (*runtime.Poller[VirtualHubsClientGetEffectiveVirtualHubRoutesResponse], error)
BeginGetEffectiveVirtualHubRoutes - Gets the effective routes configured for the Virtual Hub resource or the specified resource . If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions contains the optional parameters for the VirtualHubsClient.BeginGetEffectiveVirtualHubRoutes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/EffectiveRoutesListForConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetEffectiveVirtualHubRoutes(ctx, "rg1", "virtualHub1", &armnetwork.VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions{EffectiveRoutesParameters: &armnetwork.EffectiveRoutesParameters{ ResourceID: to.Ptr("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName"), VirtualWanResourceType: to.Ptr("ExpressRouteConnection"), }, }) 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 (*VirtualHubsClient) Get ¶
func (client *VirtualHubsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, options *VirtualHubsClientGetOptions) (VirtualHubsClientGetResponse, error)
Get - Retrieves the details of a VirtualHub. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. options - VirtualHubsClientGetOptions contains the optional parameters for the VirtualHubsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualHub1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualHubsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VirtualHubsClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualHubsClientListByResourceGroupOptions) *runtime.Pager[VirtualHubsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the VirtualHubs in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. options - VirtualHubsClientListByResourceGroupOptions contains the optional parameters for the VirtualHubsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualHubsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualHubsClient) NewListPager(options *VirtualHubsClientListOptions) *runtime.Pager[VirtualHubsClientListResponse]
NewListPager - Lists all the VirtualHubs in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualHubsClientListOptions contains the optional parameters for the VirtualHubsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualHubsClient) UpdateTags ¶
func (client *VirtualHubsClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters TagsObject, options *VirtualHubsClientUpdateTagsOptions) (VirtualHubsClientUpdateTagsResponse, error)
UpdateTags - Updates VirtualHub tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualHub. virtualHubName - The name of the VirtualHub. virtualHubParameters - Parameters supplied to update VirtualHub tags. options - VirtualHubsClientUpdateTagsOptions contains the optional parameters for the VirtualHubsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualHubUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualHubsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "virtualHub2", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualHubsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualHubsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualHubsClient.BeginCreateOrUpdate method.
type VirtualHubsClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualHubsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubsClientBeginDeleteOptions contains the optional parameters for the VirtualHubsClient.BeginDelete method.
type VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions ¶ added in v0.3.0
type VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions struct { // Parameters supplied to get the effective routes for a specific resource. EffectiveRoutesParameters *EffectiveRoutesParameters // Resumes the LRO from the provided token. ResumeToken string }
VirtualHubsClientBeginGetEffectiveVirtualHubRoutesOptions contains the optional parameters for the VirtualHubsClient.BeginGetEffectiveVirtualHubRoutes method.
type VirtualHubsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualHubsClientCreateOrUpdateResponse struct {
VirtualHub
}
VirtualHubsClientCreateOrUpdateResponse contains the response from method VirtualHubsClient.CreateOrUpdate.
type VirtualHubsClientDeleteResponse ¶ added in v0.3.0
type VirtualHubsClientDeleteResponse struct { }
VirtualHubsClientDeleteResponse contains the response from method VirtualHubsClient.Delete.
type VirtualHubsClientGetEffectiveVirtualHubRoutesResponse ¶ added in v0.3.0
type VirtualHubsClientGetEffectiveVirtualHubRoutesResponse struct { }
VirtualHubsClientGetEffectiveVirtualHubRoutesResponse contains the response from method VirtualHubsClient.GetEffectiveVirtualHubRoutes.
type VirtualHubsClientGetOptions ¶ added in v0.3.0
type VirtualHubsClientGetOptions struct { }
VirtualHubsClientGetOptions contains the optional parameters for the VirtualHubsClient.Get method.
type VirtualHubsClientGetResponse ¶ added in v0.3.0
type VirtualHubsClientGetResponse struct {
VirtualHub
}
VirtualHubsClientGetResponse contains the response from method VirtualHubsClient.Get.
type VirtualHubsClientListByResourceGroupOptions ¶ added in v0.3.0
type VirtualHubsClientListByResourceGroupOptions struct { }
VirtualHubsClientListByResourceGroupOptions contains the optional parameters for the VirtualHubsClient.ListByResourceGroup method.
type VirtualHubsClientListByResourceGroupResponse ¶ added in v0.3.0
type VirtualHubsClientListByResourceGroupResponse struct {
ListVirtualHubsResult
}
VirtualHubsClientListByResourceGroupResponse contains the response from method VirtualHubsClient.ListByResourceGroup.
type VirtualHubsClientListOptions ¶ added in v0.3.0
type VirtualHubsClientListOptions struct { }
VirtualHubsClientListOptions contains the optional parameters for the VirtualHubsClient.List method.
type VirtualHubsClientListResponse ¶ added in v0.3.0
type VirtualHubsClientListResponse struct {
ListVirtualHubsResult
}
VirtualHubsClientListResponse contains the response from method VirtualHubsClient.List.
type VirtualHubsClientUpdateTagsOptions ¶ added in v0.3.0
type VirtualHubsClientUpdateTagsOptions struct { }
VirtualHubsClientUpdateTagsOptions contains the optional parameters for the VirtualHubsClient.UpdateTags method.
type VirtualHubsClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualHubsClientUpdateTagsResponse struct {
VirtualHub
}
VirtualHubsClientUpdateTagsResponse contains the response from method VirtualHubsClient.UpdateTags.
type VirtualNetwork ¶
type VirtualNetwork struct { // The extended location of the virtual network. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the virtual network. Properties *VirtualNetworkPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetwork - Virtual Network resource.
func (VirtualNetwork) MarshalJSON ¶
func (v VirtualNetwork) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetwork.
type VirtualNetworkBgpCommunities ¶
type VirtualNetworkBgpCommunities struct { // REQUIRED; The BGP community associated with the virtual network. VirtualNetworkCommunity *string `json:"virtualNetworkCommunity,omitempty"` // READ-ONLY; The BGP community associated with the region of the virtual network. RegionalCommunity *string `json:"regionalCommunity,omitempty" azure:"ro"` }
VirtualNetworkBgpCommunities - Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
type VirtualNetworkConnectionGatewayReference ¶
type VirtualNetworkConnectionGatewayReference struct { // REQUIRED; The ID of VirtualNetworkGateway or LocalNetworkGateway resource. ID *string `json:"id,omitempty"` }
VirtualNetworkConnectionGatewayReference - A reference to VirtualNetworkGateway or LocalNetworkGateway resource.
type VirtualNetworkEncryption ¶ added in v0.2.0
type VirtualNetworkEncryption struct { // REQUIRED; Indicates if encryption is enabled on the virtual network. Enabled *bool `json:"enabled,omitempty"` // If the encrypted VNet allows VM that does not support encryption Enforcement *VirtualNetworkEncryptionEnforcement `json:"enforcement,omitempty"` }
VirtualNetworkEncryption - Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
type VirtualNetworkEncryptionEnforcement ¶ added in v0.2.0
type VirtualNetworkEncryptionEnforcement string
VirtualNetworkEncryptionEnforcement - If the encrypted VNet allows VM that does not support encryption
const ( VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" )
func PossibleVirtualNetworkEncryptionEnforcementValues ¶ added in v0.2.0
func PossibleVirtualNetworkEncryptionEnforcementValues() []VirtualNetworkEncryptionEnforcement
PossibleVirtualNetworkEncryptionEnforcementValues returns the possible values for the VirtualNetworkEncryptionEnforcement const type.
type VirtualNetworkGateway ¶
type VirtualNetworkGateway struct { // REQUIRED; Properties of the virtual network gateway. Properties *VirtualNetworkGatewayPropertiesFormat `json:"properties,omitempty"` // The extended location of type local virtual network gateway. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetworkGateway - A common class for general resource information.
func (VirtualNetworkGateway) MarshalJSON ¶
func (v VirtualNetworkGateway) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGateway.
type VirtualNetworkGatewayConnection ¶
type VirtualNetworkGatewayConnection struct { // REQUIRED; Properties of the virtual network gateway connection. Properties *VirtualNetworkGatewayConnectionPropertiesFormat `json:"properties,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetworkGatewayConnection - A common class for general resource information.
func (VirtualNetworkGatewayConnection) MarshalJSON ¶
func (v VirtualNetworkGatewayConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayConnection.
type VirtualNetworkGatewayConnectionListEntity ¶
type VirtualNetworkGatewayConnectionListEntity struct { // REQUIRED; Properties of the virtual network gateway connection. Properties *VirtualNetworkGatewayConnectionListEntityPropertiesFormat `json:"properties,omitempty"` // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetworkGatewayConnectionListEntity - A common class for general resource information.
func (VirtualNetworkGatewayConnectionListEntity) MarshalJSON ¶
func (v VirtualNetworkGatewayConnectionListEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayConnectionListEntity.
type VirtualNetworkGatewayConnectionListEntityPropertiesFormat ¶
type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { // REQUIRED; Gateway connection type. ConnectionType *VirtualNetworkGatewayConnectionType `json:"connectionType,omitempty"` // REQUIRED; The reference to virtual network gateway resource. VirtualNetworkGateway1 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway1,omitempty"` // The authorizationKey. AuthorizationKey *string `json:"authorizationKey,omitempty"` // The connection mode for this connection. ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` // Connection protocol used for this connection. ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` // EnableBgp flag. EnableBgp *bool `json:"enableBgp,omitempty"` // Bypass ExpressRoute Gateway for data forwarding. ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` // GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection. GatewayCustomBgpIPAddresses []*GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` // The IPSec Policies to be considered by this connection. IPSecPolicies []*IPSecPolicy `json:"ipsecPolicies,omitempty"` // The reference to local network gateway resource. LocalNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"localNetworkGateway2,omitempty"` // The reference to peerings resource. Peer *SubResource `json:"peer,omitempty"` // The routing weight. RoutingWeight *int32 `json:"routingWeight,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // The Traffic Selector Policies to be considered by this connection. TrafficSelectorPolicies []*TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` // Enable policy-based traffic selectors. UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` // The reference to virtual network gateway resource. VirtualNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway2,omitempty"` // READ-ONLY; Virtual Network Gateway connection status. ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; The egress bytes transferred in this connection. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The ingress bytes transferred in this connection. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual network gateway connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the virtual network gateway connection resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; Collection of all tunnels' connection health status. TunnelConnectionStatus []*TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty" azure:"ro"` }
VirtualNetworkGatewayConnectionListEntityPropertiesFormat - VirtualNetworkGatewayConnection properties.
func (VirtualNetworkGatewayConnectionListEntityPropertiesFormat) MarshalJSON ¶
func (v VirtualNetworkGatewayConnectionListEntityPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayConnectionListEntityPropertiesFormat.
type VirtualNetworkGatewayConnectionListResult ¶
type VirtualNetworkGatewayConnectionListResult struct { // A list of VirtualNetworkGatewayConnection resources that exists in a resource group. Value []*VirtualNetworkGatewayConnection `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
VirtualNetworkGatewayConnectionListResult - Response for the ListVirtualNetworkGatewayConnections API service call.
type VirtualNetworkGatewayConnectionMode ¶
type VirtualNetworkGatewayConnectionMode string
VirtualNetworkGatewayConnectionMode - Gateway connection type.
const ( VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" )
func PossibleVirtualNetworkGatewayConnectionModeValues ¶
func PossibleVirtualNetworkGatewayConnectionModeValues() []VirtualNetworkGatewayConnectionMode
PossibleVirtualNetworkGatewayConnectionModeValues returns the possible values for the VirtualNetworkGatewayConnectionMode const type.
type VirtualNetworkGatewayConnectionPropertiesFormat ¶
type VirtualNetworkGatewayConnectionPropertiesFormat struct { // REQUIRED; Gateway connection type. ConnectionType *VirtualNetworkGatewayConnectionType `json:"connectionType,omitempty"` // REQUIRED; The reference to virtual network gateway resource. VirtualNetworkGateway1 *VirtualNetworkGateway `json:"virtualNetworkGateway1,omitempty"` // The authorizationKey. AuthorizationKey *string `json:"authorizationKey,omitempty"` // The connection mode for this connection. ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` // Connection protocol used for this connection. ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` // The dead peer detection timeout of this connection in seconds. DpdTimeoutSeconds *int32 `json:"dpdTimeoutSeconds,omitempty"` // List of egress NatRules. EgressNatRules []*SubResource `json:"egressNatRules,omitempty"` // EnableBgp flag. EnableBgp *bool `json:"enableBgp,omitempty"` // Bypass ExpressRoute Gateway for data forwarding. ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` // GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection. GatewayCustomBgpIPAddresses []*GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` // The IPSec Policies to be considered by this connection. IPSecPolicies []*IPSecPolicy `json:"ipsecPolicies,omitempty"` // List of ingress NatRules. IngressNatRules []*SubResource `json:"ingressNatRules,omitempty"` // The reference to local network gateway resource. LocalNetworkGateway2 *LocalNetworkGateway `json:"localNetworkGateway2,omitempty"` // The reference to peerings resource. Peer *SubResource `json:"peer,omitempty"` // The routing weight. RoutingWeight *int32 `json:"routingWeight,omitempty"` SharedKey *string `json:"sharedKey,omitempty"` // The Traffic Selector Policies to be considered by this connection. TrafficSelectorPolicies []*TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` // Use private local Azure IP for the connection. UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` // Enable policy-based traffic selectors. UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` // The reference to virtual network gateway resource. VirtualNetworkGateway2 *VirtualNetworkGateway `json:"virtualNetworkGateway2,omitempty"` // READ-ONLY; Virtual Network Gateway connection status. ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty" azure:"ro"` // READ-ONLY; The egress bytes transferred in this connection. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The ingress bytes transferred in this connection. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual network gateway connection resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the virtual network gateway connection resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` // READ-ONLY; Collection of all tunnels' connection health status. TunnelConnectionStatus []*TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty" azure:"ro"` }
VirtualNetworkGatewayConnectionPropertiesFormat - VirtualNetworkGatewayConnection properties.
func (VirtualNetworkGatewayConnectionPropertiesFormat) MarshalJSON ¶
func (v VirtualNetworkGatewayConnectionPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayConnectionPropertiesFormat.
type VirtualNetworkGatewayConnectionProtocol ¶
type VirtualNetworkGatewayConnectionProtocol string
VirtualNetworkGatewayConnectionProtocol - Gateway connection protocol.
const ( VirtualNetworkGatewayConnectionProtocolIKEv1 VirtualNetworkGatewayConnectionProtocol = "IKEv1" VirtualNetworkGatewayConnectionProtocolIKEv2 VirtualNetworkGatewayConnectionProtocol = "IKEv2" )
func PossibleVirtualNetworkGatewayConnectionProtocolValues ¶
func PossibleVirtualNetworkGatewayConnectionProtocolValues() []VirtualNetworkGatewayConnectionProtocol
PossibleVirtualNetworkGatewayConnectionProtocolValues returns the possible values for the VirtualNetworkGatewayConnectionProtocol const type.
type VirtualNetworkGatewayConnectionStatus ¶
type VirtualNetworkGatewayConnectionStatus string
VirtualNetworkGatewayConnectionStatus - Virtual Network Gateway connection status.
const ( VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" )
func PossibleVirtualNetworkGatewayConnectionStatusValues ¶
func PossibleVirtualNetworkGatewayConnectionStatusValues() []VirtualNetworkGatewayConnectionStatus
PossibleVirtualNetworkGatewayConnectionStatusValues returns the possible values for the VirtualNetworkGatewayConnectionStatus const type.
type VirtualNetworkGatewayConnectionType ¶
type VirtualNetworkGatewayConnectionType string
VirtualNetworkGatewayConnectionType - Gateway connection type.
const ( VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" VirtualNetworkGatewayConnectionTypeVnet2Vnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" )
func PossibleVirtualNetworkGatewayConnectionTypeValues ¶
func PossibleVirtualNetworkGatewayConnectionTypeValues() []VirtualNetworkGatewayConnectionType
PossibleVirtualNetworkGatewayConnectionTypeValues returns the possible values for the VirtualNetworkGatewayConnectionType const type.
type VirtualNetworkGatewayConnectionsClient ¶
type VirtualNetworkGatewayConnectionsClient struct {
// contains filtered or unexported fields
}
VirtualNetworkGatewayConnectionsClient contains the methods for the VirtualNetworkGatewayConnections group. Don't use this type directly, use NewVirtualNetworkGatewayConnectionsClient() instead.
func NewVirtualNetworkGatewayConnectionsClient ¶
func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkGatewayConnectionsClient, error)
NewVirtualNetworkGatewayConnectionsClient creates a new instance of VirtualNetworkGatewayConnectionsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworkGatewayConnectionsClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VirtualNetworkGatewayConnection, options *VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a virtual network gateway connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection. parameters - Parameters supplied to the create or update virtual network gateway connection operation. options - VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "connS2S", armnetwork.VirtualNetworkGatewayConnection{ Location: to.Ptr("centralus"), Properties: &armnetwork.VirtualNetworkGatewayConnectionPropertiesFormat{ ConnectionMode: to.Ptr(armnetwork.VirtualNetworkGatewayConnectionModeDefault), ConnectionProtocol: to.Ptr(armnetwork.VirtualNetworkGatewayConnectionProtocolIKEv2), ConnectionType: to.Ptr(armnetwork.VirtualNetworkGatewayConnectionTypeIPsec), DpdTimeoutSeconds: to.Ptr[int32](30), EgressNatRules: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2"), }}, EnableBgp: to.Ptr(false), GatewayCustomBgpIPAddresses: []*armnetwork.GatewayCustomBgpIPAddressIPConfiguration{ { CustomBgpIPAddress: to.Ptr("169.254.21.1"), IPConfigurationID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/default"), }, { CustomBgpIPAddress: to.Ptr("169.254.21.3"), IPConfigurationID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/ActiveActive"), }}, IngressNatRules: []*armnetwork.SubResource{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1"), }}, IPSecPolicies: []*armnetwork.IPSecPolicy{}, LocalNetworkGateway2: &armnetwork.LocalNetworkGateway{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw"), Location: to.Ptr("centralus"), Tags: map[string]*string{}, Properties: &armnetwork.LocalNetworkGatewayPropertiesFormat{ GatewayIPAddress: to.Ptr("x.x.x.x"), LocalNetworkAddressSpace: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("10.1.0.0/16")}, }, }, }, RoutingWeight: to.Ptr[int32](0), SharedKey: to.Ptr("Abc123"), TrafficSelectorPolicies: []*armnetwork.TrafficSelectorPolicy{}, UsePolicyBasedTrafficSelectors: to.Ptr(false), VirtualNetworkGateway1: &armnetwork.VirtualNetworkGateway{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw"), Location: to.Ptr("centralus"), Tags: map[string]*string{}, Properties: &armnetwork.VirtualNetworkGatewayPropertiesFormat{ Active: to.Ptr(false), BgpSettings: &armnetwork.BgpSettings{ Asn: to.Ptr[int64](65514), BgpPeeringAddress: to.Ptr("10.0.1.30"), PeerWeight: to.Ptr[int32](0), }, EnableBgp: to.Ptr(false), GatewayType: to.Ptr(armnetwork.VirtualNetworkGatewayTypeVPN), IPConfigurations: []*armnetwork.VirtualNetworkGatewayIPConfiguration{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1"), Name: to.Ptr("gwipconfig1"), Properties: &armnetwork.VirtualNetworkGatewayIPConfigurationPropertiesFormat{ PrivateIPAllocationMethod: to.Ptr(armnetwork.IPAllocationMethodDynamic), PublicIPAddress: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"), }, Subnet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"), }, }, }}, SKU: &armnetwork.VirtualNetworkGatewaySKU{ Name: to.Ptr(armnetwork.VirtualNetworkGatewaySKUNameVPNGw1), Tier: to.Ptr(armnetwork.VirtualNetworkGatewaySKUTierVPNGw1), }, VPNType: to.Ptr(armnetwork.VPNTypeRouteBased), }, }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) BeginDelete ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientDeleteResponse], error)
BeginDelete - Deletes the specified virtual network Gateway connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection. options - VirtualNetworkGatewayConnectionsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "conn1", 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 (*VirtualNetworkGatewayConnectionsClient) BeginGetIkeSas ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginGetIkeSas(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientGetIkeSasResponse], error)
BeginGetIkeSas - Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway Connection. options - VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginGetIkeSas method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetIkeSas(ctx, "rg1", "vpngwcn1", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) BeginResetConnection ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginResetConnection(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientResetConnectionResponse], error)
BeginResetConnection - Resets the virtual network gateway connection specified. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway Connection. options - VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginResetConnection method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionReset.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginResetConnection(ctx, "rg1", "conn1", 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 (*VirtualNetworkGatewayConnectionsClient) BeginResetSharedKey ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionResetSharedKey, options *VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse], error)
BeginResetSharedKey - The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The virtual network gateway connection reset shared key Name. parameters - Parameters supplied to the begin reset virtual network gateway connection shared key operation through network resource provider. options - VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginResetSharedKey method.
func (*VirtualNetworkGatewayConnectionsClient) BeginSetSharedKey ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginSetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters ConnectionSharedKey, options *VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse], error)
BeginSetSharedKey - The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The virtual network gateway connection name. parameters - Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. options - VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginSetSharedKey method.
func (*VirtualNetworkGatewayConnectionsClient) BeginStartPacketCapture ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse], error)
BeginStartPacketCapture - Starts packet capture on virtual network gateway connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection. options - VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginStartPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStartPacketCapture(ctx, "rg1", "vpngwcn1", &armnetwork.VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions{Parameters: &armnetwork.VPNPacketCaptureStartParameters{ FilterData: to.Ptr("{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) BeginStopPacketCapture ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VPNPacketCaptureStopParameters, options *VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse], error)
BeginStopPacketCapture - Stops packet capture on virtual network gateway connection in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway Connection. parameters - Virtual network gateway packet capture parameters supplied to stop packet capture on gateway connection. options - VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginStopPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStopPacketCapture(ctx, "rg1", "vpngwcn1", armnetwork.VPNPacketCaptureStopParameters{ SasURL: to.Ptr("https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) BeginUpdateTags ¶
func (client *VirtualNetworkGatewayConnectionsClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters TagsObject, options *VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions) (*runtime.Poller[VirtualNetworkGatewayConnectionsClientUpdateTagsResponse], error)
BeginUpdateTags - Updates a virtual network gateway connection tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection. parameters - Parameters supplied to update virtual network gateway connection tags. options - VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "rg1", "test", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) Get ¶
func (client *VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientGetOptions) (VirtualNetworkGatewayConnectionsClientGetResponse, error)
Get - Gets the specified virtual network gateway connection by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection. options - VirtualNetworkGatewayConnectionsClientGetOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "connS2S", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayConnectionsClient) GetSharedKey ¶
func (client *VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, options *VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions) (VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse, error)
GetSharedKey - The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The virtual network gateway connection shared key name. options - VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.GetSharedKey method.
func (*VirtualNetworkGatewayConnectionsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualNetworkGatewayConnectionsClient) NewListPager(resourceGroupName string, options *VirtualNetworkGatewayConnectionsClientListOptions) *runtime.Pager[VirtualNetworkGatewayConnectionsClientListResponse]
NewListPager - The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualNetworkGatewayConnectionsClientListOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayConnectionsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginCreateOrUpdate method.
type VirtualNetworkGatewayConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginDelete method.
type VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginGetIkeSasOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginGetIkeSas method.
type VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginResetConnectionOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginResetConnection method.
type VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions struct { string }ResumeToken
VirtualNetworkGatewayConnectionsClientBeginResetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginResetSharedKey method.
type VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions struct { string }ResumeToken
VirtualNetworkGatewayConnectionsClientBeginSetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginSetSharedKey method.
type VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions struct { // Virtual network gateway packet capture parameters supplied to start packet capture on gateway connection. Parameters *VPNPacketCaptureStartParameters // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginStartPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginStartPacketCapture method.
type VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginStopPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginStopPacketCapture method.
type VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayConnectionsClientBeginUpdateTagsOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.BeginUpdateTags method.
type VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse struct {
VirtualNetworkGatewayConnection
}
VirtualNetworkGatewayConnectionsClientCreateOrUpdateResponse contains the response from method VirtualNetworkGatewayConnectionsClient.CreateOrUpdate.
type VirtualNetworkGatewayConnectionsClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientDeleteResponse struct { }
VirtualNetworkGatewayConnectionsClientDeleteResponse contains the response from method VirtualNetworkGatewayConnectionsClient.Delete.
type VirtualNetworkGatewayConnectionsClientGetIkeSasResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientGetIkeSasResponse struct {
Value *string
}
VirtualNetworkGatewayConnectionsClientGetIkeSasResponse contains the response from method VirtualNetworkGatewayConnectionsClient.GetIkeSas.
func (*VirtualNetworkGatewayConnectionsClientGetIkeSasResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewayConnectionsClientGetIkeSasResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewayConnectionsClientGetIkeSasResponse.
type VirtualNetworkGatewayConnectionsClientGetOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientGetOptions struct { }
VirtualNetworkGatewayConnectionsClientGetOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.Get method.
type VirtualNetworkGatewayConnectionsClientGetResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientGetResponse struct {
VirtualNetworkGatewayConnection
}
VirtualNetworkGatewayConnectionsClientGetResponse contains the response from method VirtualNetworkGatewayConnectionsClient.Get.
type VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions struct { }
VirtualNetworkGatewayConnectionsClientGetSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.GetSharedKey method.
type VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse struct {
}VirtualNetworkGatewayConnectionsClientGetSharedKeyResponse contains the response from method VirtualNetworkGatewayConnectionsClient.GetSharedKey.
type VirtualNetworkGatewayConnectionsClientListOptions ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientListOptions struct { }
VirtualNetworkGatewayConnectionsClientListOptions contains the optional parameters for the VirtualNetworkGatewayConnectionsClient.List method.
type VirtualNetworkGatewayConnectionsClientListResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientListResponse struct {
VirtualNetworkGatewayConnectionListResult
}
VirtualNetworkGatewayConnectionsClientListResponse contains the response from method VirtualNetworkGatewayConnectionsClient.List.
type VirtualNetworkGatewayConnectionsClientResetConnectionResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientResetConnectionResponse struct { }
VirtualNetworkGatewayConnectionsClientResetConnectionResponse contains the response from method VirtualNetworkGatewayConnectionsClient.ResetConnection.
type VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse struct {
}VirtualNetworkGatewayConnectionsClientResetSharedKeyResponse contains the response from method VirtualNetworkGatewayConnectionsClient.ResetSharedKey.
type VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse struct {
}VirtualNetworkGatewayConnectionsClientSetSharedKeyResponse contains the response from method VirtualNetworkGatewayConnectionsClient.SetSharedKey.
type VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse struct {
Value *string
}
VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse contains the response from method VirtualNetworkGatewayConnectionsClient.StartPacketCapture.
func (*VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewayConnectionsClientStartPacketCaptureResponse.
type VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse struct {
Value *string
}
VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse contains the response from method VirtualNetworkGatewayConnectionsClient.StopPacketCapture.
func (*VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewayConnectionsClientStopPacketCaptureResponse.
type VirtualNetworkGatewayConnectionsClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualNetworkGatewayConnectionsClientUpdateTagsResponse struct {
VirtualNetworkGatewayConnection
}
VirtualNetworkGatewayConnectionsClientUpdateTagsResponse contains the response from method VirtualNetworkGatewayConnectionsClient.UpdateTags.
type VirtualNetworkGatewayIPConfiguration ¶
type VirtualNetworkGatewayIPConfiguration struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the virtual network gateway ip configuration. Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VirtualNetworkGatewayIPConfiguration - IP configuration for virtual network gateway.
type VirtualNetworkGatewayIPConfigurationPropertiesFormat ¶
type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { // The private IP address allocation method. PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` // The reference to the public IP resource. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` // The reference to the subnet resource. Subnet *SubResource `json:"subnet,omitempty"` // READ-ONLY; Private IP Address for this gateway. PrivateIPAddress *string `json:"privateIPAddress,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual network gateway IP configuration resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualNetworkGatewayIPConfigurationPropertiesFormat - Properties of VirtualNetworkGatewayIPConfiguration.
type VirtualNetworkGatewayListConnectionsResult ¶
type VirtualNetworkGatewayListConnectionsResult struct { // A list of VirtualNetworkGatewayConnection resources that exists in a resource group. Value []*VirtualNetworkGatewayConnectionListEntity `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
VirtualNetworkGatewayListConnectionsResult - Response for the VirtualNetworkGatewayListConnections API service call.
type VirtualNetworkGatewayListResult ¶
type VirtualNetworkGatewayListResult struct { // A list of VirtualNetworkGateway resources that exists in a resource group. Value []*VirtualNetworkGateway `json:"value,omitempty"` // READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
VirtualNetworkGatewayListResult - Response for the ListVirtualNetworkGateways API service call.
type VirtualNetworkGatewayNatRule ¶
type VirtualNetworkGatewayNatRule struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the Virtual Network Gateway NAT rule. Properties *VirtualNetworkGatewayNatRuleProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetworkGatewayNatRule Resource.
type VirtualNetworkGatewayNatRuleProperties ¶
type VirtualNetworkGatewayNatRuleProperties struct { // The private IP address external mapping for NAT. ExternalMappings []*VPNNatRuleMapping `json:"externalMappings,omitempty"` // The IP Configuration ID this NAT rule applies to. IPConfigurationID *string `json:"ipConfigurationId,omitempty"` // The private IP address internal mapping for NAT. InternalMappings []*VPNNatRuleMapping `json:"internalMappings,omitempty"` // The Source NAT direction of a VPN NAT. Mode *VPNNatRuleMode `json:"mode,omitempty"` // The type of NAT rule for VPN NAT. Type *VPNNatRuleType `json:"type,omitempty"` // READ-ONLY; The provisioning state of the NAT Rule resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualNetworkGatewayNatRuleProperties - Parameters for VirtualNetworkGatewayNatRule.
func (VirtualNetworkGatewayNatRuleProperties) MarshalJSON ¶
func (v VirtualNetworkGatewayNatRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayNatRuleProperties.
type VirtualNetworkGatewayNatRulesClient ¶
type VirtualNetworkGatewayNatRulesClient struct {
// contains filtered or unexported fields
}
VirtualNetworkGatewayNatRulesClient contains the methods for the VirtualNetworkGatewayNatRules group. Don't use this type directly, use NewVirtualNetworkGatewayNatRulesClient() instead.
func NewVirtualNetworkGatewayNatRulesClient ¶
func NewVirtualNetworkGatewayNatRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkGatewayNatRulesClient, error)
NewVirtualNetworkGatewayNatRulesClient creates a new instance of VirtualNetworkGatewayNatRulesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworkGatewayNatRulesClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworkGatewayNatRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, natRuleName string, natRuleParameters VirtualNetworkGatewayNatRule, options *VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the Virtual Network Gateway. virtualNetworkGatewayName - The name of the gateway. natRuleName - The name of the nat rule. natRuleParameters - Parameters supplied to create or Update a Nat Rule. options - VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayNatRulePut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "gateway1", "natRule1", armnetwork.VirtualNetworkGatewayNatRule{ Properties: &armnetwork.VirtualNetworkGatewayNatRuleProperties{ Type: to.Ptr(armnetwork.VPNNatRuleTypeStatic), ExternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("192.168.21.0/24"), PortRange: to.Ptr("300-400"), }}, InternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("10.4.0.0/24"), PortRange: to.Ptr("200-300"), }}, IPConfigurationID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/gateway1/ipConfigurations/default"), Mode: to.Ptr(armnetwork.VPNNatRuleModeEgressSnat), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayNatRulesClient) BeginDelete ¶
func (client *VirtualNetworkGatewayNatRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, natRuleName string, options *VirtualNetworkGatewayNatRulesClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkGatewayNatRulesClientDeleteResponse], error)
BeginDelete - Deletes a nat rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the Virtual Network Gateway. virtualNetworkGatewayName - The name of the gateway. natRuleName - The name of the nat rule. options - VirtualNetworkGatewayNatRulesClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayNatRuleDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "gateway1", "natRule1", 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 (*VirtualNetworkGatewayNatRulesClient) Get ¶
func (client *VirtualNetworkGatewayNatRulesClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, natRuleName string, options *VirtualNetworkGatewayNatRulesClientGetOptions) (VirtualNetworkGatewayNatRulesClientGetResponse, error)
Get - Retrieves the details of a nat rule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the Virtual Network Gateway. virtualNetworkGatewayName - The name of the gateway. natRuleName - The name of the nat rule. options - VirtualNetworkGatewayNatRulesClientGetOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayNatRuleGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "gateway1", "natRule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewayNatRulesClient) NewListByVirtualNetworkGatewayPager ¶ added in v0.5.0
func (client *VirtualNetworkGatewayNatRulesClient) NewListByVirtualNetworkGatewayPager(resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions) *runtime.Pager[VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayResponse]
NewListByVirtualNetworkGatewayPager - Retrieves all nat rules for a particular virtual network gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the virtual network gateway. virtualNetworkGatewayName - The name of the gateway. options - VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.ListByVirtualNetworkGateway method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayNatRuleList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewayNatRulesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByVirtualNetworkGatewayPager("rg1", "gateway1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayNatRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.BeginCreateOrUpdate method.
type VirtualNetworkGatewayNatRulesClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewayNatRulesClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.BeginDelete method.
type VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse struct {
VirtualNetworkGatewayNatRule
}
VirtualNetworkGatewayNatRulesClientCreateOrUpdateResponse contains the response from method VirtualNetworkGatewayNatRulesClient.CreateOrUpdate.
type VirtualNetworkGatewayNatRulesClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientDeleteResponse struct { }
VirtualNetworkGatewayNatRulesClientDeleteResponse contains the response from method VirtualNetworkGatewayNatRulesClient.Delete.
type VirtualNetworkGatewayNatRulesClientGetOptions ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientGetOptions struct { }
VirtualNetworkGatewayNatRulesClientGetOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.Get method.
type VirtualNetworkGatewayNatRulesClientGetResponse ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientGetResponse struct {
VirtualNetworkGatewayNatRule
}
VirtualNetworkGatewayNatRulesClientGetResponse contains the response from method VirtualNetworkGatewayNatRulesClient.Get.
type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions struct { }
VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayOptions contains the optional parameters for the VirtualNetworkGatewayNatRulesClient.ListByVirtualNetworkGateway method.
type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayResponse ¶ added in v0.3.0
type VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayResponse struct {
ListVirtualNetworkGatewayNatRulesResult
}
VirtualNetworkGatewayNatRulesClientListByVirtualNetworkGatewayResponse contains the response from method VirtualNetworkGatewayNatRulesClient.ListByVirtualNetworkGateway.
type VirtualNetworkGatewayPropertiesFormat ¶
type VirtualNetworkGatewayPropertiesFormat struct { // ActiveActive flag. Active *bool `json:"activeActive,omitempty"` // Virtual network gateway's BGP speaker settings. BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` // The reference to the address space resource which represents the custom routes address space specified by the customer // for virtual network gateway and VpnClient. CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` // disableIPSecReplayProtection flag. DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` // Whether BGP is enabled for this virtual network gateway or not. EnableBgp *bool `json:"enableBgp,omitempty"` // EnableBgpRouteTranslationForNat flag. EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` // Whether dns forwarding is enabled or not. EnableDNSForwarding *bool `json:"enableDnsForwarding,omitempty"` // Whether private IP needs to be enabled on this gateway for connections or not. EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` // The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null // value in case of removing existing default site setting. GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` // The type of this virtual network gateway. GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` // IP configurations for virtual network gateway. IPConfigurations []*VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` // NatRules for virtual network gateway. NatRules []*VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` // The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. SKU *VirtualNetworkGatewaySKU `json:"sku,omitempty"` // Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet. VNetExtendedLocationResourceID *string `json:"vNetExtendedLocationResourceId,omitempty"` // The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. VPNClientConfiguration *VPNClientConfiguration `json:"vpnClientConfiguration,omitempty"` // The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. VPNGatewayGeneration *VPNGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` // The type of this virtual network gateway. VPNType *VPNType `json:"vpnType,omitempty"` // READ-ONLY; The IP address allocated by the gateway to which dns requests can be sent. InboundDNSForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual network gateway resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the virtual network gateway resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
VirtualNetworkGatewayPropertiesFormat - VirtualNetworkGateway properties.
func (VirtualNetworkGatewayPropertiesFormat) MarshalJSON ¶
func (v VirtualNetworkGatewayPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkGatewayPropertiesFormat.
type VirtualNetworkGatewaySKU ¶
type VirtualNetworkGatewaySKU struct { // Gateway SKU name. Name *VirtualNetworkGatewaySKUName `json:"name,omitempty"` // Gateway SKU tier. Tier *VirtualNetworkGatewaySKUTier `json:"tier,omitempty"` // READ-ONLY; The capacity. Capacity *int32 `json:"capacity,omitempty" azure:"ro"` }
VirtualNetworkGatewaySKU - VirtualNetworkGatewaySku details.
type VirtualNetworkGatewaySKUName ¶
type VirtualNetworkGatewaySKUName string
VirtualNetworkGatewaySKUName - Gateway SKU name.
const ( VirtualNetworkGatewaySKUNameBasic VirtualNetworkGatewaySKUName = "Basic" VirtualNetworkGatewaySKUNameErGw1AZ VirtualNetworkGatewaySKUName = "ErGw1AZ" VirtualNetworkGatewaySKUNameErGw2AZ VirtualNetworkGatewaySKUName = "ErGw2AZ" VirtualNetworkGatewaySKUNameErGw3AZ VirtualNetworkGatewaySKUName = "ErGw3AZ" VirtualNetworkGatewaySKUNameHighPerformance VirtualNetworkGatewaySKUName = "HighPerformance" VirtualNetworkGatewaySKUNameStandard VirtualNetworkGatewaySKUName = "Standard" VirtualNetworkGatewaySKUNameUltraPerformance VirtualNetworkGatewaySKUName = "UltraPerformance" VirtualNetworkGatewaySKUNameVPNGw1 VirtualNetworkGatewaySKUName = "VpnGw1" VirtualNetworkGatewaySKUNameVPNGw1AZ VirtualNetworkGatewaySKUName = "VpnGw1AZ" VirtualNetworkGatewaySKUNameVPNGw2 VirtualNetworkGatewaySKUName = "VpnGw2" VirtualNetworkGatewaySKUNameVPNGw2AZ VirtualNetworkGatewaySKUName = "VpnGw2AZ" VirtualNetworkGatewaySKUNameVPNGw3 VirtualNetworkGatewaySKUName = "VpnGw3" VirtualNetworkGatewaySKUNameVPNGw3AZ VirtualNetworkGatewaySKUName = "VpnGw3AZ" VirtualNetworkGatewaySKUNameVPNGw4 VirtualNetworkGatewaySKUName = "VpnGw4" VirtualNetworkGatewaySKUNameVPNGw4AZ VirtualNetworkGatewaySKUName = "VpnGw4AZ" VirtualNetworkGatewaySKUNameVPNGw5 VirtualNetworkGatewaySKUName = "VpnGw5" VirtualNetworkGatewaySKUNameVPNGw5AZ VirtualNetworkGatewaySKUName = "VpnGw5AZ" )
func PossibleVirtualNetworkGatewaySKUNameValues ¶
func PossibleVirtualNetworkGatewaySKUNameValues() []VirtualNetworkGatewaySKUName
PossibleVirtualNetworkGatewaySKUNameValues returns the possible values for the VirtualNetworkGatewaySKUName const type.
type VirtualNetworkGatewaySKUTier ¶
type VirtualNetworkGatewaySKUTier string
VirtualNetworkGatewaySKUTier - Gateway SKU tier.
const ( VirtualNetworkGatewaySKUTierBasic VirtualNetworkGatewaySKUTier = "Basic" VirtualNetworkGatewaySKUTierErGw1AZ VirtualNetworkGatewaySKUTier = "ErGw1AZ" VirtualNetworkGatewaySKUTierErGw2AZ VirtualNetworkGatewaySKUTier = "ErGw2AZ" VirtualNetworkGatewaySKUTierErGw3AZ VirtualNetworkGatewaySKUTier = "ErGw3AZ" VirtualNetworkGatewaySKUTierHighPerformance VirtualNetworkGatewaySKUTier = "HighPerformance" VirtualNetworkGatewaySKUTierStandard VirtualNetworkGatewaySKUTier = "Standard" VirtualNetworkGatewaySKUTierUltraPerformance VirtualNetworkGatewaySKUTier = "UltraPerformance" VirtualNetworkGatewaySKUTierVPNGw1 VirtualNetworkGatewaySKUTier = "VpnGw1" VirtualNetworkGatewaySKUTierVPNGw1AZ VirtualNetworkGatewaySKUTier = "VpnGw1AZ" VirtualNetworkGatewaySKUTierVPNGw2 VirtualNetworkGatewaySKUTier = "VpnGw2" VirtualNetworkGatewaySKUTierVPNGw2AZ VirtualNetworkGatewaySKUTier = "VpnGw2AZ" VirtualNetworkGatewaySKUTierVPNGw3 VirtualNetworkGatewaySKUTier = "VpnGw3" VirtualNetworkGatewaySKUTierVPNGw3AZ VirtualNetworkGatewaySKUTier = "VpnGw3AZ" VirtualNetworkGatewaySKUTierVPNGw4 VirtualNetworkGatewaySKUTier = "VpnGw4" VirtualNetworkGatewaySKUTierVPNGw4AZ VirtualNetworkGatewaySKUTier = "VpnGw4AZ" VirtualNetworkGatewaySKUTierVPNGw5 VirtualNetworkGatewaySKUTier = "VpnGw5" VirtualNetworkGatewaySKUTierVPNGw5AZ VirtualNetworkGatewaySKUTier = "VpnGw5AZ" )
func PossibleVirtualNetworkGatewaySKUTierValues ¶
func PossibleVirtualNetworkGatewaySKUTierValues() []VirtualNetworkGatewaySKUTier
PossibleVirtualNetworkGatewaySKUTierValues returns the possible values for the VirtualNetworkGatewaySKUTier const type.
type VirtualNetworkGatewayType ¶
type VirtualNetworkGatewayType string
VirtualNetworkGatewayType - The type of this virtual network gateway.
const ( VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" VirtualNetworkGatewayTypeVPN VirtualNetworkGatewayType = "Vpn" )
func PossibleVirtualNetworkGatewayTypeValues ¶
func PossibleVirtualNetworkGatewayTypeValues() []VirtualNetworkGatewayType
PossibleVirtualNetworkGatewayTypeValues returns the possible values for the VirtualNetworkGatewayType const type.
type VirtualNetworkGatewaysClient ¶
type VirtualNetworkGatewaysClient struct {
// contains filtered or unexported fields
}
VirtualNetworkGatewaysClient contains the methods for the VirtualNetworkGateways group. Don't use this type directly, use NewVirtualNetworkGatewaysClient() instead.
func NewVirtualNetworkGatewaysClient ¶
func NewVirtualNetworkGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkGatewaysClient, error)
NewVirtualNetworkGatewaysClient creates a new instance of VirtualNetworkGatewaysClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworkGatewaysClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworkGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VirtualNetworkGateway, options *VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkGatewaysClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. parameters - Parameters supplied to create or update virtual network gateway operation. options - VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "vpngw", armnetwork.VirtualNetworkGateway{ Location: to.Ptr("centralus"), Properties: &armnetwork.VirtualNetworkGatewayPropertiesFormat{ Active: to.Ptr(false), BgpSettings: &armnetwork.BgpSettings{ Asn: to.Ptr[int64](65515), BgpPeeringAddress: to.Ptr("10.0.1.30"), PeerWeight: to.Ptr[int32](0), }, CustomRoutes: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("101.168.0.6/32")}, }, DisableIPSecReplayProtection: to.Ptr(false), EnableBgp: to.Ptr(false), EnableBgpRouteTranslationForNat: to.Ptr(false), EnableDNSForwarding: to.Ptr(true), GatewayType: to.Ptr(armnetwork.VirtualNetworkGatewayTypeVPN), IPConfigurations: []*armnetwork.VirtualNetworkGatewayIPConfiguration{ { Name: to.Ptr("gwipconfig1"), Properties: &armnetwork.VirtualNetworkGatewayIPConfigurationPropertiesFormat{ PrivateIPAllocationMethod: to.Ptr(armnetwork.IPAllocationMethodDynamic), PublicIPAddress: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"), }, Subnet: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"), }, }, }}, NatRules: []*armnetwork.VirtualNetworkGatewayNatRule{ { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1"), Name: to.Ptr("natRule1"), Properties: &armnetwork.VirtualNetworkGatewayNatRuleProperties{ Type: to.Ptr(armnetwork.VPNNatRuleTypeStatic), ExternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("50.0.0.0/24"), }}, InternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("10.10.0.0/24"), }}, IPConfigurationID: to.Ptr(""), Mode: to.Ptr(armnetwork.VPNNatRuleModeEgressSnat), }, }, { ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2"), Name: to.Ptr("natRule2"), Properties: &armnetwork.VirtualNetworkGatewayNatRuleProperties{ Type: to.Ptr(armnetwork.VPNNatRuleTypeStatic), ExternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("30.0.0.0/24"), }}, InternalMappings: []*armnetwork.VPNNatRuleMapping{ { AddressSpace: to.Ptr("20.10.0.0/24"), }}, IPConfigurationID: to.Ptr(""), Mode: to.Ptr(armnetwork.VPNNatRuleModeIngressSnat), }, }}, SKU: &armnetwork.VirtualNetworkGatewaySKU{ Name: to.Ptr(armnetwork.VirtualNetworkGatewaySKUNameVPNGw1), Tier: to.Ptr(armnetwork.VirtualNetworkGatewaySKUTierVPNGw1), }, VPNClientConfiguration: &armnetwork.VPNClientConfiguration{ RadiusServers: []*armnetwork.RadiusServer{ { RadiusServerAddress: to.Ptr("10.2.0.0"), RadiusServerScore: to.Ptr[int64](20), RadiusServerSecret: to.Ptr("radiusServerSecret"), }}, VPNClientProtocols: []*armnetwork.VPNClientProtocol{ to.Ptr(armnetwork.VPNClientProtocolOpenVPN)}, VPNClientRevokedCertificates: []*armnetwork.VPNClientRevokedCertificate{}, VPNClientRootCertificates: []*armnetwork.VPNClientRootCertificate{}, }, VPNType: to.Ptr(armnetwork.VPNTypeRouteBased), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginDelete ¶
func (client *VirtualNetworkGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkGatewaysClientDeleteResponse], error)
BeginDelete - Deletes the specified virtual network gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "vpngw", 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 (*VirtualNetworkGatewaysClient) BeginDisconnectVirtualNetworkGatewayVPNConnections ¶
func (client *VirtualNetworkGatewaysClient) BeginDisconnectVirtualNetworkGatewayVPNConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, request P2SVPNConnectionRequest, options *VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions) (*runtime.Poller[VirtualNetworkGatewaysClientDisconnectVirtualNetworkGatewayVPNConnectionsResponse], error)
BeginDisconnectVirtualNetworkGatewayVPNConnections - Disconnect vpn connections of virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. request - The parameters are supplied to disconnect vpn connections. options - VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginDisconnectVirtualNetworkGatewayVPNConnections method.
func (*VirtualNetworkGatewaysClient) BeginGenerateVPNProfile ¶
func (client *VirtualNetworkGatewaysClient) BeginGenerateVPNProfile(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VPNClientParameters, options *VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGenerateVPNProfileResponse], error)
BeginGenerateVPNProfile - Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. parameters - Parameters supplied to the generate virtual network gateway VPN client package operation. options - VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGenerateVPNProfile method.
func (*VirtualNetworkGatewaysClient) BeginGeneratevpnclientpackage ¶
func (client *VirtualNetworkGatewaysClient) BeginGeneratevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VPNClientParameters, options *VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse], error)
BeginGeneratevpnclientpackage - Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. parameters - Parameters supplied to the generate virtual network gateway VPN client package operation. options - VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGeneratevpnclientpackage method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGeneratevpnclientpackage(ctx, "rg1", "vpngw", armnetwork.VPNClientParameters{}, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginGetAdvertisedRoutes ¶
func (client *VirtualNetworkGatewaysClient) BeginGetAdvertisedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string, options *VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse], error)
BeginGetAdvertisedRoutes - This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. peer - The IP address of the peer. options - VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetAdvertisedRoutes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetAdvertisedRoutes(ctx, "rg1", "vpngw", "test", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginGetBgpPeerStatus ¶
func (client *VirtualNetworkGatewaysClient) BeginGetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetBgpPeerStatusResponse], error)
BeginGetBgpPeerStatus - The GetBgpPeerStatus operation retrieves the status of all BGP peers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetBgpPeerStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetBgpPeerStatus(ctx, "rg1", "vpngw", &armnetwork.VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions{Peer: 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginGetLearnedRoutes ¶
func (client *VirtualNetworkGatewaysClient) BeginGetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetLearnedRoutesResponse], error)
BeginGetLearnedRoutes - This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetLearnedRoutes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayLearnedRoutes.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetLearnedRoutes(ctx, "rg1", "vpngw", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginGetVPNProfilePackageURL ¶
func (client *VirtualNetworkGatewaysClient) BeginGetVPNProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse], error)
BeginGetVPNProfilePackageURL - Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVPNProfilePackageURL method.
func (*VirtualNetworkGatewaysClient) BeginGetVpnclientConnectionHealth ¶
func (client *VirtualNetworkGatewaysClient) BeginGetVpnclientConnectionHealth(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetVpnclientConnectionHealthResponse], error)
BeginGetVpnclientConnectionHealth - Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVpnclientConnectionHealth method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetVpnclientConnectionHealth(ctx, "p2s-vnet-test", "vpnp2sgw", 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginGetVpnclientIPSecParameters ¶
func (client *VirtualNetworkGatewaysClient) BeginGetVpnclientIPSecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions) (*runtime.Poller[VirtualNetworkGatewaysClientGetVpnclientIPSecParametersResponse], error)
BeginGetVpnclientIPSecParameters - The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The virtual network gateway name. options - VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVpnclientIPSecParameters method.
func (*VirtualNetworkGatewaysClient) BeginReset ¶
func (client *VirtualNetworkGatewaysClient) BeginReset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginResetOptions) (*runtime.Poller[VirtualNetworkGatewaysClientResetResponse], error)
BeginReset - Resets the primary of the virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginResetOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginReset method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayReset.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginReset(ctx, "rg1", "vpngw", &armnetwork.VirtualNetworkGatewaysClientBeginResetOptions{GatewayVip: 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginResetVPNClientSharedKey ¶
func (client *VirtualNetworkGatewaysClient) BeginResetVPNClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions) (*runtime.Poller[VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse], error)
BeginResetVPNClientSharedKey - Resets the VPN client shared key of the virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginResetVPNClientSharedKey method.
func (*VirtualNetworkGatewaysClient) BeginSetVpnclientIPSecParameters ¶
func (client *VirtualNetworkGatewaysClient) BeginSetVpnclientIPSecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIPSecParams VPNClientIPsecParameters, options *VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions) (*runtime.Poller[VirtualNetworkGatewaysClientSetVpnclientIPSecParametersResponse], error)
BeginSetVpnclientIPSecParameters - The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. vpnclientIPSecParams - Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. options - VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginSetVpnclientIPSecParameters method.
func (*VirtualNetworkGatewaysClient) BeginStartPacketCapture ¶
func (client *VirtualNetworkGatewaysClient) BeginStartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions) (*runtime.Poller[VirtualNetworkGatewaysClientStartPacketCaptureResponse], error)
BeginStartPacketCapture - Starts packet capture on virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginStartPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStartPacketCapture(ctx, "rg1", "vpngw", &armnetwork.VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions{Parameters: &armnetwork.VPNPacketCaptureStartParameters{ FilterData: to.Ptr("{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), }, }) 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginStopPacketCapture ¶
func (client *VirtualNetworkGatewaysClient) BeginStopPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VPNPacketCaptureStopParameters, options *VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions) (*runtime.Poller[VirtualNetworkGatewaysClientStopPacketCaptureResponse], error)
BeginStopPacketCapture - Stops packet capture on virtual network gateway in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. parameters - Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. options - VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginStopPacketCapture method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayStopPacketCapture.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginStopPacketCapture(ctx, "rg1", "vpngw", armnetwork.VPNPacketCaptureStopParameters{ SasURL: to.Ptr("https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) BeginUpdateTags ¶
func (client *VirtualNetworkGatewaysClient) BeginUpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters TagsObject, options *VirtualNetworkGatewaysClientBeginUpdateTagsOptions) (*runtime.Poller[VirtualNetworkGatewaysClientUpdateTagsResponse], error)
BeginUpdateTags - Updates a virtual network gateway tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. parameters - Parameters supplied to update virtual network gateway tags. options - VirtualNetworkGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginUpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdateTags(ctx, "rg1", "vpngw", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) Get ¶
func (client *VirtualNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientGetOptions) (VirtualNetworkGatewaysClientGetResponse, error)
Get - Gets the specified virtual network gateway by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientGetOptions contains the optional parameters for the VirtualNetworkGatewaysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "vpngw", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkGatewaysClient) NewListConnectionsPager ¶ added in v0.5.0
func (client *VirtualNetworkGatewaysClient) NewListConnectionsPager(resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientListConnectionsOptions) *runtime.Pager[VirtualNetworkGatewaysClientListConnectionsResponse]
NewListConnectionsPager - Gets all the connections in a virtual network gateway. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientListConnectionsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.ListConnections method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewaysListConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListConnectionsPager("testrg", "test-vpn-gateway-1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworkGatewaysClient) NewListPager ¶ added in v0.5.0
func (client *VirtualNetworkGatewaysClient) NewListPager(resourceGroupName string, options *VirtualNetworkGatewaysClientListOptions) *runtime.Pager[VirtualNetworkGatewaysClientListResponse]
NewListPager - Gets all virtual network gateways by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualNetworkGatewaysClientListOptions contains the optional parameters for the VirtualNetworkGatewaysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGatewayList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkGatewaysClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworkGatewaysClient) SupportedVPNDevices ¶
func (client *VirtualNetworkGatewaysClient) SupportedVPNDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, options *VirtualNetworkGatewaysClientSupportedVPNDevicesOptions) (VirtualNetworkGatewaysClientSupportedVPNDevicesResponse, error)
SupportedVPNDevices - Gets a xml format representation for supported vpn devices. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayName - The name of the virtual network gateway. options - VirtualNetworkGatewaysClientSupportedVPNDevicesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.SupportedVPNDevices method.
func (*VirtualNetworkGatewaysClient) VPNDeviceConfigurationScript ¶
func (client *VirtualNetworkGatewaysClient) VPNDeviceConfigurationScript(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters VPNDeviceScriptParameters, options *VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions) (VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse, error)
VPNDeviceConfigurationScript - Gets a xml format representation for vpn device configuration script. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkGatewayConnectionName - The name of the virtual network gateway connection for which the configuration script is generated. parameters - Parameters supplied to the generate vpn device script operation. options - VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions contains the optional parameters for the VirtualNetworkGatewaysClient.VPNDeviceConfigurationScript method.
type VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginCreateOrUpdate method.
type VirtualNetworkGatewaysClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginDelete method.
type VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginDisconnectVirtualNetworkGatewayVPNConnectionsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginDisconnectVirtualNetworkGatewayVPNConnections method.
type VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGenerateVPNProfileOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGenerateVPNProfile method.
type VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGeneratevpnclientpackageOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGeneratevpnclientpackage method.
type VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetAdvertisedRoutesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetAdvertisedRoutes method.
type VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions struct { // The IP address of the peer to retrieve the status of. Peer *string // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetBgpPeerStatusOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetBgpPeerStatus method.
type VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetLearnedRoutesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetLearnedRoutes method.
type VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetVPNProfilePackageURLOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVPNProfilePackageURL method.
type VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetVpnclientConnectionHealthOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVpnclientConnectionHealth method.
type VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginGetVpnclientIPSecParametersOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginGetVpnclientIPSecParameters method.
type VirtualNetworkGatewaysClientBeginResetOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginResetOptions struct { // Virtual network gateway vip address supplied to the begin reset of the active-active feature enabled gateway. GatewayVip *string // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginResetOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginReset method.
type VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions struct { string }ResumeToken
VirtualNetworkGatewaysClientBeginResetVPNClientSharedKeyOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginResetVPNClientSharedKey method.
type VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginSetVpnclientIPSecParametersOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginSetVpnclientIPSecParameters method.
type VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions struct { // Virtual network gateway packet capture parameters supplied to start packet capture on gateway. Parameters *VPNPacketCaptureStartParameters // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginStartPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginStartPacketCapture method.
type VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginStopPacketCaptureOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginStopPacketCapture method.
type VirtualNetworkGatewaysClientBeginUpdateTagsOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientBeginUpdateTagsOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkGatewaysClientBeginUpdateTagsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.BeginUpdateTags method.
type VirtualNetworkGatewaysClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientCreateOrUpdateResponse struct {
VirtualNetworkGateway
}
VirtualNetworkGatewaysClientCreateOrUpdateResponse contains the response from method VirtualNetworkGatewaysClient.CreateOrUpdate.
type VirtualNetworkGatewaysClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientDeleteResponse struct { }
VirtualNetworkGatewaysClientDeleteResponse contains the response from method VirtualNetworkGatewaysClient.Delete.
type VirtualNetworkGatewaysClientDisconnectVirtualNetworkGatewayVPNConnectionsResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientDisconnectVirtualNetworkGatewayVPNConnectionsResponse struct { }
VirtualNetworkGatewaysClientDisconnectVirtualNetworkGatewayVPNConnectionsResponse contains the response from method VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVPNConnections.
type VirtualNetworkGatewaysClientGenerateVPNProfileResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGenerateVPNProfileResponse struct {
Value *string
}
VirtualNetworkGatewaysClientGenerateVPNProfileResponse contains the response from method VirtualNetworkGatewaysClient.GenerateVPNProfile.
func (*VirtualNetworkGatewaysClientGenerateVPNProfileResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewaysClientGenerateVPNProfileResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewaysClientGenerateVPNProfileResponse.
type VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse struct {
Value *string
}
VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse contains the response from method VirtualNetworkGatewaysClient.Generatevpnclientpackage.
func (*VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewaysClientGeneratevpnclientpackageResponse.
type VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse struct {
GatewayRouteListResult
}
VirtualNetworkGatewaysClientGetAdvertisedRoutesResponse contains the response from method VirtualNetworkGatewaysClient.GetAdvertisedRoutes.
type VirtualNetworkGatewaysClientGetBgpPeerStatusResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetBgpPeerStatusResponse struct {
BgpPeerStatusListResult
}
VirtualNetworkGatewaysClientGetBgpPeerStatusResponse contains the response from method VirtualNetworkGatewaysClient.GetBgpPeerStatus.
type VirtualNetworkGatewaysClientGetLearnedRoutesResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetLearnedRoutesResponse struct {
GatewayRouteListResult
}
VirtualNetworkGatewaysClientGetLearnedRoutesResponse contains the response from method VirtualNetworkGatewaysClient.GetLearnedRoutes.
type VirtualNetworkGatewaysClientGetOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetOptions struct { }
VirtualNetworkGatewaysClientGetOptions contains the optional parameters for the VirtualNetworkGatewaysClient.Get method.
type VirtualNetworkGatewaysClientGetResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetResponse struct {
VirtualNetworkGateway
}
VirtualNetworkGatewaysClientGetResponse contains the response from method VirtualNetworkGatewaysClient.Get.
type VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse struct {
Value *string
}
VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse contains the response from method VirtualNetworkGatewaysClient.GetVPNProfilePackageURL.
func (*VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewaysClientGetVPNProfilePackageURLResponse.
type VirtualNetworkGatewaysClientGetVpnclientConnectionHealthResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetVpnclientConnectionHealthResponse struct {
VPNClientConnectionHealthDetailListResult
}
VirtualNetworkGatewaysClientGetVpnclientConnectionHealthResponse contains the response from method VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth.
type VirtualNetworkGatewaysClientGetVpnclientIPSecParametersResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientGetVpnclientIPSecParametersResponse struct {
VPNClientIPsecParameters
}
VirtualNetworkGatewaysClientGetVpnclientIPSecParametersResponse contains the response from method VirtualNetworkGatewaysClient.GetVpnclientIPSecParameters.
type VirtualNetworkGatewaysClientListConnectionsOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientListConnectionsOptions struct { }
VirtualNetworkGatewaysClientListConnectionsOptions contains the optional parameters for the VirtualNetworkGatewaysClient.ListConnections method.
type VirtualNetworkGatewaysClientListConnectionsResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientListConnectionsResponse struct {
VirtualNetworkGatewayListConnectionsResult
}
VirtualNetworkGatewaysClientListConnectionsResponse contains the response from method VirtualNetworkGatewaysClient.ListConnections.
type VirtualNetworkGatewaysClientListOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientListOptions struct { }
VirtualNetworkGatewaysClientListOptions contains the optional parameters for the VirtualNetworkGatewaysClient.List method.
type VirtualNetworkGatewaysClientListResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientListResponse struct {
VirtualNetworkGatewayListResult
}
VirtualNetworkGatewaysClientListResponse contains the response from method VirtualNetworkGatewaysClient.List.
type VirtualNetworkGatewaysClientResetResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientResetResponse struct {
VirtualNetworkGateway
}
VirtualNetworkGatewaysClientResetResponse contains the response from method VirtualNetworkGatewaysClient.Reset.
type VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse struct { }
VirtualNetworkGatewaysClientResetVPNClientSharedKeyResponse contains the response from method VirtualNetworkGatewaysClient.ResetVPNClientSharedKey.
type VirtualNetworkGatewaysClientSetVpnclientIPSecParametersResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientSetVpnclientIPSecParametersResponse struct {
VPNClientIPsecParameters
}
VirtualNetworkGatewaysClientSetVpnclientIPSecParametersResponse contains the response from method VirtualNetworkGatewaysClient.SetVpnclientIPSecParameters.
type VirtualNetworkGatewaysClientStartPacketCaptureResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientStartPacketCaptureResponse struct {
Value *string
}
VirtualNetworkGatewaysClientStartPacketCaptureResponse contains the response from method VirtualNetworkGatewaysClient.StartPacketCapture.
func (*VirtualNetworkGatewaysClientStartPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewaysClientStartPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewaysClientStartPacketCaptureResponse.
type VirtualNetworkGatewaysClientStopPacketCaptureResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientStopPacketCaptureResponse struct {
Value *string
}
VirtualNetworkGatewaysClientStopPacketCaptureResponse contains the response from method VirtualNetworkGatewaysClient.StopPacketCapture.
func (*VirtualNetworkGatewaysClientStopPacketCaptureResponse) UnmarshalJSON ¶ added in v0.4.0
func (v *VirtualNetworkGatewaysClientStopPacketCaptureResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkGatewaysClientStopPacketCaptureResponse.
type VirtualNetworkGatewaysClientSupportedVPNDevicesOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientSupportedVPNDevicesOptions struct { }
VirtualNetworkGatewaysClientSupportedVPNDevicesOptions contains the optional parameters for the VirtualNetworkGatewaysClient.SupportedVPNDevices method.
type VirtualNetworkGatewaysClientSupportedVPNDevicesResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientSupportedVPNDevicesResponse struct {
Value *string
}
VirtualNetworkGatewaysClientSupportedVPNDevicesResponse contains the response from method VirtualNetworkGatewaysClient.SupportedVPNDevices.
type VirtualNetworkGatewaysClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientUpdateTagsResponse struct {
VirtualNetworkGateway
}
VirtualNetworkGatewaysClientUpdateTagsResponse contains the response from method VirtualNetworkGatewaysClient.UpdateTags.
type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions ¶ added in v0.3.0
type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions struct { }
VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptOptions contains the optional parameters for the VirtualNetworkGatewaysClient.VPNDeviceConfigurationScript method.
type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse ¶ added in v0.3.0
type VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse struct {
Value *string
}
VirtualNetworkGatewaysClientVPNDeviceConfigurationScriptResponse contains the response from method VirtualNetworkGatewaysClient.VPNDeviceConfigurationScript.
type VirtualNetworkListResult ¶
type VirtualNetworkListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of VirtualNetwork resources in a resource group. Value []*VirtualNetwork `json:"value,omitempty"` }
VirtualNetworkListResult - Response for the ListVirtualNetworks API service call.
type VirtualNetworkListUsageResult ¶
type VirtualNetworkListUsageResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; VirtualNetwork usage stats. Value []*VirtualNetworkUsage `json:"value,omitempty" azure:"ro"` }
VirtualNetworkListUsageResult - Response for the virtual networks GetUsage API service call.
type VirtualNetworkPeering ¶
type VirtualNetworkPeering struct { // Resource ID. ID *string `json:"id,omitempty"` // The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` // Properties of the virtual network peering. Properties *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` // Resource type. Type *string `json:"type,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
VirtualNetworkPeering - Peerings in a virtual network resource.
type VirtualNetworkPeeringLevel ¶
type VirtualNetworkPeeringLevel string
VirtualNetworkPeeringLevel - The peering sync status of the virtual network peering.
const ( VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" )
func PossibleVirtualNetworkPeeringLevelValues ¶
func PossibleVirtualNetworkPeeringLevelValues() []VirtualNetworkPeeringLevel
PossibleVirtualNetworkPeeringLevelValues returns the possible values for the VirtualNetworkPeeringLevel const type.
type VirtualNetworkPeeringListResult ¶
type VirtualNetworkPeeringListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // The peerings in a virtual network. Value []*VirtualNetworkPeering `json:"value,omitempty"` }
VirtualNetworkPeeringListResult - Response for ListSubnets API service call. Retrieves all subnets that belong to a virtual network.
type VirtualNetworkPeeringPropertiesFormat ¶
type VirtualNetworkPeeringPropertiesFormat struct { // Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network. AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` // If gateway links can be used in remote virtual networking to link to this virtual network. AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` // Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space. AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` // If we need to verify the provisioning state of the remote gateway. DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` // The status of the virtual network peering. PeeringState *VirtualNetworkPeeringState `json:"peeringState,omitempty"` // The peering sync status of the virtual network peering. PeeringSyncLevel *VirtualNetworkPeeringLevel `json:"peeringSyncLevel,omitempty"` // The reference to the address space peered with the remote virtual network. RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` // The reference to the remote virtual network's Bgp Communities. RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` // The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). // See here to register for the preview and learn more // (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` // The reference to the current address space of the remote virtual network. RemoteVirtualNetworkAddressSpace *AddressSpace `json:"remoteVirtualNetworkAddressSpace,omitempty"` // If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering // is also true, virtual network will use gateways of remote virtual network // for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a // gateway. UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` // READ-ONLY; The provisioning state of the virtual network peering resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The reference to the remote virtual network's encryption RemoteVirtualNetworkEncryption *VirtualNetworkEncryption `json:"remoteVirtualNetworkEncryption,omitempty" azure:"ro"` // READ-ONLY; The resourceGuid property of the Virtual Network peering resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
VirtualNetworkPeeringPropertiesFormat - Properties of the virtual network peering.
type VirtualNetworkPeeringState ¶
type VirtualNetworkPeeringState string
VirtualNetworkPeeringState - The status of the virtual network peering.
const ( VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" )
func PossibleVirtualNetworkPeeringStateValues ¶
func PossibleVirtualNetworkPeeringStateValues() []VirtualNetworkPeeringState
PossibleVirtualNetworkPeeringStateValues returns the possible values for the VirtualNetworkPeeringState const type.
type VirtualNetworkPeeringsClient ¶
type VirtualNetworkPeeringsClient struct {
// contains filtered or unexported fields
}
VirtualNetworkPeeringsClient contains the methods for the VirtualNetworkPeerings group. Don't use this type directly, use NewVirtualNetworkPeeringsClient() instead.
func NewVirtualNetworkPeeringsClient ¶
func NewVirtualNetworkPeeringsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkPeeringsClient, error)
NewVirtualNetworkPeeringsClient creates a new instance of VirtualNetworkPeeringsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworkPeeringsClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworkPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, virtualNetworkPeeringParameters VirtualNetworkPeering, options *VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkPeeringsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a peering in the specified virtual network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. virtualNetworkPeeringName - The name of the peering. virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation. options - VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkPeeringsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkPeeringCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "peerTest", "vnet1", "peer", armnetwork.VirtualNetworkPeering{ Properties: &armnetwork.VirtualNetworkPeeringPropertiesFormat{ AllowForwardedTraffic: to.Ptr(true), AllowGatewayTransit: to.Ptr(false), AllowVirtualNetworkAccess: to.Ptr(true), RemoteVirtualNetwork: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2"), }, UseRemoteGateways: to.Ptr(false), }, }, &armnetwork.VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions{SyncRemoteAddressSpace: 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkPeeringsClient) BeginDelete ¶
func (client *VirtualNetworkPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, options *VirtualNetworkPeeringsClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkPeeringsClientDeleteResponse], error)
BeginDelete - Deletes the specified virtual network peering. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. virtualNetworkPeeringName - The name of the virtual network peering. options - VirtualNetworkPeeringsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkPeeringsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkPeeringDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "peerTest", "vnet1", "peer", 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 (*VirtualNetworkPeeringsClient) Get ¶
func (client *VirtualNetworkPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string, options *VirtualNetworkPeeringsClientGetOptions) (VirtualNetworkPeeringsClientGetResponse, error)
Get - Gets the specified virtual network peering. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. virtualNetworkPeeringName - The name of the virtual network peering. options - VirtualNetworkPeeringsClientGetOptions contains the optional parameters for the VirtualNetworkPeeringsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkPeeringGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "peerTest", "vnet1", "peer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkPeeringsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualNetworkPeeringsClient) NewListPager(resourceGroupName string, virtualNetworkName string, options *VirtualNetworkPeeringsClientListOptions) *runtime.Pager[VirtualNetworkPeeringsClientListResponse]
NewListPager - Gets all virtual network peerings in a virtual network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. options - VirtualNetworkPeeringsClientListOptions contains the optional parameters for the VirtualNetworkPeeringsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkPeeringList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("peerTest", "vnet1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string // Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated. SyncRemoteAddressSpace *SyncRemoteAddressSpace }
VirtualNetworkPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkPeeringsClient.BeginCreateOrUpdate method.
type VirtualNetworkPeeringsClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworkPeeringsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkPeeringsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkPeeringsClient.BeginDelete method.
type VirtualNetworkPeeringsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworkPeeringsClientCreateOrUpdateResponse struct {
VirtualNetworkPeering
}
VirtualNetworkPeeringsClientCreateOrUpdateResponse contains the response from method VirtualNetworkPeeringsClient.CreateOrUpdate.
type VirtualNetworkPeeringsClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworkPeeringsClientDeleteResponse struct { }
VirtualNetworkPeeringsClientDeleteResponse contains the response from method VirtualNetworkPeeringsClient.Delete.
type VirtualNetworkPeeringsClientGetOptions ¶ added in v0.3.0
type VirtualNetworkPeeringsClientGetOptions struct { }
VirtualNetworkPeeringsClientGetOptions contains the optional parameters for the VirtualNetworkPeeringsClient.Get method.
type VirtualNetworkPeeringsClientGetResponse ¶ added in v0.3.0
type VirtualNetworkPeeringsClientGetResponse struct {
VirtualNetworkPeering
}
VirtualNetworkPeeringsClientGetResponse contains the response from method VirtualNetworkPeeringsClient.Get.
type VirtualNetworkPeeringsClientListOptions ¶ added in v0.3.0
type VirtualNetworkPeeringsClientListOptions struct { }
VirtualNetworkPeeringsClientListOptions contains the optional parameters for the VirtualNetworkPeeringsClient.List method.
type VirtualNetworkPeeringsClientListResponse ¶ added in v0.3.0
type VirtualNetworkPeeringsClientListResponse struct {
VirtualNetworkPeeringListResult
}
VirtualNetworkPeeringsClientListResponse contains the response from method VirtualNetworkPeeringsClient.List.
type VirtualNetworkPrivateEndpointNetworkPolicies ¶
type VirtualNetworkPrivateEndpointNetworkPolicies string
VirtualNetworkPrivateEndpointNetworkPolicies - Enable or Disable apply network policies on private end point in the subnet.
const ( VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" )
func PossibleVirtualNetworkPrivateEndpointNetworkPoliciesValues ¶
func PossibleVirtualNetworkPrivateEndpointNetworkPoliciesValues() []VirtualNetworkPrivateEndpointNetworkPolicies
PossibleVirtualNetworkPrivateEndpointNetworkPoliciesValues returns the possible values for the VirtualNetworkPrivateEndpointNetworkPolicies const type.
type VirtualNetworkPrivateLinkServiceNetworkPolicies ¶
type VirtualNetworkPrivateLinkServiceNetworkPolicies string
VirtualNetworkPrivateLinkServiceNetworkPolicies - Enable or Disable apply network policies on private link service in the subnet.
const ( VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" )
func PossibleVirtualNetworkPrivateLinkServiceNetworkPoliciesValues ¶
func PossibleVirtualNetworkPrivateLinkServiceNetworkPoliciesValues() []VirtualNetworkPrivateLinkServiceNetworkPolicies
PossibleVirtualNetworkPrivateLinkServiceNetworkPoliciesValues returns the possible values for the VirtualNetworkPrivateLinkServiceNetworkPolicies const type.
type VirtualNetworkPropertiesFormat ¶
type VirtualNetworkPropertiesFormat struct { // The AddressSpace that contains an array of IP address ranges that can be used by subnets. AddressSpace *AddressSpace `json:"addressSpace,omitempty"` // Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` // The DDoS protection plan associated with the virtual network. DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` // The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` // Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection // plan associated with the resource. EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` // Indicates if VM protection is enabled for all the subnets in the virtual network. EnableVMProtection *bool `json:"enableVmProtection,omitempty"` // Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. Encryption *VirtualNetworkEncryption `json:"encryption,omitempty"` // The FlowTimeout value (in minutes) for the Virtual Network FlowTimeoutInMinutes *int32 `json:"flowTimeoutInMinutes,omitempty"` // Array of IpAllocation which reference this VNET. IPAllocations []*SubResource `json:"ipAllocations,omitempty"` // A list of subnets in a Virtual Network. Subnets []*Subnet `json:"subnets,omitempty"` // A list of peerings in a Virtual Network. VirtualNetworkPeerings []*VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` // READ-ONLY; The provisioning state of the virtual network resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resourceGuid property of the Virtual Network resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
VirtualNetworkPropertiesFormat - Properties of the virtual network.
func (VirtualNetworkPropertiesFormat) MarshalJSON ¶
func (v VirtualNetworkPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkPropertiesFormat.
type VirtualNetworkTap ¶
type VirtualNetworkTap struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Virtual Network Tap Properties. Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualNetworkTap - Virtual Network Tap resource.
func (VirtualNetworkTap) MarshalJSON ¶
func (v VirtualNetworkTap) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkTap.
type VirtualNetworkTapListResult ¶
type VirtualNetworkTapListResult struct { // The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of VirtualNetworkTaps in a resource group. Value []*VirtualNetworkTap `json:"value,omitempty"` }
VirtualNetworkTapListResult - Response for ListVirtualNetworkTap API service call.
type VirtualNetworkTapPropertiesFormat ¶
type VirtualNetworkTapPropertiesFormat struct { // The reference to the private IP address on the internal Load Balancer that will receive the tap. DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` // The reference to the private IP Address of the collector nic that will receive the tap. DestinationNetworkInterfaceIPConfiguration *InterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` // The VXLAN destination port that will receive the tapped traffic. DestinationPort *int32 `json:"destinationPort,omitempty"` // READ-ONLY; Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped. NetworkInterfaceTapConfigurations []*InterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual network tap resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The resource GUID property of the virtual network tap resource. ResourceGUID *string `json:"resourceGuid,omitempty" azure:"ro"` }
VirtualNetworkTapPropertiesFormat - Virtual Network Tap properties.
func (VirtualNetworkTapPropertiesFormat) MarshalJSON ¶
func (v VirtualNetworkTapPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkTapPropertiesFormat.
type VirtualNetworkTapsClient ¶
type VirtualNetworkTapsClient struct {
// contains filtered or unexported fields
}
VirtualNetworkTapsClient contains the methods for the VirtualNetworkTaps group. Don't use this type directly, use NewVirtualNetworkTapsClient() instead.
func NewVirtualNetworkTapsClient ¶
func NewVirtualNetworkTapsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkTapsClient, error)
NewVirtualNetworkTapsClient creates a new instance of VirtualNetworkTapsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworkTapsClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworkTapsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, tapName string, parameters VirtualNetworkTap, options *VirtualNetworkTapsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkTapsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Virtual Network Tap. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. tapName - The name of the virtual network tap. parameters - Parameters supplied to the create or update virtual network tap operation. options - VirtualNetworkTapsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkTapsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-vtap", armnetwork.VirtualNetworkTap{ Location: to.Ptr("centraluseuap"), Properties: &armnetwork.VirtualNetworkTapPropertiesFormat{ DestinationNetworkInterfaceIPConfiguration: &armnetwork.InterfaceIPConfiguration{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/ipconfig1"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkTapsClient) BeginDelete ¶
func (client *VirtualNetworkTapsClient) BeginDelete(ctx context.Context, resourceGroupName string, tapName string, options *VirtualNetworkTapsClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkTapsClientDeleteResponse], error)
BeginDelete - Deletes the specified virtual network tap. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. tapName - The name of the virtual network tap. options - VirtualNetworkTapsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkTapsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-vtap", 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 (*VirtualNetworkTapsClient) Get ¶
func (client *VirtualNetworkTapsClient) Get(ctx context.Context, resourceGroupName string, tapName string, options *VirtualNetworkTapsClientGetOptions) (VirtualNetworkTapsClientGetResponse, error)
Get - Gets information about the specified virtual network tap. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. tapName - The name of virtual network tap. options - VirtualNetworkTapsClientGetOptions contains the optional parameters for the VirtualNetworkTapsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "testvtap", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworkTapsClient) NewListAllPager ¶ added in v0.5.0
func (client *VirtualNetworkTapsClient) NewListAllPager(options *VirtualNetworkTapsClientListAllOptions) *runtime.Pager[VirtualNetworkTapsClientListAllResponse]
NewListAllPager - Gets all the VirtualNetworkTaps in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualNetworkTapsClientListAllOptions contains the optional parameters for the VirtualNetworkTapsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworkTapsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VirtualNetworkTapsClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualNetworkTapsClientListByResourceGroupOptions) *runtime.Pager[VirtualNetworkTapsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all the VirtualNetworkTaps in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualNetworkTapsClientListByResourceGroupOptions contains the optional parameters for the VirtualNetworkTapsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworkTapsClient) UpdateTags ¶
func (client *VirtualNetworkTapsClient) UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters TagsObject, options *VirtualNetworkTapsClientUpdateTagsOptions) (VirtualNetworkTapsClientUpdateTagsResponse, error)
UpdateTags - Updates an VirtualNetworkTap tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. tapName - The name of the tap. tapParameters - Parameters supplied to update VirtualNetworkTap tags. options - VirtualNetworkTapsClientUpdateTagsOptions contains the optional parameters for the VirtualNetworkTapsClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkTapUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworkTapsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-vtap", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualNetworkTapsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkTapsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkTapsClient.BeginCreateOrUpdate method.
type VirtualNetworkTapsClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworkTapsClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkTapsClient.BeginDelete method.
type VirtualNetworkTapsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientCreateOrUpdateResponse struct {
VirtualNetworkTap
}
VirtualNetworkTapsClientCreateOrUpdateResponse contains the response from method VirtualNetworkTapsClient.CreateOrUpdate.
type VirtualNetworkTapsClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientDeleteResponse struct { }
VirtualNetworkTapsClientDeleteResponse contains the response from method VirtualNetworkTapsClient.Delete.
type VirtualNetworkTapsClientGetOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientGetOptions struct { }
VirtualNetworkTapsClientGetOptions contains the optional parameters for the VirtualNetworkTapsClient.Get method.
type VirtualNetworkTapsClientGetResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientGetResponse struct {
VirtualNetworkTap
}
VirtualNetworkTapsClientGetResponse contains the response from method VirtualNetworkTapsClient.Get.
type VirtualNetworkTapsClientListAllOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientListAllOptions struct { }
VirtualNetworkTapsClientListAllOptions contains the optional parameters for the VirtualNetworkTapsClient.ListAll method.
type VirtualNetworkTapsClientListAllResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientListAllResponse struct {
VirtualNetworkTapListResult
}
VirtualNetworkTapsClientListAllResponse contains the response from method VirtualNetworkTapsClient.ListAll.
type VirtualNetworkTapsClientListByResourceGroupOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientListByResourceGroupOptions struct { }
VirtualNetworkTapsClientListByResourceGroupOptions contains the optional parameters for the VirtualNetworkTapsClient.ListByResourceGroup method.
type VirtualNetworkTapsClientListByResourceGroupResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientListByResourceGroupResponse struct {
VirtualNetworkTapListResult
}
VirtualNetworkTapsClientListByResourceGroupResponse contains the response from method VirtualNetworkTapsClient.ListByResourceGroup.
type VirtualNetworkTapsClientUpdateTagsOptions ¶ added in v0.3.0
type VirtualNetworkTapsClientUpdateTagsOptions struct { }
VirtualNetworkTapsClientUpdateTagsOptions contains the optional parameters for the VirtualNetworkTapsClient.UpdateTags method.
type VirtualNetworkTapsClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualNetworkTapsClientUpdateTagsResponse struct {
VirtualNetworkTap
}
VirtualNetworkTapsClientUpdateTagsResponse contains the response from method VirtualNetworkTapsClient.UpdateTags.
type VirtualNetworkUsage ¶
type VirtualNetworkUsage struct { // READ-ONLY; Indicates number of IPs used from the Subnet. CurrentValue *float64 `json:"currentValue,omitempty" azure:"ro"` // READ-ONLY; Subnet identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Indicates the size of the subnet. Limit *float64 `json:"limit,omitempty" azure:"ro"` // READ-ONLY; The name containing common and localized value for usage. Name *VirtualNetworkUsageName `json:"name,omitempty" azure:"ro"` // READ-ONLY; Usage units. Returns 'Count'. Unit *string `json:"unit,omitempty" azure:"ro"` }
VirtualNetworkUsage - Usage details for subnet.
type VirtualNetworkUsageName ¶
type VirtualNetworkUsageName struct { // READ-ONLY; Localized subnet size and usage string. LocalizedValue *string `json:"localizedValue,omitempty" azure:"ro"` // READ-ONLY; Subnet size and usage string. Value *string `json:"value,omitempty" azure:"ro"` }
VirtualNetworkUsageName - Usage strings container.
type VirtualNetworksClient ¶
type VirtualNetworksClient struct {
// contains filtered or unexported fields
}
VirtualNetworksClient contains the methods for the VirtualNetworks group. Don't use this type directly, use NewVirtualNetworksClient() instead.
func NewVirtualNetworksClient ¶
func NewVirtualNetworksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworksClient, error)
NewVirtualNetworksClient creates a new instance of VirtualNetworksClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualNetworksClient) BeginCreateOrUpdate ¶
func (client *VirtualNetworksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters VirtualNetwork, options *VirtualNetworksClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworksClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a virtual network in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. parameters - Parameters supplied to the create or update virtual network operation. options - VirtualNetworksClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworksClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "test-vnet", armnetwork.VirtualNetwork{ Location: to.Ptr("eastus"), Properties: &armnetwork.VirtualNetworkPropertiesFormat{ AddressSpace: &armnetwork.AddressSpace{ AddressPrefixes: []*string{ to.Ptr("10.0.0.0/16")}, }, FlowTimeoutInMinutes: to.Ptr[int32](10), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworksClient) BeginDelete ¶
func (client *VirtualNetworksClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualNetworkName string, options *VirtualNetworksClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworksClientDeleteResponse], error)
BeginDelete - Deletes the specified virtual network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. options - VirtualNetworksClientBeginDeleteOptions contains the optional parameters for the VirtualNetworksClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "test-vnet", 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 (*VirtualNetworksClient) CheckIPAddressAvailability ¶
func (client *VirtualNetworksClient) CheckIPAddressAvailability(ctx context.Context, resourceGroupName string, virtualNetworkName string, ipAddress string, options *VirtualNetworksClientCheckIPAddressAvailabilityOptions) (VirtualNetworksClientCheckIPAddressAvailabilityResponse, error)
CheckIPAddressAvailability - Checks whether a private IP address is available for use. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. ipAddress - The private IP address to be verified. options - VirtualNetworksClientCheckIPAddressAvailabilityOptions contains the optional parameters for the VirtualNetworksClient.CheckIPAddressAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkCheckIPAddressAvailability.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckIPAddressAvailability(ctx, "rg1", "test-vnet", "10.0.1.4", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworksClient) Get ¶
func (client *VirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, options *VirtualNetworksClientGetOptions) (VirtualNetworksClientGetResponse, error)
Get - Gets the specified virtual network by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. options - VirtualNetworksClientGetOptions contains the optional parameters for the VirtualNetworksClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "test-vnet", &armnetwork.VirtualNetworksClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualNetworksClient) NewListAllPager ¶ added in v0.5.0
func (client *VirtualNetworksClient) NewListAllPager(options *VirtualNetworksClientListAllOptions) *runtime.Pager[VirtualNetworksClientListAllResponse]
NewListAllPager - Gets all virtual networks in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualNetworksClientListAllOptions contains the optional parameters for the VirtualNetworksClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworksClient) NewListPager ¶ added in v0.5.0
func (client *VirtualNetworksClient) NewListPager(resourceGroupName string, options *VirtualNetworksClientListOptions) *runtime.Pager[VirtualNetworksClientListResponse]
NewListPager - Gets all virtual networks in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualNetworksClientListOptions contains the optional parameters for the VirtualNetworksClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworksClient) NewListUsagePager ¶ added in v0.5.0
func (client *VirtualNetworksClient) NewListUsagePager(resourceGroupName string, virtualNetworkName string, options *VirtualNetworksClientListUsageOptions) *runtime.Pager[VirtualNetworksClientListUsageResponse]
NewListUsagePager - Lists usage stats. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. options - VirtualNetworksClientListUsageOptions contains the optional parameters for the VirtualNetworksClient.ListUsage method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkListUsage.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListUsagePager("rg1", "vnetName", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualNetworksClient) UpdateTags ¶
func (client *VirtualNetworksClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters TagsObject, options *VirtualNetworksClientUpdateTagsOptions) (VirtualNetworksClientUpdateTagsResponse, error)
UpdateTags - Updates a virtual network tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualNetworkName - The name of the virtual network. parameters - Parameters supplied to update virtual network tags. options - VirtualNetworksClientUpdateTagsOptions contains the optional parameters for the VirtualNetworksClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualNetworkUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualNetworksClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "test-vnet", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualNetworksClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualNetworksClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworksClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworksClient.BeginCreateOrUpdate method.
type VirtualNetworksClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualNetworksClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualNetworksClientBeginDeleteOptions contains the optional parameters for the VirtualNetworksClient.BeginDelete method.
type VirtualNetworksClientCheckIPAddressAvailabilityOptions ¶ added in v0.3.0
type VirtualNetworksClientCheckIPAddressAvailabilityOptions struct { }
VirtualNetworksClientCheckIPAddressAvailabilityOptions contains the optional parameters for the VirtualNetworksClient.CheckIPAddressAvailability method.
type VirtualNetworksClientCheckIPAddressAvailabilityResponse ¶ added in v0.3.0
type VirtualNetworksClientCheckIPAddressAvailabilityResponse struct {
IPAddressAvailabilityResult
}
VirtualNetworksClientCheckIPAddressAvailabilityResponse contains the response from method VirtualNetworksClient.CheckIPAddressAvailability.
type VirtualNetworksClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualNetworksClientCreateOrUpdateResponse struct {
VirtualNetwork
}
VirtualNetworksClientCreateOrUpdateResponse contains the response from method VirtualNetworksClient.CreateOrUpdate.
type VirtualNetworksClientDeleteResponse ¶ added in v0.3.0
type VirtualNetworksClientDeleteResponse struct { }
VirtualNetworksClientDeleteResponse contains the response from method VirtualNetworksClient.Delete.
type VirtualNetworksClientGetOptions ¶ added in v0.3.0
type VirtualNetworksClientGetOptions struct { // Expands referenced resources. Expand *string }
VirtualNetworksClientGetOptions contains the optional parameters for the VirtualNetworksClient.Get method.
type VirtualNetworksClientGetResponse ¶ added in v0.3.0
type VirtualNetworksClientGetResponse struct {
VirtualNetwork
}
VirtualNetworksClientGetResponse contains the response from method VirtualNetworksClient.Get.
type VirtualNetworksClientListAllOptions ¶ added in v0.3.0
type VirtualNetworksClientListAllOptions struct { }
VirtualNetworksClientListAllOptions contains the optional parameters for the VirtualNetworksClient.ListAll method.
type VirtualNetworksClientListAllResponse ¶ added in v0.3.0
type VirtualNetworksClientListAllResponse struct {
VirtualNetworkListResult
}
VirtualNetworksClientListAllResponse contains the response from method VirtualNetworksClient.ListAll.
type VirtualNetworksClientListOptions ¶ added in v0.3.0
type VirtualNetworksClientListOptions struct { }
VirtualNetworksClientListOptions contains the optional parameters for the VirtualNetworksClient.List method.
type VirtualNetworksClientListResponse ¶ added in v0.3.0
type VirtualNetworksClientListResponse struct {
VirtualNetworkListResult
}
VirtualNetworksClientListResponse contains the response from method VirtualNetworksClient.List.
type VirtualNetworksClientListUsageOptions ¶ added in v0.3.0
type VirtualNetworksClientListUsageOptions struct { }
VirtualNetworksClientListUsageOptions contains the optional parameters for the VirtualNetworksClient.ListUsage method.
type VirtualNetworksClientListUsageResponse ¶ added in v0.3.0
type VirtualNetworksClientListUsageResponse struct {
VirtualNetworkListUsageResult
}
VirtualNetworksClientListUsageResponse contains the response from method VirtualNetworksClient.ListUsage.
type VirtualNetworksClientUpdateTagsOptions ¶ added in v0.3.0
type VirtualNetworksClientUpdateTagsOptions struct { }
VirtualNetworksClientUpdateTagsOptions contains the optional parameters for the VirtualNetworksClient.UpdateTags method.
type VirtualNetworksClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualNetworksClientUpdateTagsResponse struct {
VirtualNetwork
}
VirtualNetworksClientUpdateTagsResponse contains the response from method VirtualNetworksClient.UpdateTags.
type VirtualRouter ¶
type VirtualRouter struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the Virtual Router. Properties *VirtualRouterPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualRouter Resource.
func (VirtualRouter) MarshalJSON ¶
func (v VirtualRouter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualRouter.
type VirtualRouterListResult ¶
type VirtualRouterListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Virtual Routers. Value []*VirtualRouter `json:"value,omitempty"` }
VirtualRouterListResult - Response for ListVirtualRouters API service call.
type VirtualRouterPeering ¶
type VirtualRouterPeering struct { // Resource ID. ID *string `json:"id,omitempty"` // Name of the virtual router peering that is unique within a virtual router. Name *string `json:"name,omitempty"` // The properties of the Virtual Router Peering. Properties *VirtualRouterPeeringProperties `json:"properties,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Peering type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualRouterPeering - Virtual Router Peering resource.
type VirtualRouterPeeringListResult ¶
type VirtualRouterPeeringListResult struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of VirtualRouterPeerings in a VirtualRouter. Value []*VirtualRouterPeering `json:"value,omitempty"` }
VirtualRouterPeeringListResult - Response for ListVirtualRouterPeerings API service call.
type VirtualRouterPeeringProperties ¶
type VirtualRouterPeeringProperties struct { // Peer ASN. PeerAsn *int64 `json:"peerAsn,omitempty"` // Peer IP. PeerIP *string `json:"peerIp,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualRouterPeeringProperties - Properties of the rule group.
type VirtualRouterPeeringsClient ¶
type VirtualRouterPeeringsClient struct {
// contains filtered or unexported fields
}
VirtualRouterPeeringsClient contains the methods for the VirtualRouterPeerings group. Don't use this type directly, use NewVirtualRouterPeeringsClient() instead.
func NewVirtualRouterPeeringsClient ¶
func NewVirtualRouterPeeringsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualRouterPeeringsClient, error)
NewVirtualRouterPeeringsClient creates a new instance of VirtualRouterPeeringsClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualRouterPeeringsClient) BeginCreateOrUpdate ¶
func (client *VirtualRouterPeeringsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters VirtualRouterPeering, options *VirtualRouterPeeringsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualRouterPeeringsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Virtual Router Peering. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. peeringName - The name of the Virtual Router Peering. parameters - Parameters supplied to the create or update Virtual Router Peering operation. options - VirtualRouterPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualRouterPeeringsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeeringPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRouterPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualRouter", "peering1", armnetwork.VirtualRouterPeering{ Properties: &armnetwork.VirtualRouterPeeringProperties{ PeerAsn: to.Ptr[int64](20000), PeerIP: to.Ptr("192.168.1.5"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualRouterPeeringsClient) BeginDelete ¶
func (client *VirtualRouterPeeringsClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, options *VirtualRouterPeeringsClientBeginDeleteOptions) (*runtime.Poller[VirtualRouterPeeringsClientDeleteResponse], error)
BeginDelete - Deletes the specified peering from a Virtual Router. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. peeringName - The name of the peering. options - VirtualRouterPeeringsClientBeginDeleteOptions contains the optional parameters for the VirtualRouterPeeringsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeeringDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRouterPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualRouter", "peering1", 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 (*VirtualRouterPeeringsClient) Get ¶
func (client *VirtualRouterPeeringsClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, options *VirtualRouterPeeringsClientGetOptions) (VirtualRouterPeeringsClientGetResponse, error)
Get - Gets the specified Virtual Router Peering. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. peeringName - The name of the Virtual Router Peering. options - VirtualRouterPeeringsClientGetOptions contains the optional parameters for the VirtualRouterPeeringsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeeringGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRouterPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualRouter", "peering1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualRouterPeeringsClient) NewListPager ¶ added in v0.5.0
func (client *VirtualRouterPeeringsClient) NewListPager(resourceGroupName string, virtualRouterName string, options *VirtualRouterPeeringsClientListOptions) *runtime.Pager[VirtualRouterPeeringsClientListResponse]
NewListPager - Lists all Virtual Router Peerings in a Virtual Router resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. options - VirtualRouterPeeringsClientListOptions contains the optional parameters for the VirtualRouterPeeringsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPeeringList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRouterPeeringsClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "virtualRouter", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualRouterPeeringsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualRouterPeeringsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualRouterPeeringsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualRouterPeeringsClient.BeginCreateOrUpdate method.
type VirtualRouterPeeringsClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualRouterPeeringsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualRouterPeeringsClientBeginDeleteOptions contains the optional parameters for the VirtualRouterPeeringsClient.BeginDelete method.
type VirtualRouterPeeringsClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualRouterPeeringsClientCreateOrUpdateResponse struct {
VirtualRouterPeering
}
VirtualRouterPeeringsClientCreateOrUpdateResponse contains the response from method VirtualRouterPeeringsClient.CreateOrUpdate.
type VirtualRouterPeeringsClientDeleteResponse ¶ added in v0.3.0
type VirtualRouterPeeringsClientDeleteResponse struct { }
VirtualRouterPeeringsClientDeleteResponse contains the response from method VirtualRouterPeeringsClient.Delete.
type VirtualRouterPeeringsClientGetOptions ¶ added in v0.3.0
type VirtualRouterPeeringsClientGetOptions struct { }
VirtualRouterPeeringsClientGetOptions contains the optional parameters for the VirtualRouterPeeringsClient.Get method.
type VirtualRouterPeeringsClientGetResponse ¶ added in v0.3.0
type VirtualRouterPeeringsClientGetResponse struct {
VirtualRouterPeering
}
VirtualRouterPeeringsClientGetResponse contains the response from method VirtualRouterPeeringsClient.Get.
type VirtualRouterPeeringsClientListOptions ¶ added in v0.3.0
type VirtualRouterPeeringsClientListOptions struct { }
VirtualRouterPeeringsClientListOptions contains the optional parameters for the VirtualRouterPeeringsClient.List method.
type VirtualRouterPeeringsClientListResponse ¶ added in v0.3.0
type VirtualRouterPeeringsClientListResponse struct {
VirtualRouterPeeringListResult
}
VirtualRouterPeeringsClientListResponse contains the response from method VirtualRouterPeeringsClient.List.
type VirtualRouterPropertiesFormat ¶
type VirtualRouterPropertiesFormat struct { // The Gateway on which VirtualRouter is hosted. HostedGateway *SubResource `json:"hostedGateway,omitempty"` // The Subnet on which VirtualRouter is hosted. HostedSubnet *SubResource `json:"hostedSubnet,omitempty"` // VirtualRouter ASN. VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` // VirtualRouter IPs. VirtualRouterIPs []*string `json:"virtualRouterIps,omitempty"` // READ-ONLY; List of references to VirtualRouterPeerings. Peerings []*SubResource `json:"peerings,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
VirtualRouterPropertiesFormat - Virtual Router definition.
func (VirtualRouterPropertiesFormat) MarshalJSON ¶
func (v VirtualRouterPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualRouterPropertiesFormat.
type VirtualRoutersClient ¶
type VirtualRoutersClient struct {
// contains filtered or unexported fields
}
VirtualRoutersClient contains the methods for the VirtualRouters group. Don't use this type directly, use NewVirtualRoutersClient() instead.
func NewVirtualRoutersClient ¶
func NewVirtualRoutersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualRoutersClient, error)
NewVirtualRoutersClient creates a new instance of VirtualRoutersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualRoutersClient) BeginCreateOrUpdate ¶
func (client *VirtualRoutersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters VirtualRouter, options *VirtualRoutersClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualRoutersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the specified Virtual Router. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. parameters - Parameters supplied to the create or update Virtual Router. options - VirtualRoutersClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualRoutersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRoutersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "virtualRouter", armnetwork.VirtualRouter{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VirtualRouterPropertiesFormat{ HostedGateway: &armnetwork.SubResource{ ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vnetGateway"), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualRoutersClient) BeginDelete ¶
func (client *VirtualRoutersClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualRouterName string, options *VirtualRoutersClientBeginDeleteOptions) (*runtime.Poller[VirtualRoutersClientDeleteResponse], error)
BeginDelete - Deletes the specified Virtual Router. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. options - VirtualRoutersClientBeginDeleteOptions contains the optional parameters for the VirtualRoutersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRoutersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualRouter", 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 (*VirtualRoutersClient) Get ¶
func (client *VirtualRoutersClient) Get(ctx context.Context, resourceGroupName string, virtualRouterName string, options *VirtualRoutersClientGetOptions) (VirtualRoutersClientGetResponse, error)
Get - Gets the specified Virtual Router. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. virtualRouterName - The name of the Virtual Router. options - VirtualRoutersClientGetOptions contains the optional parameters for the VirtualRoutersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRoutersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "virtualRouter", &armnetwork.VirtualRoutersClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualRoutersClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VirtualRoutersClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualRoutersClientListByResourceGroupOptions) *runtime.Pager[VirtualRoutersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all Virtual Routers in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - VirtualRoutersClientListByResourceGroupOptions contains the optional parameters for the VirtualRoutersClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRoutersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualRoutersClient) NewListPager ¶ added in v0.5.0
func (client *VirtualRoutersClient) NewListPager(options *VirtualRoutersClientListOptions) *runtime.Pager[VirtualRoutersClientListResponse]
NewListPager - Gets all the Virtual Routers in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualRoutersClientListOptions contains the optional parameters for the VirtualRoutersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualRouterListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualRoutersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualRoutersClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualRoutersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualRoutersClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualRoutersClient.BeginCreateOrUpdate method.
type VirtualRoutersClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualRoutersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualRoutersClientBeginDeleteOptions contains the optional parameters for the VirtualRoutersClient.BeginDelete method.
type VirtualRoutersClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualRoutersClientCreateOrUpdateResponse struct {
VirtualRouter
}
VirtualRoutersClientCreateOrUpdateResponse contains the response from method VirtualRoutersClient.CreateOrUpdate.
type VirtualRoutersClientDeleteResponse ¶ added in v0.3.0
type VirtualRoutersClientDeleteResponse struct { }
VirtualRoutersClientDeleteResponse contains the response from method VirtualRoutersClient.Delete.
type VirtualRoutersClientGetOptions ¶ added in v0.3.0
type VirtualRoutersClientGetOptions struct { // Expands referenced resources. Expand *string }
VirtualRoutersClientGetOptions contains the optional parameters for the VirtualRoutersClient.Get method.
type VirtualRoutersClientGetResponse ¶ added in v0.3.0
type VirtualRoutersClientGetResponse struct {
VirtualRouter
}
VirtualRoutersClientGetResponse contains the response from method VirtualRoutersClient.Get.
type VirtualRoutersClientListByResourceGroupOptions ¶ added in v0.3.0
type VirtualRoutersClientListByResourceGroupOptions struct { }
VirtualRoutersClientListByResourceGroupOptions contains the optional parameters for the VirtualRoutersClient.ListByResourceGroup method.
type VirtualRoutersClientListByResourceGroupResponse ¶ added in v0.3.0
type VirtualRoutersClientListByResourceGroupResponse struct {
VirtualRouterListResult
}
VirtualRoutersClientListByResourceGroupResponse contains the response from method VirtualRoutersClient.ListByResourceGroup.
type VirtualRoutersClientListOptions ¶ added in v0.3.0
type VirtualRoutersClientListOptions struct { }
VirtualRoutersClientListOptions contains the optional parameters for the VirtualRoutersClient.List method.
type VirtualRoutersClientListResponse ¶ added in v0.3.0
type VirtualRoutersClientListResponse struct {
VirtualRouterListResult
}
VirtualRoutersClientListResponse contains the response from method VirtualRoutersClient.List.
type VirtualWAN ¶
type VirtualWAN struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the virtual WAN. Properties *VirtualWanProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
VirtualWAN Resource.
func (VirtualWAN) MarshalJSON ¶
func (v VirtualWAN) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualWAN.
type VirtualWanProperties ¶
type VirtualWanProperties struct { // True if branch to branch traffic is allowed. AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` // True if Vnet to Vnet traffic is allowed. AllowVnetToVnetTraffic *bool `json:"allowVnetToVnetTraffic,omitempty"` // Vpn encryption to be disabled or not. DisableVPNEncryption *bool `json:"disableVpnEncryption,omitempty"` // The type of the VirtualWAN. Type *string `json:"type,omitempty"` // READ-ONLY; The office local breakout category. Office365LocalBreakoutCategory *OfficeTrafficCategory `json:"office365LocalBreakoutCategory,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the virtual WAN resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; List of VpnSites in the VirtualWAN. VPNSites []*SubResource `json:"vpnSites,omitempty" azure:"ro"` // READ-ONLY; List of VirtualHubs in the VirtualWAN. VirtualHubs []*SubResource `json:"virtualHubs,omitempty" azure:"ro"` }
VirtualWanProperties - Parameters for VirtualWAN.
func (VirtualWanProperties) MarshalJSON ¶
func (v VirtualWanProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualWanProperties.
type VirtualWanSecurityProvider ¶
type VirtualWanSecurityProvider struct { // Name of the security provider. Name *string `json:"name,omitempty"` // Url of the security provider. URL *string `json:"url,omitempty"` // READ-ONLY; Name of the security provider. Type *VirtualWanSecurityProviderType `json:"type,omitempty" azure:"ro"` }
VirtualWanSecurityProvider - Collection of SecurityProviders.
type VirtualWanSecurityProviderType ¶
type VirtualWanSecurityProviderType string
VirtualWanSecurityProviderType - The virtual wan security provider type.
const ( VirtualWanSecurityProviderTypeExternal VirtualWanSecurityProviderType = "External" VirtualWanSecurityProviderTypeNative VirtualWanSecurityProviderType = "Native" )
func PossibleVirtualWanSecurityProviderTypeValues ¶
func PossibleVirtualWanSecurityProviderTypeValues() []VirtualWanSecurityProviderType
PossibleVirtualWanSecurityProviderTypeValues returns the possible values for the VirtualWanSecurityProviderType const type.
type VirtualWanSecurityProviders ¶
type VirtualWanSecurityProviders struct { // List of VirtualWAN security providers. SupportedProviders []*VirtualWanSecurityProvider `json:"supportedProviders,omitempty"` }
VirtualWanSecurityProviders - Collection of SecurityProviders.
type VirtualWanVPNProfileParameters ¶
type VirtualWanVPNProfileParameters struct { // VPN client authentication method. AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` // VpnServerConfiguration partial resource uri with which VirtualWan is associated to. VPNServerConfigurationResourceID *string `json:"vpnServerConfigurationResourceId,omitempty"` }
VirtualWanVPNProfileParameters - Virtual Wan Vpn profile parameters Vpn profile generation.
type VirtualWansClient ¶
type VirtualWansClient struct {
// contains filtered or unexported fields
}
VirtualWansClient contains the methods for the VirtualWans group. Don't use this type directly, use NewVirtualWansClient() instead.
func NewVirtualWansClient ¶
func NewVirtualWansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualWansClient, error)
NewVirtualWansClient creates a new instance of VirtualWansClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualWansClient) BeginCreateOrUpdate ¶
func (client *VirtualWansClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, virtualWANName string, wanParameters VirtualWAN, options *VirtualWansClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualWansClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualWan. virtualWANName - The name of the VirtualWAN being created or updated. wanParameters - Parameters supplied to create or update VirtualWAN. options - VirtualWansClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualWansClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANPut.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "wan1", armnetwork.VirtualWAN{ Location: to.Ptr("West US"), Tags: map[string]*string{ "key1": to.Ptr("value1"), }, Properties: &armnetwork.VirtualWanProperties{ Type: to.Ptr("Basic"), DisableVPNEncryption: to.Ptr(false), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VirtualWansClient) BeginDelete ¶
func (client *VirtualWansClient) BeginDelete(ctx context.Context, resourceGroupName string, virtualWANName string, options *VirtualWansClientBeginDeleteOptions) (*runtime.Poller[VirtualWansClientDeleteResponse], error)
BeginDelete - Deletes a VirtualWAN. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualWan. virtualWANName - The name of the VirtualWAN being deleted. options - VirtualWansClientBeginDeleteOptions contains the optional parameters for the VirtualWansClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "virtualWan1", 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 (*VirtualWansClient) Get ¶
func (client *VirtualWansClient) Get(ctx context.Context, resourceGroupName string, virtualWANName string, options *VirtualWansClientGetOptions) (VirtualWansClientGetResponse, error)
Get - Retrieves the details of a VirtualWAN. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualWan. virtualWANName - The name of the VirtualWAN being retrieved. options - VirtualWansClientGetOptions contains the optional parameters for the VirtualWansClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "wan1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VirtualWansClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *VirtualWansClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualWansClientListByResourceGroupOptions) *runtime.Pager[VirtualWansClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the VirtualWANs in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualWan. options - VirtualWansClientListByResourceGroupOptions contains the optional parameters for the VirtualWansClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualWansClient) NewListPager ¶ added in v0.5.0
func (client *VirtualWansClient) NewListPager(options *VirtualWansClientListOptions) *runtime.Pager[VirtualWansClientListResponse]
NewListPager - Lists all the VirtualWANs in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - VirtualWansClientListOptions contains the optional parameters for the VirtualWansClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualWansClient) UpdateTags ¶
func (client *VirtualWansClient) UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wanParameters TagsObject, options *VirtualWansClientUpdateTagsOptions) (VirtualWansClientUpdateTagsResponse, error)
UpdateTags - Updates a VirtualWAN tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The resource group name of the VirtualWan. virtualWANName - The name of the VirtualWAN being updated. wanParameters - Parameters supplied to Update VirtualWAN tags. options - VirtualWansClientUpdateTagsOptions contains the optional parameters for the VirtualWansClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/VirtualWANUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewVirtualWansClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "wan1", armnetwork.TagsObject{ Tags: map[string]*string{ "key1": to.Ptr("value1"), "key2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VirtualWansClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type VirtualWansClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualWansClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualWansClient.BeginCreateOrUpdate method.
type VirtualWansClientBeginDeleteOptions ¶ added in v0.3.0
type VirtualWansClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualWansClientBeginDeleteOptions contains the optional parameters for the VirtualWansClient.BeginDelete method.
type VirtualWansClientCreateOrUpdateResponse ¶ added in v0.3.0
type VirtualWansClientCreateOrUpdateResponse struct {
VirtualWAN
}
VirtualWansClientCreateOrUpdateResponse contains the response from method VirtualWansClient.CreateOrUpdate.
type VirtualWansClientDeleteResponse ¶ added in v0.3.0
type VirtualWansClientDeleteResponse struct { }
VirtualWansClientDeleteResponse contains the response from method VirtualWansClient.Delete.
type VirtualWansClientGetOptions ¶ added in v0.3.0
type VirtualWansClientGetOptions struct { }
VirtualWansClientGetOptions contains the optional parameters for the VirtualWansClient.Get method.
type VirtualWansClientGetResponse ¶ added in v0.3.0
type VirtualWansClientGetResponse struct {
VirtualWAN
}
VirtualWansClientGetResponse contains the response from method VirtualWansClient.Get.
type VirtualWansClientListByResourceGroupOptions ¶ added in v0.3.0
type VirtualWansClientListByResourceGroupOptions struct { }
VirtualWansClientListByResourceGroupOptions contains the optional parameters for the VirtualWansClient.ListByResourceGroup method.
type VirtualWansClientListByResourceGroupResponse ¶ added in v0.3.0
type VirtualWansClientListByResourceGroupResponse struct {
ListVirtualWANsResult
}
VirtualWansClientListByResourceGroupResponse contains the response from method VirtualWansClient.ListByResourceGroup.
type VirtualWansClientListOptions ¶ added in v0.3.0
type VirtualWansClientListOptions struct { }
VirtualWansClientListOptions contains the optional parameters for the VirtualWansClient.List method.
type VirtualWansClientListResponse ¶ added in v0.3.0
type VirtualWansClientListResponse struct {
ListVirtualWANsResult
}
VirtualWansClientListResponse contains the response from method VirtualWansClient.List.
type VirtualWansClientUpdateTagsOptions ¶ added in v0.3.0
type VirtualWansClientUpdateTagsOptions struct { }
VirtualWansClientUpdateTagsOptions contains the optional parameters for the VirtualWansClient.UpdateTags method.
type VirtualWansClientUpdateTagsResponse ¶ added in v0.3.0
type VirtualWansClientUpdateTagsResponse struct {
VirtualWAN
}
VirtualWansClientUpdateTagsResponse contains the response from method VirtualWansClient.UpdateTags.
type VnetRoute ¶
type VnetRoute struct { // List of all Static Routes. StaticRoutes []*StaticRoute `json:"staticRoutes,omitempty"` // READ-ONLY; The list of references to HubBgpConnection objects. BgpConnections []*SubResource `json:"bgpConnections,omitempty" azure:"ro"` }
VnetRoute - List of routes that control routing from VirtualHub into a virtual network connection.
func (VnetRoute) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type VnetRoute.
type Watcher ¶ added in v0.3.0
type Watcher struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the network watcher. Properties *WatcherPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Watcher - Network watcher in a resource group.
func (Watcher) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Watcher.
type WatcherListResult ¶ added in v0.3.0
type WatcherListResult struct { // List of network watcher resources. Value []*Watcher `json:"value,omitempty"` }
WatcherListResult - Response for ListNetworkWatchers API service call.
type WatcherPropertiesFormat ¶ added in v0.3.0
type WatcherPropertiesFormat struct { // READ-ONLY; The provisioning state of the network watcher resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
WatcherPropertiesFormat - The network watcher properties.
type WatchersClient ¶ added in v0.3.0
type WatchersClient struct {
// contains filtered or unexported fields
}
WatchersClient contains the methods for the NetworkWatchers group. Don't use this type directly, use NewWatchersClient() instead.
func NewWatchersClient ¶ added in v0.3.0
func NewWatchersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WatchersClient, error)
NewWatchersClient creates a new instance of WatchersClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*WatchersClient) BeginCheckConnectivity ¶ added in v0.3.0
func (client *WatchersClient) BeginCheckConnectivity(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConnectivityParameters, options *WatchersClientBeginCheckConnectivityOptions) (*runtime.Poller[WatchersClientCheckConnectivityResponse], error)
BeginCheckConnectivity - Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the network watcher resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that determine how the connectivity check will be performed. options - WatchersClientBeginCheckConnectivityOptions contains the optional parameters for the WatchersClient.BeginCheckConnectivity method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherConnectivityCheck.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCheckConnectivity(ctx, "rg1", "nw1", armnetwork.ConnectivityParameters{ Destination: &armnetwork.ConnectivityDestination{ Address: to.Ptr("192.168.100.4"), Port: to.Ptr[int32](3389), }, PreferredIPVersion: to.Ptr(armnetwork.IPVersionIPv4), Source: &armnetwork.ConnectivitySource{ ResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginDelete ¶ added in v0.3.0
func (client *WatchersClient) BeginDelete(ctx context.Context, resourceGroupName string, networkWatcherName string, options *WatchersClientBeginDeleteOptions) (*runtime.Poller[WatchersClientDeleteResponse], error)
BeginDelete - Deletes the specified network watcher resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. options - WatchersClientBeginDeleteOptions contains the optional parameters for the WatchersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "nw1", 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 (*WatchersClient) BeginGetAzureReachabilityReport ¶ added in v0.3.0
func (client *WatchersClient) BeginGetAzureReachabilityReport(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AzureReachabilityReportParameters, options *WatchersClientBeginGetAzureReachabilityReportOptions) (*runtime.Poller[WatchersClientGetAzureReachabilityReportResponse], error)
BeginGetAzureReachabilityReport - NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the network watcher resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that determine Azure reachability report configuration. options - WatchersClientBeginGetAzureReachabilityReportOptions contains the optional parameters for the WatchersClient.BeginGetAzureReachabilityReport method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherAzureReachabilityReportGet.json
package main import ( "context" "log" "time" "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/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetAzureReachabilityReport(ctx, "rg1", "nw1", armnetwork.AzureReachabilityReportParameters{ AzureLocations: []*string{ to.Ptr("West US")}, EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-10T00:00:00Z"); return t }()), ProviderLocation: &armnetwork.AzureReachabilityReportLocation{ Country: to.Ptr("United States"), State: to.Ptr("washington"), }, Providers: []*string{ to.Ptr("Frontier Communications of America, Inc. - ASN 5650")}, StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-07T00:00:00Z"); return t }()), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetFlowLogStatus ¶ added in v0.3.0
func (client *WatchersClient) BeginGetFlowLogStatus(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogStatusParameters, options *WatchersClientBeginGetFlowLogStatusOptions) (*runtime.Poller[WatchersClientGetFlowLogStatusResponse], error)
BeginGetFlowLogStatus - Queries status of flow log and traffic analytics (optional) on a specified resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the network watcher resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that define a resource to query flow log and traffic analytics (optional) status. options - WatchersClientBeginGetFlowLogStatusOptions contains the optional parameters for the WatchersClient.BeginGetFlowLogStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogStatusQuery.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetFlowLogStatus(ctx, "rg1", "nw1", armnetwork.FlowLogStatusParameters{ TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetNetworkConfigurationDiagnostic ¶ added in v0.3.0
func (client *WatchersClient) BeginGetNetworkConfigurationDiagnostic(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters ConfigurationDiagnosticParameters, options *WatchersClientBeginGetNetworkConfigurationDiagnosticOptions) (*runtime.Poller[WatchersClientGetNetworkConfigurationDiagnosticResponse], error)
BeginGetNetworkConfigurationDiagnostic - Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters to get network configuration diagnostic. options - WatchersClientBeginGetNetworkConfigurationDiagnosticOptions contains the optional parameters for the WatchersClient.BeginGetNetworkConfigurationDiagnostic method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetNetworkConfigurationDiagnostic(ctx, "rg1", "nw1", armnetwork.ConfigurationDiagnosticParameters{ Profiles: []*armnetwork.ConfigurationDiagnosticProfile{ { Destination: to.Ptr("12.11.12.14"), DestinationPort: to.Ptr("12100"), Direction: to.Ptr(armnetwork.DirectionInbound), Source: to.Ptr("10.1.0.4"), Protocol: to.Ptr("TCP"), }}, TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetNextHop ¶ added in v0.3.0
func (client *WatchersClient) BeginGetNextHop(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters NextHopParameters, options *WatchersClientBeginGetNextHopOptions) (*runtime.Poller[WatchersClientGetNextHopResponse], error)
BeginGetNextHop - Gets the next hop from the specified VM. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters that define the source and destination endpoint. options - WatchersClientBeginGetNextHopOptions contains the optional parameters for the WatchersClient.BeginGetNextHop method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherNextHopGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetNextHop(ctx, "rg1", "nw1", armnetwork.NextHopParameters{ DestinationIPAddress: to.Ptr("10.0.0.10"), SourceIPAddress: to.Ptr("10.0.0.5"), TargetNicResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"), TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetTroubleshooting ¶ added in v0.3.0
func (client *WatchersClient) BeginGetTroubleshooting(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TroubleshootingParameters, options *WatchersClientBeginGetTroubleshootingOptions) (*runtime.Poller[WatchersClientGetTroubleshootingResponse], error)
BeginGetTroubleshooting - Initiate troubleshooting on a specified resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that define the resource to troubleshoot. options - WatchersClientBeginGetTroubleshootingOptions contains the optional parameters for the WatchersClient.BeginGetTroubleshooting method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherTroubleshootGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetTroubleshooting(ctx, "rg1", "nw1", armnetwork.TroubleshootingParameters{ Properties: &armnetwork.TroubleshootingProperties{ StorageID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1"), StoragePath: to.Ptr("https://st1.blob.core.windows.net/cn1"), }, TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetTroubleshootingResult ¶ added in v0.3.0
func (client *WatchersClient) BeginGetTroubleshootingResult(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters QueryTroubleshootingParameters, options *WatchersClientBeginGetTroubleshootingResultOptions) (*runtime.Poller[WatchersClientGetTroubleshootingResultResponse], error)
BeginGetTroubleshootingResult - Get the last completed troubleshooting result on a specified resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that define the resource to query the troubleshooting result. options - WatchersClientBeginGetTroubleshootingResultOptions contains the optional parameters for the WatchersClient.BeginGetTroubleshootingResult method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherTroubleshootResultQuery.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetTroubleshootingResult(ctx, "rg1", "nw1", armnetwork.QueryTroubleshootingParameters{ TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginGetVMSecurityRules ¶ added in v0.3.0
func (client *WatchersClient) BeginGetVMSecurityRules(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters SecurityGroupViewParameters, options *WatchersClientBeginGetVMSecurityRulesOptions) (*runtime.Poller[WatchersClientGetVMSecurityRulesResponse], error)
BeginGetVMSecurityRules - Gets the configured and effective security group rules on the specified VM. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters that define the VM to check security groups for. options - WatchersClientBeginGetVMSecurityRulesOptions contains the optional parameters for the WatchersClient.BeginGetVMSecurityRules method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherSecurityGroupViewGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetVMSecurityRules(ctx, "rg1", "nw1", armnetwork.SecurityGroupViewParameters{ TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginListAvailableProviders ¶ added in v0.3.0
func (client *WatchersClient) BeginListAvailableProviders(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters AvailableProvidersListParameters, options *WatchersClientBeginListAvailableProvidersOptions) (*runtime.Poller[WatchersClientListAvailableProvidersResponse], error)
BeginListAvailableProviders - NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the network watcher resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that scope the list of available providers. options - WatchersClientBeginListAvailableProvidersOptions contains the optional parameters for the WatchersClient.BeginListAvailableProviders method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherAvailableProvidersListGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginListAvailableProviders(ctx, "rg1", "nw1", armnetwork.AvailableProvidersListParameters{ AzureLocations: []*string{ to.Ptr("West US")}, City: to.Ptr("seattle"), Country: to.Ptr("United States"), State: to.Ptr("washington"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginSetFlowLogConfiguration ¶ added in v0.3.0
func (client *WatchersClient) BeginSetFlowLogConfiguration(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters FlowLogInformation, options *WatchersClientBeginSetFlowLogConfigurationOptions) (*runtime.Poller[WatchersClientSetFlowLogConfigurationResponse], error)
BeginSetFlowLogConfiguration - Configures flow log and traffic analytics (optional) on a specified resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the network watcher resource group. networkWatcherName - The name of the network watcher resource. parameters - Parameters that define the configuration of flow log. options - WatchersClientBeginSetFlowLogConfigurationOptions contains the optional parameters for the WatchersClient.BeginSetFlowLogConfiguration method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherFlowLogConfigure.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginSetFlowLogConfiguration(ctx, "rg1", "nw1", armnetwork.FlowLogInformation{ Properties: &armnetwork.FlowLogProperties{ Enabled: to.Ptr(true), StorageID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1"), }, TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) BeginVerifyIPFlow ¶ added in v0.3.0
func (client *WatchersClient) BeginVerifyIPFlow(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters VerificationIPFlowParameters, options *WatchersClientBeginVerifyIPFlowOptions) (*runtime.Poller[WatchersClientVerifyIPFlowResponse], error)
BeginVerifyIPFlow - Verify IP flow from the specified VM to a location given the currently configured NSG rules. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters that define the IP flow to be verified. options - WatchersClientBeginVerifyIPFlowOptions contains the optional parameters for the WatchersClient.BeginVerifyIPFlow method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherIpFlowVerify.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginVerifyIPFlow(ctx, "rg1", "nw1", armnetwork.VerificationIPFlowParameters{ Direction: to.Ptr(armnetwork.DirectionOutbound), LocalIPAddress: to.Ptr("10.2.0.4"), LocalPort: to.Ptr("80"), RemoteIPAddress: to.Ptr("121.10.1.1"), RemotePort: to.Ptr("80"), TargetResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), Protocol: to.Ptr(armnetwork.IPFlowProtocolTCP), }, 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) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) CreateOrUpdate ¶ added in v0.3.0
func (client *WatchersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters Watcher, options *WatchersClientCreateOrUpdateOptions) (WatchersClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a network watcher in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters that define the network watcher resource. options - WatchersClientCreateOrUpdateOptions contains the optional parameters for the WatchersClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherCreate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "rg1", "nw1", armnetwork.Watcher{ Location: to.Ptr("eastus"), Properties: &armnetwork.WatcherPropertiesFormat{}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) Get ¶ added in v0.3.0
func (client *WatchersClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, options *WatchersClientGetOptions) (WatchersClientGetResponse, error)
Get - Gets the specified network watcher by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. options - WatchersClientGetOptions contains the optional parameters for the WatchersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "nw1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) GetTopology ¶ added in v0.3.0
func (client *WatchersClient) GetTopology(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TopologyParameters, options *WatchersClientGetTopologyOptions) (WatchersClientGetTopologyResponse, error)
GetTopology - Gets the current network topology by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters that define the representation of topology. options - WatchersClientGetTopologyOptions contains the optional parameters for the WatchersClient.GetTopology method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherTopologyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetTopology(ctx, "rg1", "nw1", armnetwork.TopologyParameters{ TargetResourceGroupName: to.Ptr("rg2"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WatchersClient) NewListAllPager ¶ added in v0.5.0
func (client *WatchersClient) NewListAllPager(options *WatchersClientListAllOptions) *runtime.Pager[WatchersClientListAllResponse]
NewListAllPager - Gets all network watchers by subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - WatchersClientListAllOptions contains the optional parameters for the WatchersClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*WatchersClient) NewListPager ¶ added in v0.5.0
func (client *WatchersClient) NewListPager(resourceGroupName string, options *WatchersClientListOptions) *runtime.Pager[WatchersClientListResponse]
NewListPager - Gets all network watchers by resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - WatchersClientListOptions contains the optional parameters for the WatchersClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*WatchersClient) UpdateTags ¶ added in v0.3.0
func (client *WatchersClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, parameters TagsObject, options *WatchersClientUpdateTagsOptions) (WatchersClientUpdateTagsResponse, error)
UpdateTags - Updates a network watcher tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. networkWatcherName - The name of the network watcher. parameters - Parameters supplied to update network watcher tags. options - WatchersClientUpdateTagsOptions contains the optional parameters for the WatchersClient.UpdateTags method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/NetworkWatcherUpdateTags.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWatchersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.UpdateTags(ctx, "rg1", "nw1", armnetwork.TagsObject{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type WatchersClientBeginCheckConnectivityOptions ¶ added in v0.3.0
type WatchersClientBeginCheckConnectivityOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginCheckConnectivityOptions contains the optional parameters for the WatchersClient.BeginCheckConnectivity method.
type WatchersClientBeginDeleteOptions ¶ added in v0.3.0
type WatchersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginDeleteOptions contains the optional parameters for the WatchersClient.BeginDelete method.
type WatchersClientBeginGetAzureReachabilityReportOptions ¶ added in v0.3.0
type WatchersClientBeginGetAzureReachabilityReportOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetAzureReachabilityReportOptions contains the optional parameters for the WatchersClient.BeginGetAzureReachabilityReport method.
type WatchersClientBeginGetFlowLogStatusOptions ¶ added in v0.3.0
type WatchersClientBeginGetFlowLogStatusOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetFlowLogStatusOptions contains the optional parameters for the WatchersClient.BeginGetFlowLogStatus method.
type WatchersClientBeginGetNetworkConfigurationDiagnosticOptions ¶ added in v0.3.0
type WatchersClientBeginGetNetworkConfigurationDiagnosticOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetNetworkConfigurationDiagnosticOptions contains the optional parameters for the WatchersClient.BeginGetNetworkConfigurationDiagnostic method.
type WatchersClientBeginGetNextHopOptions ¶ added in v0.3.0
type WatchersClientBeginGetNextHopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetNextHopOptions contains the optional parameters for the WatchersClient.BeginGetNextHop method.
type WatchersClientBeginGetTroubleshootingOptions ¶ added in v0.3.0
type WatchersClientBeginGetTroubleshootingOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetTroubleshootingOptions contains the optional parameters for the WatchersClient.BeginGetTroubleshooting method.
type WatchersClientBeginGetTroubleshootingResultOptions ¶ added in v0.3.0
type WatchersClientBeginGetTroubleshootingResultOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetTroubleshootingResultOptions contains the optional parameters for the WatchersClient.BeginGetTroubleshootingResult method.
type WatchersClientBeginGetVMSecurityRulesOptions ¶ added in v0.3.0
type WatchersClientBeginGetVMSecurityRulesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginGetVMSecurityRulesOptions contains the optional parameters for the WatchersClient.BeginGetVMSecurityRules method.
type WatchersClientBeginListAvailableProvidersOptions ¶ added in v0.3.0
type WatchersClientBeginListAvailableProvidersOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginListAvailableProvidersOptions contains the optional parameters for the WatchersClient.BeginListAvailableProviders method.
type WatchersClientBeginSetFlowLogConfigurationOptions ¶ added in v0.3.0
type WatchersClientBeginSetFlowLogConfigurationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginSetFlowLogConfigurationOptions contains the optional parameters for the WatchersClient.BeginSetFlowLogConfiguration method.
type WatchersClientBeginVerifyIPFlowOptions ¶ added in v0.3.0
type WatchersClientBeginVerifyIPFlowOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WatchersClientBeginVerifyIPFlowOptions contains the optional parameters for the WatchersClient.BeginVerifyIPFlow method.
type WatchersClientCheckConnectivityResponse ¶ added in v0.3.0
type WatchersClientCheckConnectivityResponse struct {
ConnectivityInformation
}
WatchersClientCheckConnectivityResponse contains the response from method WatchersClient.CheckConnectivity.
type WatchersClientCreateOrUpdateOptions ¶ added in v0.3.0
type WatchersClientCreateOrUpdateOptions struct { }
WatchersClientCreateOrUpdateOptions contains the optional parameters for the WatchersClient.CreateOrUpdate method.
type WatchersClientCreateOrUpdateResponse ¶ added in v0.3.0
type WatchersClientCreateOrUpdateResponse struct {
Watcher
}
WatchersClientCreateOrUpdateResponse contains the response from method WatchersClient.CreateOrUpdate.
type WatchersClientDeleteResponse ¶ added in v0.3.0
type WatchersClientDeleteResponse struct { }
WatchersClientDeleteResponse contains the response from method WatchersClient.Delete.
type WatchersClientGetAzureReachabilityReportResponse ¶ added in v0.3.0
type WatchersClientGetAzureReachabilityReportResponse struct {
AzureReachabilityReport
}
WatchersClientGetAzureReachabilityReportResponse contains the response from method WatchersClient.GetAzureReachabilityReport.
type WatchersClientGetFlowLogStatusResponse ¶ added in v0.3.0
type WatchersClientGetFlowLogStatusResponse struct {
FlowLogInformation
}
WatchersClientGetFlowLogStatusResponse contains the response from method WatchersClient.GetFlowLogStatus.
type WatchersClientGetNetworkConfigurationDiagnosticResponse ¶ added in v0.3.0
type WatchersClientGetNetworkConfigurationDiagnosticResponse struct {
ConfigurationDiagnosticResponse
}
WatchersClientGetNetworkConfigurationDiagnosticResponse contains the response from method WatchersClient.GetNetworkConfigurationDiagnostic.
type WatchersClientGetNextHopResponse ¶ added in v0.3.0
type WatchersClientGetNextHopResponse struct {
NextHopResult
}
WatchersClientGetNextHopResponse contains the response from method WatchersClient.GetNextHop.
type WatchersClientGetOptions ¶ added in v0.3.0
type WatchersClientGetOptions struct { }
WatchersClientGetOptions contains the optional parameters for the WatchersClient.Get method.
type WatchersClientGetResponse ¶ added in v0.3.0
type WatchersClientGetResponse struct {
Watcher
}
WatchersClientGetResponse contains the response from method WatchersClient.Get.
type WatchersClientGetTopologyOptions ¶ added in v0.3.0
type WatchersClientGetTopologyOptions struct { }
WatchersClientGetTopologyOptions contains the optional parameters for the WatchersClient.GetTopology method.
type WatchersClientGetTopologyResponse ¶ added in v0.3.0
type WatchersClientGetTopologyResponse struct {
Topology
}
WatchersClientGetTopologyResponse contains the response from method WatchersClient.GetTopology.
type WatchersClientGetTroubleshootingResponse ¶ added in v0.3.0
type WatchersClientGetTroubleshootingResponse struct {
TroubleshootingResult
}
WatchersClientGetTroubleshootingResponse contains the response from method WatchersClient.GetTroubleshooting.
type WatchersClientGetTroubleshootingResultResponse ¶ added in v0.3.0
type WatchersClientGetTroubleshootingResultResponse struct {
TroubleshootingResult
}
WatchersClientGetTroubleshootingResultResponse contains the response from method WatchersClient.GetTroubleshootingResult.
type WatchersClientGetVMSecurityRulesResponse ¶ added in v0.3.0
type WatchersClientGetVMSecurityRulesResponse struct {
SecurityGroupViewResult
}
WatchersClientGetVMSecurityRulesResponse contains the response from method WatchersClient.GetVMSecurityRules.
type WatchersClientListAllOptions ¶ added in v0.3.0
type WatchersClientListAllOptions struct { }
WatchersClientListAllOptions contains the optional parameters for the WatchersClient.ListAll method.
type WatchersClientListAllResponse ¶ added in v0.3.0
type WatchersClientListAllResponse struct {
WatcherListResult
}
WatchersClientListAllResponse contains the response from method WatchersClient.ListAll.
type WatchersClientListAvailableProvidersResponse ¶ added in v0.3.0
type WatchersClientListAvailableProvidersResponse struct {
AvailableProvidersList
}
WatchersClientListAvailableProvidersResponse contains the response from method WatchersClient.ListAvailableProviders.
type WatchersClientListOptions ¶ added in v0.3.0
type WatchersClientListOptions struct { }
WatchersClientListOptions contains the optional parameters for the WatchersClient.List method.
type WatchersClientListResponse ¶ added in v0.3.0
type WatchersClientListResponse struct {
WatcherListResult
}
WatchersClientListResponse contains the response from method WatchersClient.List.
type WatchersClientSetFlowLogConfigurationResponse ¶ added in v0.3.0
type WatchersClientSetFlowLogConfigurationResponse struct {
FlowLogInformation
}
WatchersClientSetFlowLogConfigurationResponse contains the response from method WatchersClient.SetFlowLogConfiguration.
type WatchersClientUpdateTagsOptions ¶ added in v0.3.0
type WatchersClientUpdateTagsOptions struct { }
WatchersClientUpdateTagsOptions contains the optional parameters for the WatchersClient.UpdateTags method.
type WatchersClientUpdateTagsResponse ¶ added in v0.3.0
type WatchersClientUpdateTagsResponse struct {
Watcher
}
WatchersClientUpdateTagsResponse contains the response from method WatchersClient.UpdateTags.
type WatchersClientVerifyIPFlowResponse ¶ added in v0.3.0
type WatchersClientVerifyIPFlowResponse struct {
VerificationIPFlowResult
}
WatchersClientVerifyIPFlowResponse contains the response from method WatchersClient.VerifyIPFlow.
type WebApplicationFirewallAction ¶
type WebApplicationFirewallAction string
WebApplicationFirewallAction - Type of Actions.
const ( WebApplicationFirewallActionAllow WebApplicationFirewallAction = "Allow" WebApplicationFirewallActionBlock WebApplicationFirewallAction = "Block" WebApplicationFirewallActionLog WebApplicationFirewallAction = "Log" )
func PossibleWebApplicationFirewallActionValues ¶
func PossibleWebApplicationFirewallActionValues() []WebApplicationFirewallAction
PossibleWebApplicationFirewallActionValues returns the possible values for the WebApplicationFirewallAction const type.
type WebApplicationFirewallCustomRule ¶
type WebApplicationFirewallCustomRule struct { // REQUIRED; Type of Actions. Action *WebApplicationFirewallAction `json:"action,omitempty"` // REQUIRED; List of match conditions. MatchConditions []*MatchCondition `json:"matchConditions,omitempty"` // REQUIRED; Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. Priority *int32 `json:"priority,omitempty"` // REQUIRED; The rule type. RuleType *WebApplicationFirewallRuleType `json:"ruleType,omitempty"` // The name of the resource that is unique within a policy. This name can be used to access the resource. Name *string `json:"name,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` }
WebApplicationFirewallCustomRule - Defines contents of a web application rule.
func (WebApplicationFirewallCustomRule) MarshalJSON ¶
func (w WebApplicationFirewallCustomRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebApplicationFirewallCustomRule.
type WebApplicationFirewallEnabledState ¶
type WebApplicationFirewallEnabledState string
WebApplicationFirewallEnabledState - The state of the policy.
const ( WebApplicationFirewallEnabledStateDisabled WebApplicationFirewallEnabledState = "Disabled" WebApplicationFirewallEnabledStateEnabled WebApplicationFirewallEnabledState = "Enabled" )
func PossibleWebApplicationFirewallEnabledStateValues ¶
func PossibleWebApplicationFirewallEnabledStateValues() []WebApplicationFirewallEnabledState
PossibleWebApplicationFirewallEnabledStateValues returns the possible values for the WebApplicationFirewallEnabledState const type.
type WebApplicationFirewallMatchVariable ¶
type WebApplicationFirewallMatchVariable string
WebApplicationFirewallMatchVariable - Match Variable.
const ( WebApplicationFirewallMatchVariablePostArgs WebApplicationFirewallMatchVariable = "PostArgs" WebApplicationFirewallMatchVariableQueryString WebApplicationFirewallMatchVariable = "QueryString" WebApplicationFirewallMatchVariableRemoteAddr WebApplicationFirewallMatchVariable = "RemoteAddr" WebApplicationFirewallMatchVariableRequestBody WebApplicationFirewallMatchVariable = "RequestBody" WebApplicationFirewallMatchVariableRequestCookies WebApplicationFirewallMatchVariable = "RequestCookies" WebApplicationFirewallMatchVariableRequestHeaders WebApplicationFirewallMatchVariable = "RequestHeaders" WebApplicationFirewallMatchVariableRequestMethod WebApplicationFirewallMatchVariable = "RequestMethod" WebApplicationFirewallMatchVariableRequestURI WebApplicationFirewallMatchVariable = "RequestUri" )
func PossibleWebApplicationFirewallMatchVariableValues ¶
func PossibleWebApplicationFirewallMatchVariableValues() []WebApplicationFirewallMatchVariable
PossibleWebApplicationFirewallMatchVariableValues returns the possible values for the WebApplicationFirewallMatchVariable const type.
type WebApplicationFirewallMode ¶
type WebApplicationFirewallMode string
WebApplicationFirewallMode - The mode of the policy.
const ( WebApplicationFirewallModeDetection WebApplicationFirewallMode = "Detection" WebApplicationFirewallModePrevention WebApplicationFirewallMode = "Prevention" )
func PossibleWebApplicationFirewallModeValues ¶
func PossibleWebApplicationFirewallModeValues() []WebApplicationFirewallMode
PossibleWebApplicationFirewallModeValues returns the possible values for the WebApplicationFirewallMode const type.
type WebApplicationFirewallOperator ¶
type WebApplicationFirewallOperator string
WebApplicationFirewallOperator - The operator to be matched.
const ( WebApplicationFirewallOperatorBeginsWith WebApplicationFirewallOperator = "BeginsWith" WebApplicationFirewallOperatorContains WebApplicationFirewallOperator = "Contains" WebApplicationFirewallOperatorEndsWith WebApplicationFirewallOperator = "EndsWith" WebApplicationFirewallOperatorEqual WebApplicationFirewallOperator = "Equal" WebApplicationFirewallOperatorGeoMatch WebApplicationFirewallOperator = "GeoMatch" WebApplicationFirewallOperatorGreaterThan WebApplicationFirewallOperator = "GreaterThan" WebApplicationFirewallOperatorGreaterThanOrEqual WebApplicationFirewallOperator = "GreaterThanOrEqual" WebApplicationFirewallOperatorIPMatch WebApplicationFirewallOperator = "IPMatch" WebApplicationFirewallOperatorLessThan WebApplicationFirewallOperator = "LessThan" WebApplicationFirewallOperatorLessThanOrEqual WebApplicationFirewallOperator = "LessThanOrEqual" WebApplicationFirewallOperatorRegex WebApplicationFirewallOperator = "Regex" )
func PossibleWebApplicationFirewallOperatorValues ¶
func PossibleWebApplicationFirewallOperatorValues() []WebApplicationFirewallOperator
PossibleWebApplicationFirewallOperatorValues returns the possible values for the WebApplicationFirewallOperator const type.
type WebApplicationFirewallPoliciesClient ¶
type WebApplicationFirewallPoliciesClient struct {
// contains filtered or unexported fields
}
WebApplicationFirewallPoliciesClient contains the methods for the WebApplicationFirewallPolicies group. Don't use this type directly, use NewWebApplicationFirewallPoliciesClient() instead.
func NewWebApplicationFirewallPoliciesClient ¶
func NewWebApplicationFirewallPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebApplicationFirewallPoliciesClient, error)
NewWebApplicationFirewallPoliciesClient creates a new instance of WebApplicationFirewallPoliciesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*WebApplicationFirewallPoliciesClient) BeginDelete ¶
func (client *WebApplicationFirewallPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, policyName string, options *WebApplicationFirewallPoliciesClientBeginDeleteOptions) (*runtime.Poller[WebApplicationFirewallPoliciesClientDeleteResponse], error)
BeginDelete - Deletes Policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. policyName - The name of the policy. options - WebApplicationFirewallPoliciesClientBeginDeleteOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/WafPolicyDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebApplicationFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Policy1", 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 (*WebApplicationFirewallPoliciesClient) CreateOrUpdate ¶
func (client *WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy, options *WebApplicationFirewallPoliciesClientCreateOrUpdateOptions) (WebApplicationFirewallPoliciesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or update policy with specified rule set name within a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. policyName - The name of the policy. parameters - Policy to be created. options - WebApplicationFirewallPoliciesClientCreateOrUpdateOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/WafPolicyCreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebApplicationFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "rg1", "Policy1", armnetwork.WebApplicationFirewallPolicy{ Location: to.Ptr("WestUs"), Properties: &armnetwork.WebApplicationFirewallPolicyPropertiesFormat{ CustomRules: []*armnetwork.WebApplicationFirewallCustomRule{ { Name: to.Ptr("Rule1"), Action: to.Ptr(armnetwork.WebApplicationFirewallActionBlock), MatchConditions: []*armnetwork.MatchCondition{ { MatchValues: []*string{ to.Ptr("192.168.1.0/24"), to.Ptr("10.0.0.0/24")}, MatchVariables: []*armnetwork.MatchVariable{ { VariableName: to.Ptr(armnetwork.WebApplicationFirewallMatchVariableRemoteAddr), }}, Operator: to.Ptr(armnetwork.WebApplicationFirewallOperatorIPMatch), }}, Priority: to.Ptr[int32](1), RuleType: to.Ptr(armnetwork.WebApplicationFirewallRuleTypeMatchRule), }, { Name: to.Ptr("Rule2"), Action: to.Ptr(armnetwork.WebApplicationFirewallActionBlock), MatchConditions: []*armnetwork.MatchCondition{ { MatchValues: []*string{ to.Ptr("192.168.1.0/24")}, MatchVariables: []*armnetwork.MatchVariable{ { VariableName: to.Ptr(armnetwork.WebApplicationFirewallMatchVariableRemoteAddr), }}, Operator: to.Ptr(armnetwork.WebApplicationFirewallOperatorIPMatch), }, { MatchValues: []*string{ to.Ptr("Windows")}, MatchVariables: []*armnetwork.MatchVariable{ { Selector: to.Ptr("UserAgent"), VariableName: to.Ptr(armnetwork.WebApplicationFirewallMatchVariableRequestHeaders), }}, Operator: to.Ptr(armnetwork.WebApplicationFirewallOperatorContains), }}, Priority: to.Ptr[int32](2), RuleType: to.Ptr(armnetwork.WebApplicationFirewallRuleTypeMatchRule), }}, ManagedRules: &armnetwork.ManagedRulesDefinition{ Exclusions: []*armnetwork.OwaspCrsExclusionEntry{ { ExclusionManagedRuleSets: []*armnetwork.ExclusionManagedRuleSet{ { RuleGroups: []*armnetwork.ExclusionManagedRuleGroup{ { RuleGroupName: to.Ptr("REQUEST-930-APPLICATION-ATTACK-LFI"), Rules: []*armnetwork.ExclusionManagedRule{ { RuleID: to.Ptr("930120"), }}, }, { RuleGroupName: to.Ptr("REQUEST-932-APPLICATION-ATTACK-RCE"), }}, RuleSetType: to.Ptr("OWASP"), RuleSetVersion: to.Ptr("3.2"), }}, MatchVariable: to.Ptr(armnetwork.OwaspCrsExclusionEntryMatchVariableRequestArgNames), Selector: to.Ptr("hello"), SelectorMatchOperator: to.Ptr(armnetwork.OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith), }, { ExclusionManagedRuleSets: []*armnetwork.ExclusionManagedRuleSet{ { RuleGroups: []*armnetwork.ExclusionManagedRuleGroup{}, RuleSetType: to.Ptr("OWASP"), RuleSetVersion: to.Ptr("3.1"), }}, MatchVariable: to.Ptr(armnetwork.OwaspCrsExclusionEntryMatchVariableRequestArgNames), Selector: to.Ptr("hello"), SelectorMatchOperator: to.Ptr(armnetwork.OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith), }, { MatchVariable: to.Ptr(armnetwork.OwaspCrsExclusionEntryMatchVariableRequestArgNames), Selector: to.Ptr("test"), SelectorMatchOperator: to.Ptr(armnetwork.OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith), }, { MatchVariable: to.Ptr(armnetwork.OwaspCrsExclusionEntryMatchVariableRequestArgValues), Selector: to.Ptr("test"), SelectorMatchOperator: to.Ptr(armnetwork.OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith), }}, ManagedRuleSets: []*armnetwork.ManagedRuleSet{ { RuleSetType: to.Ptr("OWASP"), RuleSetVersion: to.Ptr("3.2"), }}, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WebApplicationFirewallPoliciesClient) Get ¶
func (client *WebApplicationFirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string, options *WebApplicationFirewallPoliciesClientGetOptions) (WebApplicationFirewallPoliciesClientGetResponse, error)
Get - Retrieve protection policy with specified name within a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. policyName - The name of the policy. options - WebApplicationFirewallPoliciesClientGetOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/WafPolicyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebApplicationFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Policy1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WebApplicationFirewallPoliciesClient) NewListAllPager ¶ added in v0.5.0
func (client *WebApplicationFirewallPoliciesClient) NewListAllPager(options *WebApplicationFirewallPoliciesClientListAllOptions) *runtime.Pager[WebApplicationFirewallPoliciesClientListAllResponse]
NewListAllPager - Gets all the WAF policies in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - WebApplicationFirewallPoliciesClientListAllOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/WafListAllPolicies.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebApplicationFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*WebApplicationFirewallPoliciesClient) NewListPager ¶ added in v0.5.0
func (client *WebApplicationFirewallPoliciesClient) NewListPager(resourceGroupName string, options *WebApplicationFirewallPoliciesClientListOptions) *runtime.Pager[WebApplicationFirewallPoliciesClientListResponse]
NewListPager - Lists all of the protection policies within a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 resourceGroupName - The name of the resource group. options - WebApplicationFirewallPoliciesClientListOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/WafListPolicies.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebApplicationFirewallPoliciesClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type WebApplicationFirewallPoliciesClientBeginDeleteOptions ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WebApplicationFirewallPoliciesClientBeginDeleteOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.BeginDelete method.
type WebApplicationFirewallPoliciesClientCreateOrUpdateOptions ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientCreateOrUpdateOptions struct { }
WebApplicationFirewallPoliciesClientCreateOrUpdateOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.CreateOrUpdate method.
type WebApplicationFirewallPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientCreateOrUpdateResponse struct {
WebApplicationFirewallPolicy
}
WebApplicationFirewallPoliciesClientCreateOrUpdateResponse contains the response from method WebApplicationFirewallPoliciesClient.CreateOrUpdate.
type WebApplicationFirewallPoliciesClientDeleteResponse ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientDeleteResponse struct { }
WebApplicationFirewallPoliciesClientDeleteResponse contains the response from method WebApplicationFirewallPoliciesClient.Delete.
type WebApplicationFirewallPoliciesClientGetOptions ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientGetOptions struct { }
WebApplicationFirewallPoliciesClientGetOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.Get method.
type WebApplicationFirewallPoliciesClientGetResponse ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientGetResponse struct {
WebApplicationFirewallPolicy
}
WebApplicationFirewallPoliciesClientGetResponse contains the response from method WebApplicationFirewallPoliciesClient.Get.
type WebApplicationFirewallPoliciesClientListAllOptions ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientListAllOptions struct { }
WebApplicationFirewallPoliciesClientListAllOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.ListAll method.
type WebApplicationFirewallPoliciesClientListAllResponse ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientListAllResponse struct {
WebApplicationFirewallPolicyListResult
}
WebApplicationFirewallPoliciesClientListAllResponse contains the response from method WebApplicationFirewallPoliciesClient.ListAll.
type WebApplicationFirewallPoliciesClientListOptions ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientListOptions struct { }
WebApplicationFirewallPoliciesClientListOptions contains the optional parameters for the WebApplicationFirewallPoliciesClient.List method.
type WebApplicationFirewallPoliciesClientListResponse ¶ added in v0.3.0
type WebApplicationFirewallPoliciesClientListResponse struct {
WebApplicationFirewallPolicyListResult
}
WebApplicationFirewallPoliciesClientListResponse contains the response from method WebApplicationFirewallPoliciesClient.List.
type WebApplicationFirewallPolicy ¶
type WebApplicationFirewallPolicy struct { // Resource ID. ID *string `json:"id,omitempty"` // Resource location. Location *string `json:"location,omitempty"` // Properties of the web application firewall policy. Properties *WebApplicationFirewallPolicyPropertiesFormat `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
WebApplicationFirewallPolicy - Defines web application firewall policy.
func (WebApplicationFirewallPolicy) MarshalJSON ¶
func (w WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebApplicationFirewallPolicy.
type WebApplicationFirewallPolicyListResult ¶
type WebApplicationFirewallPolicyListResult struct { // READ-ONLY; URL to get the next set of WebApplicationFirewallPolicy objects if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of WebApplicationFirewallPolicies within a resource group. Value []*WebApplicationFirewallPolicy `json:"value,omitempty" azure:"ro"` }
WebApplicationFirewallPolicyListResult - Result of the request to list WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results.
type WebApplicationFirewallPolicyPropertiesFormat ¶
type WebApplicationFirewallPolicyPropertiesFormat struct { // REQUIRED; Describes the managedRules structure. ManagedRules *ManagedRulesDefinition `json:"managedRules,omitempty"` // The custom rules inside the policy. CustomRules []*WebApplicationFirewallCustomRule `json:"customRules,omitempty"` // The PolicySettings for policy. PolicySettings *PolicySettings `json:"policySettings,omitempty"` // READ-ONLY; A collection of references to application gateways. ApplicationGateways []*ApplicationGateway `json:"applicationGateways,omitempty" azure:"ro"` // READ-ONLY; A collection of references to application gateway http listeners. HTTPListeners []*SubResource `json:"httpListeners,omitempty" azure:"ro"` // READ-ONLY; A collection of references to application gateway path rules. PathBasedRules []*SubResource `json:"pathBasedRules,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the web application firewall policy resource. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Resource status of the policy. ResourceState *WebApplicationFirewallPolicyResourceState `json:"resourceState,omitempty" azure:"ro"` }
WebApplicationFirewallPolicyPropertiesFormat - Defines web application firewall policy properties.
func (WebApplicationFirewallPolicyPropertiesFormat) MarshalJSON ¶
func (w WebApplicationFirewallPolicyPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebApplicationFirewallPolicyPropertiesFormat.
type WebApplicationFirewallPolicyResourceState ¶
type WebApplicationFirewallPolicyResourceState string
WebApplicationFirewallPolicyResourceState - Resource status of the policy.
const ( WebApplicationFirewallPolicyResourceStateCreating WebApplicationFirewallPolicyResourceState = "Creating" WebApplicationFirewallPolicyResourceStateDeleting WebApplicationFirewallPolicyResourceState = "Deleting" WebApplicationFirewallPolicyResourceStateDisabled WebApplicationFirewallPolicyResourceState = "Disabled" WebApplicationFirewallPolicyResourceStateDisabling WebApplicationFirewallPolicyResourceState = "Disabling" WebApplicationFirewallPolicyResourceStateEnabled WebApplicationFirewallPolicyResourceState = "Enabled" WebApplicationFirewallPolicyResourceStateEnabling WebApplicationFirewallPolicyResourceState = "Enabling" )
func PossibleWebApplicationFirewallPolicyResourceStateValues ¶
func PossibleWebApplicationFirewallPolicyResourceStateValues() []WebApplicationFirewallPolicyResourceState
PossibleWebApplicationFirewallPolicyResourceStateValues returns the possible values for the WebApplicationFirewallPolicyResourceState const type.
type WebApplicationFirewallRuleType ¶
type WebApplicationFirewallRuleType string
WebApplicationFirewallRuleType - The rule type.
const ( WebApplicationFirewallRuleTypeInvalid WebApplicationFirewallRuleType = "Invalid" WebApplicationFirewallRuleTypeMatchRule WebApplicationFirewallRuleType = "MatchRule" )
func PossibleWebApplicationFirewallRuleTypeValues ¶
func PossibleWebApplicationFirewallRuleTypeValues() []WebApplicationFirewallRuleType
PossibleWebApplicationFirewallRuleTypeValues returns the possible values for the WebApplicationFirewallRuleType const type.
type WebApplicationFirewallTransform ¶
type WebApplicationFirewallTransform string
WebApplicationFirewallTransform - Transforms applied before matching.
const ( WebApplicationFirewallTransformHTMLEntityDecode WebApplicationFirewallTransform = "HtmlEntityDecode" WebApplicationFirewallTransformLowercase WebApplicationFirewallTransform = "Lowercase" WebApplicationFirewallTransformRemoveNulls WebApplicationFirewallTransform = "RemoveNulls" WebApplicationFirewallTransformTrim WebApplicationFirewallTransform = "Trim" WebApplicationFirewallTransformURLDecode WebApplicationFirewallTransform = "UrlDecode" WebApplicationFirewallTransformURLEncode WebApplicationFirewallTransform = "UrlEncode" )
func PossibleWebApplicationFirewallTransformValues ¶
func PossibleWebApplicationFirewallTransformValues() []WebApplicationFirewallTransform
PossibleWebApplicationFirewallTransformValues returns the possible values for the WebApplicationFirewallTransform const type.
type WebCategoriesClient ¶
type WebCategoriesClient struct {
// contains filtered or unexported fields
}
WebCategoriesClient contains the methods for the WebCategories group. Don't use this type directly, use NewWebCategoriesClient() instead.
func NewWebCategoriesClient ¶
func NewWebCategoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebCategoriesClient, error)
NewWebCategoriesClient creates a new instance of WebCategoriesClient with the specified values. subscriptionID - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*WebCategoriesClient) Get ¶
func (client *WebCategoriesClient) Get(ctx context.Context, name string, options *WebCategoriesClientGetOptions) (WebCategoriesClientGetResponse, error)
Get - Gets the specified Azure Web Category. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 name - The name of the azureWebCategory. options - WebCategoriesClientGetOptions contains the optional parameters for the WebCategoriesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureWebCategoryGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebCategoriesClient("4de8428a-4a92-4cea-90ff-b47128b8cab8", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "Arts", &armnetwork.WebCategoriesClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*WebCategoriesClient) NewListBySubscriptionPager ¶ added in v0.5.0
func (client *WebCategoriesClient) NewListBySubscriptionPager(options *WebCategoriesClientListBySubscriptionOptions) *runtime.Pager[WebCategoriesClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets all the Azure Web Categories in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-08-01 options - WebCategoriesClientListBySubscriptionOptions contains the optional parameters for the WebCategoriesClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/examples/AzureWebCategoriesListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetwork.NewWebCategoriesClient("4de8428a-4a92-4cea-90ff-b47128b8cab8", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type WebCategoriesClientGetOptions ¶ added in v0.3.0
type WebCategoriesClientGetOptions struct { // Expands resourceIds back referenced by the azureWebCategory resource. Expand *string }
WebCategoriesClientGetOptions contains the optional parameters for the WebCategoriesClient.Get method.
type WebCategoriesClientGetResponse ¶ added in v0.3.0
type WebCategoriesClientGetResponse struct {
AzureWebCategory
}
WebCategoriesClientGetResponse contains the response from method WebCategoriesClient.Get.
type WebCategoriesClientListBySubscriptionOptions ¶ added in v0.3.0
type WebCategoriesClientListBySubscriptionOptions struct { }
WebCategoriesClientListBySubscriptionOptions contains the optional parameters for the WebCategoriesClient.ListBySubscription method.
type WebCategoriesClientListBySubscriptionResponse ¶ added in v0.3.0
type WebCategoriesClientListBySubscriptionResponse struct {
AzureWebCategoryListResult
}
WebCategoriesClientListBySubscriptionResponse contains the response from method WebCategoriesClient.ListBySubscription.
Source Files ¶
- build.go
- zz_generated_applicationgatewayprivateendpointconnections_client.go
- zz_generated_applicationgatewayprivatelinkresources_client.go
- zz_generated_applicationgateways_client.go
- zz_generated_applicationsecuritygroups_client.go
- zz_generated_availabledelegations_client.go
- zz_generated_availableendpointservices_client.go
- zz_generated_availableprivateendpointtypes_client.go
- zz_generated_availableresourcegroupdelegations_client.go
- zz_generated_availableservicealiases_client.go
- zz_generated_azurefirewallfqdntags_client.go
- zz_generated_azurefirewalls_client.go
- zz_generated_bastionhosts_client.go
- zz_generated_bgpservicecommunities_client.go
- zz_generated_configurationpolicygroups_client.go
- zz_generated_connectionmonitors_client.go
- zz_generated_constants.go
- zz_generated_customipprefixes_client.go
- zz_generated_ddoscustompolicies_client.go
- zz_generated_ddosprotectionplans_client.go
- zz_generated_defaultsecurityrules_client.go
- zz_generated_dscpconfiguration_client.go
- zz_generated_expressroutecircuitauthorizations_client.go
- zz_generated_expressroutecircuitconnections_client.go
- zz_generated_expressroutecircuitpeerings_client.go
- zz_generated_expressroutecircuits_client.go
- zz_generated_expressrouteconnections_client.go
- zz_generated_expressroutecrossconnectionpeerings_client.go
- zz_generated_expressroutecrossconnections_client.go
- zz_generated_expressroutegateways_client.go
- zz_generated_expressroutelinks_client.go
- zz_generated_expressrouteportauthorizations_client.go
- zz_generated_expressrouteports_client.go
- zz_generated_expressrouteportslocations_client.go
- zz_generated_expressrouteserviceproviders_client.go
- zz_generated_firewallpolicies_client.go
- zz_generated_firewallpolicyidpssignatures_client.go
- zz_generated_firewallpolicyidpssignaturesfiltervalues_client.go
- zz_generated_firewallpolicyidpssignaturesoverrides_client.go
- zz_generated_firewallpolicyrulecollectiongroups_client.go
- zz_generated_flowlogs_client.go
- zz_generated_hubroutetables_client.go
- zz_generated_hubvirtualnetworkconnections_client.go
- zz_generated_inboundnatrules_client.go
- zz_generated_inboundsecurityrule_client.go
- zz_generated_interfaceipconfigurations_client.go
- zz_generated_interfaceloadbalancers_client.go
- zz_generated_interfaces_client.go
- zz_generated_interfacetapconfigurations_client.go
- zz_generated_ipallocations_client.go
- zz_generated_ipgroups_client.go
- zz_generated_loadbalancerbackendaddresspools_client.go
- zz_generated_loadbalancerfrontendipconfigurations_client.go
- zz_generated_loadbalancerloadbalancingrules_client.go
- zz_generated_loadbalancernetworkinterfaces_client.go
- zz_generated_loadbalanceroutboundrules_client.go
- zz_generated_loadbalancerprobes_client.go
- zz_generated_loadbalancers_client.go
- zz_generated_localnetworkgateways_client.go
- zz_generated_management_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_natgateways_client.go
- zz_generated_natrules_client.go
- zz_generated_operations_client.go
- zz_generated_p2svpngateways_client.go
- zz_generated_packetcaptures_client.go
- zz_generated_peerexpressroutecircuitconnections_client.go
- zz_generated_polymorphic_helpers.go
- zz_generated_privatednszonegroups_client.go
- zz_generated_privateendpoints_client.go
- zz_generated_privatelinkservices_client.go
- zz_generated_profiles_client.go
- zz_generated_publicipaddresses_client.go
- zz_generated_publicipprefixes_client.go
- zz_generated_resourcenavigationlinks_client.go
- zz_generated_response_types.go
- zz_generated_routefilterrules_client.go
- zz_generated_routefilters_client.go
- zz_generated_routes_client.go
- zz_generated_routetables_client.go
- zz_generated_routingintent_client.go
- zz_generated_securitygroups_client.go
- zz_generated_securitypartnerproviders_client.go
- zz_generated_securityrules_client.go
- zz_generated_serviceassociationlinks_client.go
- zz_generated_serviceendpointpolicies_client.go
- zz_generated_serviceendpointpolicydefinitions_client.go
- zz_generated_servicetaginformation_client.go
- zz_generated_servicetags_client.go
- zz_generated_subnets_client.go
- zz_generated_time_rfc3339.go
- zz_generated_usages_client.go
- zz_generated_virtualappliances_client.go
- zz_generated_virtualappliancesites_client.go
- zz_generated_virtualapplianceskus_client.go
- zz_generated_virtualhubbgpconnection_client.go
- zz_generated_virtualhubbgpconnections_client.go
- zz_generated_virtualhubipconfiguration_client.go
- zz_generated_virtualhubroutetablev2s_client.go
- zz_generated_virtualhubs_client.go
- zz_generated_virtualnetworkgatewayconnections_client.go
- zz_generated_virtualnetworkgatewaynatrules_client.go
- zz_generated_virtualnetworkgateways_client.go
- zz_generated_virtualnetworkpeerings_client.go
- zz_generated_virtualnetworks_client.go
- zz_generated_virtualnetworktaps_client.go
- zz_generated_virtualrouterpeerings_client.go
- zz_generated_virtualrouters_client.go
- zz_generated_virtualwans_client.go
- zz_generated_vpnconnections_client.go
- zz_generated_vpngateways_client.go
- zz_generated_vpnlinkconnections_client.go
- zz_generated_vpnserverconfigurations_client.go
- zz_generated_vpnserverconfigurationsassociatedwithvirtualwan_client.go
- zz_generated_vpnsitelinkconnections_client.go
- zz_generated_vpnsitelinks_client.go
- zz_generated_vpnsites_client.go
- zz_generated_vpnsitesconfiguration_client.go
- zz_generated_watchers_client.go
- zz_generated_webapplicationfirewallpolicies_client.go
- zz_generated_webcategories_client.go