This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

eci

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.eci.OpenApiImageCache(resource_name, opts=None, eip_instance_id=None, image_cache_name=None, image_cache_size=None, image_registry_credentials=None, images=None, resource_group_id=None, retention_days=None, security_group_id=None, vswitch_id=None, zone_id=None, __props__=None, __name__=None, __opts__=None)

An ECI Image Cache can help user to solve the time-consuming problem of image pull. For information about Alicloud ECI Image Cache and how to use it, see What is Resource Alicloud ECI Image Cache.

NOTE: Available in v1.89.0+.

NOTE: Each image cache corresponds to a snapshot, and the user does not delete the snapshot directly, otherwise the cache will fail.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • eip_instance_id (pulumi.Input[str]) – The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to Public Network Access Method

  • image_cache_name (pulumi.Input[str]) – The name of the image cache.

  • image_cache_size (pulumi.Input[float]) – The size of the image cache. Default to 20. Unit: GiB.

  • image_registry_credentials (pulumi.Input[list]) – The Image Registry parameters about the image to be cached.

  • images (pulumi.Input[list]) – The images to be cached. The image name must be versioned.

  • resource_group_id (pulumi.Input[str]) – The ID of the resource group.

  • retention_days (pulumi.Input[float]) – The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.

  • security_group_id (pulumi.Input[str]) – The ID of the security group. You do not need to specify the same security group as the container group.

  • vswitch_id (pulumi.Input[str]) – The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.

  • zone_id (pulumi.Input[str]) – The zone id to cache image.

The image_registry_credentials object supports the following:

  • password (pulumi.Input[str]) - The password of the Image Registry.

  • server (pulumi.Input[str]) - The address of Image Registry without http:// or https://.

  • user_name (pulumi.Input[str]) - The user name of Image Registry.

container_group_id: pulumi.Output[str] = None

The ID of the container group job that is used to create the image cache.

  • status -The status of the image cache.

eip_instance_id: pulumi.Output[str] = None

The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to Public Network Access Method

image_cache_name: pulumi.Output[str] = None

The name of the image cache.

image_cache_size: pulumi.Output[float] = None

The size of the image cache. Default to 20. Unit: GiB.

image_registry_credentials: pulumi.Output[list] = None

The Image Registry parameters about the image to be cached.

  • password (str) - The password of the Image Registry.

  • server (str) - The address of Image Registry without http:// or https://.

  • user_name (str) - The user name of Image Registry.

images: pulumi.Output[list] = None

The images to be cached. The image name must be versioned.

resource_group_id: pulumi.Output[str] = None

The ID of the resource group.

retention_days: pulumi.Output[float] = None

The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.

security_group_id: pulumi.Output[str] = None

The ID of the security group. You do not need to specify the same security group as the container group.

vswitch_id: pulumi.Output[str] = None

The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.

zone_id: pulumi.Output[str] = None

The zone id to cache image.

static get(resource_name, id, opts=None, container_group_id=None, eip_instance_id=None, image_cache_name=None, image_cache_size=None, image_registry_credentials=None, images=None, resource_group_id=None, retention_days=None, security_group_id=None, status=None, vswitch_id=None, zone_id=None)

Get an existing OpenApiImageCache resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • container_group_id (pulumi.Input[str]) – The ID of the container group job that is used to create the image cache.

* `status` -The status of the image cache.
Parameters
  • eip_instance_id (pulumi.Input[str]) –

    The instance ID of the Elastic IP Address (EIP). If you want to pull images from the Internet, you must specify an EIP to make sure that the container group can access the Internet. You can also configure the network address translation (NAT) gateway. We recommend that you configure the NAT gateway for the Internet access. Refer to Public Network Access Method

  • image_cache_name (pulumi.Input[str]) – The name of the image cache.

  • image_cache_size (pulumi.Input[float]) – The size of the image cache. Default to 20. Unit: GiB.

  • image_registry_credentials (pulumi.Input[list]) – The Image Registry parameters about the image to be cached.

  • images (pulumi.Input[list]) – The images to be cached. The image name must be versioned.

  • resource_group_id (pulumi.Input[str]) – The ID of the resource group.

  • retention_days (pulumi.Input[float]) – The retention days of the image cache. Once the image cache expires, it will be cleared. By default, the image cache never expires. Note: The image cache that fails to be created is retained for only one day.

  • security_group_id (pulumi.Input[str]) – The ID of the security group. You do not need to specify the same security group as the container group.

  • vswitch_id (pulumi.Input[str]) – The ID of the VSwitch. You do not need to specify the same VSwitch as the container group.

  • zone_id (pulumi.Input[str]) – The zone id to cache image.

The image_registry_credentials object supports the following:

  • password (pulumi.Input[str]) - The password of the Image Registry.

  • server (pulumi.Input[str]) - The address of Image Registry without http:// or https://.

  • user_name (pulumi.Input[str]) - The user name of Image Registry.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str