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" \
  /{roleId}
Gets provider operations metadata for all resource providers.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /providers/Microsoft.Authorization/providerOperations
Gets role assignments for a scope.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /{scope}/providers/Microsoft.Authorization/roleAssignments
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-go
Go
API
azure.com
azure.com:authorization-authorization-RoleBasedCalls
At a glance
Language Go
Endpoints18
✓ Official