1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eci
  5. OpenApiImageCache
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.eci.OpenApiImageCache

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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=[{
            "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

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

    The OpenApiImageCache resource accepts the following input properties:

    Outputs

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

    ContainerGroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    ContainerGroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    containerGroupId String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    containerGroupId string
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    container_group_id str
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    containerGroupId String
    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.
    The following state arguments are supported:

    Supporting Types

    OpenApiImageCacheImageRegistryCredential, OpenApiImageCacheImageRegistryCredentialArgs

    Password string
    Server string
    UserName string
    Password string
    Server string
    UserName string
    password String
    server String
    userName String
    password string
    server string
    userName string
    password String
    server String
    userName String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi