1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ImsImageShareAcceptV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ImsImageShareAcceptV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Manages an IMS image share accept resource within OpenTelekomCloud.

    Creating resource means accepting shared image, while destroying resource means rejecting shared image.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const sharedImageId = config.requireObject("sharedImageId");
    const acc = new opentelekomcloud.ImsImageShareAcceptV1("acc", {imageId: sharedImageId});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    shared_image_id = config.require_object("sharedImageId")
    acc = opentelekomcloud.ImsImageShareAcceptV1("acc", image_id=shared_image_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		sharedImageId := cfg.RequireObject("sharedImageId")
    		_, err := opentelekomcloud.NewImsImageShareAcceptV1(ctx, "acc", &opentelekomcloud.ImsImageShareAcceptV1Args{
    			ImageId: pulumi.Any(sharedImageId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var sharedImageId = config.RequireObject<dynamic>("sharedImageId");
        var acc = new Opentelekomcloud.ImsImageShareAcceptV1("acc", new()
        {
            ImageId = sharedImageId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ImsImageShareAcceptV1;
    import com.pulumi.opentelekomcloud.ImsImageShareAcceptV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var sharedImageId = config.get("sharedImageId");
            var acc = new ImsImageShareAcceptV1("acc", ImsImageShareAcceptV1Args.builder()
                .imageId(sharedImageId)
                .build());
    
        }
    }
    
    configuration:
      sharedImageId:
        type: dynamic
    resources:
      acc:
        type: opentelekomcloud:ImsImageShareAcceptV1
        properties:
          imageId: ${sharedImageId}
    

    Create ImsImageShareAcceptV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ImsImageShareAcceptV1(name: string, args: ImsImageShareAcceptV1Args, opts?: CustomResourceOptions);
    @overload
    def ImsImageShareAcceptV1(resource_name: str,
                              args: ImsImageShareAcceptV1Args,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImsImageShareAcceptV1(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              image_id: Optional[str] = None,
                              ims_image_share_accept_v1_id: Optional[str] = None,
                              timeouts: Optional[ImsImageShareAcceptV1TimeoutsArgs] = None,
                              vault_id: Optional[str] = None)
    func NewImsImageShareAcceptV1(ctx *Context, name string, args ImsImageShareAcceptV1Args, opts ...ResourceOption) (*ImsImageShareAcceptV1, error)
    public ImsImageShareAcceptV1(string name, ImsImageShareAcceptV1Args args, CustomResourceOptions? opts = null)
    public ImsImageShareAcceptV1(String name, ImsImageShareAcceptV1Args args)
    public ImsImageShareAcceptV1(String name, ImsImageShareAcceptV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:ImsImageShareAcceptV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImsImageShareAcceptV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImsImageShareAcceptV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImsImageShareAcceptV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImsImageShareAcceptV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImsImageShareAcceptV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var imsImageShareAcceptV1Resource = new Opentelekomcloud.ImsImageShareAcceptV1("imsImageShareAcceptV1Resource", new()
    {
        ImageId = "string",
        ImsImageShareAcceptV1Id = "string",
        Timeouts = new Opentelekomcloud.Inputs.ImsImageShareAcceptV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VaultId = "string",
    });
    
    example, err := opentelekomcloud.NewImsImageShareAcceptV1(ctx, "imsImageShareAcceptV1Resource", &opentelekomcloud.ImsImageShareAcceptV1Args{
    	ImageId:                 pulumi.String("string"),
    	ImsImageShareAcceptV1Id: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.ImsImageShareAcceptV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VaultId: pulumi.String("string"),
    })
    
    var imsImageShareAcceptV1Resource = new ImsImageShareAcceptV1("imsImageShareAcceptV1Resource", ImsImageShareAcceptV1Args.builder()
        .imageId("string")
        .imsImageShareAcceptV1Id("string")
        .timeouts(ImsImageShareAcceptV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vaultId("string")
        .build());
    
    ims_image_share_accept_v1_resource = opentelekomcloud.ImsImageShareAcceptV1("imsImageShareAcceptV1Resource",
        image_id="string",
        ims_image_share_accept_v1_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vault_id="string")
    
    const imsImageShareAcceptV1Resource = new opentelekomcloud.ImsImageShareAcceptV1("imsImageShareAcceptV1Resource", {
        imageId: "string",
        imsImageShareAcceptV1Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vaultId: "string",
    });
    
    type: opentelekomcloud:ImsImageShareAcceptV1
    properties:
        imageId: string
        imsImageShareAcceptV1Id: string
        timeouts:
            create: string
            delete: string
        vaultId: string
    

    ImsImageShareAcceptV1 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ImsImageShareAcceptV1 resource accepts the following input properties:

    ImageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ImsImageShareAcceptV1Id string
    The resource ID in UUID format.
    Timeouts ImsImageShareAcceptV1Timeouts
    VaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    ImageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ImsImageShareAcceptV1Id string
    The resource ID in UUID format.
    Timeouts ImsImageShareAcceptV1TimeoutsArgs
    VaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId String

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id String
    The resource ID in UUID format.
    timeouts ImsImageShareAcceptV1Timeouts
    vaultId String

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id string
    The resource ID in UUID format.
    timeouts ImsImageShareAcceptV1Timeouts
    vaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    image_id str

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ims_image_share_accept_v1_id str
    The resource ID in UUID format.
    timeouts ImsImageShareAcceptV1TimeoutsArgs
    vault_id str

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId String

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id String
    The resource ID in UUID format.
    timeouts Property Map
    vaultId String

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ImsImageShareAcceptV1 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region in which resource is located.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region in which resource is located.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region in which resource is located.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The region in which resource is located.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The region in which resource is located.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region in which resource is located.

    Look up Existing ImsImageShareAcceptV1 Resource

    Get an existing ImsImageShareAcceptV1 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?: ImsImageShareAcceptV1State, opts?: CustomResourceOptions): ImsImageShareAcceptV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            image_id: Optional[str] = None,
            ims_image_share_accept_v1_id: Optional[str] = None,
            region: Optional[str] = None,
            timeouts: Optional[ImsImageShareAcceptV1TimeoutsArgs] = None,
            vault_id: Optional[str] = None) -> ImsImageShareAcceptV1
    func GetImsImageShareAcceptV1(ctx *Context, name string, id IDInput, state *ImsImageShareAcceptV1State, opts ...ResourceOption) (*ImsImageShareAcceptV1, error)
    public static ImsImageShareAcceptV1 Get(string name, Input<string> id, ImsImageShareAcceptV1State? state, CustomResourceOptions? opts = null)
    public static ImsImageShareAcceptV1 get(String name, Output<String> id, ImsImageShareAcceptV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ImsImageShareAcceptV1    get:      id: ${id}
    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.
    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:
    ImageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ImsImageShareAcceptV1Id string
    The resource ID in UUID format.
    Region string
    The region in which resource is located.
    Timeouts ImsImageShareAcceptV1Timeouts
    VaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    ImageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ImsImageShareAcceptV1Id string
    The resource ID in UUID format.
    Region string
    The region in which resource is located.
    Timeouts ImsImageShareAcceptV1TimeoutsArgs
    VaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId String

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id String
    The resource ID in UUID format.
    region String
    The region in which resource is located.
    timeouts ImsImageShareAcceptV1Timeouts
    vaultId String

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId string

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id string
    The resource ID in UUID format.
    region string
    The region in which resource is located.
    timeouts ImsImageShareAcceptV1Timeouts
    vaultId string

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    image_id str

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    ims_image_share_accept_v1_id str
    The resource ID in UUID format.
    region str
    The region in which resource is located.
    timeouts ImsImageShareAcceptV1TimeoutsArgs
    vault_id str

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    imageId String

    Specifies the ID of the image.

    Changing this parameter will create a new resource.

    imsImageShareAcceptV1Id String
    The resource ID in UUID format.
    region String
    The region in which resource is located.
    timeouts Property Map
    vaultId String

    Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.

    Changing this parameter will create a new resource.

    Supporting Types

    ImsImageShareAcceptV1Timeouts, ImsImageShareAcceptV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud