Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(endpoint Api) (*string, error)
- func Scope(endpoint Api) (*string, error)
- type Api
- func ApiManagementAPI(domainSuffix string) Api
- func AttestationAPI(endpoint string) Api
- func CDNFrontDoorAPI(domainSuffix string) Api
- func ContainerRegistryAPI(domainSuffix string) Api
- func CosmosDBAPI(domainSuffix string) Api
- func DataLakeAPI(domainSuffix string) Api
- func IoTCentral(domainSuffix string) Api
- func ManagedHSMAPI(endpoint, domainSuffix string) Api
- func ServiceBusAPI(endpoint, domainSuffix string) Api
- func StorageSyncAPI(domainSuffix string) Api
- func TrafficManagerAPI(domainSuffix string) Api
- type ApiEndpoint
- func BatchAPI(endpoint string) *ApiEndpoint
- func KeyVaultAPI(domainSuffix string) *ApiEndpoint
- func MariaDBAPI(domainSuffix string) *ApiEndpoint
- func MicrosoftGraphAPI(endpoint string) *ApiEndpoint
- func MySqlAPI(domainSuffix string) *ApiEndpoint
- func NewApiEndpoint(name, endpoint string, appId *string) *ApiEndpoint
- func OperationalInsightsAPI() *ApiEndpoint
- func PostgresqlAPI(domainSuffix string) *ApiEndpoint
- func ResourceManagerAPI(endpoint string) *ApiEndpoint
- func SqlAPI(domainSuffix string) *ApiEndpoint
- func StorageAPI(domainSuffix string) *ApiEndpoint
- func SynapseAPI(domainSuffix string) *ApiEndpoint
- type Authorization
- type Environment
- func AzureChina() *Environment
- func AzurePublic() *Environment
- func AzurePublicCanary() *Environment
- func AzureUSGovernment() *Environment
- func AzureUSGovernmentL5() *Environment
- func FromEndpoint(ctx context.Context, endpoint, name string) (*Environment, error)
- func FromName(name string) (*Environment, error)
Constants ¶
View Source
const AzureChinaCloud = "China"
View Source
const AzurePublicCloud = "Public"
View Source
const AzureUSGovernmentCloud = "USGovernment"
Variables ¶
View Source
var PublishedApis = map[string]string{}/* 118 elements not displayed */
PublishedApis is a map containing Application IDs for well known APIs published by Microsoft. They can be used to acquire access tokens, but are primarily described here for easy inclusion in application manifests and service principal assignments.
Functions ¶
Types ¶
type Api ¶
type Api interface { AppId() (*string, bool) Available() bool DomainSuffix() (*string, bool) Endpoint() (*string, bool) Name() string ResourceIdentifier() (*string, bool) }
func ApiManagementAPI ¶
func AttestationAPI ¶ added in v0.20230315.1105537
func CDNFrontDoorAPI ¶
func ContainerRegistryAPI ¶
func CosmosDBAPI ¶
func DataLakeAPI ¶
func IoTCentral ¶ added in v0.20230815.1145621
func ManagedHSMAPI ¶
func ServiceBusAPI ¶
func StorageSyncAPI ¶
func TrafficManagerAPI ¶
type ApiEndpoint ¶
type ApiEndpoint struct {
// contains filtered or unexported fields
}
func BatchAPI ¶
func BatchAPI(endpoint string) *ApiEndpoint
func KeyVaultAPI ¶
func KeyVaultAPI(domainSuffix string) *ApiEndpoint
func MariaDBAPI ¶
func MariaDBAPI(domainSuffix string) *ApiEndpoint
func MicrosoftGraphAPI ¶
func MicrosoftGraphAPI(endpoint string) *ApiEndpoint
func MySqlAPI ¶
func MySqlAPI(domainSuffix string) *ApiEndpoint
func NewApiEndpoint ¶
func NewApiEndpoint(name, endpoint string, appId *string) *ApiEndpoint
func OperationalInsightsAPI ¶
func OperationalInsightsAPI() *ApiEndpoint
func PostgresqlAPI ¶
func PostgresqlAPI(domainSuffix string) *ApiEndpoint
func ResourceManagerAPI ¶
func ResourceManagerAPI(endpoint string) *ApiEndpoint
func SqlAPI ¶
func SqlAPI(domainSuffix string) *ApiEndpoint
func StorageAPI ¶
func StorageAPI(domainSuffix string) *ApiEndpoint
func SynapseAPI ¶
func SynapseAPI(domainSuffix string) *ApiEndpoint
func (*ApiEndpoint) AppId ¶ added in v0.20230214.1110923
func (e *ApiEndpoint) AppId() (*string, bool)
func (*ApiEndpoint) Available ¶ added in v0.20230725.1160316
func (e *ApiEndpoint) Available() bool
func (*ApiEndpoint) DomainSuffix ¶
func (e *ApiEndpoint) DomainSuffix() (*string, bool)
func (*ApiEndpoint) Endpoint ¶
func (e *ApiEndpoint) Endpoint() (*string, bool)
func (*ApiEndpoint) Name ¶
func (e *ApiEndpoint) Name() string
func (*ApiEndpoint) ResourceIdentifier ¶
func (e *ApiEndpoint) ResourceIdentifier() (*string, bool)
type Authorization ¶
type Environment ¶
type Environment struct { Name string Authorization *Authorization MicrosoftGraph Api ResourceManager Api AnalysisServices Api ApiManagement Api AppConfiguration Api AppService Api ApplicationInsights Api Attestation Api AzureADIdentityGovernanceInsights Api AzureADIntegratedApp Api AzureADNotification Api AzureDevOps Api AzureServiceManagement Api AzureVPN Api Batch Api Bing Api BotFrameworkDevPortal Api BranchConnectWebService Api CDNFrontDoor Api Cognitive Api ComputeRecommendations Api Connections Api ContainerRegistry Api CortanaAtWork Api CortanaAtWorkBing Api CortanaRuntime Api CosmosDB Api CustomerInsights Api DataBricks Api DataCatalog Api DataLake Api DataMigrations Api DigitalTwins Api DomainController Api Dynamic365BusinessCentral Api Dynamics365DataExportService Api DynamicsCRM Api DynamicsERP Api EventHubs Api Flow Api GraphConnector Api HDInsight Api HealthCare Api IamSupportability Api ImportExport Api InTune Api InformationProtectionSyncService Api IoTCentral Api IoTHubDeviceProvisioning Api KeyVault Api KubernetesServiceAADServer Api Kusto Api KustoMFA Api LogAnalytics Api ManagedHSM Api Maps Api MariaDB Api MediaServices Api Microsoft365DataAtRestEncryption Api MicrosoftAzureCli Api MicrosoftInvoicing Api MicrosoftOffice Api MicrosoftStorageSync Api MicrosoftTeams Api MicrosoftTeamsWebClient Api MileIqAdminCenter Api MileIqDashboard Api MileIqRestService Api MixedReality Api MySql Api OSSRDBMSPostgreSQLFlexibleServerAadAuthentication Api OSSRDMBS Api Office365Connectors Api Office365Demeter Api Office365DwEngineV2 Api Office365ExchangeOnline Api Office365ExchangeOnlineProtection Api Office365InformationProtection Api Office365Management Api Office365Portal Api Office365SuiteUx Api Office365Zoom Api OfficeHome Api OfficeUwpPwa Api OneNote Api OneProfile Api OperationalInsights Api PeopleCards Api PolicyAdministration Api Portal Api Postgresql Api PowerAppsRuntime Api PowerAppsRuntimeService Api PowerBiService Api Purview Api RightsManagement Api SecurityInsights Api ServiceBus Api ServiceDeploy Api ServiceTrust Api Signup Api SkypeForBusinessOnline Api SpeechRecognition Api Sql Api StackHCI Api Storage Api StorageSync Api StreamAnalytics Api Synapse Api SynapseGateway Api SynapseStudio Api TargetedMessaging Api Teams Api ThreatProtection Api TimeSeriesInsights Api TrafficManager Api UniversalPrint Api WindowsDefenderATP Api WindowsVirtualDesktop Api Yammer Api }
func AzureChina ¶
func AzureChina() *Environment
func AzurePublic ¶
func AzurePublic() *Environment
func AzurePublicCanary ¶
func AzurePublicCanary() *Environment
func AzureUSGovernment ¶
func AzureUSGovernment() *Environment
func AzureUSGovernmentL5 ¶
func AzureUSGovernmentL5() *Environment
func FromEndpoint ¶
func FromEndpoint(ctx context.Context, endpoint, name string) (*Environment, error)
FromEndpoint attempts to load an environment from the given Endpoint.
func FromName ¶
func FromName(name string) (*Environment, error)
func (*Environment) IsAzureStack ¶ added in v0.20230309.1072929
func (e *Environment) IsAzureStack() bool
IsAzureStack returns whether the current Environment is an Azure Stack Environment this can be contextually useful since the Azure Stack implementation differs slightly from the other Azure Environments, particularly around Authentication.
func (*Environment) RefreshMetaDataFromEndpoint ¶
func (e *Environment) RefreshMetaDataFromEndpoint(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.