'1.0', 'info' => ['style' => 'RPC', 'product' => 'ResourceSharing', 'version' => '2020-01-10'], 'directories' => [ [ 'children' => ['CreateResourceShare', 'UpdateResourceShare', 'AssociateResourceShare', 'DisassociateResourceShare', 'ListResourceShareAssociations', 'ListSharedResources', 'ListSharedTargets'], 'type' => 'directory', 'title' => 'Resource shares', ], [ 'children' => ['ListResourceShareInvitations', 'AcceptResourceShareInvitation'], 'type' => 'directory', 'title' => 'Sharing invitations', ], [ 'children' => ['GetPermission', 'ListPermissionVersions', 'ListPermissions'], 'type' => 'directory', 'title' => 'Shared permissions', ], [ 'children' => ['AssociateResourceSharePermission', 'ChangeResourceGroup', 'CheckSharingWithResourceDirectoryStatus', 'DeleteResourceShare', 'DescribeRegions', 'DisassociateResourceSharePermission', 'EnableSharingWithResourceDirectory', 'ListResourceSharePermissions', 'ListResourceShares', 'ListTagResources', 'RejectResourceShareInvitation', 'TagResources', 'UntagResources'], 'title' => 'Others', 'type' => 'directory', ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'AcceptResourceShareInvitation' => [ 'summary' => 'Accepts a resource sharing invitation.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareInvitationId', 'in' => 'query', 'schema' => ['description' => 'The ID of the sharing invitation.'."\n" ."\n" .'You can call the [ListResourceShareInvitations](~~450564~~) operation to obtain the ID of the sharing invitation.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i-pMnItMX19fBJ****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '08F18B04-47CB-5C0E-A6D2-37DEF5C2A961', 'title' => ''], 'ResourceShareInvitation' => [ 'description' => 'The information about the sharing invitation.', 'type' => 'object', 'properties' => [ 'ResourceShareInvitationId' => ['description' => 'The ID of the sharing invitation.', 'type' => 'string', 'required' => true, 'example' => 'i-pMnItMX19fBJ****', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => true, 'example' => 'rs-ysGRci9z****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'required' => true, 'example' => 'example', 'title' => ''], 'SenderAccountId' => ['description' => 'The ID of the Alibaba Cloud account that sent the invitation.', 'type' => 'string', 'required' => true, 'example' => '151266687691****', 'title' => ''], 'ReceiverAccountId' => ['description' => 'The ID of the Alibaba Cloud account that received the invitation.', 'type' => 'string', 'required' => true, 'example' => '134254031178****', 'title' => ''], 'CreateTime' => ['description' => 'The time when the invitation was created. The time is displayed in UTC.', 'type' => 'string', 'required' => true, 'example' => '2022-09-02T06:43:12.353Z', 'title' => ''], 'Status' => ['description' => 'The status of the invitation. Valid values:'."\n" ."\n" .'- Pending: The invitation is pending confirmation.'."\n" ."\n" .'- Accepted: The invitation is accepted.'."\n" ."\n" .'- Cancelled: The invitation is canceled.'."\n" ."\n" .'- Rejected: The invitation is rejected.'."\n" ."\n" .'- Expired: The invitation is expired.'."\n" ."\n" .'- AcceptFailed: The invitation failed to be accepted.', 'type' => 'string', 'required' => true, 'example' => 'AcceptFailed', 'title' => ''], 'AcceptInvitationFailedDetails' => [ 'description' => 'The information about the failure.', 'type' => 'array', 'items' => [ 'description' => 'The information about the failure.', 'type' => 'object', 'properties' => [ 'Status' => ['description' => 'This parameter is deprecated. Use FailureReason instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'StatusMessage' => ['description' => 'This parameter is deprecated. Use FailureDescription instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'AssociateType' => ['description' => 'This parameter is deprecated. Use OperationType instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the shared resource.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'For more information about the resource types that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'Snapshot', 'title' => ''], 'FailureReason' => ['description' => 'The failure cause. Valid values:'."\n" ."\n" .'- Unavailable: The resource cannot be shared.'."\n" ."\n" .'- LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.'."\n" ."\n" .'- ZonalResourceInaccessible: The resource is inaccessible in the zone.'."\n" ."\n" .'- InternalError: An internal error occurred during the check.', 'type' => 'string', 'example' => 'Unavailable', 'title' => ''], 'FailureDescription' => ['description' => 'The failure description.', 'type' => 'string', 'example' => 'You cannot access the specified resource at this time.', 'title' => ''], 'OperationType' => ['description' => 'The type of the operation. Valid values:'."\n" ."\n" .'- Associate: An association operation.', 'type' => 'string', 'example' => 'Associate', 'title' => ''], 'ResourceId' => ['description' => 'The ID of the shared resource.', 'type' => 'string', 'example' => 's-7xvh46nx5oqlre0wv***', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceShareInvitationId', 'errorMessage' => 'The ResourceShareInvitationId is invalid.', 'description' => 'The invitation ID is invalid.'], ['errorCode' => 'MissingParameter.ResourceShareInvitationId', 'errorMessage' => 'You must specify ResourceShareInvitationId.', 'description' => 'You must specify an invitation ID.'], ], 409 => [ ['errorCode' => 'InvitationStatus.Expired', 'errorMessage' => 'The resource share invitation status is expired.', 'description' => 'The invitation has expired.'], ['errorCode' => 'EntityNotExists.ResourceShareInvitation', 'errorMessage' => 'The resource share invitation does not exist in the current account.', 'description' => 'The invitation does not exist.'], ['errorCode' => 'InvitationStatus.AlreadyRejected', 'errorMessage' => 'The resource share invitation status is rejected.', 'description' => 'The invitation has been rejected.'], ['errorCode' => 'InvitationStatus.AlreadyAccepted', 'errorMessage' => 'The resource share invitation status is alredy accepted.', 'description' => 'The invitation has been accepted.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"08F18B04-47CB-5C0E-A6D2-37DEF5C2A961\\",\\n \\"ResourceShareInvitation\\": {\\n \\"ResourceShareInvitationId\\": \\"i-pMnItMX19fBJ****\\",\\n \\"ResourceShareId\\": \\"rs-ysGRci9z****\\",\\n \\"ResourceShareName\\": \\"example\\",\\n \\"SenderAccountId\\": \\"151266687691****\\",\\n \\"ReceiverAccountId\\": \\"134254031178****\\",\\n \\"CreateTime\\": \\"2022-09-02T06:43:12.353Z\\",\\n \\"Status\\": \\"AcceptFailed\\",\\n \\"AcceptInvitationFailedDetails\\": [\\n {\\n \\"Status\\": \\"None\\",\\n \\"StatusMessage\\": \\"None\\",\\n \\"AssociateType\\": \\"None\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceType\\": \\"Snapshot\\",\\n \\"FailureReason\\": \\"Unavailable\\",\\n \\"FailureDescription\\": \\"You cannot access the specified resource at this time.\\",\\n \\"OperationType\\": \\"Associate\\",\\n \\"ResourceId\\": \\"s-7xvh46nx5oqlre0wv***\\"\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => 'AcceptResourceShareInvitation', 'description' => '### Usage notes'."\n" ."\n" .'- A principal needs to accept or reject a resource sharing invitation only if the principal is not the management account or a member of a resource directory. If you share resources with a principal in a resource directory, the system automatically accepts the resource sharing invitation for the principal.'."\n" ."\n" .'- A resource sharing invitation is valid for seven days. A principal must accept or reject the invitation within the validity period.'."\n" ."\n" .'This topic provides an example of how to accept a sharing invitation with the ID `i-pMnItMX19fBJ****` in the `cn-hangzhou` region.', 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).', 'changeSet' => [ ['createdAt' => '2024-02-04T09:38:47.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-12-25T08:58:54.000Z', 'description' => 'Response parameters changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AcceptResourceShareInvitation'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:AcceptResourceShareInvitation', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'AssociateResourceShare' => [ 'summary' => 'Associates shared resources or principals with a resource share.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-6GRmdD3X****', 'title' => ''], ], [ 'name' => 'Resources', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The resources to associate with the resource share.', 'type' => 'array', 'items' => [ 'description' => 'A resource to associate.', 'type' => 'object', 'properties' => [ 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'You can specify up to five resources in a single request.'."\n" ."\n" .'For a list of supported resource types, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'> `Resources.N.ResourceId` and `Resources.N.ResourceType` must be specified together.', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], 'ResourceId' => ['description' => 'The ID of the shared resource.'."\n" ."\n" .'> `Resources.N.ResourceId` and `Resources.N.ResourceType` must be specified together.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp183p93qs667muql****', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'Targets', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The principals to associate with the resource share.', 'type' => 'array', 'items' => ['description' => 'The ID of a principal. Valid values depend on the `AllowExternalTargets` setting for the resource share:'."\n" ."\n" .'- If `AllowExternalTargets` is set to `false`, sharing is restricted to your Resource Directory. The principal can be the ID of the Resource Directory, a Folder, or a member.'."\n" ."\n" .'- If `AllowExternalTargets` is set to `true`, you can share with any Alibaba Cloud account. The principal can be the ID of an Alibaba Cloud account, a Resource Directory, a Folder, a member, or an Alibaba Cloud service.'."\n" ."\n" .'For more information, see [Resource Sharing overview](~~160622~~), [View the ID of a resource directory](~~111217~~), [View the ID of a folder](~~111223~~), or [View the ID of a member](~~111624~~).'."\n" ."\n" .'You can specify up to five principals in a single request.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], 'required' => false, 'example' => '172050525300****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'ResourceArns', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => ['description' => 'The ARN of the shared resource.'."\n" ."\n" .'> For details on the ARN format, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'description' => 'The ARNs of the shared resources.'."\n" ."\n" .'You can specify up to five resources in a single request.', 'title' => '', 'example' => '', ], ], [ 'name' => 'PermissionNames', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The names of the permissions to apply. If this parameter is omitted, the system automatically applies the default permission for the resource type. For more information, see [Permission library](~~465474~~).', 'type' => 'array', 'items' => ['description' => 'The name of a permission. For more information, see [Permission library](~~465474~~).', 'type' => 'string', 'required' => false, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'TargetProperties', 'in' => 'query', 'style' => 'flat', 'schema' => [ 'description' => 'The properties of the principals.'."\n" ."\n" .'> This parameter applies only when a principal is an Alibaba Cloud service.', 'type' => 'array', 'items' => [ 'description' => 'The properties for a principal.', 'type' => 'object', 'properties' => [ 'TargetId' => ['description' => 'The ID of the principal.'."\n" ."\n" .'> `TargetProperties.N.TargetId` and `TargetProperties.N.Property` must be specified together.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], 'Property' => ['description' => 'The property of the principal. For example, you can specify the time period for resource sharing. Valid values for `timeRangeType` are:'."\n" ."\n" .'- `timeRange`: a specific period of time.'."\n" ."\n" .'- `day`: an entire day.'."\n" ."\n" .'> `TargetProperties.N.TargetId` and `TargetProperties.N.Property` must be specified together.', 'type' => 'string', 'required' => false, 'example' => '{'."\n" .' "timeRange":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'title' => '', 'example' => '', ], ], [ 'name' => 'ResourceProperties', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'ResourceArn' => ['description' => 'The ARN of the resource.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => '', 'required' => false], 'Property' => ['description' => 'The property of the resource.', 'type' => 'string', 'example' => '{"sharePrincipals":true,"shareTagOptions":false}', 'title' => '', 'required' => false], ], 'title' => '', 'description' => 'The properties of a resource.', 'required' => false, 'example' => '', ], 'maxItems' => 20, 'title' => '', 'description' => 'The properties of the resources.', 'required' => false, 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response body.', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '111FB84A-60A9-403E-9067-E55D7EE95BD1', 'title' => ''], 'ResourceShareAssociations' => [ 'description' => 'The information about the resources or principals that are associated with the resource share.', 'type' => 'array', 'items' => [ 'description' => 'The information about a resource or principal that is associated with the resource share.', 'type' => 'object', 'properties' => [ 'UpdateTime' => ['description' => 'The time when the association was updated. This parameter can be one of the following values:'."\n" ."\n" .'- If `AssociationType` is set to `Resource`, this parameter indicates the time when the resource was updated.'."\n" ."\n" .'- If `AssociationType` is set to `Target`, this parameter indicates the time when the principal was updated.', 'type' => 'string', 'example' => '2020-12-04T09:40:41.246Z', 'title' => ''], 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the associated resource.'."\n" ."\n" .'> This parameter is returned only when `AssociationType` is set to `Resource`.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'CreateTime' => ['description' => 'The time when the association was created. This parameter can be one of the following values:'."\n" ."\n" .'- If `AssociationType` is set to `Resource`, this parameter indicates the time when the resource was added.'."\n" ."\n" .'- If `AssociationType` is set to `Target`, this parameter indicates the time when the principal was added.', 'type' => 'string', 'example' => '2020-12-04T09:40:41.246Z', 'title' => ''], 'EntityType' => ['description' => 'The type of the associated entity. Valid values:'."\n" ."\n" .'- If the associated entity is a resource, the value is the resource type. For more information, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'- If the associated entity is a principal, the value is `Account`.', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'AssociationStatusMessage' => ['description' => 'The reason why the association failed.', 'type' => 'string', 'example' => 'The reason for the association failure.', 'title' => ''], 'AssociationType' => ['description' => 'Target', 'type' => 'string', 'example' => 'Resource', 'title' => ''], 'AssociationStatus' => ['description' => 'Disassociated', 'type' => 'string', 'example' => 'Associating', 'title' => ''], 'TargetProperty' => ['description' => 'The properties of the principal. For example, the time range for resource sharing.'."\n" ."\n" .'> This parameter is returned only if the principal is an Alibaba Cloud service.', 'type' => 'string', 'example' => '{'."\n" .' "plan":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], 'EntityId' => ['description' => 'The ID of the associated entity. This parameter can be one of the following values:'."\n" ."\n" .'- If `AssociationType` is set to `Resource`, this parameter indicates the ID of the resource.'."\n" ."\n" .'- If `AssociationType` is set to `Target`, this parameter indicates the ID of the principal.', 'type' => 'string', 'example' => 'vsw-bp183p93qs667muql****', 'title' => ''], 'ResourceProperty' => ['description' => 'The properties of the resource.', 'type' => 'string', 'example' => '{"sharePrincipals":true,"shareTagOptions":false}', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => 'You must specify ResourceShareId.'], ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => 'The ResourceShareId parameter is invalid.'], ['errorCode' => 'InvalidParameter.Resources', 'errorMessage' => 'The Resources is invalid.', 'description' => 'The specified shared resource is invalid.'], ['errorCode' => 'InvalidParameter.Resources.Duplicate', 'errorMessage' => 'The Resources contains duplicate values.', 'description' => 'The specified Resources parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Resources.Length', 'errorMessage' => 'The maximum number of Resources exceeds 5.', 'description' => 'The number of specified shared resources cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Targets', 'errorMessage' => 'The Targets is invalid.', 'description' => 'The specified Targets parameter is invalid.'], ['errorCode' => 'InvalidParameter.Targets.Duplicate', 'errorMessage' => 'The Targets contains duplicate values.', 'description' => 'The specified Targets parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Targets.Length', 'errorMessage' => 'The maximum number of Targets exceeds 5.', 'description' => 'The number of Targets values cannot exceed 5.'], ['errorCode' => 'InvalidTarget', 'errorMessage' => 'The shared target does not exist in the resource directory.', 'description' => 'The specified Targets value is not a member in the resource directory.'], ['errorCode' => 'ResourceAndTargetBothEmpty', 'errorMessage' => 'Either a resource or a shared target must be specified.', 'description' => 'You must specify a resource or a resource account.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.PermissionNames.Duplicate', 'errorMessage' => 'The PermissionNames duplicate values.', 'description' => 'Duplicate values are specified for the PermissionNames parameter.'], ['errorCode' => 'InvalidParameter.PermissionNames.Length', 'errorMessage' => 'The maximum length of PermissionNames exceeds quota limit.', 'description' => 'The length of the value specified for the PermissionNames parameter exceeds the limit.'], ['errorCode' => 'InvalidParameter.TargetProperties', 'errorMessage' => 'The TargetProperties is invalid.', 'description' => 'The TargetProperties is invalid.'], ['errorCode' => 'InvalidParameter.TargetProperties.Duplicate', 'errorMessage' => 'The TargetProperties contains duplicate values.', 'description' => 'TargetProperties contains duplicate parameters.'], ['errorCode' => 'InvalidParameter.TargetProperties.Length', 'errorMessage' => 'The TargetProperties beyond the length limit.', 'description' => 'The TargetProperties beyond the length limit.'], ['errorCode' => 'InvalidParameter.ResourceArns', 'errorMessage' => 'The ResourceArns is invalid.', 'description' => 'The ResourceArns parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns.Duplicate', 'errorMessage' => 'The ResourceArns contains duplicate values.', 'description' => 'The ResourceArns contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceArns.Length', 'errorMessage' => 'The ResourceArns beyond the length limit.', 'description' => 'The maximum number of ResourceArns exceeds 5.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.'], ['errorCode' => 'NotSupport.ResourceType.ResourcesParameter', 'errorMessage' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.', 'description' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.'], ['errorCode' => 'InvalidParameter.ResourceProperties', 'errorMessage' => 'The ResourceProperties is invalid.', 'description' => 'The ResourceProperties is invalid.'], ['errorCode' => 'InvalidParameter.ResourceProperties.Duplicate', 'errorMessage' => 'The ResourceProperties contains duplicate values.', 'description' => 'The ResourceProperties contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceProperties.Length', 'errorMessage' => 'The ResourceProperties beyond the length limit.', 'description' => 'The ResourceProperties beyond the length limit.'], ['errorCode' => 'NotSupport.ResourceProperty', 'errorMessage' => 'The resource type does not support resource property.', 'description' => 'The resource type does not support resource property.'], ], 404 => [ ['errorCode' => 'EntityNotExists.ResourceShare', 'errorMessage' => 'The resource share does not exist in the current account.', 'description' => 'The resource share does not exist in the current account.'], ['errorCode' => 'EntityNotExists.Permission', 'errorMessage' => 'The resource share permission does not exist.', 'description' => 'You do not have the required permissions.'], ], 409 => [ ['errorCode' => 'NotEnableSharingWithResourceDirectory', 'errorMessage' => 'You have not enabled sharing with your Resource Directory.', 'description' => 'You have not enabled sharing with Resource Directory.'], ['errorCode' => 'AccountNotInResourceDirectory', 'errorMessage' => 'The account is not a master or a member of a resource directory.', 'description' => 'The specified Targets value is not a member in the resource directory.'], ['errorCode' => 'ResourceShareStatusMismatchAction', 'errorMessage' => 'The status of the resource share does not allow the specified operation.', 'description' => 'The status of the resource share does not allow the specified operation.'], ['errorCode' => 'QuotaExceeded.SharedResource.Count', 'errorMessage' => 'The maximum number of shared resources per account exceeds the limit.', 'description' => 'The maximum number of Resources values per account is exceeded.'], ['errorCode' => 'ShareWithYourself', 'errorMessage' => 'You cannot share resources with yourself.', 'description' => 'You cannot share resources with yourself.'], ['errorCode' => 'AssociateConflict', 'errorMessage' => 'You cannot perform the operation while disassociation operation is being performed.', 'description' => 'The association operation is not supported while an disassociation is being performed.'], ['errorCode' => 'NotManagementAccount', 'errorMessage' => 'Only the management account of the service is allowed to share such resources.', 'description' => 'Only the management account of the resource directory can be used to share the current type of resource. If you still want to use the current account, contact the owner of the management account to configure the current account as a delegated administrator account of the trusted service to which the resource belongs.'], ['errorCode' => 'QuotaExceeded.PendingInvitations', 'errorMessage' => 'The maximum number of pending invitations exceeds the limit.', 'description' => 'The number of invitations exceeds the upper limit.'], ['errorCode' => 'InvalidTarget.LegalEntityMismatch', 'errorMessage' => 'The target account does not have the same legal entity as the resource owner account.', 'description' => 'The enterprise name of the principal is inconsistent with that of the resource owner.'], ['errorCode' => 'ExternalTargetsNotAllowed.ResourceType', 'errorMessage' => 'The resource share includes resource types that cannot be shared with accounts outside the resource directory.', 'description' => 'The resource share contains resources that do not support this operation.'], ['errorCode' => 'InvalidTarget.SiteMismatch', 'errorMessage' => 'Cross-site resource sharing is not supported.', 'description' => 'The principal and resource owner are registered at different sites.'], ['errorCode' => 'NotSupport.Service.ExistInOtherResourceShare', 'errorMessage' => 'The resource type has been shared to the target service through other resourceShare. Please share it in the same resourceShare.', 'description' => ''], ['errorCode' => 'NotSupport.Service.AssociateConflict', 'errorMessage' => 'The same resource cannot be shared repeatedly to the target service.', 'description' => ''], ['errorCode' => 'NotSupport.ResourcePropertyConflict', 'errorMessage' => 'The ResourceProperty can not be updated until the last operation is completed.', 'description' => 'The ResourceProperty can not be updated until the last operation is completed.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"111FB84A-60A9-403E-9067-E55D7EE95BD1\\",\\n \\"ResourceShareAssociations\\": [\\n {\\n \\"UpdateTime\\": \\"2020-12-04T09:40:41.246Z\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceShareName\\": \\"test\\",\\n \\"CreateTime\\": \\"2020-12-04T09:40:41.246Z\\",\\n \\"EntityType\\": \\"VSwitch\\",\\n \\"ResourceShareId\\": \\"rs-6GRmdD3X****\\",\\n \\"AssociationStatusMessage\\": \\"The reason for the association failure.\\",\\n \\"AssociationType\\": \\"Resource\\",\\n \\"AssociationStatus\\": \\"Associating\\",\\n \\"TargetProperty\\": \\"{\\\\n \\\\\\"plan\\\\\\":{\\\\n \\\\\\"timeRangeType\\\\\\":\\\\\\"timeRange\\\\\\",\\\\n \\\\\\"beginAtTime\\\\\\":\\\\\\"00:00\\\\\\",\\\\n \\\\\\"timezone\\\\\\":\\\\\\"UTC+8\\\\\\",\\\\n \\\\\\"endAtTime\\\\\\":\\\\\\"19:59\\\\\\"\\\\n }\\\\n}\\",\\n \\"EntityId\\": \\"vsw-bp183p93qs667muql****\\",\\n \\"ResourceProperty\\": \\"{\\\\\\"sharePrincipals\\\\\\":true,\\\\\\"shareTagOptions\\\\\\":false}\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'AssociateResourceShare', 'description' => 'This example shows how to add the VSwitch `vsw-bp183p93qs667muql****` to the Resource Share `rs-6GRmdD3X****` in the `cn-hangzhou` Region and share it with Member `172050525300****` within a resource directory.', 'changeSet' => [ ['createdAt' => '2024-01-23T09:56:19.000Z', 'description' => 'Request parameters changed'], ['createdAt' => '2024-01-03T06:52:32.000Z', 'description' => 'Error codes changed, Response parameters changed'], ['createdAt' => '2023-04-07T03:38:51.000Z', 'description' => 'Error codes changed'], ['createdAt' => '2023-04-07T02:50:24.000Z', 'description' => 'Error codes changed'], ['createdAt' => '2022-11-16T06:55:48.000Z', 'description' => 'Error codes changed, Request parameters changed'], ['createdAt' => '2021-11-18T02:23:30.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateResourceShare'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:AssociateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:Target', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'extraInfo' => ' ', ], 'AssociateResourceSharePermission' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-6GRmdD3X****', 'title' => ''], ], [ 'name' => 'PermissionName', 'in' => 'query', 'schema' => ['description' => 'The name of the permission.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], ], [ 'name' => 'Replace', 'in' => 'query', 'schema' => ['description' => 'Specifies whether to use the specified permission to replace an existing permission. Valid values:'."\n" ."\n" .'* false: does not use the specified permission to replace an existing permission. This is the default value. If you set the value to false for a resource share that does not have associated permissions, the system associates the specified permission with the resource share. In a resource share, one resource type can have only one permission. If you set the value to false for a resource share that already has a permission for the resource type indicated by the specified permission, the system reports an error. This prevents you from replacing the existing permission by mistake.'."\n" .'* true: uses the specified permission to replace an existing permission of the same resource type.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '111FB84A-60A9-403E-9067-E55D7EE95BD1', 'title' => ''], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => ''], ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => ''], ['errorCode' => 'MissingParameter.PermissionName', 'errorMessage' => 'You must specify PermissionName.', 'description' => ''], ], 404 => [ ['errorCode' => 'EntityNotExists.Permission', 'errorMessage' => 'The resource share permission does not exist.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"111FB84A-60A9-403E-9067-E55D7EE95BD1\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 2C3FA051-61DC-4F3E-81E9-E4830524DF4B\\n","errorExample":""}]', 'title' => 'AssociateResourceSharePermission', 'summary' => 'Associates permissions with a resource share.', 'description' => 'This topic provides an example on how to call the API operation to associate the `AliyunRSDefaultPermissionVSwitch` permission with the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region.', 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).'."\n", 'changeSet' => [], ], 'ChangeResourceGroup' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'rs-dz3Ek1iiO***'], ], [ 'name' => 'ResourceRegionId', 'in' => 'query', 'schema' => ['description' => 'The ID of the region where the resource share resides.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', 'schema' => ['description' => 'The destination resource group.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'rg-aek2nb47ueqk***'], ], ], 'responses' => [ 200 => [ 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0A900114-22D3-5E9D-87A2-48E5EB5BF310'], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'NoPermission.ChangeResourceGroup', 'errorMessage' => 'You are not authorized to change resourcegroup', 'description' => 'You do not have permissions to change the resource group.'], ['errorCode' => 'MissingParameter.ResourceRegionId', 'errorMessage' => 'The ResourceRegionId parameters that are required for processing this request are missing', 'description' => 'The ResourceRegionId parameter is not configured.'], ['errorCode' => 'MissingParameter.ResourceId', 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing', 'description' => 'The ResourceId parameter is not configured.'], ['errorCode' => 'MissingParameter.ResourceGroupId', 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing', 'description' => 'The ResourceGroupId parameter is not configured.'], ['errorCode' => 'InvalidResourceGroup', 'errorMessage' => 'The specified ResourceGroupId is invalid', 'description' => 'The ResourceGroupId parameter is invalid.'], ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => 'A system exception occurred.'], ['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found', 'description' => 'The resource does not exist within your account.'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'ChangeResourceGroup', 'summary' => 'Transfers a resource share from one resource group to another.', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:ChangeResourceGroup', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0A900114-22D3-5E9D-87A2-48E5EB5BF310\\"\\n}","type":"json"}]', ], 'CheckSharingWithResourceDirectoryStatus' => [ 'methods' => ['post', 'get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'get'], 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '819545D0-C97A-5DB3-BD73-A1B17E9A4BC1', 'title' => ''], 'EnableSharingWithRd' => ['description' => 'Indicates whether resource sharing within a resource directory is enabled. Valid values:'."\n" ."\n" .'* false'."\n" .'* true'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], 'description' => '', 'title' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"819545D0-C97A-5DB3-BD73-A1B17E9A4BC1\\",\\n \\"EnableSharingWithRd\\": true\\n}","type":"json"}]', 'title' => 'CheckSharingWithResourceDirectoryStatus', 'summary' => 'Checks the status of resource sharing within a resource directory.', 'changeSet' => [], ], 'CreateResourceShare' => [ 'summary' => 'Creates a resource share.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareName', 'in' => 'query', 'schema' => ['description' => 'The name of the resource share.'."\n" ."\n" .'The name must be 1 to 50 characters in length.'."\n" ."\n" .'It can contain letters, digits, Chinese characters, periods (.), underscores (\\_), and hyphens (-).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ 'name' => 'Resources', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'A list of shared resources.', 'type' => 'array', 'items' => [ 'description' => 'A shared resource.', 'type' => 'object', 'properties' => [ 'ResourceId' => ['description' => 'The ID of the shared resource.'."\n" ."\n" .'You can add up to five shared resources at a time.'."\n" ."\n" .'> Specify the `Resources.N.ResourceId` and `Resources.N.ResourceType` parameters in pairs.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp183p93qs667muql****', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'You can add up to five shared resources at a time.'."\n" ."\n" .'For a list of supported resource types, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'> Specify the `Resources.N.ResourceId` and `Resources.N.ResourceType` parameters in pairs.', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'Targets', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'A list of principals.', 'type' => 'array', 'items' => ['description' => 'The ID of a principal. Valid values depend on the setting of `AllowExternalTargets`:'."\n" ."\n" .'- If `AllowExternalTargets` is set to `false`, the value can be the ID of a Resource Directory, a Folder, or a Member.'."\n" ."\n" .'- If `AllowExternalTargets` is set to `true`, the value can be the ID of an Alibaba Cloud Account, a Resource Directory, a Folder, a Member, or an Alibaba Cloud service.'."\n" ."\n" .'For more information, see [Methods used to share resources](~~160622~~), [View the ID of a resource directory](~~111217~~), [View the ID of a folder](~~111223~~), or [View the ID of a member](~~111624~~).'."\n" ."\n" .'You can add up to five principals at a time.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], 'required' => false, 'example' => '172050525300****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'ResourceArns', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => ['description' => 'The ARN of the shared resource.'."\n" ."\n" .'> For the format of a resource ARN, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'description' => 'The Alibaba Cloud Resource Names (ARNs) of the shared resources.'."\n" ."\n" .'You can add up to five shared resources at a time.', 'title' => '', 'example' => '', ], ], [ 'name' => 'PermissionNames', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The name of the permission. If unspecified, the system attaches the default permission for the resource type. For details, see [Permission Library](~~465474~~).', 'type' => 'array', 'items' => ['description' => 'The name of the permission. If unspecified, the system attaches the default permission for the resource type. For details, see [Permission Library](~~465474~~).', 'type' => 'string', 'required' => false, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'AllowExternalTargets', 'in' => 'query', 'schema' => ['description' => 'Specifies whether to allow sharing with accounts outside your resource directory. Valid values:'."\n" ."\n" .'- `false` (default): Resources can be shared only with accounts within your resource directory.'."\n" ."\n" .'- `true`: Resources can be shared with any Alibaba Cloud account.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekz5nlvlak****', 'title' => ''], ], [ 'name' => 'TargetProperties', 'in' => 'query', 'style' => 'flat', 'schema' => [ 'description' => 'The properties of the principal.'."\n" ."\n" .'> This parameter is available only when the principal is an Alibaba Cloud service.', 'type' => 'array', 'items' => [ 'description' => 'The properties of the principal.'."\n" ."\n" .'> This parameter is available only when the principal is an Alibaba Cloud service.', 'type' => 'object', 'properties' => [ 'Property' => ['description' => 'The property of the principal. For example, you can specify a time range for resource sharing. Valid values for `timeRangeType`:'."\n" ."\n" .'- `timeRange`: a specified time range.'."\n" ."\n" .'- `day`: the entire day.'."\n" ."\n" .'> Specify the `TargetProperties.N.TargetId` and `TargetProperties.N.Property` parameters in pairs.', 'type' => 'string', 'required' => false, 'example' => '{'."\n" .' "timeRange":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], 'TargetId' => ['description' => 'The ID of the principal.'."\n" ."\n" .'> Specify the `TargetProperties.N.TargetId` and `TargetProperties.N.Property` parameters in pairs.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'title' => '', 'example' => '', ], ], [ 'name' => 'ResourceProperties', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Property' => ['description' => 'The resource property.', 'type' => 'string', 'example' => '{"sharePrincipals":true,"shareTagOptions":false}', 'title' => '', 'required' => false], 'ResourceArn' => ['description' => 'The ARN of the resource.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => '', 'required' => false], ], 'title' => '', 'description' => 'A resource property.', 'required' => false, 'example' => '', ], 'maxItems' => 20, 'title' => '', 'description' => 'A list of resource properties.', 'required' => false, 'example' => '', ], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The tags of the resource share. You can add a maximum of 20 tags.', 'type' => 'array', 'items' => [ 'description' => 'A tag.', 'type' => 'object', 'properties' => [ 'Key' => ['description' => 'The tag key.'."\n" ."\n" .'> The tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:`, and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], 'Value' => ['description' => 'The tag value.'."\n" ."\n" .'> The tag value can be up to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2C3FA051-61DC-4F3E-81E9-E4830524DF4B', 'title' => ''], 'ResourceShare' => [ 'description' => 'The information about the resource share.', 'type' => 'object', 'properties' => [ 'AllowExternalTargets' => ['description' => 'Indicates whether accounts outside the resource directory are allowed to access the shared resources. Valid values:'."\n" ."\n" .'- `false`: Sharing with accounts outside the resource directory is not allowed.'."\n" ."\n" .'- `true`: Sharing with any account is allowed.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], 'CreateTime' => ['description' => 'The time when the resource share was created.', 'type' => 'string', 'example' => '2020-12-03T08:02:22.413Z', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-qSkW1HBY****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'ResourceShareOwner' => ['description' => 'The owner of the resource share.', 'type' => 'string', 'example' => '151266687691****', 'title' => ''], 'ResourceShareStatus' => ['description' => 'The status of the resource share. Valid values:'."\n" ."\n" .'- `Active`: The resource share is enabled.'."\n" ."\n" .'- `Pending`: The resource share is waiting for the invitee to confirm the invitation.'."\n" ."\n" .'- `Deleting`: The resource share is being deleted.'."\n" ."\n" .'- `Deleted`: The resource share is deleted.'."\n" ."\n" .'> A resource share in the `Deleted` state is automatically removed by the system within 48 to 96 hours.', 'type' => 'string', 'example' => 'Active', 'title' => ''], 'UpdateTime' => ['description' => 'The time when the resource share was last updated.', 'type' => 'string', 'example' => '2020-12-03T08:02:22.413Z', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceShareName', 'errorMessage' => 'The ResourceShareName is invalid.', 'description' => 'The ResourceShareName parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareName.Length', 'errorMessage' => 'The maximum length of ResourceShareName exceeds 50 characters.', 'description' => 'The length of ResourceShareName cannot exceed 50 characters.'], ['errorCode' => 'InvalidParameter.Resources', 'errorMessage' => 'The Resources is invalid.', 'description' => 'The specified shared resource is invalid.'], ['errorCode' => 'InvalidParameter.Resources.Duplicate', 'errorMessage' => 'The Resources contains duplicate values.', 'description' => 'The specified Resources parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Resources.Length', 'errorMessage' => 'The maximum number of Resources exceeds 5.', 'description' => 'The number of specified shared resources cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Targets', 'errorMessage' => 'The Targets is invalid.', 'description' => 'The specified Targets parameter is invalid.'], ['errorCode' => 'InvalidParameter.Targets.Duplicate', 'errorMessage' => 'The Targets contains duplicate values.', 'description' => 'The specified Targets parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Targets.Length', 'errorMessage' => 'The maximum number of Targets exceeds 5.', 'description' => 'The number of Targets values cannot exceed 5.'], ['errorCode' => 'InvalidTarget', 'errorMessage' => 'The shared target does not exist in the resource directory.', 'description' => 'The specified Targets value is not a member in the resource directory.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceShareName', 'errorMessage' => 'You must specify ResourceShareName.', 'description' => 'The ResourceShareName parameter is missing.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.PermissionNames.Duplicate', 'errorMessage' => 'The PermissionNames duplicate values.', 'description' => 'Duplicate values are specified for the PermissionNames parameter.'], ['errorCode' => 'InvalidParameter.PermissionNames.Length', 'errorMessage' => 'The maximum length of PermissionNames exceeds quota limit.', 'description' => 'The length of the value specified for the PermissionNames parameter exceeds the limit.'], ['errorCode' => 'InvalidParameter.TargetProperties', 'errorMessage' => 'The TargetProperties is invalid.', 'description' => 'The TargetProperties is invalid.'], ['errorCode' => 'InvalidParameter.TargetProperties.Duplicate', 'errorMessage' => 'The TargetProperties contains duplicate values.', 'description' => 'TargetProperties contains duplicate parameters.'], ['errorCode' => 'InvalidParameter.TargetProperties.Length', 'errorMessage' => 'The TargetProperties beyond the length limit.', 'description' => 'The TargetProperties beyond the length limit.'], ['errorCode' => 'InvalidParameter.ResourceArns', 'errorMessage' => 'The ResourceArns is invalid.', 'description' => 'The ResourceArns parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns.Duplicate', 'errorMessage' => 'The ResourceArns contains duplicate values.', 'description' => 'The ResourceArns contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceArns.Length', 'errorMessage' => 'The ResourceArns beyond the length limit.', 'description' => 'The maximum number of ResourceArns exceeds 5.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.'], ['errorCode' => 'NotSupport.ResourceType.ResourcesParameter', 'errorMessage' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.', 'description' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.'], ['errorCode' => 'InvalidParameter.ResourceProperties', 'errorMessage' => 'The ResourceProperties is invalid.', 'description' => 'The ResourceProperties is invalid.'], ['errorCode' => 'InvalidParameter.ResourceProperties.Duplicate', 'errorMessage' => 'The ResourceProperties contains duplicate values.', 'description' => 'The ResourceProperties contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceProperties.Length', 'errorMessage' => 'The ResourceProperties beyond the length limit.', 'description' => 'The ResourceProperties beyond the length limit.'], ['errorCode' => 'NotSupport.ResourceProperty', 'errorMessage' => 'The resource type does not support resource property.', 'description' => 'The resource type does not support resource property.'], ], 404 => [ ['errorCode' => 'EntityNotExists.Permission', 'errorMessage' => 'The resource share permission does not exist.', 'description' => 'You do not have the required permissions.'], ], 409 => [ ['errorCode' => 'NotEnableSharingWithResourceDirectory', 'errorMessage' => 'You have not enabled sharing with your Resource Directory.', 'description' => 'You have not enabled sharing with Resource Directory.'], ['errorCode' => 'AccountNotInResourceDirectory', 'errorMessage' => 'The account is not a master or a member of a resource directory.', 'description' => 'The specified Targets value is not a member in the resource directory.'], ['errorCode' => 'QuotaExceeded.ResourceShare.Count', 'errorMessage' => 'The maximum number of ResourceShare exceeds the limit.', 'description' => 'The maximum number of ResourceShare exceeds the limit.'], ['errorCode' => 'EntityAlreadyExists.ResourceShare', 'errorMessage' => 'The specified resource share ID already exists.', 'description' => 'The specified resource share ID already exists.'], ['errorCode' => 'QuotaExceeded.SharedResource.Count', 'errorMessage' => 'The maximum number of shared resources per account exceeds the limit.', 'description' => 'The maximum number of Resources values per account is exceeded.'], ['errorCode' => 'ShareWithYourself', 'errorMessage' => 'You cannot share resources with yourself.', 'description' => 'You cannot share resources with yourself.'], ['errorCode' => 'NotManagementAccount', 'errorMessage' => 'Only the management account of the service is allowed to share such resources.', 'description' => 'Only the management account of the resource directory can be used to share the current type of resource. If you still want to use the current account, contact the owner of the management account to configure the current account as a delegated administrator account of the trusted service to which the resource belongs.'], ['errorCode' => 'QuotaExceeded.PendingInvitations', 'errorMessage' => 'The maximum number of pending invitations exceeds the limit.', 'description' => 'The number of invitations exceeds the upper limit.'], ['errorCode' => 'InvalidTarget.LegalEntityMismatch', 'errorMessage' => 'The target account does not have the same legal entity as the resource owner account.', 'description' => 'The enterprise name of the principal is inconsistent with that of the resource owner.'], ['errorCode' => 'ExternalTargetsNotAllowed.ResourceType', 'errorMessage' => 'The resource share includes resource types that cannot be shared with accounts outside the resource directory.', 'description' => 'The resource share contains resources that do not support this operation.'], ['errorCode' => 'InvalidTarget.SiteMismatch', 'errorMessage' => 'Cross-site resource sharing is not supported.', 'description' => 'The principal and resource owner are registered at different sites.'], ['errorCode' => 'NotSupport.Service.ExistInOtherResourceShare', 'errorMessage' => 'The resource type has been shared to the target service through other resourceShare. Please share it in the same resourceShare.', 'description' => ''], ['errorCode' => 'NotSupport.Service.AssociateConflict', 'errorMessage' => 'The same resource cannot be shared repeatedly to the target service.', 'description' => ''], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2C3FA051-61DC-4F3E-81E9-E4830524DF4B\\",\\n \\"ResourceShare\\": {\\n \\"AllowExternalTargets\\": false,\\n \\"CreateTime\\": \\"2020-12-03T08:02:22.413Z\\",\\n \\"ResourceShareId\\": \\"rs-qSkW1HBY****\\",\\n \\"ResourceShareName\\": \\"test\\",\\n \\"ResourceShareOwner\\": \\"151266687691****\\",\\n \\"ResourceShareStatus\\": \\"Active\\",\\n \\"UpdateTime\\": \\"2020-12-03T08:02:22.413Z\\"\\n }\\n}","type":"json"}]', 'title' => 'CreateResourceShare', 'description' => 'Alibaba Cloud Resource Sharing lets you share resources from your account with one or more Principals. For more information, see [Resource Sharing overview](~~160622~~).'."\n" ."\n" .'This example shows how to use the management account of a Resource Directory to create a resource share named `test` in the `cn-hangzhou` region and share the vSwitch `vsw-bp183p93qs667muql****` with member `172050525300****`.', 'changeSet' => [ ['createdAt' => '2024-11-18T02:35:52.000Z', 'description' => 'Request parameters changed'], ['createdAt' => '2024-01-23T09:56:19.000Z', 'description' => 'Request parameters changed'], ['createdAt' => '2024-01-03T06:52:32.000Z', 'description' => 'Error codes changed'], ['createdAt' => '2023-04-07T03:38:51.000Z', 'description' => 'Error codes changed'], ['createdAt' => '2023-04-07T02:50:24.000Z', 'description' => 'Error codes changed'], ['createdAt' => '2023-04-03T06:28:16.000Z', 'description' => 'Request parameters changed, Response parameters changed'], ['createdAt' => '2023-03-02T12:01:07.000Z', 'description' => 'Request parameters changed, Response parameters changed'], ['createdAt' => '2022-11-16T06:55:48.000Z', 'description' => 'Error codes changed, Request parameters changed'], ['createdAt' => '2021-11-18T02:23:30.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceShare'], ], ], 'ramActions' => [ [ 'operationType' => 'create', 'ramAction' => [ 'action' => 'resourcesharing:CreateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedAllowExternalTargets', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:Target', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'extraInfo' => ' ', ], 'DeleteResourceShare' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-qSkW1HBY****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'A627EE2A-223D-4E1F-A954-394686AEA916', 'title' => ''], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ], 404 => [ ['errorCode' => 'EntityNotExists.ResourceShare', 'errorMessage' => 'The resource share does not exist in the current account.', 'description' => ''], ], 409 => [ ['errorCode' => 'ResourceShareStatusMismatchAction', 'errorMessage' => 'The status of the resource share does not allow the specified operation.', 'description' => ''], ['errorCode' => 'DeleteResourceShareConflict', 'errorMessage' => 'You cannot delete a resource share while there are unfinished tasks.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A627EE2A-223D-4E1F-A954-394686AEA916\\"\\n}","errorExample":""},{"type":"xml","example":"\\r\\n\\r\\n\\tA627EE2A-223D-4E1F-A954-394686AEA916\\r\\n\\t\\r\\n","errorExample":""}]', 'title' => 'DeleteResourceShare', 'summary' => 'Deletes a resource share.', 'description' => 'After a resource share is deleted, all principals in the resource share can no longer access the resources in the resource share. However, the resources are not deleted with the resource share.'."\n" ."\n" .'A resource share that is deleted is in the `Deleted` state. The system deletes the record of the resource share within 48 hours to 96 hours.'."\n" ."\n" .'This topic provides an example on how to call the API operation to delete the resource share `rs-qSkW1HBY****` in the `cn-hangzhou` region.'."\n", 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).'."\n", 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [], ], 'DescribeRegions' => [ 'summary' => 'Queries the regions where the Resource Sharing service is available.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'AcceptLanguage', 'in' => 'query', 'schema' => ['description' => 'The supported natural language. Valid values:'."\n" ."\n" .'- zh-CN: Chinese'."\n" ."\n" .'- en-US: English', 'type' => 'string', 'required' => false, 'example' => 'zh-CN', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '0D64A198-5842-4570-8E26-5E540CDC84CD', 'title' => ''], 'Regions' => [ 'description' => 'The information of the regions.', 'type' => 'array', 'items' => [ 'description' => 'The information of the regions.', 'type' => 'object', 'properties' => [ 'RegionEndpoint' => ['description' => 'The endpoint of the Resource Sharing service in the region.', 'type' => 'string', 'example' => 'resourcesharing.cn-hangzhou.aliyuncs.com', 'title' => ''], 'LocalName' => ['description' => 'The name of the region.', 'type' => 'string', 'example' => '华东1(杭州)', 'title' => ''], 'RegionId' => ['description' => 'The ID of the region.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'title' => 'DescribeRegions', 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], ], ], 'ramActions' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0D64A198-5842-4570-8E26-5E540CDC84CD\\",\\n \\"Regions\\": [\\n {\\n \\"RegionEndpoint\\": \\"resourcesharing.cn-hangzhou.aliyuncs.com\\",\\n \\"LocalName\\": \\"华东1(杭州)\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n}","type":"json"}]', ], 'DisassociateResourceShare' => [ 'summary' => 'Disassociates shared resources or principals from a resource share.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-6GRmdD3X****', 'title' => ''], ], [ 'name' => 'Resources', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'A list of shared resources to disassociate from the resource share.', 'type' => 'array', 'items' => [ 'description' => 'A shared resource.', 'type' => 'object', 'properties' => [ 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'You can disassociate up to five shared resources in a single request.'."\n" ."\n" .'For a list of supported resource types, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'> The `Resources.N.ResourceId` and `Resources.N.ResourceType` parameters must be specified in pairs.', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], 'ResourceId' => ['description' => 'The ID of the shared resource.'."\n" ."\n" .'You can disassociate up to five shared resources in a single request.'."\n" ."\n" .'> The `Resources.N.ResourceId` and `Resources.N.ResourceType` parameters must be specified in pairs.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp183p93qs667muql****', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'Targets', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'A list of principals to disassociate from the resource share.', 'type' => 'array', 'items' => ['description' => 'The ID of a principal.'."\n" ."\n" .'You can disassociate up to five principals in a single request.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], 'required' => false, 'example' => '172050525300****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'ResourceArns', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the shared resource.'."\n" ."\n" .'> For the format of an ARN, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'description' => 'A list of the Alibaba Cloud Resource Names (ARNs) of the shared resources.'."\n" ."\n" .'You can disassociate up to five shared resources in a single request.', 'title' => '', 'example' => '', ], ], [ 'name' => 'ResourceOwner', 'in' => 'query', 'schema' => ['description' => 'The owner of the resource share. Valid values:'."\n" ."\n" .'- `Self` (default): The resource share is owned by the current account. Use this value when a resource owner disassociates shared resources or principals from a resource share within a Resource Directory.'."\n" ."\n" .'- `OtherAccounts`: The resource share is owned by another account. Use this value when a principal leaves a resource share that was created by an account outside your Resource Directory.', 'type' => 'string', 'required' => false, 'example' => 'Self', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '95230BC9-A8E8-4493-96BD-4F0C758E37F8', 'title' => ''], 'ResourceShareAssociations' => [ 'description' => 'The associations of shared resources or principals with the resource share.', 'type' => 'array', 'items' => [ 'description' => 'An association of a shared resource or principal with the resource share.', 'type' => 'object', 'properties' => [ 'UpdateTime' => ['description' => 'The time the association was last updated. For this operation, this indicates the time of disassociation. The meaning varies based on the `AssociationType`:'."\n" ."\n" .'- If the `AssociationType` is `Resource`, this is the time the resource was disassociated.'."\n" ."\n" .'- If the `AssociationType` is `Target`, this is the time the principal was disassociated.', 'type' => 'string', 'example' => '2020-12-04T09:40:45.556Z', 'title' => ''], 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the shared resource.'."\n" ."\n" .'> This parameter is returned only when `AssociationType` is `Resource`.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'CreateTime' => ['description' => 'The time the association was created. The meaning varies based on the `AssociationType`:'."\n" ."\n" .'- If the `AssociationType` is `Resource`, this is the time the resource was associated.'."\n" ."\n" .'- If the `AssociationType` is `Target`, this is the time the principal was associated.', 'type' => 'string', 'example' => '2020-12-04T09:40:41.250Z', 'title' => ''], 'EntityType' => ['description' => 'The type of the entity. Valid values:'."\n" ."\n" .'- If the entity is a resource, this is the resource type. For more information, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'- If the entity is a principal, the value is `Account`.', 'type' => 'string', 'example' => 'Account', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'AssociationStatusMessage' => ['description' => 'The reason why the disassociation failed.', 'type' => 'string', 'example' => 'The Resources is invalid.', 'title' => ''], 'AssociationType' => ['description' => 'The association type. Valid values:'."\n" ."\n" .'- `Resource`: The entity is a resource.'."\n" ."\n" .'- `Target`: The entity is a principal.', 'type' => 'string', 'example' => 'Target', 'title' => ''], 'AssociationStatus' => ['description' => 'The status of the association. Valid values:'."\n" ."\n" .'- `Associating`: The entity is being associated.'."\n" ."\n" .'- `Associated`: The entity is associated.'."\n" ."\n" .'- `Failed`: The association failed.'."\n" ."\n" .'- `Disassociating`: The entity is being disassociated.'."\n" ."\n" .'- `Disassociated`: The entity is disassociated.'."\n" ."\n" .'> The system automatically deletes records in the `Failed` and `Disassociated` states within 48 to 96 hours.', 'type' => 'string', 'example' => 'Disassociating', 'title' => ''], 'TargetProperty' => ['description' => 'The properties of the principal, such as the time period for resource sharing.'."\n" ."\n" .'> This parameter is returned only when the principal is an Alibaba Cloud service.', 'type' => 'string', 'example' => '{'."\n" .' "timeRange":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], 'EntityId' => ['description' => 'The ID of the entity. Its value varies based on the `AssociationType`:'."\n" ."\n" .'- If `AssociationType` is `Resource`, the value of this parameter is the resource ID.'."\n" ."\n" .'- If the `AssociationType` is `Target`, this is the ID of the Resource Directory, Folder, or Member.', 'type' => 'string', 'example' => '172050525300****', 'title' => ''], 'ResourceProperty' => ['description' => 'The properties of the resource.', 'type' => 'string', 'example' => '{"sharePrincipals":true,"shareTagOptions":false}', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => 'You must specify ResourceShareId.'], ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => 'The ResourceShareId parameter is invalid.'], ['errorCode' => 'InvalidParameter.Resources', 'errorMessage' => 'The Resources is invalid.', 'description' => 'The specified shared resource is invalid.'], ['errorCode' => 'InvalidParameter.Resources.Duplicate', 'errorMessage' => 'The Resources contains duplicate values.', 'description' => 'The specified Resources parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Resources.Length', 'errorMessage' => 'The maximum number of Resources exceeds 5.', 'description' => 'The number of specified shared resources cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Targets', 'errorMessage' => 'The Targets is invalid.', 'description' => 'The specified Targets parameter is invalid.'], ['errorCode' => 'InvalidParameter.Targets.Duplicate', 'errorMessage' => 'The Targets contains duplicate values.', 'description' => 'The specified Targets parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Targets.Length', 'errorMessage' => 'The maximum number of Targets exceeds 5.', 'description' => 'The number of Targets values cannot exceed 5.'], ['errorCode' => 'ResourceAndTargetBothEmpty', 'errorMessage' => 'Either a resource or a shared target must be specified.', 'description' => 'You must specify a resource or a resource account.'], ['errorCode' => 'DisassociateInvalid', 'errorMessage' => 'You can not disassociate unassociated resource or target.', 'description' => 'The disassociation operation is not supported for an entity that is not associated with the resource share.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns', 'errorMessage' => 'The ResourceArns is invalid.', 'description' => 'The ResourceArns parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns.Duplicate', 'errorMessage' => 'The ResourceArns contains duplicate values.', 'description' => 'The ResourceArns contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceArns.Length', 'errorMessage' => 'The ResourceArns beyond the length limit.', 'description' => 'The maximum number of ResourceArns exceeds 5.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.'], ['errorCode' => 'NotSupport.ResourceType.ResourcesParameter', 'errorMessage' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.', 'description' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.'], ], 404 => [ ['errorCode' => 'EntityNotExists.ResourceShare', 'errorMessage' => 'The resource share does not exist in the current account.', 'description' => 'The resource share does not exist in the current account.'], ], 409 => [ ['errorCode' => 'AccountNotInResourceDirectory', 'errorMessage' => 'The account is not a master or a member of a resource directory.', 'description' => 'The specified Targets value is not a member in the resource directory.'], ['errorCode' => 'ResourceShareStatusMismatchAction', 'errorMessage' => 'The status of the resource share does not allow the specified operation.', 'description' => 'The status of the resource share does not allow the specified operation.'], ['errorCode' => 'DisassociateConflict', 'errorMessage' => 'You cannot perform the operation while association is already in progress.', 'description' => 'The association operation is not supported while an association is being performed.'], ['errorCode' => 'LeavingFailed.Account', 'errorMessage' => 'The account was added to the resource share automatically by resoucre directory.', 'description' => 'The current account is a principal of a resource share and cannot proactively exit the resource share. Contact the owner of the resource share to remove the account from the resource share.'], ['errorCode' => 'LeavingFailed.ResourceType', 'errorMessage' => 'The resource share contains resources of the resource types that dont support this action.', 'description' => 'The resource share contains resources that cannot proactively exit the resource share. Contact the owner of the resource share to remove the current account from the resource share.'], ['errorCode' => 'ExternalTargetWithdrawConflict', 'errorMessage' => 'Existing internal association task in resource directory when disassociating with resource share.', 'description' => 'The current account is a principal of a resource share and cannot proactively exit the resource share. Contact the owner of the resource share to remove the account from the resource share.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"95230BC9-A8E8-4493-96BD-4F0C758E37F8\\",\\n \\"ResourceShareAssociations\\": [\\n {\\n \\"UpdateTime\\": \\"2020-12-04T09:40:45.556Z\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceShareName\\": \\"test\\",\\n \\"CreateTime\\": \\"2020-12-04T09:40:41.250Z\\",\\n \\"EntityType\\": \\"Account\\",\\n \\"ResourceShareId\\": \\"rs-6GRmdD3X****\\",\\n \\"AssociationStatusMessage\\": \\"The Resources is invalid.\\",\\n \\"AssociationType\\": \\"Target\\",\\n \\"AssociationStatus\\": \\"Disassociating\\",\\n \\"TargetProperty\\": \\"{\\\\n \\\\\\"timeRange\\\\\\":{\\\\n \\\\\\"timeRangeType\\\\\\":\\\\\\"timeRange\\\\\\",\\\\n \\\\\\"beginAtTime\\\\\\":\\\\\\"00:00\\\\\\",\\\\n \\\\\\"timezone\\\\\\":\\\\\\"UTC+8\\\\\\",\\\\n \\\\\\"endAtTime\\\\\\":\\\\\\"19:59\\\\\\"\\\\n }\\\\n}\\",\\n \\"EntityId\\": \\"172050525300****\\",\\n \\"ResourceProperty\\": \\"{\\\\\\"sharePrincipals\\\\\\":true,\\\\\\"shareTagOptions\\\\\\":false}\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'DisassociateResourceShare', 'description' => '- A resource owner can call this API to remove shared resources or principals from a resource share.'."\n" ."\n" .'- A principal outside your resource directory can call this API to leave the resource share. For more information, see [Exit a resource share](~~440614~~).'."\n" ."\n" .'This example shows how to use the management account of a resource directory to remove the principal `172050525300****` from the resource share `rs-6GRmdD3X****` in the `cn-hangzhou` region. This action stops the sharing of resources with that principal.', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [ ['createdAt' => '2024-01-03T06:52:32.000Z', 'description' => 'Response parameters changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisassociateResourceShare'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:DisassociateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'DisassociateResourceSharePermission' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-6GRmdD3X****', 'title' => ''], ], [ 'name' => 'PermissionName', 'in' => 'query', 'schema' => ['description' => 'The name of the permission. For more information, see [Permission library](~~465474~~).'."\n", 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '111FB84A-60A9-403E-9067-E55D7EE95BD1', 'title' => ''], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => ''], ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => ''], ['errorCode' => 'MissingParameter.PermissionName', 'errorMessage' => 'You must specify PermissionName.', 'description' => ''], ], 404 => [ ['errorCode' => 'EntityNotExists.Permission', 'errorMessage' => 'The resource share permission does not exist.', 'description' => ''], ], 409 => [ ['errorCode' => 'DisassociateConflict.Permission', 'errorMessage' => 'Existing associated resource when disassociating permission with resource share.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"111FB84A-60A9-403E-9067-E55D7EE95BD1\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 111FB84A-60A9-403E-9067-E55D7EE95BD1\\n","errorExample":""}]', 'title' => 'DisassociateResourceSharePermission', 'summary' => 'Disassociates a permission from a resource share. You can disassociate a permission from a resource share only if the resource share does not contain resources of the type indicated by the permission.', 'description' => 'This topic provides an example on how to call the API operation to disassociate the `AliyunRSDefaultPermissionVSwitch` permission from the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region.', 'changeSet' => [], ], 'EnableSharingWithResourceDirectory' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update'], 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA', 'title' => ''], ], 'title' => '', ], ], ], 'errorCodes' => [ 409 => [ ['errorCode' => 'ActionNotPermitted', 'errorMessage' => 'The caller must be the master account for the Resource Directory.', 'description' => ''], ['errorCode' => 'AlreadyEnabled', 'errorMessage' => 'You have already enabled sharing with the Resource Directory.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\n","errorExample":""}]', 'title' => 'EnableSharingWithResourceDirectory', 'summary' => 'Enables resource sharing for a resource directory.', 'description' => 'You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.'."\n" ."\n" .'You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account.', 'changeSet' => [], ], 'GetPermission' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'PermissionName', 'in' => 'query', 'schema' => ['description' => 'The name of the permission.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], ], [ 'name' => 'PermissionVersion', 'in' => 'query', 'schema' => ['description' => 'The version of the permission.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'v1', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA', 'title' => ''], 'Permission' => [ 'description' => 'The information about the permission.', 'type' => 'object', 'properties' => [ 'PermissionName' => ['description' => 'The name of the permission.', 'type' => 'string', 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'PermissionVersion' => ['description' => 'The version of the permission.', 'type' => 'string', 'example' => 'v1', 'title' => ''], 'Permission' => ['description' => 'The document of the policy related to the permission.', 'type' => 'string', 'example' => '{"Effect":"Allow","Action":["vpc:DescribeVSwitches","vpc:DescribeVSwitchAttributes"]}', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resources.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'DefaultVersion' => ['description' => 'Indicates whether the version is the default version. Valid values:'."\n" ."\n" .'- false: The version is not the default version.'."\n" ."\n" .'- true: The version is the default version.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'UpdateTime' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'DefaultPermission' => ['description' => 'Indicates whether the permission is the default permission. Valid values:'."\n" ."\n" .'- false: The permission is not the default permission.'."\n" ."\n" .'- true: The permission is the default permission.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.PermissionVersion', 'errorMessage' => 'The PermissionVersion is invalid.', 'description' => 'The value of PermissionVersion is invalid.'], ['errorCode' => 'MissingParameter.PermissionName', 'errorMessage' => 'You must specify PermissionName.', 'description' => 'PermissionName is not configured.'], ], 404 => [ ['errorCode' => 'EntityNotExists.Permission', 'errorMessage' => 'The resource share permission does not exist.', 'description' => 'You do not have the required permissions.'], ], ], 'title' => 'GetPermission', 'summary' => 'Queries the information about a permission.', 'description' => 'This topic provides an example on how to call the API operation to query the information about the `AliyunRSDefaultPermissionVSwitch` permission whose version is `v1` in the `cn-hangzhou` region.', 'changeSet' => [ ['createdAt' => '2022-11-16T06:55:49.000Z', 'description' => 'OpenAPI offline'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPermission'], ], ], 'ramActions' => [ [ 'operationType' => 'get', 'ramAction' => [ 'action' => 'resourcesharing:GetPermission', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\",\\n \\"Permission\\": {\\n \\"PermissionName\\": \\"AliyunRSDefaultPermissionVSwitch\\",\\n \\"PermissionVersion\\": \\"v1\\",\\n \\"Permission\\": \\"{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":[\\\\\\"vpc:DescribeVSwitches\\\\\\",\\\\\\"vpc:DescribeVSwitchAttributes\\\\\\"]}\\",\\n \\"ResourceType\\": \\"VSwitch\\",\\n \\"DefaultVersion\\": true,\\n \\"CreateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"UpdateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"DefaultPermission\\": true\\n }\\n}","type":"json"}]', ], 'ListPermissionVersions' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'PermissionName', 'in' => 'query', 'schema' => ['description' => 'The name of the permission.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '04677DCA-7C33-464B-8811-1B1DA3C3D197', 'title' => ''], 'Permissions' => [ 'description' => 'The information about the permission.', 'type' => 'array', 'items' => [ 'description' => 'The information about the permission.', 'type' => 'object', 'properties' => [ 'PermissionName' => ['description' => 'The name of the permission.', 'type' => 'string', 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'PermissionVersion' => ['description' => 'The version of the permission.', 'type' => 'string', 'example' => 'v1', 'title' => ''], 'DefaultVersion' => ['description' => 'Indicates whether the version is the default version. Valid values:'."\n" ."\n" .'- false: The version is not the default version.'."\n" ."\n" .'- true: The version is the default version.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'UpdateTime' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resources.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'DefaultPermission' => ['description' => 'Indicates whether the permission is the default permission. Valid values:'."\n" ."\n" .'- false: The permission is not the default permission.'."\n" ."\n" .'- true: The permission is the default permission.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.PermissionName', 'errorMessage' => 'You must specify PermissionName.', 'description' => 'PermissionName is not configured.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ], ], 'title' => 'ListPermissionVersions', 'summary' => 'Queries the versions of a permission.', 'description' => 'This topic provides an example on how to call the API operation to query the versions of the `AliyunRSDefaultPermissionVSwitch` permission in the `cn-hangzhou` region.', 'changeSet' => [ ['createdAt' => '2022-11-16T06:55:49.000Z', 'description' => 'OpenAPI offline'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPermissionVersions'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListPermissionVersions', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"04677DCA-7C33-464B-8811-1B1DA3C3D197\\",\\n \\"Permissions\\": [\\n {\\n \\"PermissionName\\": \\"AliyunRSDefaultPermissionVSwitch\\",\\n \\"PermissionVersion\\": \\"v1\\",\\n \\"DefaultVersion\\": true,\\n \\"CreateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"UpdateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"ResourceType\\": \\"VSwitch\\",\\n \\"DefaultPermission\\": true\\n }\\n ]\\n}","type":"json"}]', ], 'ListPermissions' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The type of the shared resources.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '04677DCA-7C33-464B-8811-1B1DA3C3D197', 'title' => ''], 'Permissions' => [ 'description' => 'The information about the permission.', 'type' => 'array', 'items' => [ 'description' => 'The information about the permission.', 'type' => 'object', 'properties' => [ 'PermissionName' => ['description' => 'The name of the permission.', 'type' => 'string', 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'PermissionVersion' => ['description' => 'The version of the permission.', 'type' => 'string', 'example' => 'v1', 'title' => ''], 'DefaultVersion' => ['description' => 'Indicates whether the version is the default version. Valid values:'."\n" ."\n" .'- false: The version is not the default version.'."\n" ."\n" .'- true: The version is the default version.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'UpdateTime' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resources.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'DefaultPermission' => ['description' => 'Indicates whether the permission is the default permission. Valid values:'."\n" ."\n" .'- false: The permission is not the default permission.'."\n" ."\n" .'- true: The permission is the default permission.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ], ], 'title' => 'ListPermissions', 'summary' => 'Queries the information about the default permission.', 'description' => 'This topic provides an example on how to call the API operation to query the information about the default permission for the `VSwitch` resource type in the `cn-hangzhou` region.', 'changeSet' => [ ['createdAt' => '2022-11-16T06:55:49.000Z', 'description' => 'OpenAPI offline'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPermissions'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListPermissions', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"04677DCA-7C33-464B-8811-1B1DA3C3D197\\",\\n \\"Permissions\\": [\\n {\\n \\"PermissionName\\": \\"AliyunRSDefaultPermissionVSwitch\\",\\n \\"PermissionVersion\\": \\"v1\\",\\n \\"DefaultVersion\\": true,\\n \\"CreateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"UpdateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"ResourceType\\": \\"VSwitch\\",\\n \\"DefaultPermission\\": true\\n }\\n ]\\n}","type":"json"}]', ], 'ListResourceShareAssociations' => [ 'summary' => 'Lists the resources or principals that are associated with a resource share.', 'methods' => ['post', 'get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource.'."\n" ."\n" .'> This parameter is not available when `AssociationType` is set to `Target`.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp183p93qs667muql****', 'title' => ''], ], [ 'name' => 'ResourceArn', 'in' => 'query', 'schema' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n" ."\n" .'> This parameter is not available when `AssociationType` is set to `Target`.', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], ], [ 'name' => 'Target', 'in' => 'query', 'schema' => ['description' => 'The ID of the principal.'."\n" ."\n" .'> This parameter is not available when `AssociationType` is set to `Resource`.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], ], [ 'name' => 'AssociationType', 'in' => 'query', 'schema' => ['description' => 'The type of the association. Valid values:'."\n" ."\n" .'- `Resource`: Returns associations with shared resources.'."\n" ."\n" .'- `Target`: Returns associations with principals.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Resource', 'title' => ''], ], [ 'name' => 'AssociationStatus', 'in' => 'query', 'schema' => ['description' => 'The status of the association. Valid values:'."\n" ."\n" .'- `Associating`: The association is in progress.'."\n" ."\n" .'- `Associated`: The association is established.'."\n" ."\n" .'- `Failed`: The association failed.'."\n" ."\n" .'- `Disassociating`: Disassociation is in progress.'."\n" ."\n" .'- `Disassociated`: The association is removed.'."\n" ."\n" .'> The system automatically deletes records in the `Failed` or `Disassociated` state within 48 to 96 hours.', 'type' => 'string', 'required' => false, 'example' => 'Associated', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return per page.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The token for the next page of results. If the previous response was truncated, include this `token` to retrieve the remaining results.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceShareIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.'."\n" ."\n" .'You can specify up to 5 resource share IDs.', 'type' => 'array', 'items' => ['description' => 'A resource share ID.', 'type' => 'string', 'required' => false, 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'required' => false, 'example' => 'rs-6GRmdD3X****', 'maxItems' => 20, 'title' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The token to retrieve the next page of results. `NextToken` is returned only if the results are truncated. If this parameter is not returned, all results have been retrieved.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '11BA57B5-7301-4E2F-BBA5-2AE4C2F4FCDB', 'title' => ''], 'ResourceShareAssociations' => [ 'description' => 'A list of associations.', 'type' => 'array', 'items' => [ 'description' => 'Details of the association.', 'type' => 'object', 'properties' => [ 'UpdateTime' => ['description' => 'The time the association was last updated.'."\n" ."\n" .'- If `AssociationType` is `Resource`, this is the time the resource was updated.'."\n" ."\n" .'- If `AssociationType` is `Target`, this is the time the principal was updated.', 'type' => 'string', 'example' => '2020-12-07T07:39:02.920Z', 'title' => ''], 'EntityId' => ['description' => 'The ID of the associated entity.'."\n" ."\n" .'- If `AssociationType` is `Resource`, this is the resource ID.'."\n" ."\n" .'- If `AssociationType` is `Target`, this is the ID of the principal.', 'type' => 'string', 'example' => 'vsw-bp1upw03qyz8n7us9****', 'title' => ''], 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the associated resource.'."\n" ."\n" .'> Returned only if `AssociationType` is `Resource`.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'example', 'title' => ''], 'CreateTime' => ['description' => 'The time the association was created.'."\n" ."\n" .'- If `AssociationType` is `Resource`, this is the time the resource was associated with the resource share.'."\n" ."\n" .'- If `AssociationType` is `Target`, this is the time the principal was associated with the resource share.', 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'EntityType' => ['description' => 'The type of the associated entity.'."\n" ."\n" .'- When the entity is a resource (`AssociationType` is `Resource`), this value is the resource type. For more information, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'- When the entity is a principal (`AssociationType` is `Target`), this value is `Account`.', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'AssociationStatusMessage' => ['description' => 'The reason for the failed association.', 'type' => 'string', 'example' => 'The reason for the association failure. ', 'title' => ''], 'AssociationType' => ['description' => 'The type of the association. Valid values:'."\n" ."\n" .'- `Resource`: The entity is a resource.'."\n" ."\n" .'- `Target`: The entity is a principal.', 'type' => 'string', 'example' => 'Resource', 'title' => ''], 'AssociationStatus' => ['description' => 'The status of the association. Valid values:'."\n" ."\n" .'- Associating: The association is in progress.'."\n" ."\n" .'- Associated: The association is complete.'."\n" ."\n" .'- Failed: The association failed.'."\n" ."\n" .'- Disassociating: The disassociation is in progress.'."\n" ."\n" .'- Disassociated: The disassociation is complete.'."\n" ."\n" .'> The system automatically deletes associations in the `Failed` or `Disassociated` state within 48 to 96 hours.', 'type' => 'string', 'example' => 'Failed', 'title' => ''], 'External' => ['description' => 'Indicates whether the principal is an Alibaba Cloud Account that is not a member of your Resource Directory. Valid values:'."\n" ."\n" .'- `true`: The principal is an external Account.'."\n" ."\n" .'- `false`: The principal is a member of your Resource Directory.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], 'AssociationFailedDetails' => [ 'description' => 'Details of a failed association or disassociation.', 'type' => 'array', 'items' => [ 'description' => 'Details of the failed operation.', 'type' => 'object', 'properties' => [ 'Status' => ['description' => 'This parameter is deprecated. Use `FailureReason` instead.', 'type' => 'string', 'example' => '无', 'title' => ''], 'StatusMessage' => ['description' => 'This parameter is deprecated. Use `FailureDescription` instead.', 'type' => 'string', 'example' => '无', 'title' => ''], 'AssociateType' => ['description' => 'This parameter is deprecated. Use `OperationType` instead.', 'type' => 'string', 'example' => '无', 'title' => ''], 'ResourceArn' => ['description' => 'The ARN of the associated resource.'."\n" ."\n" .'> Returned only if `AssociationType` is `Target`.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'EntityType' => ['description' => 'The type of the entity.'."\n" ."\n" .'- If the entity is a resource, this value is the resource type. For more information, see [Services that work with Resource Sharing](~~450526~~).'."\n" ."\n" .'- If the entity is a principal, this value can be `ResourceDirectory`, `Folder`, `Account`, or `Service`.', 'type' => 'string', 'example' => 'Account', 'title' => ''], 'FailureReason' => ['description' => 'The reason for the failed association or disassociation. Valid values:'."\n" ."\n" .'- Unavailable: The sharing operation failed because the resource is unavailable. For example, the resource may have been deleted.'."\n" ."\n" .'- LimitExceeded: The resource has been shared with the maximum number of principals allowed by the Quota.'."\n" ."\n" .'- ZonalResourceInaccessible: The resource is not accessible from the current Region.'."\n" ."\n" .'- InternalError: An internal server error occurred.'."\n" ."\n" .'- UnsupportedOperation: The operation is not supported.', 'type' => 'string', 'example' => 'Unavailable', 'title' => ''], 'FailureDescription' => ['description' => 'A detailed description of the association or disassociation failure.', 'type' => 'string', 'example' => 'You cannot access the specified resource at this time.', 'title' => ''], 'OperationType' => ['description' => 'The type of the operation that failed. Valid values:'."\n" ."\n" .'- `Associate`'."\n" ."\n" .'- `Disassociate`', 'type' => 'string', 'example' => 'Associate', 'title' => ''], 'EntityId' => ['description' => 'The ID of the entity in the failed association.'."\n" ."\n" .'- If the operation involved associating a resource, this is the ID of the principal for which the association failed.'."\n" ."\n" .'- If the operation involved associating a principal, this is the ID of the resource for which the association failed.', 'type' => 'string', 'example' => '172050525300****', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], 'TargetProperty' => ['description' => 'The properties of the principal, such as the time period for resource sharing. Valid values for `timeRangeType` include:'."\n" ."\n" .'- timeRange: a specified time period.'."\n" ."\n" .'- day: the whole day.'."\n" ."\n" .'> Returned only if the principal is an Alibaba Cloud service.', 'type' => 'string', 'example' => '{'."\n" .' "timeRange":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], 'ResourceProperty' => ['description' => 'The sharing-related properties of the resource.', 'type' => 'string', 'example' => '{"sharePrincipals":true,"shareTagOptions":false}', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.AssociationType', 'errorMessage' => 'You must specify AssociationType.', 'description' => 'You must specify AssociationType.'], ['errorCode' => 'InvalidParameter.AssociationType', 'errorMessage' => 'The AssociationType is invalid.', 'description' => 'The AssociationType parameter is invalid.'], ['errorCode' => 'InvalidParameter.AssociationStatus', 'errorMessage' => 'The AssociationStatus is invalid.', 'description' => 'The AssociationStatus parameter is invalid.'], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ['errorCode' => 'InvalidParameter.ResourceShareIds', 'errorMessage' => 'The ResourceShareIds is invalid.', 'description' => 'The ResourceShareIds parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Duplicate', 'errorMessage' => 'The ResourceShareIds contains duplicate values.', 'description' => 'The ResourceShareIds parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Length', 'errorMessage' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'description' => 'The number of ResourceShareIds values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Target', 'errorMessage' => 'The Target is invalid.', 'description' => 'The Target parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceId', 'errorMessage' => 'The ResourceId is invalid.', 'description' => 'The ResourceId parameter is invalid.'], ['errorCode' => 'ConflictedAssociationType', 'errorMessage' => 'The specified ResourceId or Target conflicts with AssociationType.', 'description' => 'The specified parameter conflicts with AssociationType.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArn', 'errorMessage' => 'The ResourceArn is invalid.', 'description' => 'The ResourceArn is invalid.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"11BA57B5-7301-4E2F-BBA5-2AE4C2F4FCDB\\",\\n \\"ResourceShareAssociations\\": [\\n {\\n \\"UpdateTime\\": \\"2020-12-07T07:39:02.920Z\\",\\n \\"EntityId\\": \\"vsw-bp1upw03qyz8n7us9****\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceShareName\\": \\"example\\",\\n \\"CreateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"EntityType\\": \\"VSwitch\\",\\n \\"ResourceShareId\\": \\"rs-6GRmdD3X****\\",\\n \\"AssociationStatusMessage\\": \\"The reason for the association failure. \\",\\n \\"AssociationType\\": \\"Resource\\",\\n \\"AssociationStatus\\": \\"Failed\\",\\n \\"External\\": false,\\n \\"AssociationFailedDetails\\": [\\n {\\n \\"Status\\": \\"无\\",\\n \\"StatusMessage\\": \\"无\\",\\n \\"AssociateType\\": \\"无\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"EntityType\\": \\"Account\\",\\n \\"FailureReason\\": \\"Unavailable\\",\\n \\"FailureDescription\\": \\"You cannot access the specified resource at this time.\\",\\n \\"OperationType\\": \\"Associate\\",\\n \\"EntityId\\": \\"172050525300****\\"\\n }\\n ],\\n \\"TargetProperty\\": \\"{\\\\n \\\\\\"timeRange\\\\\\":{\\\\n \\\\\\"timeRangeType\\\\\\":\\\\\\"timeRange\\\\\\",\\\\n \\\\\\"beginAtTime\\\\\\":\\\\\\"00:00\\\\\\",\\\\n \\\\\\"timezone\\\\\\":\\\\\\"UTC+8\\\\\\",\\\\n \\\\\\"endAtTime\\\\\\":\\\\\\"19:59\\\\\\"\\\\n }\\\\n}\\",\\n \\"ResourceProperty\\": \\"{\\\\\\"sharePrincipals\\\\\\":true,\\\\\\"shareTagOptions\\\\\\":false}\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListResourceShareAssociations', 'description' => 'This example shows how to query for association records of Shared Resources within Resource Shares created by the current account in the `China (Hangzhou)` Region. The response shows records for the following two Shared Resources:'."\n" ."\n" .'- A `VSwitch` Shared Resource, `vsw-bp1upw03qyz8n7us9****`, was associated with the Resource Share `rs-6GRmdD3X****`. The resource is in the `Associated` state, meaning it is actively shared.'."\n" ."\n" .'- A `VSwitch` Shared Resource, `vsw-bp183p93qs667muql****`, was disassociated from the Resource Share `rs-6GRmdD3X****`. The resource is in the `Disassociated` state, meaning it is no longer shared.', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [ ['createdAt' => '2024-02-04T09:38:47.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2024-01-03T06:52:33.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2021-11-18T02:23:30.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceShareAssociations'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceShareAssociations', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'ListResourceShareInvitations' => [ 'summary' => 'Queries the resource sharing invitations that you have received.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceShareIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => false, 'example' => 'rs-ysGRci9z****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'ResourceShareInvitationIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource sharing invitations.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource sharing invitation.', 'type' => 'string', 'required' => false, 'example' => 'i-p6eRytrkjVvM****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '30EC8328-1BDE-51D5-BFAB-039508BD91A1', 'title' => ''], 'ResourceShareInvitations' => [ 'description' => 'The information about the resource sharing invitations.', 'type' => 'array', 'items' => [ 'description' => 'The information about the resource sharing invitation.', 'type' => 'object', 'properties' => [ 'Status' => ['description' => 'The status of the invitation. Valid values:'."\n" ."\n" .'- Pending: The invitation is pending confirmation.'."\n" ."\n" .'- Accepted: The invitation is accepted.'."\n" ."\n" .'- Cancelled: The invitation is canceled.'."\n" ."\n" .'- Rejected: The invitation is rejected.'."\n" ."\n" .'- Expired: The invitation is expired.'."\n" ."\n" .'- AcceptFailed: The invitation failed to be accepted.', 'type' => 'string', 'example' => 'Pending', 'title' => ''], 'CreateTime' => ['description' => 'The time when the invitation was created. The time is displayed in UTC.', 'type' => 'string', 'example' => '2022-08-18T05:36:45.024Z', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-ysGRci9z****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'example', 'title' => ''], 'SenderAccountId' => ['description' => 'The ID of the Alibaba Cloud account that sent the invitation.', 'type' => 'string', 'example' => '151266687691****', 'title' => ''], 'ReceiverAccountId' => ['description' => 'The ID of the Alibaba Cloud account that received the invitation.', 'type' => 'string', 'example' => '134254031178****', 'title' => ''], 'ResourceShareInvitationId' => ['description' => 'The ID of the resource sharing invitation.', 'type' => 'string', 'example' => 'i-p6eRytrkjVvM****', 'title' => ''], 'InvitationFailedDetails' => [ 'description' => 'The information about the failure.', 'type' => 'array', 'items' => [ 'description' => 'The information about the failure.', 'type' => 'object', 'properties' => [ 'Status' => ['description' => 'This parameter is deprecated. Use FailureReason instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'StatusMessage' => ['description' => 'This parameter is deprecated. Use FailureDescription instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'AssociateType' => ['description' => 'This parameter is deprecated. Use OperationType instead.', 'type' => 'string', 'example' => 'None', 'title' => ''], 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the shared resource.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'Snapshot', 'title' => ''], 'FailureReason' => ['description' => 'The failure cause. Valid values:'."\n" ."\n" .'- Unavailable: The resource cannot be shared.'."\n" ."\n" .'- LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.'."\n" ."\n" .'- ZonalResourceInaccessible: The resource is inaccessible in this region.'."\n" ."\n" .'- InternalError: An internal error occurred on the server during the check.'."\n" ."\n" .'- UnsupportedOperation: The operation is not supported.', 'type' => 'string', 'example' => 'Unavailable', 'title' => ''], 'FailureDescription' => ['description' => 'The failure description.', 'type' => 'string', 'example' => 'You cannot access the specified resource at this time.', 'title' => ''], 'OperationType' => ['description' => 'The operation type. Valid values:'."\n" ."\n" .'- Associate'."\n" ."\n" .'- Disassociate', 'type' => 'string', 'example' => 'Associate', 'title' => ''], 'ResourceId' => ['description' => 'The ID of the shared resource.', 'type' => 'string', 'example' => 's-7xvh46nx5oqlre0wv***', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ['errorCode' => 'InvalidParameter.ResourceShareIds', 'errorMessage' => 'The ResourceShareIds is invalid.', 'description' => 'The ResourceShareIds parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Duplicate', 'errorMessage' => 'The ResourceShareIds contains duplicate values.', 'description' => 'The ResourceShareIds parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Length', 'errorMessage' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'description' => 'The number of ResourceShareIds values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.ResourceShareInvitationIds', 'errorMessage' => 'The ResourceShareInvitationIds is invalid.', 'description' => 'The value of ResourceShareInvitationIds is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareInvitationIds.Duplicate', 'errorMessage' => 'The ResourceShareInvitationIds duplicate values.', 'description' => 'ResourceShareInvitationIds is already configured.'], ['errorCode' => 'InvalidParameter.ResourceShareInvitationIds.Length', 'errorMessage' => 'The maximum length of ResourceShareInvitationIds exceeds quota limit.', 'description' => 'The length of the value specified for ResourceShareInvitationIds exceeds the limit.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"30EC8328-1BDE-51D5-BFAB-039508BD91A1\\",\\n \\"ResourceShareInvitations\\": [\\n {\\n \\"Status\\": \\"Pending\\",\\n \\"CreateTime\\": \\"2022-08-18T05:36:45.024Z\\",\\n \\"ResourceShareId\\": \\"rs-ysGRci9z****\\",\\n \\"ResourceShareName\\": \\"example\\",\\n \\"SenderAccountId\\": \\"151266687691****\\",\\n \\"ReceiverAccountId\\": \\"134254031178****\\",\\n \\"ResourceShareInvitationId\\": \\"i-p6eRytrkjVvM****\\",\\n \\"InvitationFailedDetails\\": [\\n {\\n \\"Status\\": \\"None\\",\\n \\"StatusMessage\\": \\"None\\",\\n \\"AssociateType\\": \\"None\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceType\\": \\"Snapshot\\",\\n \\"FailureReason\\": \\"Unavailable\\",\\n \\"FailureDescription\\": \\"You cannot access the specified resource at this time.\\",\\n \\"OperationType\\": \\"Associate\\",\\n \\"ResourceId\\": \\"s-7xvh46nx5oqlre0wv***\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListResourceShareInvitations', 'description' => '### Usage notes'."\n" ."\n" .'This topic provides an example of how to query the resource sharing invitations for the current account in the `cn-hangzhou` region. The response shows one invitation that is in the Pending state.', 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).', 'changeSet' => [ ['createdAt' => '2024-02-04T09:38:47.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-12-25T08:58:53.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2022-07-11T06:20:12.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceShareInvitations'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceShareInvitations', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'ListResourceSharePermissions' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-6GRmdD3X****', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.'."\n", 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceOwner', 'in' => 'query', 'schema' => ['description' => 'The owner of the resource share. Valid values:'."\n" ."\n" .'* Self: the current account'."\n" .'* OtherAccounts: an account other than the current account'."\n", 'type' => 'string', 'required' => true, 'example' => 'Self', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.'."\n", 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA', 'title' => ''], 'Permissions' => [ 'description' => 'The information about the permissions.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the permissions.', 'type' => 'object', 'properties' => [ 'PermissionName' => ['description' => 'The name of the permission.'."\n", 'type' => 'string', 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], 'PermissionVersion' => ['description' => 'The version of the permission.'."\n", 'type' => 'string', 'example' => 'v1', 'title' => ''], 'DefaultVersion' => ['description' => 'Indicates whether the version is the default version. Valid values:'."\n" ."\n" .'* false: The version is not the default version.'."\n" .'* true: The version is the default version.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'CreateTime' => ['description' => 'The creation time.'."\n", 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'UpdateTime' => ['description' => 'The update time.'."\n", 'type' => 'string', 'example' => '2020-12-07T07:39:01.818Z', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resources.'."\n" ."\n" .'For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).'."\n", 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'DefaultPermission' => ['description' => 'Indicates whether the permission is the default permission. Valid values:'."\n" ."\n" .'* false: The permission is not the default permission.'."\n" .'* true: The permission is the default permission.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], 'title' => '', ], 'title' => '', ], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceOwner', 'errorMessage' => 'The ResourceOwner is invalid.', 'description' => ''], ['errorCode' => 'MissingParameter.ResourceOwner', 'errorMessage' => 'You must specify ResourceOwner.', 'description' => ''], ], 404 => [ ['errorCode' => 'EntityNotExists.ResourceShare', 'errorMessage' => 'The resource share does not exist in the current account.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\",\\n \\"Permissions\\": [\\n {\\n \\"PermissionName\\": \\"AliyunRSDefaultPermissionVSwitch\\",\\n \\"PermissionVersion\\": \\"v1\\",\\n \\"DefaultVersion\\": true,\\n \\"CreateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"UpdateTime\\": \\"2020-12-07T07:39:01.818Z\\",\\n \\"ResourceType\\": \\"VSwitch\\",\\n \\"DefaultPermission\\": true\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n TGlzdFJlc291cm****\\n 2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\n \\n AliyunRSDefaultPermissionVSwitch\\n v1\\n true\\n 2020-12-07T07:39:01.818Z\\n 2020-12-07T07:39:01.818Z\\n VSwitch\\n true\\n \\n","errorExample":""}]', 'title' => 'ListResourceSharePermissions', 'summary' => 'Queries the permissions that are associated with a resource share.', 'description' => 'This topic provides an example on how to call the API operation to query the permissions that are associated with the resource share created by using the current Alibaba Cloud account in the `cn-hangzhou` region.', 'changeSet' => [], ], 'ListResourceShares' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceOwner', 'in' => 'query', 'schema' => ['description' => 'The owner of the resource shares. Valid values:'."\n" ."\n" .'* Self: the current account'."\n" .'* OtherAccounts: an account other than the current account'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Self', 'title' => ''], ], [ 'name' => 'ResourceShareName', 'in' => 'query', 'schema' => ['description' => 'The name of the resource share.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], ], [ 'name' => 'ResourceShareStatus', 'in' => 'query', 'schema' => ['description' => 'The status of the resource shares. Valid values:'."\n" ."\n" .'* Active'."\n" .'* Pending'."\n" .'* Deleting'."\n" .'* Deleted'."\n" ."\n" .'> The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Active', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The `token` that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.'."\n", 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceShareIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.'."\n" ."\n" .'Valid values of N: 1 to 5. This indicates that a maximum of five resource shares can be specified at a time.'."\n", 'type' => 'array', 'items' => ['description' => 'The ID of a resource share.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rs-PqysnzIj****', 'title' => ''], 'required' => false, 'example' => 'rs-PqysnzIj****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'PermissionName', 'in' => 'query', 'schema' => ['description' => 'The information about the permissions. For more information, see [Permission library](~~465474~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'AliyunRSDefaultPermissionVSwitch', 'title' => ''], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource group.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rg-aekz5nlvlak****', 'title' => ''], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The tags.'."\n", 'type' => 'array', 'items' => [ 'description' => 'A tag.'."\n", 'type' => 'object', 'properties' => [ 'Key' => ['description' => 'The tag key.'."\n" ."\n" .'> The tag key can be 128 characters in length and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.'."\n", 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], 'Value' => ['description' => 'The tag value.'."\n" ."\n" .'> The tag value can be 128 characters in length and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.'."\n", 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], ], 'required' => false, 'title' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The `token` that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.'."\n", 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA', 'title' => ''], 'ResourceShares' => [ 'description' => 'The information about the resource shares.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about a resource share.'."\n", 'type' => 'object', 'properties' => [ 'AllowExternalTargets' => ['description' => 'Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:'."\n" ."\n" .'* false: Resources in the resource share can be shared only with accounts in the resource directory.'."\n" .'* true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''], 'CreateTime' => ['description' => 'The time when the resource share was created.'."\n", 'type' => 'string', 'example' => '2020-12-03T02:20:31.292Z', 'title' => ''], 'ResourceGroupId' => ['description' => 'The ID of the resource group.'."\n", 'type' => 'string', 'example' => 'rg-aekz5nlvlak****', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'example' => 'rs-PqysnzIj****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], 'ResourceShareOwner' => ['description' => 'The owner of the resource share.'."\n", 'type' => 'string', 'example' => '151266687691****', 'title' => ''], 'ResourceShareStatus' => ['description' => 'The status of the resource share. Valid values:'."\n" ."\n" .'* Active'."\n" .'* Pending'."\n" .'* Deleting'."\n" .'* Deleted'."\n" ."\n" .'> The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.'."\n", 'type' => 'string', 'example' => 'Active', 'title' => ''], 'Tags' => [ 'description' => 'The tags.'."\n", 'type' => 'array', 'items' => [ 'description' => 'A tag.'."\n", 'type' => 'object', 'properties' => [ 'Key' => ['description' => 'The tag key.'."\n", 'type' => 'string', 'example' => 'k1', 'title' => ''], 'Value' => ['description' => 'The tag value.'."\n", 'type' => 'string', 'example' => 'v1', 'title' => ''], ], 'title' => '', ], 'title' => '', ], 'UpdateTime' => ['description' => 'The time when the resource share was updated.'."\n", 'type' => 'string', 'example' => '2020-12-03T08:01:43.638Z', 'title' => ''], ], 'title' => '', ], 'title' => '', ], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceOwner', 'errorMessage' => 'You must specify ResourceOwner.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceOwner', 'errorMessage' => 'The ResourceOwner is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareName', 'errorMessage' => 'The ResourceShareName is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareName.Length', 'errorMessage' => 'The maximum length of ResourceShareName exceeds 50 characters.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareStatus', 'errorMessage' => 'The ResourceShareStatus is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareIds', 'errorMessage' => 'The ResourceShareIds is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareIds.Duplicate', 'errorMessage' => 'The ResourceShareIds contains duplicate values.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceShareIds.Length', 'errorMessage' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'description' => ''], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ['errorCode' => 'InvalidParameter.ResourceOwnerAndTag', 'errorMessage' => 'You cannot use ResourceOwner set to OtherAccounts and tags in one request.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\",\\n \\"ResourceShares\\": [\\n {\\n \\"AllowExternalTargets\\": false,\\n \\"CreateTime\\": \\"2020-12-03T02:20:31.292Z\\",\\n \\"ResourceGroupId\\": \\"rg-aekz5nlvlak****\\",\\n \\"ResourceShareId\\": \\"rs-PqysnzIj****\\",\\n \\"ResourceShareName\\": \\"test\\",\\n \\"ResourceShareOwner\\": \\"151266687691****\\",\\n \\"ResourceShareStatus\\": \\"Active\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"UpdateTime\\": \\"2020-12-03T08:01:43.638Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n \\n rs-hX9wC5jO****\\n test1\\n Deleted\\n 2020-12-03T02:47:14.651Z\\n 2020-12-03T08:01:56.696Z\\n 151266687691****\\n false\\n \\n \\n rs-PqysnzIj****\\n test\\n Active\\n 2020-12-03T02:20:31.292Z\\n 2020-12-03T08:01:43.638Z\\n 151266687691****\\n true\\n \\n 2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA\\n","errorExample":""}]', 'title' => 'ListResourceShares', 'summary' => 'Queries resource shares.', 'description' => 'This topic provides an example on how to call the API operation to query the resource shares that are created by using the current Alibaba Cloud account in the `cn-hangzhou` region. The response shows that the following resource shares are created within the account `151266687691****`:'."\n" ."\n" .'* `rs-hX9wC5jO****`, which is in the `Deleted` state'."\n" .'* `rs-PqysnzIj****`, which is in the `Active` state'."\n", 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).'."\n", 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [], ], 'ListSharedResources' => [ 'summary' => 'Queries the resources you share with other accounts or the resources other accounts share with you.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceOwner', 'in' => 'query', 'schema' => ['description' => 'The owner of the resource share. Valid values:'."\n" ."\n" .'- Self: Queries the resources that you shared with other accounts from your resource shares.'."\n" ."\n" .'- OtherAccounts: Queries the resources that were shared with you by other accounts.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Self', 'title' => ''], ], [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'For more information about the resource types that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], ], [ 'name' => 'Target', 'in' => 'query', 'schema' => ['description' => 'The ID of the principal or resource owner.'."\n" ."\n" .'- If you set `ResourceOwner` to `Self`, this parameter is the ID of a principal.'."\n" ."\n" .'- If you set `ResourceOwner` to `OtherAccounts`, this parameter is the ID of a resource owner.', 'type' => 'string', 'required' => false, 'example' => '172050525300****', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceShareIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The ID of the resource share.'."\n" ."\n" .'The value of N ranges from 1 to 5. You can specify up to 5 resource share IDs.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => false, 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'required' => false, 'example' => 'rs-6GRmdD3X****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'ResourceIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The ID of the shared resource.'."\n" ."\n" .'The value of N ranges from 1 to 5. You can specify up to 5 shared resource IDs.', 'type' => 'array', 'items' => ['description' => 'The ID of the shared resource.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1upw03qyz8n7us9****', 'title' => ''], 'required' => false, 'example' => 'vsw-bp1upw03qyz8n7us9****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'ResourceArns', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => ['description' => 'The ARN of the shared resource.'."\n" ."\n" .'> For more information about the format of a resource ARN, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'required' => false, 'maxItems' => 20, 'description' => 'A list of Alibaba Cloud Resource Names (ARNs) of the shared resources.'."\n" ."\n" .'The value of N ranges from 1 to 5. You can specify up to 5 shared resources.', 'title' => '', 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '04677DCA-7C33-464B-8811-1B1DA3C3D197', 'title' => ''], 'SharedResources' => [ 'description' => 'The information about the shared resources.', 'type' => 'array', 'items' => [ 'description' => 'The information about the shared resource.', 'type' => 'object', 'properties' => [ 'UpdateTime' => ['description' => 'The time when the shared resource was updated.', 'type' => 'string', 'example' => '2020-12-07T07:39:02.921Z', 'title' => ''], 'ResourceType' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'For more information about the resource types that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'example' => 'VSwitch', 'title' => ''], 'CreateTime' => ['description' => 'The time when the resource was associated with the resource share.', 'type' => 'string', 'example' => '2020-12-07T07:39:02.921Z', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'ResourceArn' => ['description' => 'The ARN of the shared resource.', 'type' => 'string', 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], 'ResourceStatus' => ['description' => 'The status of the shared resource. This parameter is returned only when you query resources that were shared with you. This parameter is not returned when you query resources that you shared.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'- Available: The resource is available.'."\n" ."\n" .'- ZonalResourceInaccessible: The resource is unavailable in the current zone.'."\n" ."\n" .'- LimitExceeded: The resource is unavailable because the quota is exceeded.'."\n" ."\n" .'- Unavailable: The resource is unavailable.', 'type' => 'string', 'example' => 'Available', 'title' => ''], 'ResourceStatusMessage' => ['description' => 'The reason why the association failed.', 'type' => 'string', 'example' => 'The reason for the association failure. ', 'title' => ''], 'ResourceId' => ['description' => 'The ID of the shared resource.', 'type' => 'string', 'example' => 'vsw-bp1upw03qyz8n7us9****', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceOwner', 'errorMessage' => 'You must specify ResourceOwner.', 'description' => 'You must specify ResourceOwner.'], ['errorCode' => 'InvalidParameter.ResourceOwner', 'errorMessage' => 'The ResourceOwner is invalid.', 'description' => 'The ResourceOwner parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ['errorCode' => 'InvalidParameter.ResourceShareIds', 'errorMessage' => 'The ResourceShareIds is invalid.', 'description' => 'The ResourceShareIds parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Duplicate', 'errorMessage' => 'The ResourceShareIds contains duplicate values.', 'description' => 'The ResourceShareIds parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Length', 'errorMessage' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'description' => 'The number of ResourceShareIds values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.ResourceIds', 'errorMessage' => 'The ResourceIds is invalid.', 'description' => 'The specified ResourceIds parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceIds.Duplicate', 'errorMessage' => 'The specified ResourceId contains duplicate values.', 'description' => 'The specified ResourceIds parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceIds.Length', 'errorMessage' => 'The maximum number of ResourceIds (5) is exceeded.', 'description' => 'The number of specified ResourceIds values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Target', 'errorMessage' => 'The Target is invalid.', 'description' => 'The Target parameter is invalid.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns', 'errorMessage' => 'The ResourceArns is invalid.', 'description' => 'The ResourceArns parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArns.Duplicate', 'errorMessage' => 'The ResourceArns contains duplicate values.', 'description' => 'The ResourceArns contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceArns.Length', 'errorMessage' => 'The ResourceArns beyond the length limit.', 'description' => 'The maximum number of ResourceArns exceeds 5.'], ['errorCode' => 'NotSupport.ResourceType.ResourcesParameter', 'errorMessage' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.', 'description' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"04677DCA-7C33-464B-8811-1B1DA3C3D197\\",\\n \\"SharedResources\\": [\\n {\\n \\"UpdateTime\\": \\"2020-12-07T07:39:02.921Z\\",\\n \\"ResourceType\\": \\"VSwitch\\",\\n \\"CreateTime\\": \\"2020-12-07T07:39:02.921Z\\",\\n \\"ResourceShareId\\": \\"rs-6GRmdD3X****\\",\\n \\"ResourceArn\\": \\"acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****\\",\\n \\"ResourceStatus\\": \\"Available\\",\\n \\"ResourceStatusMessage\\": \\"The reason for the association failure. \\",\\n \\"ResourceId\\": \\"vsw-bp1upw03qyz8n7us9****\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListSharedResources', 'description' => 'This example shows how to query the resources that you shared in the `cn-hangzhou` region. The response indicates that you shared only one resource, which is a `VSwitch` with the ID `vsw-bp1upw03qyz8n7us9****` in the resource share `rs-6GRmdD3X****`.', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [ ['createdAt' => '2023-10-23T10:00:24.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-10-23T03:19:32.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2021-11-18T02:23:30.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSharedResources'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListSharedResources', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'ListSharedTargets' => [ 'summary' => 'Queries a list of principals.', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceOwner', 'in' => 'query', 'schema' => ['description' => 'The owner of the resource share.'."\n" ."\n" .'- Self: Queries the principals that are associated with the resource shares you created.'."\n" ."\n" .'- OtherAccounts: Queries the resource shares that other accounts created and shared with you, and the owners of these resource shares.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Self', 'title' => ''], ], [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The type of the shared resource.'."\n" ."\n" .'For more information about the resource types that can be shared, see [Services that work with Resource Sharing](~~450526~~).', 'type' => 'string', 'required' => false, 'example' => 'VSwitch', 'title' => ''], ], [ 'name' => 'ResourceId', 'in' => 'query', 'schema' => ['description' => 'The ID of the shared resource.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1upw03qyz8n7us9****', 'title' => ''], ], [ 'name' => 'ResourceArn', 'in' => 'query', 'schema' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the shared resource.', 'type' => 'string', 'required' => false, 'example' => 'acs:vpc:cn-shanghai:103755469187****:vswitch/vsw-uf62b11ue4m8oz2di****', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => 'The maximum number of entries to return for a single request.'."\n" ."\n" .'Valid values: 1 to 100. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'required' => false, 'example' => 'TGlzdFJlc291cm****', 'title' => ''], ], [ 'name' => 'ResourceShareIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of resource shares.'."\n" ."\n" .'The value of N can be from 1 to 5. You can specify up to 5 resource share IDs.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource share.'."\n" ."\n" .'The value of N can be from 1 to 5. You can specify up to 5 resource share IDs.', 'type' => 'string', 'required' => false, 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'required' => false, 'example' => 'rs-6GRmdD3X****', 'maxItems' => 20, 'title' => '', ], ], [ 'name' => 'Targets', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The principals.', 'type' => 'array', 'items' => ['description' => 'The principal. Valid values:'."\n" ."\n" .'- If you set `AllowExternalTargets` to `false`, the principal can be the ID of a resource directory, folder, or member.'."\n" ."\n" .'- If you set `AllowExternalTargets` to `true`, the principal can be the ID of an Alibaba Cloud account, resource directory, folder, or member, or the name of an Alibaba Cloud service.'."\n" ."\n" .'For more information, see [Methods of resource sharing](~~160622~~), [View the ID of a resource directory](~~111217~~), [View the ID of a folder](~~111223~~), or [View the ID of a member](~~111624~~).'."\n" ."\n" .'The value of N can be from 1 to 5. You can add up to 5 principals at a time.', 'type' => 'string', 'required' => false, 'example' => '114240524784****', 'title' => ''], 'required' => false, 'example' => '114240524784****', 'maxItems' => 20, 'title' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. If the response is truncated, you can use this token to initiate another request and retrieve the remaining entries.', 'type' => 'string', 'example' => 'TGlzdFJlc291cm****', 'title' => ''], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '04677DCA-7C33-464B-8811-1B1DA3C3D197', 'title' => ''], 'SharedTargets' => [ 'description' => 'The information about the principals.', 'type' => 'array', 'items' => [ 'description' => 'The information about the principal.', 'type' => 'object', 'properties' => [ 'TargetId' => ['description' => 'The ID of the principal or the resource owner. Valid values:'."\n" ."\n" .'- If you set `ResourceOwner` to `Self`, this parameter is the ID of the principal.'."\n" ."\n" .'- If you set `ResourceOwner` to `OtherAccounts`, this parameter is the ID of the resource owner.', 'type' => 'string', 'example' => '114240524784****', 'title' => ''], 'UpdateTime' => ['description' => 'The time when the association with the principal was updated.', 'type' => 'string', 'example' => '2020-12-07T09:16:59.905Z', 'title' => ''], 'CreateTime' => ['description' => 'The time when the principal was associated with the resource share.', 'type' => 'string', 'example' => '2020-12-07T09:16:59.905Z', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-6GRmdD3X****', 'title' => ''], 'External' => ['description' => 'Indicates whether the principal is an account outside the resource directory. Valid values:'."\n" ."\n" .'- true'."\n" ."\n" .'- false', 'type' => 'boolean', 'example' => 'false', 'title' => ''], 'TargetProperty' => ['description' => 'The properties of the principal. For example, the time period for resource sharing.'."\n" ."\n" .'> This parameter is returned only when the principal is an Alibaba Cloud service.', 'type' => 'string', 'example' => '{'."\n" .' "timeRange":{'."\n" .' "timeRangeType":"timeRange",'."\n" .' "beginAtTime":"00:00",'."\n" .' "timezone":"UTC+8",'."\n" .' "endAtTime":"19:59"'."\n" .' }'."\n" .'}', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceOwner', 'errorMessage' => 'You must specify ResourceOwner.', 'description' => 'You must specify ResourceOwner.'], ['errorCode' => 'InvalidParameter.ResourceOwner', 'errorMessage' => 'The ResourceOwner is invalid.', 'description' => 'The ResourceOwner parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType is invalid.', 'description' => 'The specified ResourceType parameter is invalid.'], ['errorCode' => 'InvalidParameter.MaxResults', 'errorMessage' => 'The MaxResults is invalid.', 'description' => 'The MaxResults parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'InvalidParameter.NextToken.Length', 'errorMessage' => 'The maximum length of NextToken exceeds 256 characters.', 'description' => 'The length of NextToken cannot exceed 256 characters.'], ['errorCode' => 'InvalidParameter.ResourceShareIds', 'errorMessage' => 'The ResourceShareIds is invalid.', 'description' => 'The ResourceShareIds parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Duplicate', 'errorMessage' => 'The ResourceShareIds contains duplicate values.', 'description' => 'The ResourceShareIds parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.ResourceShareIds.Length', 'errorMessage' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'description' => 'The number of ResourceShareIds values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.Targets', 'errorMessage' => 'The Targets is invalid.', 'description' => 'The specified Targets parameter is invalid.'], ['errorCode' => 'InvalidParameter.Targets.Duplicate', 'errorMessage' => 'The Targets contains duplicate values.', 'description' => 'The specified Targets parameter contains duplicate values.'], ['errorCode' => 'InvalidParameter.Targets.Length', 'errorMessage' => 'The maximum number of Targets exceeds 5.', 'description' => 'The number of Targets values cannot exceed 5.'], ['errorCode' => 'InvalidParameter.ResourceId', 'errorMessage' => 'The ResourceId is invalid.', 'description' => 'The ResourceId parameter is invalid.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceArn', 'errorMessage' => 'The ResourceArn is invalid.', 'description' => 'The ResourceArn is invalid.'], ['errorCode' => 'InvalidParameter.ResourceConflict', 'errorMessage' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.', 'description' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"TGlzdFJlc291cm****\\",\\n \\"RequestId\\": \\"04677DCA-7C33-464B-8811-1B1DA3C3D197\\",\\n \\"SharedTargets\\": [\\n {\\n \\"TargetId\\": \\"114240524784****\\",\\n \\"UpdateTime\\": \\"2020-12-07T09:16:59.905Z\\",\\n \\"CreateTime\\": \\"2020-12-07T09:16:59.905Z\\",\\n \\"ResourceShareId\\": \\"rs-6GRmdD3X****\\",\\n \\"External\\": false,\\n \\"TargetProperty\\": \\"{\\\\n \\\\\\"timeRange\\\\\\":{\\\\n \\\\\\"timeRangeType\\\\\\":\\\\\\"timeRange\\\\\\",\\\\n \\\\\\"beginAtTime\\\\\\":\\\\\\"00:00\\\\\\",\\\\n \\\\\\"timezone\\\\\\":\\\\\\"UTC+8\\\\\\",\\\\n \\\\\\"endAtTime\\\\\\":\\\\\\"19:59\\\\\\"\\\\n }\\\\n}\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListSharedTargets', 'description' => 'If you are a resource owner, you can query the principals that you share your resources with. If you are a principal, you can query the resource shares that you are a part of.'."\n" ."\n" .'This topic provides an example of how to query the list of principals for a resource share that you created in the `cn-hangzhou` region. The response shows that you shared resources with the principals `114240524784****` and `172050525300****`.', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [ ['createdAt' => '2024-01-03T06:52:32.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-10-23T10:00:24.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-10-23T03:19:32.000Z', 'description' => 'Response parameters changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSharedTargets'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListSharedTargets', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], ], 'ListTagResources' => [ 'path' => '', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'list', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => ['FEATUREentconsoleNPCJ32', 'FEATUREentconsoleI2HU3Z'], ], 'parameters' => [ [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The resource type. Set the value to `ResourceShare`, which indicates a resource share.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ResourceShare'], ], [ 'name' => 'ResourceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.'."\n" ."\n" .'You can specify up to 20 resource share IDs.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => false, 'example' => 'rs-PqysnzIj****', 'title' => ''], 'required' => false, 'maxItems' => 51, 'title' => '', 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The ID of the region to which the resource share belongs.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The tags.'."\n" ."\n" .'You can specify up to 20 tags.', 'type' => 'array', 'items' => [ 'description' => 'The tag.', 'type' => 'object', 'properties' => [ 'Key' => ['description' => 'The tag key.'."\n" ."\n" .'> The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], 'Value' => ['description' => 'The tag value.'."\n" ."\n" .'> The tag value can be up to 128 characters in length and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => false, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n" ."\n" .'If the response of the current request is truncated, you can use the `token` to initiate another request and obtain the remaining entries.', 'type' => 'string', 'required' => false, 'example' => 'caeba0bbb2be03f84eb48b699f0a****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'NextToken' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n" ."\n" .'If the response of the current request is truncated, you can use the `token` to initiate another request and obtain the remaining entries.', 'type' => 'string', 'example' => 'caeba0bbb2be03f84eb48b699f0a****', 'title' => ''], 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8054B059-6B36-53BF-AA45-B8C9A0ED05AB'], 'TagResources' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'TagResource' => [ 'description' => 'The tags.', 'type' => 'array', 'items' => [ 'description' => 'The tag.', 'type' => 'object', 'properties' => [ 'ResourceId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-PqysnzIj****', 'title' => ''], 'ResourceType' => ['description' => 'The resource type.'."\n" ."\n" .'Set the value to `ResourceShare`, which indicates a resource share.', 'type' => 'string', 'example' => 'ResourceShare', 'title' => ''], 'TagKey' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'k1', 'title' => ''], 'TagValue' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'v1', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'description' => 'Details about the tags.', 'title' => '', 'example' => '', ], ], 'example' => '', ], ], [ 'schema' => [ 'type' => 'object', 'properties' => [], 'description' => '', 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => 'The NextToken parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceIdOrTag', 'errorMessage' => 'You must specify ResourceId or Tag.', 'description' => 'You must specify ResourceId or Tag.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => 'The ResourceType parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => 'The resource type parameter cannot be empty.'], ['errorCode' => 'MissingParameter.TagKey', 'errorMessage' => 'You must specify TagKey.', 'description' => 'You must specify TagKey.'], ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => 'The maximum number of ResourceIds is exceeded.'], ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of Tags is exceeded.', 'description' => 'The maximum number of Tags is exceeded.'], ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The TagKey contains duplicate keys.', 'description' => 'The TagKey contains duplicate keys.'], ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The specified ResourceIds are not found in our records.', 'description' => 'The specified ResourceIds are not found in our records.'], ], 403 => [ ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => 'You are not authorized to perform this action.'], ], 500 => [ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => 'The request processing has failed due to some unknown error.'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'ListTagResources', 'summary' => 'Queries the tags attached to one or more resource shares.', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListTagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a****\\",\\n \\"RequestId\\": \\"8054B059-6B36-53BF-AA45-B8C9A0ED05AB\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceId\\": \\"rs-PqysnzIj****\\",\\n \\"ResourceType\\": \\"ResourceShare\\",\\n \\"TagKey\\": \\"k1\\",\\n \\"TagValue\\": \\"v1\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], 'RejectResourceShareInvitation' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ResourceShareInvitationId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource sharing invitation.'."\n" ."\n" .'You can call the [ListResourceShareInvitations](~~450564~~) operation to obtain the ID of a resource sharing invitation.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i-yyTWbkjHArYh****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'E446D6DE-BFC8-5F37-A494-33D7B118147D', 'title' => ''], 'ResourceShareInvitation' => [ 'description' => 'The information of the resource sharing invitation.'."\n", 'type' => 'object', 'properties' => [ 'ResourceShareInvitationId' => ['description' => 'The ID of the invitation.'."\n", 'type' => 'string', 'required' => true, 'example' => 'i-yyTWbkjHArYh****', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.'."\n", 'type' => 'string', 'required' => true, 'example' => 'rs-JoA1Ayjm****', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example', 'title' => ''], 'SenderAccountId' => ['description' => 'The Alibaba Cloud account ID of the inviter.'."\n", 'type' => 'string', 'required' => true, 'example' => '151266687691****', 'title' => ''], 'ReceiverAccountId' => ['description' => 'The Alibaba Cloud account ID of the invitee.'."\n", 'type' => 'string', 'required' => true, 'example' => '134254031178****', 'title' => ''], 'CreateTime' => ['description' => 'The time when the invitation was created. The time is displayed in UTC.'."\n", 'type' => 'string', 'required' => true, 'example' => '2022-09-02T07:07:30.809Z', 'title' => ''], 'Status' => ['description' => 'The status of the invitation. Valid values:'."\n" ."\n" .'* Pending: The invitation is waiting for confirmation.'."\n" .'* Accepted: The invitation is accepted.'."\n" .'* Cancelled: The invitation is canceled.'."\n" .'* Rejected: The invitation is rejected.'."\n" .'* Expired: The invitation has expired.'."\n", 'type' => 'string', 'required' => true, 'example' => 'Rejected', 'title' => ''], ], 'title' => '', ], ], 'title' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceShareInvitationId', 'errorMessage' => 'The ResourceShareInvitationId is invalid.', 'description' => ''], ['errorCode' => 'MissingParameter.ResourceShareInvitationId', 'errorMessage' => 'You must specify ResourceShareInvitationId.', 'description' => ''], ], 409 => [ ['errorCode' => 'InvitationStatus.Expired', 'errorMessage' => 'The resource share invitation status is expired.', 'description' => ''], ['errorCode' => 'EntityNotExists.ResourceShareInvitation', 'errorMessage' => 'The resource share invitation does not exist in the current account.', 'description' => ''], ['errorCode' => 'InvitationStatus.AlreadyRejected', 'errorMessage' => 'The resource share invitation status is rejected.', 'description' => ''], ['errorCode' => 'InvitationStatus.AlreadyAccepted', 'errorMessage' => 'The resource share invitation status is alredy accepted.', 'description' => ''], ], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E446D6DE-BFC8-5F37-A494-33D7B118147D\\",\\n \\"ResourceShareInvitation\\": {\\n \\"ResourceShareInvitationId\\": \\"i-yyTWbkjHArYh****\\",\\n \\"ResourceShareId\\": \\"rs-JoA1Ayjm****\\",\\n \\"ResourceShareName\\": \\"example\\",\\n \\"SenderAccountId\\": \\"151266687691****\\",\\n \\"ReceiverAccountId\\": \\"134254031178****\\",\\n \\"CreateTime\\": \\"2022-09-02T07:07:30.809Z\\",\\n \\"Status\\": \\"Rejected\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E446D6DE-BFC8-5F37-A494-33D7B118147D\\n \\n rs-JoA1Ayjm****\\n example\\n Rejected\\n 151266687691****\\n 134254031178****\\n 2022-09-02T07:07:30.809Z\\n i-yyTWbkjHArYh****\\n \\n","errorExample":""}]', 'title' => 'RejectResourceShareInvitation', 'summary' => 'Rejects a resource sharing invitation.', 'description' => 'This topic provides an example on how to call the API operation to reject the resource sharing invitation `i-yyTWbkjHArYh****` in the `cn-hangzhou` region.', 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~159973~~).'."\n", 'changeSet' => [], ], 'TagResources' => [ 'path' => '', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => ['FEATUREentconsoleT3AKMG'], ], 'parameters' => [ [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The type of the resource.'."\n" ."\n" .'Set this parameter to `ResourceShare`, which indicates a resource share.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ResourceShare'], ], [ 'name' => 'ResourceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.', 'type' => 'array', 'items' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => false, 'example' => 'rs-PqysnzIj****', 'title' => ''], 'required' => true, 'maxItems' => 51, 'title' => '', 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The ID of the region where the resource share resides.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The tags.'."\n" ."\n" .'You can attach up to 20 tags.', 'type' => 'array', 'items' => [ 'description' => 'The tag.', 'type' => 'object', 'properties' => [ 'Key' => ['description' => 'The tag key.'."\n" ."\n" .'> The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], 'Value' => ['description' => 'The tag value.'."\n" ."\n" .'> The tag value can be up to 128 characters in length and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], ], 'required' => false, 'title' => '', 'example' => '', ], 'required' => true, 'maxItems' => 20, 'title' => '', 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C'], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceId', 'errorMessage' => 'The ResourceId is invalid.', 'description' => 'The ResourceId parameter is invalid.'], ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The specified ResourceIds are not found in our records.', 'description' => 'The specified ResourceIds are not found in our records.'], ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => 'The maximum number of ResourceIds is exceeded.'], ['errorCode' => 'InvalidParameter.RegionId', 'errorMessage' => 'The RegionId parameter is invalid.', 'description' => 'The RegionId parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceIds', 'errorMessage' => 'You must specify ResourceIds.', 'description' => 'You must specify ResourceIds.'], ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => 'The resource type parameter cannot be empty.'], ['errorCode' => 'MissingParameter.Tags', 'errorMessage' => 'You must specify Tags.', 'description' => 'You must specify Tags.'], ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => 'The ResourceType parameter is invalid.'], ], 403 => [ ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => 'You are not authorized to perform this action.'], ], 500 => [ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => 'The request processing has failed due to some unknown error.'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'TagResources', 'summary' => 'Attaches tags to resource shares.', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:TagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C\\"\\n}","type":"json"}]', ], 'UntagResources' => [ 'summary' => 'Removes tags from one or more resource shares.', 'path' => '', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'update', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => ['FEATUREentconsoleA4VJ8H'], ], 'parameters' => [ [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['description' => 'The resource type.'."\n" ."\n" .'Set this parameter to `ResourceShare`, which indicates a resource share.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ResourceShare'], ], [ 'name' => 'ResourceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The IDs of the resource shares.'."\n" ."\n" .'You can specify up to 20 resource share IDs.', 'type' => 'array', 'items' => ['description' => 'The ID of a resource share.', 'type' => 'string', 'required' => false, 'example' => 'rs-PqysnzIj****', 'title' => ''], 'required' => false, 'maxItems' => 51, 'title' => '', 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The ID of the region where the resource share resides.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ 'name' => 'TagKey', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'The tag keys.'."\n" ."\n" .'You can remove up to 20 tag keys.'."\n" ."\n" .'> You do not need to specify tag keys if you set the `All` parameter to `true`.', 'type' => 'array', 'items' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], 'required' => false, 'maxItems' => 21, 'title' => '', 'example' => '', ], ], [ 'name' => 'All', 'in' => 'query', 'schema' => ['description' => 'Specifies whether to remove all tags from the specified resources. Valid values:'."\n" ."\n" .'- false'."\n" ."\n" .'- true'."\n" ."\n" .'Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C'], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => 'The ResourceType parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceIds', 'errorMessage' => 'You must specify ResourceIds.', 'description' => 'You must specify ResourceIds.'], ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => 'The resource type parameter cannot be empty.'], ['errorCode' => 'InvalidParameter.TagKey', 'errorMessage' => 'The TagKey parameter is invalid.', 'description' => 'The TagKey parameter is invalid.'], ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => 'The maximum number of ResourceIds is exceeded.'], ['errorCode' => 'NumberExceed.TagKeys', 'errorMessage' => 'The maximum number of TagKeys is exceeded.', 'description' => 'The maximum number of TagKeys is exceeded.'], ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The TagKey contains duplicate keys.', 'description' => 'The TagKey contains duplicate keys.'], ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The specified ResourceIds are not found in our records.', 'description' => 'The specified ResourceIds are not found in our records.'], ['errorCode' => 'MissingParameter.TagKeysOrDeleteAll', 'errorMessage' => 'You must specify TagKeys or DeleteAll.', 'description' => 'Invalid TagKey list or DeleteAll parameter.'], ], 403 => [ ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => 'You are not authorized to perform this action.'], ], 500 => [ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => 'The request processing has failed due to some unknown error.'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'UntagResources', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:UntagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C\\"\\n}","type":"json"}]', ], 'UpdateResourceShare' => [ 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'ResourceShareId', 'in' => 'query', 'schema' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rs-qSkW1HBY****', 'title' => ''], ], [ 'name' => 'ResourceShareName', 'in' => 'query', 'schema' => ['description' => 'The new name for the resource share.'."\n" ."\n" .'The name must be 1 to 50 characters in length.'."\n" ."\n" .'It can contain letters, digits, periods (.), underscores (\\_), and hyphens (-).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'new', 'title' => ''], ], [ 'name' => 'AllowExternalTargets', 'in' => 'query', 'schema' => ['description' => 'Specifies whether to share resources with accounts outside your resource directory. Valid values:'."\n" ."\n" .'- false'."\n" ."\n" .'- true', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2860A3A4-D8C1-4EF4-954E-84A3945E26E5', 'title' => ''], 'ResourceShare' => [ 'description' => 'The information about the resource share.', 'type' => 'object', 'properties' => [ 'UpdateTime' => ['description' => 'The time when the resource share was updated.', 'type' => 'string', 'example' => '2020-12-04T08:55:25.382Z', 'title' => ''], 'ResourceShareName' => ['description' => 'The name of the resource share.', 'type' => 'string', 'example' => 'new', 'title' => ''], 'ResourceShareOwner' => ['description' => 'The owner of the resource share.', 'type' => 'string', 'example' => '151266687691****', 'title' => ''], 'CreateTime' => ['description' => 'The time when the resource share was created.', 'type' => 'string', 'example' => '2020-12-03T08:02:22.413Z', 'title' => ''], 'ResourceShareId' => ['description' => 'The ID of the resource share.', 'type' => 'string', 'example' => 'rs-qSkW1HBY****', 'title' => ''], 'ResourceShareStatus' => ['description' => 'The status of the resource share. Valid values:'."\n" ."\n" .'- Active: The resource share is enabled.'."\n" ."\n" .'- Pending: The resource share is waiting for confirmation.'."\n" ."\n" .'- Deleting: The resource share is being deleted.'."\n" ."\n" .'- Deleted: The resource share is deleted.'."\n" ."\n" .'> The system automatically deletes the records of resource shares in the `Deleted` state within 48 to 96 hours.', 'type' => 'string', 'example' => 'Active', 'title' => ''], 'AllowExternalTargets' => ['description' => 'Indicates whether resources can be shared with accounts outside your resource directory. Valid values:'."\n" ."\n" .'- false'."\n" ."\n" .'- true', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'MissingParameter.ResourceShareId', 'errorMessage' => 'You must specify ResourceShareId.', 'description' => 'You must specify ResourceShareId.'], ['errorCode' => 'InvalidParameter.ResourceShareId', 'errorMessage' => 'The ResourceShareId is invalid.', 'description' => 'The ResourceShareId parameter is invalid.'], ['errorCode' => 'MissingParameter.ResourceShareName', 'errorMessage' => 'You must specify ResourceShareName.', 'description' => 'The ResourceShareName parameter is missing.'], ['errorCode' => 'InvalidParameter.ResourceShareName', 'errorMessage' => 'The ResourceShareName is invalid.', 'description' => 'The ResourceShareName parameter is invalid.'], ['errorCode' => 'InvalidParameter.ResourceShareName.Length', 'errorMessage' => 'The maximum length of ResourceShareName exceeds 50 characters.', 'description' => 'The length of ResourceShareName cannot exceed 50 characters.'], ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is invalid.', 'description' => 'The specified parameter is invalid.'], ], 404 => [ ['errorCode' => 'EntityNotExists.ResourceShare', 'errorMessage' => 'The resource share does not exist in the current account.', 'description' => 'The resource share does not exist in the current account.'], ], 409 => [ ['errorCode' => 'OperationNotPermitted', 'errorMessage' => 'You do not have permission to do this operation.', 'description' => 'You are not authorized to perform this operation.'], ['errorCode' => 'ResourceShareStatusMismatchAction', 'errorMessage' => 'The status of the resource share does not allow the specified operation.', 'description' => 'The status of the resource share does not allow the specified operation.'], ['errorCode' => 'NotSupport.AllowExternalTargets', 'errorMessage' => 'External sharing is not permitted for resource shares with unsupported configurations.', 'description' => 'External sharing is not permitted for resource shares with unsupported configurations.'], ], ], 'title' => 'UpdateResourceShare', 'summary' => 'Modifies the information of a resource share.', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', 'changeSet' => [ ['createdAt' => '2024-01-24T11:34:55.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2023-03-02T12:01:07.000Z', 'description' => 'Response parameters changed'], ['createdAt' => '2022-09-08T02:14:53.000Z', 'description' => 'Error codes changed'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceShare'], ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:UpdateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedAllowExternalTargets', 'validationType' => 'always'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2860A3A4-D8C1-4EF4-954E-84A3945E26E5\\",\\n \\"ResourceShare\\": {\\n \\"UpdateTime\\": \\"2020-12-04T08:55:25.382Z\\",\\n \\"ResourceShareName\\": \\"new\\",\\n \\"ResourceShareOwner\\": \\"151266687691****\\",\\n \\"CreateTime\\": \\"2020-12-03T08:02:22.413Z\\",\\n \\"ResourceShareId\\": \\"rs-qSkW1HBY****\\",\\n \\"ResourceShareStatus\\": \\"Active\\",\\n \\"AllowExternalTargets\\": false\\n }\\n}","type":"json"}]', ], ], 'endpoints' => [ ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-wulanchabu.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-wulanchabu.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-beijing.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-beijing.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-qingdao.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-qingdao.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-qingdao.aliyuncs.com'], ['regionId' => 'cn-wuhan-lr', 'regionName' => 'China (Wuhan - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-wuhan-lr.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-wuhan-lr.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-wuhan-lr.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-shanghai.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-shanghai.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-hongkong.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-hongkong.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-hongkong.aliyuncs.com'], ['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-heyuan.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-heyuan.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-heyuan.aliyuncs.com'], ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-zhangjiakou.aliyuncs.com'], ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-shenzhen.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-shenzhen.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-northeast-2.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-northeast-2.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-northeast-2.aliyuncs.com'], ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-northeast-1.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-northeast-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-northeast-1.aliyuncs.com'], ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-chengdu.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-chengdu.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-chengdu.aliyuncs.com'], ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-guangzhou.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-guangzhou.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-guangzhou.aliyuncs.com'], ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-southeast-1.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-southeast-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-southeast-1.aliyuncs.com'], ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-southeast-3.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-southeast-3.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-southeast-3.aliyuncs.com'], ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-huhehaote.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-huhehaote.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-huhehaote.aliyuncs.com'], ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-southeast-5.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-southeast-5.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-southeast-5.aliyuncs.com'], ['regionId' => 'ap-southeast-6', 'regionName' => 'Philippines (Manila)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-southeast-6.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-southeast-6.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-southeast-6.aliyuncs.com'], ['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.ap-southeast-7.aliyuncs.com', 'endpoint' => 'resourcesharing.ap-southeast-7.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.ap-southeast-7.aliyuncs.com'], ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'resourcesharing.cn-hangzhou.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-hangzhou.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-hangzhou.aliyuncs.com'], ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'resourcesharing.us-east-1.aliyuncs.com', 'endpoint' => 'resourcesharing.us-east-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.us-east-1.aliyuncs.com'], ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'resourcesharing.eu-west-1.aliyuncs.com', 'endpoint' => 'resourcesharing.eu-west-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.eu-west-1.aliyuncs.com'], ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'resourcesharing.us-west-1.aliyuncs.com', 'endpoint' => 'resourcesharing.us-west-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.us-west-1.aliyuncs.com'], ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'resourcesharing.eu-central-1.aliyuncs.com', 'endpoint' => 'resourcesharing.eu-central-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.eu-central-1.aliyuncs.com'], ['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'resourcesharing.me-central-1.aliyuncs.com', 'endpoint' => 'resourcesharing.me-central-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.me-central-1.aliyuncs.com'], ['regionId' => 'cn-heyuan-acdr-1', 'regionName' => 'Heyuan ACDR Auto', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'resourcesharing.cn-heyuan-acdr-1.aliyuncs.com', 'endpoint' => 'resourcesharing.cn-heyuan-acdr-1.aliyuncs.com', 'vpc' => 'resourcesharing-vpc.cn-heyuan-acdr-1.aliyuncs.com'], ], 'errorCodes' => [ ['code' => 'AccountNotInResourceDirectory', 'message' => 'The account is not a master or a member of a resource directory.', 'http_code' => 409, 'description' => 'The specified Targets value is not a member in the resource directory.'], ['code' => 'ActionNotPermitted', 'message' => 'The caller must be the master account for the Resource Directory.', 'http_code' => 409, 'description' => 'The caller must be the management account for Resource Directory.'], ['code' => 'ActionNotPermitted.CreateServiceLinkedRole', 'message' => 'You are not authorized to perform ram:CreateServiceLinkedRole.', 'http_code' => 409, 'description' => 'You are not authorized to perform ram:CreateServiceLinkedRole.'], ['code' => 'AlreadyDisabled', 'message' => 'You have already disabled sharing with the Resource Directory.', 'http_code' => 409, 'description' => 'You have disabled sharing with Resource Directory.'], ['code' => 'AlreadyEnabled', 'message' => 'You have already enabled sharing with the Resource Directory.', 'http_code' => 409, 'description' => 'You have enabled sharing with Resource Directory.'], ['code' => 'AssociateConflict', 'message' => 'You cannot perform the operation while disassociation operation is being performed.', 'http_code' => 409, 'description' => 'The association operation is not supported while an disassociation is being performed.'], ['code' => 'ConcurrentExecutionError', 'message' => 'The operation could not be completed because another process is currently accessing the same resource.', 'http_code' => 409, 'description' => 'The operation could not be completed because another process is currently accessing the same resource.'], ['code' => 'ConflictedAssociationType', 'message' => 'The specified ResourceId or Target conflicts with AssociationType.', 'http_code' => 400, 'description' => 'The specified parameter conflicts with AssociationType.'], ['code' => 'DeleteResourceShareConflict', 'message' => 'You cannot delete a resource share while there are unfinished tasks.', 'http_code' => 409, 'description' => 'The resource share cannot be deleted because an ongoing task exists.'], ['code' => 'DisassociateConflict', 'message' => 'You cannot perform the operation while association is already in progress.', 'http_code' => 409, 'description' => 'The association operation is not supported while an association is being performed.'], ['code' => 'DisassociateInvalid', 'message' => 'You can not disassociate unassociated resource or target.', 'http_code' => 400, 'description' => 'The disassociation operation is not supported for an entity that is not associated with the resource share.'], ['code' => 'Duplicate.TagKey', 'message' => 'The TagKey contains duplicate keys.', 'http_code' => 400, 'description' => 'The TagKey contains duplicate keys.'], ['code' => 'EntityAlreadyExists.ResourceShare', 'message' => 'The specified resource share ID already exists.', 'http_code' => 409, 'description' => 'The specified resource share ID already exists.'], ['code' => 'EntityNotExists.Permission', 'message' => 'The resource share permission does not exist.', 'http_code' => 404, 'description' => 'You do not have the required permissions.'], ['code' => 'EntityNotExists.ResourceId', 'message' => 'The resourceId does not exist.', 'http_code' => 404, 'description' => 'The resourceId does not exist.'], ['code' => 'EntityNotExists.ResourceShare', 'message' => 'The resource share does not exist in the current account.', 'http_code' => 404, 'description' => 'The resource share does not exist in the current account.'], ['code' => 'EntityNotExists.ResourceShareInvitation', 'message' => 'The resource share invitation does not exist in the current account.', 'http_code' => 409, 'description' => 'The invitation does not exist.'], ['code' => 'EntityNotExists.ResourceType', 'message' => 'The resource type does not exist.', 'http_code' => 404, 'description' => 'The resource type does not exist.'], ['code' => 'ExternalTargetsNotAllowed.ResourceType', 'message' => 'The resource share includes resource types that cannot be shared with accounts outside the resource directory.', 'http_code' => 409, 'description' => 'The resource share contains resources that do not support this operation.'], ['code' => 'ExternalTargetWithdrawConflict', 'message' => 'Existing internal association task in resource directory when disassociating with resource share.', 'http_code' => 409, 'description' => 'The current account is a principal of a resource share and cannot proactively exit the resource share. Contact the owner of the resource share to remove the account from the resource share.'], ['code' => 'InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => 'The request processing has failed due to some unknown error.'], ['code' => 'InvalidParameter', 'message' => 'The specified parameter is invalid.', 'http_code' => 400, 'description' => 'The specified parameter is invalid.'], ['code' => 'InvalidParameter.AssociationStatus', 'message' => 'The AssociationStatus is invalid.', 'http_code' => 400, 'description' => 'The AssociationStatus parameter is invalid.'], ['code' => 'InvalidParameter.AssociationType', 'message' => 'The AssociationType is invalid.', 'http_code' => 400, 'description' => 'The AssociationType parameter is invalid.'], ['code' => 'InvalidParameter.MaxResults', 'message' => 'The MaxResults is invalid.', 'http_code' => 400, 'description' => 'The MaxResults parameter is invalid.'], ['code' => 'InvalidParameter.NextToken', 'message' => 'The NextToken is invalid.', 'http_code' => 400, 'description' => 'The NextToken parameter is invalid.'], ['code' => 'InvalidParameter.NextToken.Length', 'message' => 'The maximum length of NextToken exceeds 256 characters.', 'http_code' => 400, 'description' => 'The length of NextToken cannot exceed 256 characters.'], ['code' => 'InvalidParameter.PermissionNames.Duplicate', 'message' => 'The PermissionNames duplicate values.', 'http_code' => 400, 'description' => 'Duplicate values are specified for the PermissionNames parameter.'], ['code' => 'InvalidParameter.PermissionNames.Length', 'message' => 'The maximum length of PermissionNames exceeds quota limit.', 'http_code' => 400, 'description' => 'The length of the value specified for the PermissionNames parameter exceeds the limit.'], ['code' => 'InvalidParameter.PermissionVersion', 'message' => 'The PermissionVersion is invalid.', 'http_code' => 400, 'description' => 'The value of PermissionVersion is invalid.'], ['code' => 'InvalidParameter.RegionId', 'message' => 'The RegionId parameter is invalid.', 'http_code' => 400, 'description' => 'The RegionId parameter is invalid.'], ['code' => 'InvalidParameter.ResourceId', 'message' => 'The ResourceId is invalid.', 'http_code' => 400, 'description' => 'The ResourceId parameter is invalid.'], ['code' => 'InvalidParameter.ResourceIds', 'message' => 'The ResourceIds is invalid.', 'http_code' => 400, 'description' => 'The specified ResourceIds parameter is invalid.'], ['code' => 'InvalidParameter.ResourceIds.Duplicate', 'message' => 'The specified ResourceId contains duplicate values.', 'http_code' => 400, 'description' => 'The specified ResourceIds parameter contains duplicate values.'], ['code' => 'InvalidParameter.ResourceIds.Length', 'message' => 'The maximum number of ResourceIds (5) is exceeded.', 'http_code' => 400, 'description' => 'The number of specified ResourceIds values cannot exceed 5.'], ['code' => 'InvalidParameter.ResourceOwner', 'message' => 'The ResourceOwner is invalid.', 'http_code' => 400, 'description' => 'The ResourceOwner parameter is invalid.'], ['code' => 'InvalidParameter.ResourceOwnerAndTag', 'message' => 'You cannot use ResourceOwner set to OtherAccounts and tags in one request.', 'http_code' => 400, 'description' => 'You cannot use ResourceOwner set to OtherAccounts and tags in one request.'], ['code' => 'InvalidParameter.Resources', 'message' => 'The Resources is invalid.', 'http_code' => 400, 'description' => 'The specified shared resource is invalid.'], ['code' => 'InvalidParameter.Resources.Duplicate', 'message' => 'The Resources contains duplicate values.', 'http_code' => 400, 'description' => 'The specified Resources parameter contains duplicate values.'], ['code' => 'InvalidParameter.Resources.Length', 'message' => 'The maximum number of Resources exceeds 5.', 'http_code' => 400, 'description' => 'The number of specified shared resources cannot exceed 5.'], ['code' => 'InvalidParameter.ResourceShareId', 'message' => 'The ResourceShareId is invalid.', 'http_code' => 400, 'description' => 'The ResourceShareId parameter is invalid.'], ['code' => 'InvalidParameter.ResourceShareIds', 'message' => 'The ResourceShareIds is invalid.', 'http_code' => 400, 'description' => 'The ResourceShareIds parameter is invalid.'], ['code' => 'InvalidParameter.ResourceShareIds.Duplicate', 'message' => 'The ResourceShareIds contains duplicate values.', 'http_code' => 400, 'description' => 'The ResourceShareIds parameter contains duplicate values.'], ['code' => 'InvalidParameter.ResourceShareIds.Length', 'message' => 'The maximum length of ResourceShareIds exceeds 5 characters.', 'http_code' => 400, 'description' => 'The number of ResourceShareIds values cannot exceed 5.'], ['code' => 'InvalidParameter.ResourceShareInvitationId', 'message' => 'The ResourceShareInvitationId is invalid.', 'http_code' => 400, 'description' => 'The invitation ID is invalid.'], ['code' => 'InvalidParameter.ResourceShareInvitationIds', 'message' => 'The ResourceShareInvitationIds is invalid.', 'http_code' => 400, 'description' => 'The value of ResourceShareInvitationIds is invalid.'], ['code' => 'InvalidParameter.ResourceShareInvitationIds.Duplicate', 'message' => 'The ResourceShareInvitationIds duplicate values.', 'http_code' => 400, 'description' => 'ResourceShareInvitationIds is already configured.'], ['code' => 'InvalidParameter.ResourceShareInvitationIds.Length', 'message' => 'The maximum length of ResourceShareInvitationIds exceeds quota limit.', 'http_code' => 400, 'description' => 'The length of the value specified for ResourceShareInvitationIds exceeds the limit.'], ['code' => 'InvalidParameter.ResourceShareName', 'message' => 'The ResourceShareName is invalid.', 'http_code' => 400, 'description' => 'The ResourceShareName parameter is invalid.'], ['code' => 'InvalidParameter.ResourceShareName.Length', 'message' => 'The maximum length of ResourceShareName exceeds 50 characters.', 'http_code' => 400, 'description' => 'The length of ResourceShareName cannot exceed 50 characters.'], ['code' => 'InvalidParameter.ResourceShareStatus', 'message' => 'The ResourceShareStatus is invalid.', 'http_code' => 400, 'description' => 'The ResourceShareStatus parameter is invalid.'], ['code' => 'InvalidParameter.ResourceType', 'message' => 'The ResourceType is invalid.', 'http_code' => 400, 'description' => 'The specified ResourceType parameter is invalid.'], ['code' => 'InvalidParameter.ResourceType', 'message' => 'The ResourceType parameter is invalid.', 'http_code' => 400, 'description' => 'The ResourceType parameter is invalid.'], ['code' => 'InvalidParameter.TagKey', 'message' => 'The TagKey parameter is invalid.', 'http_code' => 400, 'description' => 'The TagKey parameter is invalid.'], ['code' => 'InvalidParameter.Target', 'message' => 'The Target is invalid.', 'http_code' => 400, 'description' => 'The Target parameter is invalid.'], ['code' => 'InvalidParameter.TargetProperties', 'message' => 'The TargetProperties is invalid.', 'http_code' => 400, 'description' => 'The TargetProperties is invalid.'], ['code' => 'InvalidParameter.TargetProperties.Duplicate', 'message' => 'The TargetProperties contains duplicate values.', 'http_code' => 400, 'description' => 'TargetProperties contains duplicate parameters.'], ['code' => 'InvalidParameter.TargetProperties.Length', 'message' => 'The TargetProperties beyond the length limit.', 'http_code' => 400, 'description' => 'The TargetProperties beyond the length limit.'], ['code' => 'InvalidParameter.Targets', 'message' => 'The Targets is invalid.', 'http_code' => 400, 'description' => 'The specified Targets parameter is invalid.'], ['code' => 'InvalidParameter.Targets.Duplicate', 'message' => 'The Targets contains duplicate values.', 'http_code' => 400, 'description' => 'The specified Targets parameter contains duplicate values.'], ['code' => 'InvalidParameter.Targets.Length', 'message' => 'The maximum number of Targets exceeds 5.', 'http_code' => 400, 'description' => 'The number of Targets values cannot exceed 5.'], ['code' => 'InvalidResourceGroup', 'message' => 'The specified ResourceGroupId is invalid', 'http_code' => 400, 'description' => 'The ResourceGroupId parameter is invalid.'], ['code' => 'InvalidResourceId.NotFound', 'message' => 'The specified ResourceIds are not found in our records.', 'http_code' => 400, 'description' => 'The specified ResourceIds are not found in our records.'], ['code' => 'InvalidTarget', 'message' => 'The shared target does not exist in the resource directory.', 'http_code' => 400, 'description' => 'The specified Targets value is not a member in the resource directory.'], ['code' => 'InvalidTarget.LegalEntityMismatch', 'message' => 'The target account does not have the same legal entity as the resource owner account.', 'http_code' => 409, 'description' => 'The enterprise name of the principal is inconsistent with that of the resource owner.'], ['code' => 'InvalidTarget.SiteMismatch', 'message' => 'Cross-site resource sharing is not supported.', 'http_code' => 409, 'description' => 'The principal and resource owner are registered at different sites.'], ['code' => 'InvitationStatus.AlreadyAccepted', 'message' => 'The resource share invitation status is alredy accepted.', 'http_code' => 409, 'description' => 'The invitation has been accepted.'], ['code' => 'InvitationStatus.AlreadyRejected', 'message' => 'The resource share invitation status is rejected.', 'http_code' => 409, 'description' => 'The invitation has been rejected.'], ['code' => 'InvitationStatus.Expired', 'message' => 'The resource share invitation status is expired.', 'http_code' => 409, 'description' => 'The invitation has expired.'], ['code' => 'LeaveResourceShareFailed', 'message' => 'Failed to leave the resource share.', 'http_code' => 409, 'description' => 'Failed to leave the resource share.'], ['code' => 'LeavingFailed.Account', 'message' => 'The account was added to the resource share automatically by resoucre directory.', 'http_code' => 409, 'description' => 'The current account is a principal of a resource share and cannot proactively exit the resource share. Contact the owner of the resource share to remove the account from the resource share.'], ['code' => 'LeavingFailed.ResourceType', 'message' => 'The resource share contains resources of the resource types that dont support this action.', 'http_code' => 409, 'description' => 'The resource share contains resources that cannot proactively exit the resource share. Contact the owner of the resource share to remove the current account from the resource share.'], ['code' => 'MissingParameter.AssociationType', 'message' => 'You must specify AssociationType.', 'http_code' => 400, 'description' => 'You must specify AssociationType.'], ['code' => 'MissingParameter.PermissionName', 'message' => 'You must specify PermissionName.', 'http_code' => 400, 'description' => 'PermissionName is not configured.'], ['code' => 'MissingParameter.ResourceGroupId', 'message' => 'The ResourceGroupId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => 'The ResourceGroupId parameter is not configured.'], ['code' => 'MissingParameter.ResourceId', 'message' => 'The ResourceId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => 'The ResourceId parameter is not configured.'], ['code' => 'MissingParameter.ResourceIdOrTag', 'message' => 'You must specify ResourceId or Tag.', 'http_code' => 400, 'description' => 'You must specify ResourceId or Tag.'], ['code' => 'MissingParameter.ResourceIds', 'message' => 'You must specify ResourceIds.', 'http_code' => 400, 'description' => 'You must specify ResourceIds.'], ['code' => 'MissingParameter.ResourceOwner', 'message' => 'You must specify ResourceOwner.', 'http_code' => 400, 'description' => 'You must specify ResourceOwner.'], ['code' => 'MissingParameter.ResourceRegionId', 'message' => 'The ResourceRegionId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => 'The ResourceRegionId parameter is not configured.'], ['code' => 'MissingParameter.ResourceShareId', 'message' => 'You must specify ResourceShareId.', 'http_code' => 400, 'description' => 'You must specify ResourceShareId.'], ['code' => 'MissingParameter.ResourceShareInvitationId', 'message' => 'You must specify ResourceShareInvitationId.', 'http_code' => 400, 'description' => 'You must specify an invitation ID.'], ['code' => 'MissingParameter.ResourceShareName', 'message' => 'You must specify ResourceShareName.', 'http_code' => 400, 'description' => 'The ResourceShareName parameter is missing.'], ['code' => 'MissingParameter.ResourceType', 'message' => 'You must specify ResourceType.', 'http_code' => 400, 'description' => 'The resource type parameter cannot be empty.'], ['code' => 'MissingParameter.TagKey', 'message' => 'You must specify TagKey.', 'http_code' => 400, 'description' => 'You must specify TagKey.'], ['code' => 'MissingParameter.TagKeysOrDeleteAll', 'message' => 'You must specify TagKeys or DeleteAll.', 'http_code' => 400, 'description' => 'Invalid TagKey list or DeleteAll parameter.'], ['code' => 'MissingParameter.Tags', 'message' => 'You must specify Tags.', 'http_code' => 400, 'description' => 'You must specify Tags.'], ['code' => 'NoPermission', 'message' => 'User No Permission', 'http_code' => 409, 'description' => 'You do not have the required permissions.'], ['code' => 'NoPermission', 'message' => 'You are not authorized to perform this action.', 'http_code' => 403, 'description' => 'You are not authorized to perform this action.'], ['code' => 'NoPermission.ChangeResourceGroup', 'message' => 'You are not authorized to change resourcegroup', 'http_code' => 400, 'description' => 'You do not have permissions to change the resource group.'], ['code' => 'NotEnableSharingWithResourceDirectory', 'message' => 'You have not enabled sharing with your Resource Directory.', 'http_code' => 409, 'description' => 'You have not enabled sharing with Resource Directory.'], ['code' => 'NotManagementAccount', 'message' => 'Only the management account of the service is allowed to share such resources.', 'http_code' => 409, 'description' => 'Only the management account of the resource directory can be used to share the current type of resource. If you still want to use the current account, contact the owner of the management account to configure the current account as a delegated administrator account of the trusted service to which the resource belongs.'], ['code' => 'NotSupport.Service.AssociateConflict', 'message' => 'The same resource cannot be shared repeatedly to the target service.', 'http_code' => 409, 'description' => ''], ['code' => 'NotSupport.Service.ExistInOtherResourceShare', 'message' => 'The resource type has been shared to the target service through other resourceShare. Please share it in the same resourceShare.', 'http_code' => 409, 'description' => ''], ['code' => 'NumberExceed.ResourceIds', 'message' => 'The maximum number of ResourceIds is exceeded.', 'http_code' => 400, 'description' => 'The maximum number of ResourceIds is exceeded.'], ['code' => 'NumberExceed.TagKeys', 'message' => 'The maximum number of TagKeys is exceeded.', 'http_code' => 400, 'description' => 'The maximum number of TagKeys is exceeded.'], ['code' => 'NumberExceed.Tags', 'message' => 'The maximum number of Tags is exceeded.', 'http_code' => 400, 'description' => 'The maximum number of Tags is exceeded.'], ['code' => 'OperationNotPermitted', 'message' => 'You do not have permission to do this operation.', 'http_code' => 409, 'description' => 'You are not authorized to perform this operation.'], ['code' => 'QuotaExceeded.PendingInvitations', 'message' => 'The maximum number of pending invitations exceeds the limit.', 'http_code' => 409, 'description' => 'The number of invitations exceeds the upper limit.'], ['code' => 'QuotaExceeded.ResourceShare.Count', 'message' => 'The maximum number of ResourceShare exceeds the limit.', 'http_code' => 409, 'description' => 'The maximum number of ResourceShare exceeds the limit.'], ['code' => 'QuotaExceeded.SharedResource.Count', 'message' => 'The maximum number of shared resources per account exceeds the limit.', 'http_code' => 409, 'description' => 'The maximum number of Resources values per account is exceeded.'], ['code' => 'ResourceAndTargetBothEmpty', 'message' => 'Either a resource or a shared target must be specified.', 'http_code' => 400, 'description' => 'You must specify a resource or a resource account.'], ['code' => 'ResourceNotFound', 'message' => 'The specified resource is not found', 'http_code' => 400, 'description' => 'The resource does not exist within your account.'], ['code' => 'ResourceShareStatusMismatchAction', 'message' => 'The status of the resource share does not allow the specified operation.', 'http_code' => 409, 'description' => 'The status of the resource share does not allow the specified operation.'], ['code' => 'ShareWithYourself', 'message' => 'You cannot share resources with yourself.', 'http_code' => 409, 'description' => 'You cannot share resources with yourself.'], ['code' => 'SystemError', 'message' => 'A system error occurred while processing your request', 'http_code' => 400, 'description' => 'A system exception occurred.'], ['code' => 'NotSupport.ResourceType.ResourcesParameter', 'message' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.', 'http_code' => 400, 'description' => 'The Resources parameter does not support this resource type. Please use ResourceArns instead.'], ['code' => 'InvalidParameter.ResourceArn', 'message' => 'The ResourceArn is invalid.', 'http_code' => 400, 'description' => 'The ResourceArn is invalid.'], ['code' => 'InvalidParameter.ResourceArns.Length', 'message' => 'The ResourceArns beyond the length limit.', 'http_code' => 400, 'description' => 'The maximum number of ResourceArns exceeds 5.'], ['code' => 'InvalidParameter.ResourceArns', 'message' => 'The ResourceArns is invalid.', 'http_code' => 400, 'description' => 'The ResourceArns parameter is invalid.'], ['code' => 'InvalidParameter.ResourceArns.Duplicate', 'message' => 'The ResourceArns contains duplicate values.', 'http_code' => 400, 'description' => 'The ResourceArns contains duplicate values.'], ['code' => 'InvalidParameter.ResourceConflict', 'message' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.', 'http_code' => 400, 'description' => 'Both Resources and ResourceArns cannot be specified simultaneously. Please provide only one of these parameters.'], ['code' => 'InvalidParameter.ResourceConflict', 'message' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.', 'http_code' => 400, 'description' => 'Both ResourceId and ResourceArn cannot be specified simultaneously. Please provide only one of these parameters.'], ['code' => 'NotSupport.ResourcePropertyConflict', 'message' => 'The ResourceProperty can not be updated until the last operation is completed.', 'http_code' => 409, 'description' => 'The ResourceProperty can not be updated until the last operation is completed.'], ['code' => 'NotSupport.ResourceProperty', 'message' => 'The resource type does not support resource property.', 'http_code' => 400, 'description' => 'The resource type does not support resource property.'], ['code' => 'InvalidParameter.ResourceProperties.Length', 'message' => 'The ResourceProperties beyond the length limit.', 'http_code' => 400, 'description' => 'The ResourceProperties beyond the length limit.'], ['code' => 'InvalidParameter.ResourceProperties.Duplicate', 'message' => 'The ResourceProperties contains duplicate values.', 'http_code' => 400, 'description' => 'The ResourceProperties contains duplicate values.'], ['code' => 'InvalidParameter.ResourceProperties', 'message' => 'The ResourceProperties is invalid.', 'http_code' => 400, 'description' => 'The ResourceProperties is invalid.'], ['code' => 'NotSupport.AllowExternalTargets', 'message' => 'External sharing is not permitted for resource shares with unsupported configurations.', 'http_code' => 409, 'description' => 'External sharing is not permitted for resource shares with unsupported configurations.'], ], 'changeSet' => [ [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'AcceptResourceShareInvitation'], ['description' => 'Response parameters changed', 'api' => 'ListResourceShareAssociations'], ['description' => 'Response parameters changed', 'api' => 'ListResourceShareInvitations'], ], 'createdAt' => '2024-02-04T09:39:06.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'DeleteResourceShare'], ], 'createdAt' => '2024-01-24T11:35:07.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Request parameters changed', 'api' => 'AssociateResourceShare'], ['description' => 'Request parameters changed', 'api' => 'CreateResourceShare'], ], 'createdAt' => '2024-01-23T09:56:27.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Error codes changed, Response parameters changed', 'api' => 'AssociateResourceShare'], ['description' => 'Error codes changed', 'api' => 'CreateResourceShare'], ['description' => 'Response parameters changed', 'api' => 'DisassociateResourceShare'], ['description' => 'Response parameters changed', 'api' => 'ListResourceShareAssociations'], ['description' => 'Response parameters changed', 'api' => 'ListSharedTargets'], ], 'createdAt' => '2024-01-03T06:52:41.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'AcceptResourceShareInvitation'], ['description' => 'Response parameters changed', 'api' => 'ListResourceShareInvitations'], ], 'createdAt' => '2023-12-25T08:59:37.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'ListSharedResources'], ['description' => 'Response parameters changed', 'api' => 'ListSharedTargets'], ], 'createdAt' => '2023-10-23T10:00:31.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'ListSharedResources'], ['description' => 'Response parameters changed', 'api' => 'ListSharedTargets'], ], 'createdAt' => '2023-10-23T03:19:41.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'AssociateResourceShare'], ['description' => 'Error codes changed', 'api' => 'CreateResourceShare'], ], 'createdAt' => '2023-04-07T03:39:05.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'AssociateResourceShare'], ['description' => 'Error codes changed', 'api' => 'CreateResourceShare'], ], 'createdAt' => '2023-04-07T02:50:33.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResourceShare'], ['description' => 'Request parameters changed, Response parameters changed, Response parameters changed', 'api' => 'ListResourceShares'], ], 'createdAt' => '2023-04-03T06:28:23.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResourceShare'], ['description' => 'Response parameters changed', 'api' => 'DeleteResourceShare'], ['description' => 'Request parameters changed, Response parameters changed, Response parameters changed', 'api' => 'ListResourceShares'], ['description' => 'Response parameters changed', 'api' => 'UpdateResourceShare'], ], 'createdAt' => '2023-03-24T08:25:29.000Z', 'description' => '', ], [ 'apis' => [ ['description' => 'Error codes changed, Request parameters changed', 'api' => 'AssociateResourceShare'], ['description' => 'OpenAPI offline', 'api' => 'AssociateResourceSharePermission'], ['description' => 'Error codes changed, Request parameters changed', 'api' => 'CreateResourceShare'], ['description' => 'OpenAPI offline', 'api' => 'DisassociateResourceSharePermission'], ['description' => 'OpenAPI offline', 'api' => 'GetPermission'], ['description' => 'OpenAPI offline', 'api' => 'ListPermissions'], ['description' => 'OpenAPI offline', 'api' => 'ListPermissionVersions'], ['description' => 'OpenAPI offline', 'api' => 'ListResourceSharePermissions'], ['description' => 'Request parameters changed', 'api' => 'ListResourceShares'], ], 'createdAt' => '2022-11-16T06:58:52.000Z', 'description' => '支持资源共享权限', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'DeleteResourceShare'], ['description' => 'Error codes changed', 'api' => 'UpdateResourceShare'], ], 'createdAt' => '2022-09-08T02:15:06.000Z', 'description' => '错误码更新', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'ListResourceShareInvitations'], ], 'createdAt' => '2022-07-11T06:20:25.000Z', 'description' => '错误码调整', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'AssociateResourceShare'], ['description' => 'Error codes changed', 'api' => 'CreateResourceShare'], ], 'createdAt' => '2022-04-26T08:53:28.000Z', 'description' => '增加错误码', ], [ 'apis' => [ ['description' => 'Error codes changed', 'api' => 'ListResourceShareAssociations'], ['description' => 'Error codes changed', 'api' => 'ListResourceShares'], ['description' => 'Error codes changed', 'api' => 'ListSharedResources'], ], 'createdAt' => '2022-01-05T03:04:12.000Z', 'description' => '接口错误码补全', ], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceSharePermissions'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateResourceSharePermission'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateResourceShare'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RejectResourceShareInvitation'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceShare'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AcceptResourceShareInvitation'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPermissions'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckSharingWithResourceDirectoryStatus'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSharedResources'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisassociateResourceSharePermission'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceShares'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPermission'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceShare'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPermissionVersions'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceShareInvitations'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceShareAssociations'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceShare'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSharedTargets'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisassociateResourceShare'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSharingWithResourceDirectory'], ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'], ], ], 'ram' => [ 'productCode' => 'ResourceManager', 'productName' => 'Resource Management', 'ramCodes' => ['resourcecenter', 'resourcemanager', 'tag', 'resourcesharing'], 'ramLevel' => 'RESOURCE', 'ramConditions' => [ [ 'name' => 'resourcesharing:ResourceArn', 'schema' => ['type' => 'String', 'description' => 'The resource ARN. Example: acs:vpc:cn-shanghai:131993166204****:vswitch/vsw-7xv4sfwo86u2etl64****.'], ], [ 'name' => 'resourcesharing:RequestedAllowExternalTargets', 'schema' => [ 'type' => 'Boolean', 'description' => 'Whether resources in the resource share can be shared with accounts outside the resource directory. Example: false.', 'enums' => ['true', 'false'], ], ], [ 'name' => 'ram:ServiceName', 'schema' => ['type' => 'String', 'description' => 'Specifies the trusted service principal for service-linked role. Example: actiontrail.aliyuncs.com'], ], [ 'name' => 'resourcesharing:Target', 'schema' => ['type' => 'String', 'description' => 'Example values include: Resource Directory ID, the RDPath of a folder, or the RDPath of an account (within the resource directory), or the account ID (for accounts outside of the resource directory).'], ], [ 'name' => 'resourcesharing:RequestedResourceType', 'schema' => ['type' => 'String', 'description' => 'The resource type. Example: VSwitch.'], ], ], 'ramActions' => [ [ 'apiName' => 'DisassociateResourceSharePermission', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:DisassociateResourceSharePermission', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'DeleteResourceShare', 'description' => '', 'operationType' => 'delete', 'ramAction' => [ 'action' => 'resourcesharing:DeleteResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'AssociateResourceSharePermission', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:AssociateResourceSharePermission', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ChangeResourceGroup', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:ChangeResourceGroup', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], [ 'apiName' => 'ListSharedResources', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListSharedResources', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'CheckSharingWithResourceDirectoryStatus', 'description' => '', 'operationType' => 'get', 'ramAction' => [ 'action' => 'resourcesharing:CheckSharingWithResourceDirectoryStatus', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListSharedTargets', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListSharedTargets', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'GetPermission', 'description' => '', 'operationType' => 'get', 'ramAction' => [ 'action' => 'resourcesharing:GetPermission', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'UntagResources', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:UntagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], [ 'apiName' => 'CreateResourceShare', 'description' => '', 'operationType' => 'create', 'ramAction' => [ 'action' => 'resourcesharing:CreateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedAllowExternalTargets', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:Target', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'DisassociateResourceShare', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:DisassociateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'RejectResourceShareInvitation', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:RejectResourceShareInvitation', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListResourceShares', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceShares', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListPermissions', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListPermissions', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListResourceShareAssociations', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceShareAssociations', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'AcceptResourceShareInvitation', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:AcceptResourceShareInvitation', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListResourceShareInvitations', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceShareInvitations', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListPermissionVersions', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListPermissionVersions', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'AssociateResourceShare', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:AssociateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:Target', 'validationType' => 'always'], ['conditionKey' => 'resourcesharing:RequestedResourceType'], ['conditionKey' => 'resourcesharing:ResourceArn'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'ListResourceSharePermissions', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListResourceSharePermissions', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'UpdateResourceShare', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:UpdateResourceShare', 'authLevel' => 'operate', 'actionConditions' => [ ['conditionKey' => 'resourcesharing:RequestedAllowExternalTargets', 'validationType' => 'always'], ], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'TagResources', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:TagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ], ], ], [ 'apiName' => 'ListTagResources', 'description' => '', 'operationType' => 'list', 'ramAction' => [ 'action' => 'resourcesharing:ListTagResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'EnableSharingWithResourceDirectory', 'description' => '', 'operationType' => 'update', 'ramAction' => [ 'action' => 'resourcesharing:EnableSharingWithResourceDirectory', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ResourceManager', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'resourceTypes' => [ ['validationType' => 'always', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId}'], ['validationType' => 'always', 'resourceType' => 'ResourceSharePermission', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:*'], ['validationType' => 'always', 'resourceType' => 'ResourceShare', 'arn' => 'acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/*'], ], ], ];