Enables resource sharing for a resource directory so that resource owners can share resources with members across the directory.
Operation description
After you enable resource sharing, resource owners can share resources with all members in the resource directory, all members in a specific folder, or a specific member.
Only the management account of the resource directory or an authorized RAM user or RAM role within the management account can call this API operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA |
Examples
Success response
JSON format
{
"RequestId": "2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 409 | ActionNotPermitted | The caller must be the master account for the Resource Directory. | |
| 409 | AlreadyEnabled | You have already enabled sharing with the Resource Directory. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.