Copy an access policy
PUT/api/v1/AccessControlPolicy/Copy
Creates a new access policy from an existing one and returns it. The new policy takes its settings from the body you send, and keeps the accounts, account groups, user and group collections and credentials of the source policy; a resource-based copy also keeps the resources, resource groups and activities.
Permission required: Administrator.
Values for policyType: 0 = Resource, 1 = Credential.
Request
Responses
- 200
- 400
- 403
The copy was created. The body is the new policy.
No policy id was sent, a required value such as the name or connection profile is missing, or the copy failed.
The caller is not an administrator.