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

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

JSON →
library2.2.0gogounverified

Azure SDK module for managing Azure RBAC authorization resources, including role definitions and assignments.

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2
INSTALL
IMPORT
SIG · AZURE-AZURE-SDK-FO
A
azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization-v2
cloudgov2.2.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/v2

Lists Azure role definitions using the authorization management client.

package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" "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("subscriptionID", cred, nil) if err != nil { log.Fatal(err) } resp, err := client.List(context.Background(), "scope", nil) if err != nil { log.Fatal(err) } for _, def := range resp.Value { log.Printf("Role: %s", *def.ID) } }
Debug
Known issues
breakingVersion 2.x has breaking changes from v1; ensure you use the correct import path with /v2 suffix.
fix
Update import path to include /v2 and adjust API calls per migration guide.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization-v2 — go get azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization-v2 · libregistry