osc network rbac-policy create
Create RBAC policy for given tenant.
Normal response codes: 201
Error response codes: 400, 401
Usage: osc network rbac-policy create [OPTIONS]
Options:
--action <ACTION>
— Action for the RBAC policy which isaccess_as_external
oraccess_as_shared
--object-id <OBJECT_ID>
— The ID of theobject_type
resource. Anobject_type
ofnetwork
returns a network ID, anobject_type
ofqos-policy
returns a QoS policy ID, anobject_type
ofsecurity-group
returns a security group ID, anobject_type
ofaddress-scope
returns a address scope ID, anobject_type
ofsubnetpool
returns a subnetpool ID and anobject_type
ofaddress-group
returns an address group ID--object-type <OBJECT_TYPE>
— The type of the object that the RBAC policy affects. Types includeqos-policy
,network
,security-group
,address-scope
,subnetpool
oraddress-group
--target-tenant <TARGET_TENANT>
— The ID of the tenant to which the RBAC policy will be enforced. Please note that Neutron does not perform any type of validation that the value provided is actually the ID of the existing project. If, for example, the name of the project is provided here, it will be accepted by the Neutron API, but the RBAC rule created will not work as expected--tenant-id <TENANT_ID>