sdm admin services assign

Last modified on August 10, 2022

NAME:
   sdm admin services assign - attach a set of service accounts to a role

USAGE:
   sdm admin services assign [command options] <role-name> <service-name-1> [service-name-2 service-name-n...]

OPTIONS:
   --template, -t          display a JSON template
   --file value, -f value  load role assignments from JSON file
   --stdin, -i             load from stdin
   --filter value          filter e.g. 'field:name tag:key=value ...'
   --filter-json value     path to JSON based filter

Additional Information

The --template command produces example --file or --stdin input:

[
	{
		"roleID": "",
		"roleName": "",
		"serviceAccounts": [
			{
				"id": "a-0000000000000000",
				"name": ""
			}
		]
	}
]

Example --filter-json file:

[
    {
        "lastName":"S1"
    }
]

For more information on the use of filters in the CLI, see the Filters documentation.

Top