Skip to content

ImageSharePermissionProps

Properties for defining a ImageSharePermission.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-imagesharepermission

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new ImageSharePermissionProps {
    object ImageId,
    object Accounts = null,
    object IsPublic = null,
    object KeepPermission = null
};

Properties

Name Type Description
ImageId object Property imageId: The ID of the custom image.
Accounts object Property accounts: Alibaba Cloud account IDs authorized to share the image.
IsPublic object Property isPublic: Specifies whether to publish or unpublish the community image.
KeepPermission object Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set.

ImageIdRequired

public object ImageId { get; set; }
  • Type: object

Property imageId: The ID of the custom image.

You can no longer share images that are encrypted by using a service key. You can share only images that are encrypted by using a customer managed key (CMK). If you attempt to share an image that is encrypted by using a service key, the request fails.


AccountsOptional

public object Accounts { get; set; }
  • Type: object

Property accounts: Alibaba Cloud account IDs authorized to share the image.


IsPublicOptional

public object IsPublic { get; set; }
  • Type: object

Property isPublic: Specifies whether to publish or unpublish the community image.

Valid values:

  • true: publishes the image as a community image.
  • false: unpublishes the community image. The image becomes a custom image. If the image is a custom image, this setting has no effect. Default value: false.

KeepPermissionOptional

public object KeepPermission { get; set; }
  • Type: object

Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set.