github.com/IBM-Cloud/bluemix-go@v0.0.0-20240314082800-4e02a69b84b2/examples/iam_pap/iampapv1/authorization_policy/README.md (about) 1 # Authorization Policy 2 3 This example creates an authorization to allow a service instance access to another service instance. 4 5 Details of the API function implemented can be found in the IBM CLoud API docs: https://cloud.ibm.com/apidocs/iam-policy-management#create-a-policy 6 7 Example: 8 9 ``` 10 go run main.go -org new@in.ibm.com -source_service_name "cloud-object-storage" -target_service_name kms -roles Reader -source_service_instance_id 123123 -target_service_instance_id 456456 11 ``` 12 13 # Create authorization policy with service instance ID 14 15 ``` 16 go run main.go -org new@in.ibm.com -source_service_name <source_service_name> -target_service_name <target_service_name> -roles Reader -source_service_instance_id <source_service_instance_id> -target_service_instance_id <target_service_instance_id> 17 ``` 18 19 # Create authorization policy with resource group ID 20 21 ``` 22 go run main.go -org new@in.ibm.com -source_service_name <source_service_name> -target_service_name <target_service_name> -roles Reader -source_resource_group_id <source_resource_group_id> -target_resource_group_id <target_resource_group_id> 23 ```