Documentation
¶
Index ¶
- type GetImageIdsArgs
- type GetImageIdsOutputArgs
- type GetImageIdsResult
- type GetImageIdsResultOutput
- func (GetImageIdsResultOutput) ElementType() reflect.Type
- func (o GetImageIdsResultOutput) Id() pulumi.StringOutput
- func (o GetImageIdsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetImageIdsResultOutput) MemberStatus() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) Owner() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) Properties() pulumi.MapOutput
- func (o GetImageIdsResultOutput) Region() pulumi.StringOutput
- func (o GetImageIdsResultOutput) SizeMax() pulumi.IntPtrOutput
- func (o GetImageIdsResultOutput) SizeMin() pulumi.IntPtrOutput
- func (o GetImageIdsResultOutput) Sort() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) SortDirection() pulumi.StringPtrOutputdeprecated
- func (o GetImageIdsResultOutput) SortKey() pulumi.StringPtrOutputdeprecated
- func (o GetImageIdsResultOutput) Tag() pulumi.StringPtrOutput
- func (o GetImageIdsResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetImageIdsResultOutput) ToGetImageIdsResultOutput() GetImageIdsResultOutput
- func (o GetImageIdsResultOutput) ToGetImageIdsResultOutputWithContext(ctx context.Context) GetImageIdsResultOutput
- func (o GetImageIdsResultOutput) Visibility() pulumi.StringPtrOutput
- type Image
- type ImageAccess
- type ImageAccessAccept
- type ImageAccessAcceptArgs
- type ImageAccessAcceptArray
- type ImageAccessAcceptArrayInput
- type ImageAccessAcceptArrayOutput
- func (ImageAccessAcceptArrayOutput) ElementType() reflect.Type
- func (o ImageAccessAcceptArrayOutput) Index(i pulumi.IntInput) ImageAccessAcceptOutput
- func (o ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutput() ImageAccessAcceptArrayOutput
- func (o ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutputWithContext(ctx context.Context) ImageAccessAcceptArrayOutput
- type ImageAccessAcceptInput
- type ImageAccessAcceptMap
- type ImageAccessAcceptMapInput
- type ImageAccessAcceptMapOutput
- func (ImageAccessAcceptMapOutput) ElementType() reflect.Type
- func (o ImageAccessAcceptMapOutput) MapIndex(k pulumi.StringInput) ImageAccessAcceptOutput
- func (o ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutput() ImageAccessAcceptMapOutput
- func (o ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutputWithContext(ctx context.Context) ImageAccessAcceptMapOutput
- type ImageAccessAcceptOutput
- func (o ImageAccessAcceptOutput) CreatedAt() pulumi.StringOutput
- func (ImageAccessAcceptOutput) ElementType() reflect.Type
- func (o ImageAccessAcceptOutput) ImageId() pulumi.StringOutput
- func (o ImageAccessAcceptOutput) MemberId() pulumi.StringOutput
- func (o ImageAccessAcceptOutput) Region() pulumi.StringOutput
- func (o ImageAccessAcceptOutput) Schema() pulumi.StringOutput
- func (o ImageAccessAcceptOutput) Status() pulumi.StringOutput
- func (o ImageAccessAcceptOutput) ToImageAccessAcceptOutput() ImageAccessAcceptOutput
- func (o ImageAccessAcceptOutput) ToImageAccessAcceptOutputWithContext(ctx context.Context) ImageAccessAcceptOutput
- func (o ImageAccessAcceptOutput) UpdatedAt() pulumi.StringOutput
- type ImageAccessAcceptState
- type ImageAccessArgs
- type ImageAccessArray
- type ImageAccessArrayInput
- type ImageAccessArrayOutput
- func (ImageAccessArrayOutput) ElementType() reflect.Type
- func (o ImageAccessArrayOutput) Index(i pulumi.IntInput) ImageAccessOutput
- func (o ImageAccessArrayOutput) ToImageAccessArrayOutput() ImageAccessArrayOutput
- func (o ImageAccessArrayOutput) ToImageAccessArrayOutputWithContext(ctx context.Context) ImageAccessArrayOutput
- type ImageAccessInput
- type ImageAccessMap
- type ImageAccessMapInput
- type ImageAccessMapOutput
- func (ImageAccessMapOutput) ElementType() reflect.Type
- func (o ImageAccessMapOutput) MapIndex(k pulumi.StringInput) ImageAccessOutput
- func (o ImageAccessMapOutput) ToImageAccessMapOutput() ImageAccessMapOutput
- func (o ImageAccessMapOutput) ToImageAccessMapOutputWithContext(ctx context.Context) ImageAccessMapOutput
- type ImageAccessOutput
- func (o ImageAccessOutput) CreatedAt() pulumi.StringOutput
- func (ImageAccessOutput) ElementType() reflect.Type
- func (o ImageAccessOutput) ImageId() pulumi.StringOutput
- func (o ImageAccessOutput) MemberId() pulumi.StringOutput
- func (o ImageAccessOutput) Region() pulumi.StringOutput
- func (o ImageAccessOutput) Schema() pulumi.StringOutput
- func (o ImageAccessOutput) Status() pulumi.StringOutput
- func (o ImageAccessOutput) ToImageAccessOutput() ImageAccessOutput
- func (o ImageAccessOutput) ToImageAccessOutputWithContext(ctx context.Context) ImageAccessOutput
- func (o ImageAccessOutput) UpdatedAt() pulumi.StringOutput
- type ImageAccessState
- type ImageArgs
- type ImageArray
- type ImageArrayInput
- type ImageArrayOutput
- type ImageInput
- type ImageMap
- type ImageMapInput
- type ImageMapOutput
- type ImageOutput
- func (o ImageOutput) Checksum() pulumi.StringOutput
- func (o ImageOutput) ContainerFormat() pulumi.StringOutput
- func (o ImageOutput) CreatedAt() pulumi.StringOutput
- func (o ImageOutput) Decompress() pulumi.BoolPtrOutput
- func (o ImageOutput) DiskFormat() pulumi.StringOutput
- func (ImageOutput) ElementType() reflect.Type
- func (o ImageOutput) File() pulumi.StringOutput
- func (o ImageOutput) Hidden() pulumi.BoolPtrOutput
- func (o ImageOutput) ImageCachePath() pulumi.StringPtrOutput
- func (o ImageOutput) ImageId() pulumi.StringOutput
- func (o ImageOutput) ImageSourcePassword() pulumi.StringPtrOutput
- func (o ImageOutput) ImageSourceUrl() pulumi.StringPtrOutput
- func (o ImageOutput) ImageSourceUsername() pulumi.StringPtrOutput
- func (o ImageOutput) LocalFilePath() pulumi.StringPtrOutput
- func (o ImageOutput) Metadata() pulumi.MapOutput
- func (o ImageOutput) MinDiskGb() pulumi.IntPtrOutput
- func (o ImageOutput) MinRamMb() pulumi.IntPtrOutput
- func (o ImageOutput) Name() pulumi.StringOutput
- func (o ImageOutput) Owner() pulumi.StringOutput
- func (o ImageOutput) Properties() pulumi.MapOutput
- func (o ImageOutput) Protected() pulumi.BoolPtrOutput
- func (o ImageOutput) Region() pulumi.StringOutput
- func (o ImageOutput) Schema() pulumi.StringOutput
- func (o ImageOutput) SizeBytes() pulumi.IntOutput
- func (o ImageOutput) Status() pulumi.StringOutput
- func (o ImageOutput) Tags() pulumi.StringArrayOutput
- func (o ImageOutput) ToImageOutput() ImageOutput
- func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput
- func (o ImageOutput) UpdateAt() pulumi.StringOutputdeprecated
- func (o ImageOutput) UpdatedAt() pulumi.StringOutput
- func (o ImageOutput) VerifyChecksum() pulumi.BoolPtrOutput
- func (o ImageOutput) Visibility() pulumi.StringPtrOutput
- func (o ImageOutput) WebDownload() pulumi.BoolPtrOutput
- type ImageState
- type LookupImageArgs
- type LookupImageOutputArgs
- type LookupImageResult
- type LookupImageResultOutput
- func (o LookupImageResultOutput) Checksum() pulumi.StringOutput
- func (o LookupImageResultOutput) ContainerFormat() pulumi.StringOutput
- func (o LookupImageResultOutput) CreatedAt() pulumi.StringOutput
- func (o LookupImageResultOutput) DiskFormat() pulumi.StringOutput
- func (LookupImageResultOutput) ElementType() reflect.Type
- func (o LookupImageResultOutput) File() pulumi.StringOutput
- func (o LookupImageResultOutput) Hidden() pulumi.BoolPtrOutput
- func (o LookupImageResultOutput) Id() pulumi.StringOutput
- func (o LookupImageResultOutput) MemberStatus() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) Metadata() pulumi.MapOutput
- func (o LookupImageResultOutput) MinDiskGb() pulumi.IntOutput
- func (o LookupImageResultOutput) MinRamMb() pulumi.IntOutput
- func (o LookupImageResultOutput) MostRecent() pulumi.BoolPtrOutput
- func (o LookupImageResultOutput) Name() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) Owner() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) Properties() pulumi.MapOutput
- func (o LookupImageResultOutput) Protected() pulumi.BoolOutput
- func (o LookupImageResultOutput) Region() pulumi.StringOutput
- func (o LookupImageResultOutput) Schema() pulumi.StringOutput
- func (o LookupImageResultOutput) SizeBytes() pulumi.IntOutput
- func (o LookupImageResultOutput) SizeMax() pulumi.IntPtrOutput
- func (o LookupImageResultOutput) SizeMin() pulumi.IntPtrOutput
- func (o LookupImageResultOutput) SortDirection() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) SortKey() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) Tag() pulumi.StringPtrOutput
- func (o LookupImageResultOutput) Tags() pulumi.StringArrayOutput
- func (o LookupImageResultOutput) ToLookupImageResultOutput() LookupImageResultOutput
- func (o LookupImageResultOutput) ToLookupImageResultOutputWithContext(ctx context.Context) LookupImageResultOutput
- func (o LookupImageResultOutput) UpdatedAt() pulumi.StringOutput
- func (o LookupImageResultOutput) Visibility() pulumi.StringPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetImageIdsArgs ¶
type GetImageIdsArgs struct { // The status of the image. Must be one of // "accepted", "pending", "rejected", or "all". MemberStatus *string `pulumi:"memberStatus"` // The name of the image. Cannot be used simultaneously // with `nameRegex`. Name *string `pulumi:"name"` // The regular expressian of the name of the image. // Cannot be used simultaneously with `name`. Unlike filtering by `name` the // `nameRegex` filtering does by client on the result of OpenStack search // query. NameRegex *string `pulumi:"nameRegex"` // The owner (UUID) of the image. Owner *string `pulumi:"owner"` // a map of key/value pairs to match an image with. // All specified properties must be matched. Unlike other options filtering // by `properties` does by client on the result of OpenStack search query. Properties map[string]interface{} `pulumi:"properties"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Region *string `pulumi:"region"` // The maximum size (in bytes) of the image to return. SizeMax *int `pulumi:"sizeMax"` // The minimum size (in bytes) of the image to return. SizeMin *int `pulumi:"sizeMin"` // Sorts the response by one or more attribute and sort // direction combinations. You can also set multiple sort keys and directions. // Default direction is `desc`. Use the comma (,) character to separate // multiple values. For example expression `sort = "name:asc,status"` // sorts ascending by name and descending by status. `sort` cannot be used // simultaneously with `sortKey`. If both are present in a configuration // then only `sort` will be used. Sort *string `pulumi:"sort"` // Order the results in either `asc` or `desc`. // Can be applied only with `sortKey`. Defaults to `asc` // // Deprecated: Use option 'sort' instead. SortDirection *string `pulumi:"sortDirection"` // Sort images based on a certain key. Defaults to // `name`. `sortKey` cannot be used simultaneously with `sort`. If both // are present in a configuration then only `sort` will be used. // // Deprecated: Use option 'sort' instead. SortKey *string `pulumi:"sortKey"` // Search for images with a specific tag. Tag *string `pulumi:"tag"` // A list of tags required to be set on the image // (all specified tags must be in the images tag list for it to be matched). Tags []string `pulumi:"tags"` // The visibility of the image. Must be one of // "public", "private", "community", or "shared". Defaults to "private". Visibility *string `pulumi:"visibility"` }
A collection of arguments for invoking getImageIds.
type GetImageIdsOutputArgs ¶ added in v3.5.0
type GetImageIdsOutputArgs struct { // The status of the image. Must be one of // "accepted", "pending", "rejected", or "all". MemberStatus pulumi.StringPtrInput `pulumi:"memberStatus"` // The name of the image. Cannot be used simultaneously // with `nameRegex`. Name pulumi.StringPtrInput `pulumi:"name"` // The regular expressian of the name of the image. // Cannot be used simultaneously with `name`. Unlike filtering by `name` the // `nameRegex` filtering does by client on the result of OpenStack search // query. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // The owner (UUID) of the image. Owner pulumi.StringPtrInput `pulumi:"owner"` // a map of key/value pairs to match an image with. // All specified properties must be matched. Unlike other options filtering // by `properties` does by client on the result of OpenStack search query. Properties pulumi.MapInput `pulumi:"properties"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Region pulumi.StringPtrInput `pulumi:"region"` // The maximum size (in bytes) of the image to return. SizeMax pulumi.IntPtrInput `pulumi:"sizeMax"` // The minimum size (in bytes) of the image to return. SizeMin pulumi.IntPtrInput `pulumi:"sizeMin"` // Sorts the response by one or more attribute and sort // direction combinations. You can also set multiple sort keys and directions. // Default direction is `desc`. Use the comma (,) character to separate // multiple values. For example expression `sort = "name:asc,status"` // sorts ascending by name and descending by status. `sort` cannot be used // simultaneously with `sortKey`. If both are present in a configuration // then only `sort` will be used. Sort pulumi.StringPtrInput `pulumi:"sort"` // Order the results in either `asc` or `desc`. // Can be applied only with `sortKey`. Defaults to `asc` // // Deprecated: Use option 'sort' instead. SortDirection pulumi.StringPtrInput `pulumi:"sortDirection"` // Sort images based on a certain key. Defaults to // `name`. `sortKey` cannot be used simultaneously with `sort`. If both // are present in a configuration then only `sort` will be used. // // Deprecated: Use option 'sort' instead. SortKey pulumi.StringPtrInput `pulumi:"sortKey"` // Search for images with a specific tag. Tag pulumi.StringPtrInput `pulumi:"tag"` // A list of tags required to be set on the image // (all specified tags must be in the images tag list for it to be matched). Tags pulumi.StringArrayInput `pulumi:"tags"` // The visibility of the image. Must be one of // "public", "private", "community", or "shared". Defaults to "private". Visibility pulumi.StringPtrInput `pulumi:"visibility"` }
A collection of arguments for invoking getImageIds.
func (GetImageIdsOutputArgs) ElementType ¶ added in v3.5.0
func (GetImageIdsOutputArgs) ElementType() reflect.Type
type GetImageIdsResult ¶
type GetImageIdsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` MemberStatus *string `pulumi:"memberStatus"` Name *string `pulumi:"name"` NameRegex *string `pulumi:"nameRegex"` Owner *string `pulumi:"owner"` Properties map[string]interface{} `pulumi:"properties"` Region string `pulumi:"region"` SizeMax *int `pulumi:"sizeMax"` SizeMin *int `pulumi:"sizeMin"` Sort *string `pulumi:"sort"` // Deprecated: Use option 'sort' instead. SortDirection *string `pulumi:"sortDirection"` // Deprecated: Use option 'sort' instead. SortKey *string `pulumi:"sortKey"` Tag *string `pulumi:"tag"` Tags []string `pulumi:"tags"` Visibility *string `pulumi:"visibility"` }
A collection of values returned by getImageIds.
func GetImageIds ¶
func GetImageIds(ctx *pulumi.Context, args *GetImageIdsArgs, opts ...pulumi.InvokeOption) (*GetImageIdsResult, error)
Use this data source to get a list of Openstack Image IDs matching the specified criteria.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := images.GetImageIds(ctx, &images.GetImageIdsArgs{ NameRegex: pulumi.StringRef("^Ubuntu 16\\.04.*-amd64"), Properties: map[string]interface{}{ "key": "value", }, Sort: pulumi.StringRef("updated_at"), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type GetImageIdsResultOutput ¶ added in v3.5.0
type GetImageIdsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getImageIds.
func GetImageIdsOutput ¶ added in v3.5.0
func GetImageIdsOutput(ctx *pulumi.Context, args GetImageIdsOutputArgs, opts ...pulumi.InvokeOption) GetImageIdsResultOutput
func (GetImageIdsResultOutput) ElementType ¶ added in v3.5.0
func (GetImageIdsResultOutput) ElementType() reflect.Type
func (GetImageIdsResultOutput) Id ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetImageIdsResultOutput) Ids ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Ids() pulumi.StringArrayOutput
func (GetImageIdsResultOutput) MemberStatus ¶ added in v3.5.0
func (o GetImageIdsResultOutput) MemberStatus() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) Name ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Name() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) NameRegex ¶ added in v3.5.0
func (o GetImageIdsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) Owner ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Owner() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) Properties ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Properties() pulumi.MapOutput
func (GetImageIdsResultOutput) Region ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Region() pulumi.StringOutput
func (GetImageIdsResultOutput) SizeMax ¶ added in v3.5.0
func (o GetImageIdsResultOutput) SizeMax() pulumi.IntPtrOutput
func (GetImageIdsResultOutput) SizeMin ¶ added in v3.5.0
func (o GetImageIdsResultOutput) SizeMin() pulumi.IntPtrOutput
func (GetImageIdsResultOutput) Sort ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Sort() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) SortDirection
deprecated
added in
v3.5.0
func (o GetImageIdsResultOutput) SortDirection() pulumi.StringPtrOutput
Deprecated: Use option 'sort' instead.
func (GetImageIdsResultOutput) SortKey
deprecated
added in
v3.5.0
func (o GetImageIdsResultOutput) SortKey() pulumi.StringPtrOutput
Deprecated: Use option 'sort' instead.
func (GetImageIdsResultOutput) Tag ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Tag() pulumi.StringPtrOutput
func (GetImageIdsResultOutput) Tags ¶ added in v3.11.0
func (o GetImageIdsResultOutput) Tags() pulumi.StringArrayOutput
func (GetImageIdsResultOutput) ToGetImageIdsResultOutput ¶ added in v3.5.0
func (o GetImageIdsResultOutput) ToGetImageIdsResultOutput() GetImageIdsResultOutput
func (GetImageIdsResultOutput) ToGetImageIdsResultOutputWithContext ¶ added in v3.5.0
func (o GetImageIdsResultOutput) ToGetImageIdsResultOutputWithContext(ctx context.Context) GetImageIdsResultOutput
func (GetImageIdsResultOutput) Visibility ¶ added in v3.5.0
func (o GetImageIdsResultOutput) Visibility() pulumi.StringPtrOutput
type Image ¶
type Image struct { pulumi.CustomResourceState // The checksum of the data associated with the image. Checksum pulumi.StringOutput `pulumi:"checksum"` // The container format. Must be one of // "ami", "ari", "aki", "bare", "ovf". ContainerFormat pulumi.StringOutput `pulumi:"containerFormat"` // The date the image was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // If true, this provider will decompress downloaded // image before uploading it to OpenStack. Decompression algorithm is chosen by // checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. // Defaults to false. Changing this creates a new Image. Decompress pulumi.BoolPtrOutput `pulumi:"decompress"` // The disk format. Must be one of // "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". DiskFormat pulumi.StringOutput `pulumi:"diskFormat"` // the trailing path after the glance // endpoint that represent the location of the image // or the path to retrieve it. File pulumi.StringOutput `pulumi:"file"` // If true, image will be hidden from public list. // Defaults to false. Hidden pulumi.BoolPtrOutput `pulumi:"hidden"` ImageCachePath pulumi.StringPtrOutput `pulumi:"imageCachePath"` // Unique ID (valid UUID) of image to create. Changing // this creates a new image. ImageId pulumi.StringOutput `pulumi:"imageId"` // The password of basic auth to download `imageSourceUrl`. ImageSourcePassword pulumi.StringPtrOutput `pulumi:"imageSourcePassword"` // This is the url of the raw image. If `webDownload` // is not used, then the image will be downloaded in the `imageCachePath` before // being uploaded to Glance. // Conflicts with `localFilePath`. ImageSourceUrl pulumi.StringPtrOutput `pulumi:"imageSourceUrl"` // The username of basic auth to download `imageSourceUrl`. ImageSourceUsername pulumi.StringPtrOutput `pulumi:"imageSourceUsername"` // This is the filepath of the raw image file // that will be uploaded to Glance. Conflicts with `imageSourceUrl` and // `webDownload`. LocalFilePath pulumi.StringPtrOutput `pulumi:"localFilePath"` // The metadata associated with the image. // Image metadata allow for meaningfully define the image properties // and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html. Metadata pulumi.MapOutput `pulumi:"metadata"` // Amount of disk space (in GB) required to boot image. // Defaults to 0. MinDiskGb pulumi.IntPtrOutput `pulumi:"minDiskGb"` // Amount of ram (in MB) required to boot image. // Defauts to 0. MinRamMb pulumi.IntPtrOutput `pulumi:"minRamMb"` // The name of the image. Name pulumi.StringOutput `pulumi:"name"` // The id of the openstack user who owns the image. Owner pulumi.StringOutput `pulumi:"owner"` // A map of key/value pairs to set freeform // information about an image. See the "Notes" section for further // information about properties. Properties pulumi.MapOutput `pulumi:"properties"` // If true, image will not be deletable. // Defaults to false. Protected pulumi.BoolPtrOutput `pulumi:"protected"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Changing this creates a new Image. Region pulumi.StringOutput `pulumi:"region"` // The path to the JSON-schema that represent // the image or image Schema pulumi.StringOutput `pulumi:"schema"` // The size in bytes of the data associated with the image. SizeBytes pulumi.IntOutput `pulumi:"sizeBytes"` // The status of the image. It can be "queued", "active" // or "saving". Status pulumi.StringOutput `pulumi:"status"` // The tags of the image. It must be a list of strings. // At this time, it is not possible to delete all tags of an image. Tags pulumi.StringArrayOutput `pulumi:"tags"` // (**Deprecated** - use `updatedAt` instead) // // Deprecated: Use updatedAt instead UpdateAt pulumi.StringOutput `pulumi:"updateAt"` // The date the image was last updated. UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"` // If false, the checksum will not be verified // once the image is finished uploading. Conflicts with `webDownload`. // Defaults to true when not using `webDownload`. VerifyChecksum pulumi.BoolPtrOutput `pulumi:"verifyChecksum"` // The visibility of the image. Must be one of // "public", "private", "community", or "shared". The ability to set the // visibility depends upon the configuration of the OpenStack cloud. Visibility pulumi.StringPtrOutput `pulumi:"visibility"` // If true, the "web-download" import method will // be used to let Openstack download the image directly from the remote source. // Conflicts with `localFilePath`. Defaults to false. WebDownload pulumi.BoolPtrOutput `pulumi:"webDownload"` }
Manages a V2 Image resource within OpenStack Glance.
> **Note:** All arguments including the source image URL password will be stored in the raw state as plain-text. Read more about sensitive data in state.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := images.NewImage(ctx, "rancheros", &images.ImageArgs{ ContainerFormat: pulumi.String("bare"), DiskFormat: pulumi.String("qcow2"), ImageSourceUrl: pulumi.String("https://releases.rancher.com/os/latest/rancheros-openstack.img"), Properties: pulumi.Map{ "key": pulumi.Any("value"), }, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Notes
### Properties
This resource supports the ability to add properties to a resource during creation as well as add, update, and delete properties during an update of this resource.
Newer versions of OpenStack are adding some read-only properties to each image. These properties start with the prefix `os_`. If these properties are detected, this resource will automatically reconcile these with the user-provided properties.
In addition, the `directUrl` and `stores` properties are also automatically reconciled if the Image Service set it.
## Import
Images can be imported using the `id`, e.g.
```sh $ pulumi import openstack:images/image:Image rancheros 89c60255-9bd6-460c-822a-e2b959ede9d2 ```
func GetImage ¶
func GetImage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ImageState, opts ...pulumi.ResourceOption) (*Image, error)
GetImage gets an existing Image resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewImage ¶
func NewImage(ctx *pulumi.Context, name string, args *ImageArgs, opts ...pulumi.ResourceOption) (*Image, error)
NewImage registers a new resource with the given unique name, arguments, and options.
func (*Image) ElementType ¶
func (*Image) ToImageOutput ¶
func (i *Image) ToImageOutput() ImageOutput
func (*Image) ToImageOutputWithContext ¶
func (i *Image) ToImageOutputWithContext(ctx context.Context) ImageOutput
type ImageAccess ¶
type ImageAccess struct { pulumi.CustomResourceState // The date the image access was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // The image ID. ImageId pulumi.StringOutput `pulumi:"imageId"` // The member ID, e.g. the target project ID. MemberId pulumi.StringOutput `pulumi:"memberId"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to manage Image members. If omitted, the `region` // argument of the provider is used. Changing this creates a new resource. Region pulumi.StringOutput `pulumi:"region"` // The member schema. Schema pulumi.StringOutput `pulumi:"schema"` // The member proposal status. Optional if admin wants to // force the member proposal acceptance. Can either be `accepted`, `rejected` or // `pending`. Defaults to `pending`. Foridden for non-admin users. Status pulumi.StringOutput `pulumi:"status"` // The date the image access was last updated. UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"` }
Manages members for the shared OpenStack Glance V2 Image within the source project, which owns the Image.
## Example Usage
### Unprivileged user
Create a shared image and propose a membership to the `bed6b6cbb86a4e2d8dc2735c2f1000e4` project ID.
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rancheros, err := images.NewImage(ctx, "rancheros", &images.ImageArgs{ ImageSourceUrl: pulumi.String("https://releases.rancher.com/os/latest/rancheros-openstack.img"), ContainerFormat: pulumi.String("bare"), DiskFormat: pulumi.String("qcow2"), Visibility: pulumi.String("shared"), Properties: pulumi.Map{ "key": pulumi.Any("value"), }, }) if err != nil { return err } _, err = images.NewImageAccess(ctx, "rancherosMember", &images.ImageAccessArgs{ ImageId: rancheros.ID(), MemberId: pulumi.String("bed6b6cbb86a4e2d8dc2735c2f1000e4"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
### Privileged user
Create a shared image and set a membership to the `bed6b6cbb86a4e2d8dc2735c2f1000e4` project ID.
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rancheros, err := images.NewImage(ctx, "rancheros", &images.ImageArgs{ ImageSourceUrl: pulumi.String("https://releases.rancher.com/os/latest/rancheros-openstack.img"), ContainerFormat: pulumi.String("bare"), DiskFormat: pulumi.String("qcow2"), Visibility: pulumi.String("shared"), Properties: pulumi.Map{ "key": pulumi.Any("value"), }, }) if err != nil { return err } _, err = images.NewImageAccess(ctx, "rancherosMember", &images.ImageAccessArgs{ ImageId: rancheros.ID(), MemberId: pulumi.String("bed6b6cbb86a4e2d8dc2735c2f1000e4"), Status: pulumi.String("accepted"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Image access can be imported using the `image_id` and the `member_id`,
separated by a slash, e.g.
```sh $ pulumi import openstack:images/imageAccess:ImageAccess openstack_images_image_access_v2 89c60255-9bd6-460c-822a-e2b959ede9d2/bed6b6cbb86a4e2d8dc2735c2f1000e4 ```
func GetImageAccess ¶
func GetImageAccess(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ImageAccessState, opts ...pulumi.ResourceOption) (*ImageAccess, error)
GetImageAccess gets an existing ImageAccess resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewImageAccess ¶
func NewImageAccess(ctx *pulumi.Context, name string, args *ImageAccessArgs, opts ...pulumi.ResourceOption) (*ImageAccess, error)
NewImageAccess registers a new resource with the given unique name, arguments, and options.
func (*ImageAccess) ElementType ¶
func (*ImageAccess) ElementType() reflect.Type
func (*ImageAccess) ToImageAccessOutput ¶
func (i *ImageAccess) ToImageAccessOutput() ImageAccessOutput
func (*ImageAccess) ToImageAccessOutputWithContext ¶
func (i *ImageAccess) ToImageAccessOutputWithContext(ctx context.Context) ImageAccessOutput
type ImageAccessAccept ¶
type ImageAccessAccept struct { pulumi.CustomResourceState // The date the image membership was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // The proposed image ID. ImageId pulumi.StringOutput `pulumi:"imageId"` // The member ID, e.g. the target project ID. Optional // for admin accounts. Defaults to the current scope project ID. MemberId pulumi.StringOutput `pulumi:"memberId"` // 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.StringOutput `pulumi:"region"` // The membership schema. Schema pulumi.StringOutput `pulumi:"schema"` // The membership proposal status. Can either be // `accepted`, `rejected` or `pending`. Status pulumi.StringOutput `pulumi:"status"` // The date the image membership was last updated. UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"` }
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.
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rancheros, err := images.LookupImage(ctx, &images.LookupImageArgs{ Name: pulumi.StringRef("RancherOS"), Visibility: pulumi.StringRef("shared"), MemberStatus: pulumi.StringRef("all"), }, nil) if err != nil { return err } _, err = images.NewImageAccessAccept(ctx, "rancherosMember", &images.ImageAccessAcceptArgs{ ImageId: pulumi.String(rancheros.Id), Status: pulumi.String("accepted"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## 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 ```
func GetImageAccessAccept ¶
func GetImageAccessAccept(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ImageAccessAcceptState, opts ...pulumi.ResourceOption) (*ImageAccessAccept, error)
GetImageAccessAccept gets an existing ImageAccessAccept resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewImageAccessAccept ¶
func NewImageAccessAccept(ctx *pulumi.Context, name string, args *ImageAccessAcceptArgs, opts ...pulumi.ResourceOption) (*ImageAccessAccept, error)
NewImageAccessAccept registers a new resource with the given unique name, arguments, and options.
func (*ImageAccessAccept) ElementType ¶
func (*ImageAccessAccept) ElementType() reflect.Type
func (*ImageAccessAccept) ToImageAccessAcceptOutput ¶
func (i *ImageAccessAccept) ToImageAccessAcceptOutput() ImageAccessAcceptOutput
func (*ImageAccessAccept) ToImageAccessAcceptOutputWithContext ¶
func (i *ImageAccessAccept) ToImageAccessAcceptOutputWithContext(ctx context.Context) ImageAccessAcceptOutput
type ImageAccessAcceptArgs ¶
type ImageAccessAcceptArgs struct { // The proposed image ID. ImageId pulumi.StringInput // The member ID, e.g. the target project ID. Optional // for admin accounts. Defaults to the current scope project ID. MemberId pulumi.StringPtrInput // 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.StringPtrInput // The membership proposal status. Can either be // `accepted`, `rejected` or `pending`. Status pulumi.StringInput }
The set of arguments for constructing a ImageAccessAccept resource.
func (ImageAccessAcceptArgs) ElementType ¶
func (ImageAccessAcceptArgs) ElementType() reflect.Type
type ImageAccessAcceptArray ¶
type ImageAccessAcceptArray []ImageAccessAcceptInput
func (ImageAccessAcceptArray) ElementType ¶
func (ImageAccessAcceptArray) ElementType() reflect.Type
func (ImageAccessAcceptArray) ToImageAccessAcceptArrayOutput ¶
func (i ImageAccessAcceptArray) ToImageAccessAcceptArrayOutput() ImageAccessAcceptArrayOutput
func (ImageAccessAcceptArray) ToImageAccessAcceptArrayOutputWithContext ¶
func (i ImageAccessAcceptArray) ToImageAccessAcceptArrayOutputWithContext(ctx context.Context) ImageAccessAcceptArrayOutput
type ImageAccessAcceptArrayInput ¶
type ImageAccessAcceptArrayInput interface { pulumi.Input ToImageAccessAcceptArrayOutput() ImageAccessAcceptArrayOutput ToImageAccessAcceptArrayOutputWithContext(context.Context) ImageAccessAcceptArrayOutput }
ImageAccessAcceptArrayInput is an input type that accepts ImageAccessAcceptArray and ImageAccessAcceptArrayOutput values. You can construct a concrete instance of `ImageAccessAcceptArrayInput` via:
ImageAccessAcceptArray{ ImageAccessAcceptArgs{...} }
type ImageAccessAcceptArrayOutput ¶
type ImageAccessAcceptArrayOutput struct{ *pulumi.OutputState }
func (ImageAccessAcceptArrayOutput) ElementType ¶
func (ImageAccessAcceptArrayOutput) ElementType() reflect.Type
func (ImageAccessAcceptArrayOutput) Index ¶
func (o ImageAccessAcceptArrayOutput) Index(i pulumi.IntInput) ImageAccessAcceptOutput
func (ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutput ¶
func (o ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutput() ImageAccessAcceptArrayOutput
func (ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutputWithContext ¶
func (o ImageAccessAcceptArrayOutput) ToImageAccessAcceptArrayOutputWithContext(ctx context.Context) ImageAccessAcceptArrayOutput
type ImageAccessAcceptInput ¶
type ImageAccessAcceptInput interface { pulumi.Input ToImageAccessAcceptOutput() ImageAccessAcceptOutput ToImageAccessAcceptOutputWithContext(ctx context.Context) ImageAccessAcceptOutput }
type ImageAccessAcceptMap ¶
type ImageAccessAcceptMap map[string]ImageAccessAcceptInput
func (ImageAccessAcceptMap) ElementType ¶
func (ImageAccessAcceptMap) ElementType() reflect.Type
func (ImageAccessAcceptMap) ToImageAccessAcceptMapOutput ¶
func (i ImageAccessAcceptMap) ToImageAccessAcceptMapOutput() ImageAccessAcceptMapOutput
func (ImageAccessAcceptMap) ToImageAccessAcceptMapOutputWithContext ¶
func (i ImageAccessAcceptMap) ToImageAccessAcceptMapOutputWithContext(ctx context.Context) ImageAccessAcceptMapOutput
type ImageAccessAcceptMapInput ¶
type ImageAccessAcceptMapInput interface { pulumi.Input ToImageAccessAcceptMapOutput() ImageAccessAcceptMapOutput ToImageAccessAcceptMapOutputWithContext(context.Context) ImageAccessAcceptMapOutput }
ImageAccessAcceptMapInput is an input type that accepts ImageAccessAcceptMap and ImageAccessAcceptMapOutput values. You can construct a concrete instance of `ImageAccessAcceptMapInput` via:
ImageAccessAcceptMap{ "key": ImageAccessAcceptArgs{...} }
type ImageAccessAcceptMapOutput ¶
type ImageAccessAcceptMapOutput struct{ *pulumi.OutputState }
func (ImageAccessAcceptMapOutput) ElementType ¶
func (ImageAccessAcceptMapOutput) ElementType() reflect.Type
func (ImageAccessAcceptMapOutput) MapIndex ¶
func (o ImageAccessAcceptMapOutput) MapIndex(k pulumi.StringInput) ImageAccessAcceptOutput
func (ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutput ¶
func (o ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutput() ImageAccessAcceptMapOutput
func (ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutputWithContext ¶
func (o ImageAccessAcceptMapOutput) ToImageAccessAcceptMapOutputWithContext(ctx context.Context) ImageAccessAcceptMapOutput
type ImageAccessAcceptOutput ¶
type ImageAccessAcceptOutput struct{ *pulumi.OutputState }
func (ImageAccessAcceptOutput) CreatedAt ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) CreatedAt() pulumi.StringOutput
The date the image membership was created.
func (ImageAccessAcceptOutput) ElementType ¶
func (ImageAccessAcceptOutput) ElementType() reflect.Type
func (ImageAccessAcceptOutput) ImageId ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) ImageId() pulumi.StringOutput
The proposed image ID.
func (ImageAccessAcceptOutput) MemberId ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) MemberId() pulumi.StringOutput
The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.
func (ImageAccessAcceptOutput) Region ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) Region() pulumi.StringOutput
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.
func (ImageAccessAcceptOutput) Schema ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) Schema() pulumi.StringOutput
The membership schema.
func (ImageAccessAcceptOutput) Status ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) Status() pulumi.StringOutput
The membership proposal status. Can either be `accepted`, `rejected` or `pending`.
func (ImageAccessAcceptOutput) ToImageAccessAcceptOutput ¶
func (o ImageAccessAcceptOutput) ToImageAccessAcceptOutput() ImageAccessAcceptOutput
func (ImageAccessAcceptOutput) ToImageAccessAcceptOutputWithContext ¶
func (o ImageAccessAcceptOutput) ToImageAccessAcceptOutputWithContext(ctx context.Context) ImageAccessAcceptOutput
func (ImageAccessAcceptOutput) UpdatedAt ¶ added in v3.9.0
func (o ImageAccessAcceptOutput) UpdatedAt() pulumi.StringOutput
The date the image membership was last updated.
type ImageAccessAcceptState ¶
type ImageAccessAcceptState struct { // The date the image membership was created. CreatedAt pulumi.StringPtrInput // The proposed image ID. ImageId pulumi.StringPtrInput // The member ID, e.g. the target project ID. Optional // for admin accounts. Defaults to the current scope project ID. MemberId pulumi.StringPtrInput // 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.StringPtrInput // The membership schema. Schema pulumi.StringPtrInput // The membership proposal status. Can either be // `accepted`, `rejected` or `pending`. Status pulumi.StringPtrInput // The date the image membership was last updated. UpdatedAt pulumi.StringPtrInput }
func (ImageAccessAcceptState) ElementType ¶
func (ImageAccessAcceptState) ElementType() reflect.Type
type ImageAccessArgs ¶
type ImageAccessArgs struct { // The image ID. ImageId pulumi.StringInput // The member ID, e.g. the target project ID. MemberId pulumi.StringInput // The region in which to obtain the V2 Glance client. // A Glance client is needed to manage Image members. If omitted, the `region` // argument of the provider is used. Changing this creates a new resource. Region pulumi.StringPtrInput // The member proposal status. Optional if admin wants to // force the member proposal acceptance. Can either be `accepted`, `rejected` or // `pending`. Defaults to `pending`. Foridden for non-admin users. Status pulumi.StringPtrInput }
The set of arguments for constructing a ImageAccess resource.
func (ImageAccessArgs) ElementType ¶
func (ImageAccessArgs) ElementType() reflect.Type
type ImageAccessArray ¶
type ImageAccessArray []ImageAccessInput
func (ImageAccessArray) ElementType ¶
func (ImageAccessArray) ElementType() reflect.Type
func (ImageAccessArray) ToImageAccessArrayOutput ¶
func (i ImageAccessArray) ToImageAccessArrayOutput() ImageAccessArrayOutput
func (ImageAccessArray) ToImageAccessArrayOutputWithContext ¶
func (i ImageAccessArray) ToImageAccessArrayOutputWithContext(ctx context.Context) ImageAccessArrayOutput
type ImageAccessArrayInput ¶
type ImageAccessArrayInput interface { pulumi.Input ToImageAccessArrayOutput() ImageAccessArrayOutput ToImageAccessArrayOutputWithContext(context.Context) ImageAccessArrayOutput }
ImageAccessArrayInput is an input type that accepts ImageAccessArray and ImageAccessArrayOutput values. You can construct a concrete instance of `ImageAccessArrayInput` via:
ImageAccessArray{ ImageAccessArgs{...} }
type ImageAccessArrayOutput ¶
type ImageAccessArrayOutput struct{ *pulumi.OutputState }
func (ImageAccessArrayOutput) ElementType ¶
func (ImageAccessArrayOutput) ElementType() reflect.Type
func (ImageAccessArrayOutput) Index ¶
func (o ImageAccessArrayOutput) Index(i pulumi.IntInput) ImageAccessOutput
func (ImageAccessArrayOutput) ToImageAccessArrayOutput ¶
func (o ImageAccessArrayOutput) ToImageAccessArrayOutput() ImageAccessArrayOutput
func (ImageAccessArrayOutput) ToImageAccessArrayOutputWithContext ¶
func (o ImageAccessArrayOutput) ToImageAccessArrayOutputWithContext(ctx context.Context) ImageAccessArrayOutput
type ImageAccessInput ¶
type ImageAccessInput interface { pulumi.Input ToImageAccessOutput() ImageAccessOutput ToImageAccessOutputWithContext(ctx context.Context) ImageAccessOutput }
type ImageAccessMap ¶
type ImageAccessMap map[string]ImageAccessInput
func (ImageAccessMap) ElementType ¶
func (ImageAccessMap) ElementType() reflect.Type
func (ImageAccessMap) ToImageAccessMapOutput ¶
func (i ImageAccessMap) ToImageAccessMapOutput() ImageAccessMapOutput
func (ImageAccessMap) ToImageAccessMapOutputWithContext ¶
func (i ImageAccessMap) ToImageAccessMapOutputWithContext(ctx context.Context) ImageAccessMapOutput
type ImageAccessMapInput ¶
type ImageAccessMapInput interface { pulumi.Input ToImageAccessMapOutput() ImageAccessMapOutput ToImageAccessMapOutputWithContext(context.Context) ImageAccessMapOutput }
ImageAccessMapInput is an input type that accepts ImageAccessMap and ImageAccessMapOutput values. You can construct a concrete instance of `ImageAccessMapInput` via:
ImageAccessMap{ "key": ImageAccessArgs{...} }
type ImageAccessMapOutput ¶
type ImageAccessMapOutput struct{ *pulumi.OutputState }
func (ImageAccessMapOutput) ElementType ¶
func (ImageAccessMapOutput) ElementType() reflect.Type
func (ImageAccessMapOutput) MapIndex ¶
func (o ImageAccessMapOutput) MapIndex(k pulumi.StringInput) ImageAccessOutput
func (ImageAccessMapOutput) ToImageAccessMapOutput ¶
func (o ImageAccessMapOutput) ToImageAccessMapOutput() ImageAccessMapOutput
func (ImageAccessMapOutput) ToImageAccessMapOutputWithContext ¶
func (o ImageAccessMapOutput) ToImageAccessMapOutputWithContext(ctx context.Context) ImageAccessMapOutput
type ImageAccessOutput ¶
type ImageAccessOutput struct{ *pulumi.OutputState }
func (ImageAccessOutput) CreatedAt ¶ added in v3.9.0
func (o ImageAccessOutput) CreatedAt() pulumi.StringOutput
The date the image access was created.
func (ImageAccessOutput) ElementType ¶
func (ImageAccessOutput) ElementType() reflect.Type
func (ImageAccessOutput) ImageId ¶ added in v3.9.0
func (o ImageAccessOutput) ImageId() pulumi.StringOutput
The image ID.
func (ImageAccessOutput) MemberId ¶ added in v3.9.0
func (o ImageAccessOutput) MemberId() pulumi.StringOutput
The member ID, e.g. the target project ID.
func (ImageAccessOutput) Region ¶ added in v3.9.0
func (o ImageAccessOutput) Region() pulumi.StringOutput
The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the `region` argument of the provider is used. Changing this creates a new resource.
func (ImageAccessOutput) Schema ¶ added in v3.9.0
func (o ImageAccessOutput) Schema() pulumi.StringOutput
The member schema.
func (ImageAccessOutput) Status ¶ added in v3.9.0
func (o ImageAccessOutput) Status() pulumi.StringOutput
The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be `accepted`, `rejected` or `pending`. Defaults to `pending`. Foridden for non-admin users.
func (ImageAccessOutput) ToImageAccessOutput ¶
func (o ImageAccessOutput) ToImageAccessOutput() ImageAccessOutput
func (ImageAccessOutput) ToImageAccessOutputWithContext ¶
func (o ImageAccessOutput) ToImageAccessOutputWithContext(ctx context.Context) ImageAccessOutput
func (ImageAccessOutput) UpdatedAt ¶ added in v3.9.0
func (o ImageAccessOutput) UpdatedAt() pulumi.StringOutput
The date the image access was last updated.
type ImageAccessState ¶
type ImageAccessState struct { // The date the image access was created. CreatedAt pulumi.StringPtrInput // The image ID. ImageId pulumi.StringPtrInput // The member ID, e.g. the target project ID. MemberId pulumi.StringPtrInput // The region in which to obtain the V2 Glance client. // A Glance client is needed to manage Image members. If omitted, the `region` // argument of the provider is used. Changing this creates a new resource. Region pulumi.StringPtrInput // The member schema. Schema pulumi.StringPtrInput // The member proposal status. Optional if admin wants to // force the member proposal acceptance. Can either be `accepted`, `rejected` or // `pending`. Defaults to `pending`. Foridden for non-admin users. Status pulumi.StringPtrInput // The date the image access was last updated. UpdatedAt pulumi.StringPtrInput }
func (ImageAccessState) ElementType ¶
func (ImageAccessState) ElementType() reflect.Type
type ImageArgs ¶
type ImageArgs struct { // The container format. Must be one of // "ami", "ari", "aki", "bare", "ovf". ContainerFormat pulumi.StringInput // If true, this provider will decompress downloaded // image before uploading it to OpenStack. Decompression algorithm is chosen by // checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. // Defaults to false. Changing this creates a new Image. Decompress pulumi.BoolPtrInput // The disk format. Must be one of // "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". DiskFormat pulumi.StringInput // If true, image will be hidden from public list. // Defaults to false. Hidden pulumi.BoolPtrInput ImageCachePath pulumi.StringPtrInput // Unique ID (valid UUID) of image to create. Changing // this creates a new image. ImageId pulumi.StringPtrInput // The password of basic auth to download `imageSourceUrl`. ImageSourcePassword pulumi.StringPtrInput // This is the url of the raw image. If `webDownload` // is not used, then the image will be downloaded in the `imageCachePath` before // being uploaded to Glance. // Conflicts with `localFilePath`. ImageSourceUrl pulumi.StringPtrInput // The username of basic auth to download `imageSourceUrl`. ImageSourceUsername pulumi.StringPtrInput // This is the filepath of the raw image file // that will be uploaded to Glance. Conflicts with `imageSourceUrl` and // `webDownload`. LocalFilePath pulumi.StringPtrInput // Amount of disk space (in GB) required to boot image. // Defaults to 0. MinDiskGb pulumi.IntPtrInput // Amount of ram (in MB) required to boot image. // Defauts to 0. MinRamMb pulumi.IntPtrInput // The name of the image. Name pulumi.StringPtrInput // A map of key/value pairs to set freeform // information about an image. See the "Notes" section for further // information about properties. Properties pulumi.MapInput // If true, image will not be deletable. // Defaults to false. Protected pulumi.BoolPtrInput // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Changing this creates a new Image. Region pulumi.StringPtrInput // The tags of the image. It must be a list of strings. // At this time, it is not possible to delete all tags of an image. Tags pulumi.StringArrayInput // If false, the checksum will not be verified // once the image is finished uploading. Conflicts with `webDownload`. // Defaults to true when not using `webDownload`. VerifyChecksum pulumi.BoolPtrInput // The visibility of the image. Must be one of // "public", "private", "community", or "shared". The ability to set the // visibility depends upon the configuration of the OpenStack cloud. Visibility pulumi.StringPtrInput // If true, the "web-download" import method will // be used to let Openstack download the image directly from the remote source. // Conflicts with `localFilePath`. Defaults to false. WebDownload pulumi.BoolPtrInput }
The set of arguments for constructing a Image resource.
func (ImageArgs) ElementType ¶
type ImageArray ¶
type ImageArray []ImageInput
func (ImageArray) ElementType ¶
func (ImageArray) ElementType() reflect.Type
func (ImageArray) ToImageArrayOutput ¶
func (i ImageArray) ToImageArrayOutput() ImageArrayOutput
func (ImageArray) ToImageArrayOutputWithContext ¶
func (i ImageArray) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput
type ImageArrayInput ¶
type ImageArrayInput interface { pulumi.Input ToImageArrayOutput() ImageArrayOutput ToImageArrayOutputWithContext(context.Context) ImageArrayOutput }
ImageArrayInput is an input type that accepts ImageArray and ImageArrayOutput values. You can construct a concrete instance of `ImageArrayInput` via:
ImageArray{ ImageArgs{...} }
type ImageArrayOutput ¶
type ImageArrayOutput struct{ *pulumi.OutputState }
func (ImageArrayOutput) ElementType ¶
func (ImageArrayOutput) ElementType() reflect.Type
func (ImageArrayOutput) Index ¶
func (o ImageArrayOutput) Index(i pulumi.IntInput) ImageOutput
func (ImageArrayOutput) ToImageArrayOutput ¶
func (o ImageArrayOutput) ToImageArrayOutput() ImageArrayOutput
func (ImageArrayOutput) ToImageArrayOutputWithContext ¶
func (o ImageArrayOutput) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput
type ImageInput ¶
type ImageInput interface { pulumi.Input ToImageOutput() ImageOutput ToImageOutputWithContext(ctx context.Context) ImageOutput }
type ImageMap ¶
type ImageMap map[string]ImageInput
func (ImageMap) ElementType ¶
func (ImageMap) ToImageMapOutput ¶
func (i ImageMap) ToImageMapOutput() ImageMapOutput
func (ImageMap) ToImageMapOutputWithContext ¶
func (i ImageMap) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput
type ImageMapInput ¶
type ImageMapInput interface { pulumi.Input ToImageMapOutput() ImageMapOutput ToImageMapOutputWithContext(context.Context) ImageMapOutput }
ImageMapInput is an input type that accepts ImageMap and ImageMapOutput values. You can construct a concrete instance of `ImageMapInput` via:
ImageMap{ "key": ImageArgs{...} }
type ImageMapOutput ¶
type ImageMapOutput struct{ *pulumi.OutputState }
func (ImageMapOutput) ElementType ¶
func (ImageMapOutput) ElementType() reflect.Type
func (ImageMapOutput) MapIndex ¶
func (o ImageMapOutput) MapIndex(k pulumi.StringInput) ImageOutput
func (ImageMapOutput) ToImageMapOutput ¶
func (o ImageMapOutput) ToImageMapOutput() ImageMapOutput
func (ImageMapOutput) ToImageMapOutputWithContext ¶
func (o ImageMapOutput) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput
type ImageOutput ¶
type ImageOutput struct{ *pulumi.OutputState }
func (ImageOutput) Checksum ¶ added in v3.9.0
func (o ImageOutput) Checksum() pulumi.StringOutput
The checksum of the data associated with the image.
func (ImageOutput) ContainerFormat ¶ added in v3.9.0
func (o ImageOutput) ContainerFormat() pulumi.StringOutput
The container format. Must be one of "ami", "ari", "aki", "bare", "ovf".
func (ImageOutput) CreatedAt ¶ added in v3.9.0
func (o ImageOutput) CreatedAt() pulumi.StringOutput
The date the image was created.
func (ImageOutput) Decompress ¶ added in v3.11.0
func (o ImageOutput) Decompress() pulumi.BoolPtrOutput
If true, this provider will decompress downloaded image before uploading it to OpenStack. Decompression algorithm is chosen by checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. Defaults to false. Changing this creates a new Image.
func (ImageOutput) DiskFormat ¶ added in v3.9.0
func (o ImageOutput) DiskFormat() pulumi.StringOutput
The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso".
func (ImageOutput) ElementType ¶
func (ImageOutput) ElementType() reflect.Type
func (ImageOutput) File ¶ added in v3.9.0
func (o ImageOutput) File() pulumi.StringOutput
the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
func (ImageOutput) Hidden ¶ added in v3.9.0
func (o ImageOutput) Hidden() pulumi.BoolPtrOutput
If true, image will be hidden from public list. Defaults to false.
func (ImageOutput) ImageCachePath ¶ added in v3.9.0
func (o ImageOutput) ImageCachePath() pulumi.StringPtrOutput
func (ImageOutput) ImageId ¶ added in v3.9.0
func (o ImageOutput) ImageId() pulumi.StringOutput
Unique ID (valid UUID) of image to create. Changing this creates a new image.
func (ImageOutput) ImageSourcePassword ¶ added in v3.9.0
func (o ImageOutput) ImageSourcePassword() pulumi.StringPtrOutput
The password of basic auth to download `imageSourceUrl`.
func (ImageOutput) ImageSourceUrl ¶ added in v3.9.0
func (o ImageOutput) ImageSourceUrl() pulumi.StringPtrOutput
This is the url of the raw image. If `webDownload` is not used, then the image will be downloaded in the `imageCachePath` before being uploaded to Glance. Conflicts with `localFilePath`.
func (ImageOutput) ImageSourceUsername ¶ added in v3.9.0
func (o ImageOutput) ImageSourceUsername() pulumi.StringPtrOutput
The username of basic auth to download `imageSourceUrl`.
func (ImageOutput) LocalFilePath ¶ added in v3.9.0
func (o ImageOutput) LocalFilePath() pulumi.StringPtrOutput
This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with `imageSourceUrl` and `webDownload`.
func (ImageOutput) Metadata ¶ added in v3.9.0
func (o ImageOutput) Metadata() pulumi.MapOutput
The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
func (ImageOutput) MinDiskGb ¶ added in v3.9.0
func (o ImageOutput) MinDiskGb() pulumi.IntPtrOutput
Amount of disk space (in GB) required to boot image. Defaults to 0.
func (ImageOutput) MinRamMb ¶ added in v3.9.0
func (o ImageOutput) MinRamMb() pulumi.IntPtrOutput
Amount of ram (in MB) required to boot image. Defauts to 0.
func (ImageOutput) Name ¶ added in v3.9.0
func (o ImageOutput) Name() pulumi.StringOutput
The name of the image.
func (ImageOutput) Owner ¶ added in v3.9.0
func (o ImageOutput) Owner() pulumi.StringOutput
The id of the openstack user who owns the image.
func (ImageOutput) Properties ¶ added in v3.9.0
func (o ImageOutput) Properties() pulumi.MapOutput
A map of key/value pairs to set freeform information about an image. See the "Notes" section for further information about properties.
func (ImageOutput) Protected ¶ added in v3.9.0
func (o ImageOutput) Protected() pulumi.BoolPtrOutput
If true, image will not be deletable. Defaults to false.
func (ImageOutput) Region ¶ added in v3.9.0
func (o ImageOutput) Region() pulumi.StringOutput
The region in which to obtain the V2 Glance client. A Glance client is needed to create an Image that can be used with a compute instance. If omitted, the `region` argument of the provider is used. Changing this creates a new Image.
func (ImageOutput) Schema ¶ added in v3.9.0
func (o ImageOutput) Schema() pulumi.StringOutput
The path to the JSON-schema that represent the image or image
func (ImageOutput) SizeBytes ¶ added in v3.9.0
func (o ImageOutput) SizeBytes() pulumi.IntOutput
The size in bytes of the data associated with the image.
func (ImageOutput) Status ¶ added in v3.9.0
func (o ImageOutput) Status() pulumi.StringOutput
The status of the image. It can be "queued", "active" or "saving".
func (ImageOutput) Tags ¶ added in v3.9.0
func (o ImageOutput) Tags() pulumi.StringArrayOutput
The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
func (ImageOutput) ToImageOutput ¶
func (o ImageOutput) ToImageOutput() ImageOutput
func (ImageOutput) ToImageOutputWithContext ¶
func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput
func (ImageOutput) UpdateAt
deprecated
added in
v3.9.0
func (o ImageOutput) UpdateAt() pulumi.StringOutput
(**Deprecated** - use `updatedAt` instead)
Deprecated: Use updatedAt instead
func (ImageOutput) UpdatedAt ¶ added in v3.9.0
func (o ImageOutput) UpdatedAt() pulumi.StringOutput
The date the image was last updated.
func (ImageOutput) VerifyChecksum ¶ added in v3.9.0
func (o ImageOutput) VerifyChecksum() pulumi.BoolPtrOutput
If false, the checksum will not be verified once the image is finished uploading. Conflicts with `webDownload`. Defaults to true when not using `webDownload`.
func (ImageOutput) Visibility ¶ added in v3.9.0
func (o ImageOutput) Visibility() pulumi.StringPtrOutput
The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the OpenStack cloud.
func (ImageOutput) WebDownload ¶ added in v3.9.0
func (o ImageOutput) WebDownload() pulumi.BoolPtrOutput
If true, the "web-download" import method will be used to let Openstack download the image directly from the remote source. Conflicts with `localFilePath`. Defaults to false.
type ImageState ¶
type ImageState struct { // The checksum of the data associated with the image. Checksum pulumi.StringPtrInput // The container format. Must be one of // "ami", "ari", "aki", "bare", "ovf". ContainerFormat pulumi.StringPtrInput // The date the image was created. CreatedAt pulumi.StringPtrInput // If true, this provider will decompress downloaded // image before uploading it to OpenStack. Decompression algorithm is chosen by // checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. // Defaults to false. Changing this creates a new Image. Decompress pulumi.BoolPtrInput // The disk format. Must be one of // "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". DiskFormat pulumi.StringPtrInput // the trailing path after the glance // endpoint that represent the location of the image // or the path to retrieve it. File pulumi.StringPtrInput // If true, image will be hidden from public list. // Defaults to false. Hidden pulumi.BoolPtrInput ImageCachePath pulumi.StringPtrInput // Unique ID (valid UUID) of image to create. Changing // this creates a new image. ImageId pulumi.StringPtrInput // The password of basic auth to download `imageSourceUrl`. ImageSourcePassword pulumi.StringPtrInput // This is the url of the raw image. If `webDownload` // is not used, then the image will be downloaded in the `imageCachePath` before // being uploaded to Glance. // Conflicts with `localFilePath`. ImageSourceUrl pulumi.StringPtrInput // The username of basic auth to download `imageSourceUrl`. ImageSourceUsername pulumi.StringPtrInput // This is the filepath of the raw image file // that will be uploaded to Glance. Conflicts with `imageSourceUrl` and // `webDownload`. LocalFilePath pulumi.StringPtrInput // The metadata associated with the image. // Image metadata allow for meaningfully define the image properties // and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html. Metadata pulumi.MapInput // Amount of disk space (in GB) required to boot image. // Defaults to 0. MinDiskGb pulumi.IntPtrInput // Amount of ram (in MB) required to boot image. // Defauts to 0. MinRamMb pulumi.IntPtrInput // The name of the image. Name pulumi.StringPtrInput // The id of the openstack user who owns the image. Owner pulumi.StringPtrInput // A map of key/value pairs to set freeform // information about an image. See the "Notes" section for further // information about properties. Properties pulumi.MapInput // If true, image will not be deletable. // Defaults to false. Protected pulumi.BoolPtrInput // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Changing this creates a new Image. Region pulumi.StringPtrInput // The path to the JSON-schema that represent // the image or image Schema pulumi.StringPtrInput // The size in bytes of the data associated with the image. SizeBytes pulumi.IntPtrInput // The status of the image. It can be "queued", "active" // or "saving". Status pulumi.StringPtrInput // The tags of the image. It must be a list of strings. // At this time, it is not possible to delete all tags of an image. Tags pulumi.StringArrayInput // (**Deprecated** - use `updatedAt` instead) // // Deprecated: Use updatedAt instead UpdateAt pulumi.StringPtrInput // The date the image was last updated. UpdatedAt pulumi.StringPtrInput // If false, the checksum will not be verified // once the image is finished uploading. Conflicts with `webDownload`. // Defaults to true when not using `webDownload`. VerifyChecksum pulumi.BoolPtrInput // The visibility of the image. Must be one of // "public", "private", "community", or "shared". The ability to set the // visibility depends upon the configuration of the OpenStack cloud. Visibility pulumi.StringPtrInput // If true, the "web-download" import method will // be used to let Openstack download the image directly from the remote source. // Conflicts with `localFilePath`. Defaults to false. WebDownload pulumi.BoolPtrInput }
func (ImageState) ElementType ¶
func (ImageState) ElementType() reflect.Type
type LookupImageArgs ¶
type LookupImageArgs struct { // Whether or not the image is hidden from public list. Hidden *bool `pulumi:"hidden"` // The status of the image. Must be one of // "accepted", "pending", "rejected", or "all". MemberStatus *string `pulumi:"memberStatus"` // If more than one result is returned, use the most // recent image. MostRecent *bool `pulumi:"mostRecent"` // The name of the image. Cannot be used simultaneously // with `nameRegex`. Name *string `pulumi:"name"` // The regular expressian of the name of the image. // Cannot be used simultaneously with `name`. Unlike filtering by `name` the // `nameRegex` filtering does by client on the result of OpenStack search // query. NameRegex *string `pulumi:"nameRegex"` // The owner (UUID) of the image. Owner *string `pulumi:"owner"` // a map of key/value pairs to match an image with. // All specified properties must be matched. Unlike other options filtering // by `properties` does by client on the result of OpenStack search query. // Filtering is applied if server responce contains at least 2 images. In // case there is only one image the `properties` ignores. Properties map[string]interface{} `pulumi:"properties"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Region *string `pulumi:"region"` // The maximum size (in bytes) of the image to return. SizeMax *int `pulumi:"sizeMax"` // The minimum size (in bytes) of the image to return. SizeMin *int `pulumi:"sizeMin"` // Order the results in either `asc` or `desc`. SortDirection *string `pulumi:"sortDirection"` // Sort images based on a certain key. Defaults to `name`. SortKey *string `pulumi:"sortKey"` // Search for images with a specific tag. Tag *string `pulumi:"tag"` // A list of tags required to be set on the image // (all specified tags must be in the images tag list for it to be matched). Tags []string `pulumi:"tags"` // The visibility of the image. Must be one of // "public", "private", "community", or "shared". Defaults to "private". Visibility *string `pulumi:"visibility"` }
A collection of arguments for invoking getImage.
type LookupImageOutputArgs ¶ added in v3.5.0
type LookupImageOutputArgs struct { // Whether or not the image is hidden from public list. Hidden pulumi.BoolPtrInput `pulumi:"hidden"` // The status of the image. Must be one of // "accepted", "pending", "rejected", or "all". MemberStatus pulumi.StringPtrInput `pulumi:"memberStatus"` // If more than one result is returned, use the most // recent image. MostRecent pulumi.BoolPtrInput `pulumi:"mostRecent"` // The name of the image. Cannot be used simultaneously // with `nameRegex`. Name pulumi.StringPtrInput `pulumi:"name"` // The regular expressian of the name of the image. // Cannot be used simultaneously with `name`. Unlike filtering by `name` the // `nameRegex` filtering does by client on the result of OpenStack search // query. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // The owner (UUID) of the image. Owner pulumi.StringPtrInput `pulumi:"owner"` // a map of key/value pairs to match an image with. // All specified properties must be matched. Unlike other options filtering // by `properties` does by client on the result of OpenStack search query. // Filtering is applied if server responce contains at least 2 images. In // case there is only one image the `properties` ignores. Properties pulumi.MapInput `pulumi:"properties"` // The region in which to obtain the V2 Glance client. // A Glance client is needed to create an Image that can be used with // a compute instance. If omitted, the `region` argument of the provider // is used. Region pulumi.StringPtrInput `pulumi:"region"` // The maximum size (in bytes) of the image to return. SizeMax pulumi.IntPtrInput `pulumi:"sizeMax"` // The minimum size (in bytes) of the image to return. SizeMin pulumi.IntPtrInput `pulumi:"sizeMin"` // Order the results in either `asc` or `desc`. SortDirection pulumi.StringPtrInput `pulumi:"sortDirection"` // Sort images based on a certain key. Defaults to `name`. SortKey pulumi.StringPtrInput `pulumi:"sortKey"` // Search for images with a specific tag. Tag pulumi.StringPtrInput `pulumi:"tag"` // A list of tags required to be set on the image // (all specified tags must be in the images tag list for it to be matched). Tags pulumi.StringArrayInput `pulumi:"tags"` // The visibility of the image. Must be one of // "public", "private", "community", or "shared". Defaults to "private". Visibility pulumi.StringPtrInput `pulumi:"visibility"` }
A collection of arguments for invoking getImage.
func (LookupImageOutputArgs) ElementType ¶ added in v3.5.0
func (LookupImageOutputArgs) ElementType() reflect.Type
type LookupImageResult ¶
type LookupImageResult struct { // The checksum of the data associated with the image. Checksum string `pulumi:"checksum"` // The format of the image's container. ContainerFormat string `pulumi:"containerFormat"` // The date the image was created. CreatedAt string `pulumi:"createdAt"` // The format of the image's disk. DiskFormat string `pulumi:"diskFormat"` // the trailing path after the glance endpoint that represent the // location of the image or the path to retrieve it. File string `pulumi:"file"` Hidden *bool `pulumi:"hidden"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` MemberStatus *string `pulumi:"memberStatus"` // The metadata associated with the image. // Image metadata allow for meaningfully define the image properties // and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html. Metadata map[string]interface{} `pulumi:"metadata"` // The minimum amount of disk space required to use the image. MinDiskGb int `pulumi:"minDiskGb"` // The minimum amount of ram required to use the image. MinRamMb int `pulumi:"minRamMb"` MostRecent *bool `pulumi:"mostRecent"` Name *string `pulumi:"name"` NameRegex *string `pulumi:"nameRegex"` Owner *string `pulumi:"owner"` // Freeform information about the image. Properties map[string]interface{} `pulumi:"properties"` // Whether or not the image is protected. Protected bool `pulumi:"protected"` Region string `pulumi:"region"` // The path to the JSON-schema that represent // the image or image Schema string `pulumi:"schema"` // The size of the image (in bytes). SizeBytes int `pulumi:"sizeBytes"` SizeMax *int `pulumi:"sizeMax"` SizeMin *int `pulumi:"sizeMin"` SortDirection *string `pulumi:"sortDirection"` SortKey *string `pulumi:"sortKey"` Tag *string `pulumi:"tag"` // The tags list of the image. Tags []string `pulumi:"tags"` // The date the image was last updated. UpdatedAt string `pulumi:"updatedAt"` Visibility *string `pulumi:"visibility"` }
A collection of values returned by getImage.
func LookupImage ¶
func LookupImage(ctx *pulumi.Context, args *LookupImageArgs, opts ...pulumi.InvokeOption) (*LookupImageResult, error)
Use this data source to get the ID of an available OpenStack image.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/images" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := images.LookupImage(ctx, &images.LookupImageArgs{ MostRecent: pulumi.BoolRef(true), Name: pulumi.StringRef("Ubuntu 16.04"), Properties: map[string]interface{}{ "key": "value", }, }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type LookupImageResultOutput ¶ added in v3.5.0
type LookupImageResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getImage.
func LookupImageOutput ¶ added in v3.5.0
func LookupImageOutput(ctx *pulumi.Context, args LookupImageOutputArgs, opts ...pulumi.InvokeOption) LookupImageResultOutput
func (LookupImageResultOutput) Checksum ¶ added in v3.5.0
func (o LookupImageResultOutput) Checksum() pulumi.StringOutput
The checksum of the data associated with the image.
func (LookupImageResultOutput) ContainerFormat ¶ added in v3.5.0
func (o LookupImageResultOutput) ContainerFormat() pulumi.StringOutput
The format of the image's container.
func (LookupImageResultOutput) CreatedAt ¶ added in v3.5.0
func (o LookupImageResultOutput) CreatedAt() pulumi.StringOutput
The date the image was created.
func (LookupImageResultOutput) DiskFormat ¶ added in v3.5.0
func (o LookupImageResultOutput) DiskFormat() pulumi.StringOutput
The format of the image's disk.
func (LookupImageResultOutput) ElementType ¶ added in v3.5.0
func (LookupImageResultOutput) ElementType() reflect.Type
func (LookupImageResultOutput) File ¶ added in v3.5.0
func (o LookupImageResultOutput) File() pulumi.StringOutput
the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
func (LookupImageResultOutput) Hidden ¶ added in v3.5.0
func (o LookupImageResultOutput) Hidden() pulumi.BoolPtrOutput
func (LookupImageResultOutput) Id ¶ added in v3.5.0
func (o LookupImageResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupImageResultOutput) MemberStatus ¶ added in v3.5.0
func (o LookupImageResultOutput) MemberStatus() pulumi.StringPtrOutput
func (LookupImageResultOutput) Metadata ¶ added in v3.5.0
func (o LookupImageResultOutput) Metadata() pulumi.MapOutput
The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
func (LookupImageResultOutput) MinDiskGb ¶ added in v3.5.0
func (o LookupImageResultOutput) MinDiskGb() pulumi.IntOutput
The minimum amount of disk space required to use the image.
func (LookupImageResultOutput) MinRamMb ¶ added in v3.5.0
func (o LookupImageResultOutput) MinRamMb() pulumi.IntOutput
The minimum amount of ram required to use the image.
func (LookupImageResultOutput) MostRecent ¶ added in v3.5.0
func (o LookupImageResultOutput) MostRecent() pulumi.BoolPtrOutput
func (LookupImageResultOutput) Name ¶ added in v3.5.0
func (o LookupImageResultOutput) Name() pulumi.StringPtrOutput
func (LookupImageResultOutput) NameRegex ¶ added in v3.11.0
func (o LookupImageResultOutput) NameRegex() pulumi.StringPtrOutput
func (LookupImageResultOutput) Owner ¶ added in v3.5.0
func (o LookupImageResultOutput) Owner() pulumi.StringPtrOutput
func (LookupImageResultOutput) Properties ¶ added in v3.5.0
func (o LookupImageResultOutput) Properties() pulumi.MapOutput
Freeform information about the image.
func (LookupImageResultOutput) Protected ¶ added in v3.5.0
func (o LookupImageResultOutput) Protected() pulumi.BoolOutput
Whether or not the image is protected.
func (LookupImageResultOutput) Region ¶ added in v3.5.0
func (o LookupImageResultOutput) Region() pulumi.StringOutput
func (LookupImageResultOutput) Schema ¶ added in v3.5.0
func (o LookupImageResultOutput) Schema() pulumi.StringOutput
The path to the JSON-schema that represent the image or image
func (LookupImageResultOutput) SizeBytes ¶ added in v3.5.0
func (o LookupImageResultOutput) SizeBytes() pulumi.IntOutput
The size of the image (in bytes).
func (LookupImageResultOutput) SizeMax ¶ added in v3.5.0
func (o LookupImageResultOutput) SizeMax() pulumi.IntPtrOutput
func (LookupImageResultOutput) SizeMin ¶ added in v3.5.0
func (o LookupImageResultOutput) SizeMin() pulumi.IntPtrOutput
func (LookupImageResultOutput) SortDirection ¶ added in v3.5.0
func (o LookupImageResultOutput) SortDirection() pulumi.StringPtrOutput
func (LookupImageResultOutput) SortKey ¶ added in v3.5.0
func (o LookupImageResultOutput) SortKey() pulumi.StringPtrOutput
func (LookupImageResultOutput) Tag ¶ added in v3.5.0
func (o LookupImageResultOutput) Tag() pulumi.StringPtrOutput
func (LookupImageResultOutput) Tags ¶ added in v3.5.0
func (o LookupImageResultOutput) Tags() pulumi.StringArrayOutput
The tags list of the image.
func (LookupImageResultOutput) ToLookupImageResultOutput ¶ added in v3.5.0
func (o LookupImageResultOutput) ToLookupImageResultOutput() LookupImageResultOutput
func (LookupImageResultOutput) ToLookupImageResultOutputWithContext ¶ added in v3.5.0
func (o LookupImageResultOutput) ToLookupImageResultOutputWithContext(ctx context.Context) LookupImageResultOutput
func (LookupImageResultOutput) UpdatedAt ¶ added in v3.5.0
func (o LookupImageResultOutput) UpdatedAt() pulumi.StringOutput
The date the image was last updated.
func (LookupImageResultOutput) Visibility ¶ added in v3.5.0
func (o LookupImageResultOutput) Visibility() pulumi.StringPtrOutput