Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.eci.OpenApiImageCache
Explore with Pulumi AI
Create OpenApiImageCache Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpenApiImageCache(name: string, args: OpenApiImageCacheArgs, opts?: CustomResourceOptions);
@overload
def OpenApiImageCache(resource_name: str,
args: OpenApiImageCacheArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OpenApiImageCache(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_cache_name: Optional[str] = None,
images: Optional[Sequence[str]] = None,
security_group_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
eip_instance_id: Optional[str] = None,
image_cache_size: Optional[int] = None,
image_registry_credentials: Optional[Sequence[OpenApiImageCacheImageRegistryCredentialArgs]] = None,
resource_group_id: Optional[str] = None,
retention_days: Optional[int] = None,
zone_id: Optional[str] = None)
func NewOpenApiImageCache(ctx *Context, name string, args OpenApiImageCacheArgs, opts ...ResourceOption) (*OpenApiImageCache, error)
public OpenApiImageCache(string name, OpenApiImageCacheArgs args, CustomResourceOptions? opts = null)
public OpenApiImageCache(String name, OpenApiImageCacheArgs args)
public OpenApiImageCache(String name, OpenApiImageCacheArgs args, CustomResourceOptions options)
type: alicloud:eci:OpenApiImageCache
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 OpenApiImageCacheArgs
- 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 OpenApiImageCacheArgs
- 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 OpenApiImageCacheArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpenApiImageCacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpenApiImageCacheArgs
- 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 openApiImageCacheResource = new AliCloud.Eci.OpenApiImageCache("openApiImageCacheResource", new()
{
ImageCacheName = "string",
Images = new[]
{
"string",
},
SecurityGroupId = "string",
VswitchId = "string",
EipInstanceId = "string",
ImageCacheSize = 0,
ImageRegistryCredentials = new[]
{
new AliCloud.Eci.Inputs.OpenApiImageCacheImageRegistryCredentialArgs
{
Password = "string",
Server = "string",
UserName = "string",
},
},
ResourceGroupId = "string",
RetentionDays = 0,
ZoneId = "string",
});
example, err := eci.NewOpenApiImageCache(ctx, "openApiImageCacheResource", &eci.OpenApiImageCacheArgs{
ImageCacheName: pulumi.String("string"),
Images: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
EipInstanceId: pulumi.String("string"),
ImageCacheSize: pulumi.Int(0),
ImageRegistryCredentials: eci.OpenApiImageCacheImageRegistryCredentialArray{
&eci.OpenApiImageCacheImageRegistryCredentialArgs{
Password: pulumi.String("string"),
Server: pulumi.String("string"),
UserName: pulumi.String("string"),
},
},
ResourceGroupId: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
ZoneId: pulumi.String("string"),
})
var openApiImageCacheResource = new OpenApiImageCache("openApiImageCacheResource", OpenApiImageCacheArgs.builder()
.imageCacheName("string")
.images("string")
.securityGroupId("string")
.vswitchId("string")
.eipInstanceId("string")
.imageCacheSize(0)
.imageRegistryCredentials(OpenApiImageCacheImageRegistryCredentialArgs.builder()
.password("string")
.server("string")
.userName("string")
.build())
.resourceGroupId("string")
.retentionDays(0)
.zoneId("string")
.build());
open_api_image_cache_resource = alicloud.eci.OpenApiImageCache("openApiImageCacheResource",
image_cache_name="string",
images=["string"],
security_group_id="string",
vswitch_id="string",
eip_instance_id="string",
image_cache_size=0,
image_registry_credentials=[alicloud.eci.OpenApiImageCacheImageRegistryCredentialArgs(
password="string",
server="string",
user_name="string",
)],
resource_group_id="string",
retention_days=0,
zone_id="string")
const openApiImageCacheResource = new alicloud.eci.OpenApiImageCache("openApiImageCacheResource", {
imageCacheName: "string",
images: ["string"],
securityGroupId: "string",
vswitchId: "string",
eipInstanceId: "string",
imageCacheSize: 0,
imageRegistryCredentials: [{
password: "string",
server: "string",
userName: "string",
}],
resourceGroupId: "string",
retentionDays: 0,
zoneId: "string",
});
type: alicloud:eci:OpenApiImageCache
properties:
eipInstanceId: string
imageCacheName: string
imageCacheSize: 0
imageRegistryCredentials:
- password: string
server: string
userName: string
images:
- string
resourceGroupId: string
retentionDays: 0
securityGroupId: string
vswitchId: string
zoneId: string
OpenApiImageCache Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OpenApiImageCache resource accepts the following input properties:
- Image
Cache stringName - Images List<string>
- Security
Group stringId - Vswitch
Id string - Eip
Instance stringId - Image
Cache intSize - Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Open Api Image Cache Image Registry Credential> - Resource
Group stringId - Retention
Days int - Zone
Id string
- Image
Cache stringName - Images []string
- Security
Group stringId - Vswitch
Id string - Eip
Instance stringId - Image
Cache intSize - Image
Registry []OpenCredentials Api Image Cache Image Registry Credential Args - Resource
Group stringId - Retention
Days int - Zone
Id string
- image
Cache StringName - images List<String>
- security
Group StringId - vswitch
Id String - eip
Instance StringId - image
Cache IntegerSize - image
Registry List<OpenCredentials Api Image Cache Image Registry Credential> - resource
Group StringId - retention
Days Integer - zone
Id String
- image
Cache stringName - images string[]
- security
Group stringId - vswitch
Id string - eip
Instance stringId - image
Cache numberSize - image
Registry OpenCredentials Api Image Cache Image Registry Credential[] - resource
Group stringId - retention
Days number - zone
Id string
- image
Cache StringName - images List<String>
- security
Group StringId - vswitch
Id String - eip
Instance StringId - image
Cache NumberSize - image
Registry List<Property Map>Credentials - resource
Group StringId - retention
Days Number - zone
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the OpenApiImageCache resource produces the following output properties:
- Container
Group stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Container
Group stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- container
Group StringId - id String
- The provider-assigned unique ID for this managed resource.
- status String
- container
Group stringId - id string
- The provider-assigned unique ID for this managed resource.
- status string
- container_
group_ strid - id str
- The provider-assigned unique ID for this managed resource.
- status str
- container
Group StringId - id String
- The provider-assigned unique ID for this managed resource.
- status String
Look up Existing OpenApiImageCache Resource
Get an existing OpenApiImageCache 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?: OpenApiImageCacheState, opts?: CustomResourceOptions): OpenApiImageCache
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_group_id: Optional[str] = None,
eip_instance_id: Optional[str] = None,
image_cache_name: Optional[str] = None,
image_cache_size: Optional[int] = None,
image_registry_credentials: Optional[Sequence[OpenApiImageCacheImageRegistryCredentialArgs]] = None,
images: Optional[Sequence[str]] = None,
resource_group_id: Optional[str] = None,
retention_days: Optional[int] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> OpenApiImageCache
func GetOpenApiImageCache(ctx *Context, name string, id IDInput, state *OpenApiImageCacheState, opts ...ResourceOption) (*OpenApiImageCache, error)
public static OpenApiImageCache Get(string name, Input<string> id, OpenApiImageCacheState? state, CustomResourceOptions? opts = null)
public static OpenApiImageCache get(String name, Output<String> id, OpenApiImageCacheState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Container
Group stringId - Eip
Instance stringId - Image
Cache stringName - Image
Cache intSize - Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Open Api Image Cache Image Registry Credential> - Images List<string>
- Resource
Group stringId - Retention
Days int - Security
Group stringId - Status string
- Vswitch
Id string - Zone
Id string
- Container
Group stringId - Eip
Instance stringId - Image
Cache stringName - Image
Cache intSize - Image
Registry []OpenCredentials Api Image Cache Image Registry Credential Args - Images []string
- Resource
Group stringId - Retention
Days int - Security
Group stringId - Status string
- Vswitch
Id string - Zone
Id string
- container
Group StringId - eip
Instance StringId - image
Cache StringName - image
Cache IntegerSize - image
Registry List<OpenCredentials Api Image Cache Image Registry Credential> - images List<String>
- resource
Group StringId - retention
Days Integer - security
Group StringId - status String
- vswitch
Id String - zone
Id String
- container
Group stringId - eip
Instance stringId - image
Cache stringName - image
Cache numberSize - image
Registry OpenCredentials Api Image Cache Image Registry Credential[] - images string[]
- resource
Group stringId - retention
Days number - security
Group stringId - status string
- vswitch
Id string - zone
Id string
- container
Group StringId - eip
Instance StringId - image
Cache StringName - image
Cache NumberSize - image
Registry List<Property Map>Credentials - images List<String>
- resource
Group StringId - retention
Days Number - security
Group StringId - status String
- vswitch
Id String - zone
Id String
Supporting Types
OpenApiImageCacheImageRegistryCredential, OpenApiImageCacheImageRegistryCredentialArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.