Registry / cloud / azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization

azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization

JSON →
library0.5.0gogounverified

Azure SDK for Go client library for managing authorization resources (role assignments, definitions, etc.).

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization
INSTALL
IMPORT
SIG · AZURE-AZURE-SDK-FO
A
azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization
cloudgov0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

armauthorization
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization

Lists Azure role definitions using the authorization client.

package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatal(err) } client, err := armauthorization.NewRoleDefinitionsClient(cred, nil) if err != nil { log.Fatal(err) } _, err = client.List(context.Background(), "/subscriptions/...", nil) if err != nil { log.Fatal(err) } }
Debug
Known issues
breakingBreaking changes between versions
fix
Check the changelog for migration guides when upgrading major versions.
affects: >=0.1.0 <1.0.0
Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources
azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization — go get azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization · libregistry