Using azure-sdk-for-go with azure.com

Go integration

✓ Official SDK
Install
go get github.com/Azure/azure-sdk-for-go
Quick start
import "azure-sdk-for-go"

// Initialize client
client := azure-sdk-for-go.NewClient("YOUR_ACCESS_TOKEN")
Gets a role assignment by ID.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /{roleAssignmentId}
Gets role assignments for a scope.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /{scope}/providers/Microsoft.Authorization/roleAssignments
Get the specified role assignment.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-go
Go
API
azure.com
azure.com:authorization-authorization-RACalls
At a glance
Language Go
Endpoints10
✓ Official