UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

155 lines (154 loc) 5.36 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages memberships status for the shared OpenStack Glance V2 Image within the * destination project, which has a member proposal. * * ## Example Usage * * Accept a shared image membershipship proposal within the current project. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const rancheros = openstack.images.getImage({ * name: "RancherOS", * visibility: "shared", * memberStatus: "all", * }); * const rancherosMember = new openstack.images.ImageAccessAccept("rancheros_member", { * imageId: rancheros.then(rancheros => rancheros.id), * status: "accepted", * }); * ``` * * ## Import * * Image access acceptance status can be imported using the `image_id`, e.g. * * ```sh * $ pulumi import openstack:images/imageAccessAccept:ImageAccessAccept openstack_images_image_access_accept_v2 89c60255-9bd6-460c-822a-e2b959ede9d2 * ``` */ export declare class ImageAccessAccept extends pulumi.CustomResource { /** * Get an existing ImageAccessAccept resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ImageAccessAcceptState, opts?: pulumi.CustomResourceOptions): ImageAccessAccept; /** * Returns true if the given object is an instance of ImageAccessAccept. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ImageAccessAccept; /** * The date the image membership was created. */ readonly createdAt: pulumi.Output<string>; /** * The proposed image ID. */ readonly imageId: pulumi.Output<string>; /** * The member ID, e.g. the target project ID. Optional * for admin accounts. Defaults to the current scope project ID. */ readonly memberId: pulumi.Output<string>; /** * The region in which to obtain the V2 Glance client. * A Glance client is needed to manage Image memberships. If omitted, the * `region` argument of the provider is used. Changing this creates a new * membership. */ readonly region: pulumi.Output<string>; /** * The membership schema. */ readonly schema: pulumi.Output<string>; /** * The membership proposal status. Can either be * `accepted`, `rejected` or `pending`. */ readonly status: pulumi.Output<string>; /** * The date the image membership was last updated. */ readonly updatedAt: pulumi.Output<string>; /** * Create a ImageAccessAccept resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ImageAccessAcceptArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ImageAccessAccept resources. */ export interface ImageAccessAcceptState { /** * The date the image membership was created. */ createdAt?: pulumi.Input<string>; /** * The proposed image ID. */ imageId?: pulumi.Input<string>; /** * The member ID, e.g. the target project ID. Optional * for admin accounts. Defaults to the current scope project ID. */ memberId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Glance client. * A Glance client is needed to manage Image memberships. If omitted, the * `region` argument of the provider is used. Changing this creates a new * membership. */ region?: pulumi.Input<string>; /** * The membership schema. */ schema?: pulumi.Input<string>; /** * The membership proposal status. Can either be * `accepted`, `rejected` or `pending`. */ status?: pulumi.Input<string>; /** * The date the image membership was last updated. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a ImageAccessAccept resource. */ export interface ImageAccessAcceptArgs { /** * The proposed image ID. */ imageId: pulumi.Input<string>; /** * The member ID, e.g. the target project ID. Optional * for admin accounts. Defaults to the current scope project ID. */ memberId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Glance client. * A Glance client is needed to manage Image memberships. If omitted, the * `region` argument of the provider is used. Changing this creates a new * membership. */ region?: pulumi.Input<string>; /** * The membership proposal status. Can either be * `accepted`, `rejected` or `pending`. */ status: pulumi.Input<string>; }