ImageSharePermission
Manage image sharing permissions. You can share your custom image to other Alibaba Cloud users. The user can use the shared custom image to create ECS instances or replace the system disk of the instance.
NOTE: You can only share your own custom images to other Alibaba Cloud users.
NOTE: Each custom image can be shared with up to 50 Alibaba Cloud accounts. You can submit a ticket to share with more users.
NOTE: After creating an ECS instance using a shared image, once the custom image owner releases the image sharing relationship or deletes the custom image, the instance cannot initialize the system disk.
NOTE: Available in 1.68.0+.
Attributes Reference0
The following attributes are exported:
id- ID of the image. It formats as<image_id>:<account_id>
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Ecs.ImageSharePermission("default", new AliCloud.Ecs.ImageSharePermissionArgs
{
AccountId = "1234567890",
ImageId = "m-bp1gxyh***",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ecs.ImageSharePermission("default",
account_id="1234567890",
image_id="m-bp1gxyh***")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultImageSharePermission = new alicloud.ecs.ImageSharePermission("default", {
accountId: "1234567890",
imageId: "m-bp1gxyh***",
});Create a ImageSharePermission Resource
new ImageSharePermission(name: string, args: ImageSharePermissionArgs, opts?: CustomResourceOptions);def ImageSharePermission(resource_name, opts=None, account_id=None, image_id=None, __props__=None);func NewImageSharePermission(ctx *Context, name string, args ImageSharePermissionArgs, opts ...ResourceOption) (*ImageSharePermission, error)public ImageSharePermission(string name, ImageSharePermissionArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ImageSharePermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ImageSharePermissionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImageSharePermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ImageSharePermission Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ImageSharePermission resource accepts the following input properties:
- account_
id str Alibaba Cloud Account ID. It is used to share images.
- image_
id str The source image ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImageSharePermission resource produces the following output properties:
Look up an Existing ImageSharePermission Resource
Get an existing ImageSharePermission resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ImageSharePermissionState, opts?: CustomResourceOptions): ImageSharePermissionstatic get(resource_name, id, opts=None, account_id=None, image_id=None, __props__=None);func GetImageSharePermission(ctx *Context, name string, id IDInput, state *ImageSharePermissionState, opts ...ResourceOption) (*ImageSharePermission, error)public static ImageSharePermission Get(string name, Input<string> id, ImageSharePermissionState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- account_
id str Alibaba Cloud Account ID. It is used to share images.
- image_
id str The source image ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.