authorization_policy

command
v0.0.0-...-37a14a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

Authorization Policy

This example creates an authorization to allow a service instance access to another service instance.

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

Example:

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

Create authorization policy with service instance ID

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>

Create authorization policy with resource group ID

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>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL