1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. cr
  6. InternetEndpoint
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi

    Provides a CR Internet Endpoint resource.

    For information about CR Internet Endpoint and how to use it, see GetInstanceEndpoint.

    NOTE: Available since v1.287.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const _default = new alicloud.cr.RegistryEnterpriseInstance("default", {
        paymentType: "Subscription",
        period: 1,
        renewalStatus: "ManualRenewal",
        instanceType: "Advanced",
        instanceName: name,
    });
    const defaultInternetEndpoint = new alicloud.cr.InternetEndpoint("default", {
        instanceId: _default.id,
        entries: [
            {
                entry: "192.168.1.0/24",
                comment: "entry-1",
            },
            {
                entry: "10.0.0.0/8",
                comment: "entry-2",
            },
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.cr.RegistryEnterpriseInstance("default",
        payment_type="Subscription",
        period=1,
        renewal_status="ManualRenewal",
        instance_type="Advanced",
        instance_name=name)
    default_internet_endpoint = alicloud.cr.InternetEndpoint("default",
        instance_id=default.id,
        entries=[
            {
                "entry": "192.168.1.0/24",
                "comment": "entry-1",
            },
            {
                "entry": "10.0.0.0/8",
                "comment": "entry-2",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := cr.NewRegistryEnterpriseInstance(ctx, "default", &cr.RegistryEnterpriseInstanceArgs{
    			PaymentType:   pulumi.String("Subscription"),
    			Period:        pulumi.Int(1),
    			RenewalStatus: pulumi.String("ManualRenewal"),
    			InstanceType:  pulumi.String("Advanced"),
    			InstanceName:  pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cr.NewInternetEndpoint(ctx, "default", &cr.InternetEndpointArgs{
    			InstanceId: _default.ID().ToIDOutput().ToStringOutput(),
    			Entries: cr.InternetEndpointEntryArray{
    				&cr.InternetEndpointEntryArgs{
    					Entry:   pulumi.String("192.168.1.0/24"),
    					Comment: pulumi.String("entry-1"),
    				},
    				&cr.InternetEndpointEntryArgs{
    					Entry:   pulumi.String("10.0.0.0/8"),
    					Comment: pulumi.String("entry-2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @default = new AliCloud.CR.RegistryEnterpriseInstance("default", new()
        {
            PaymentType = "Subscription",
            Period = 1,
            RenewalStatus = "ManualRenewal",
            InstanceType = "Advanced",
            InstanceName = name,
        });
    
        var defaultInternetEndpoint = new AliCloud.CR.InternetEndpoint("default", new()
        {
            InstanceId = @default.Id,
            Entries = new[]
            {
                new AliCloud.CR.Inputs.InternetEndpointEntryArgs
                {
                    Entry = "192.168.1.0/24",
                    Comment = "entry-1",
                },
                new AliCloud.CR.Inputs.InternetEndpointEntryArgs
                {
                    Entry = "10.0.0.0/8",
                    Comment = "entry-2",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cr.RegistryEnterpriseInstance;
    import com.pulumi.alicloud.cr.RegistryEnterpriseInstanceArgs;
    import com.pulumi.alicloud.cr.InternetEndpoint;
    import com.pulumi.alicloud.cr.InternetEndpointArgs;
    import com.pulumi.alicloud.cr.inputs.InternetEndpointEntryArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            var default_ = new RegistryEnterpriseInstance("default", RegistryEnterpriseInstanceArgs.builder()
                .paymentType("Subscription")
                .period(1)
                .renewalStatus("ManualRenewal")
                .instanceType("Advanced")
                .instanceName(name)
                .build());
    
            var defaultInternetEndpoint = new InternetEndpoint("defaultInternetEndpoint", InternetEndpointArgs.builder()
                .instanceId(default_.id())
                .entries(            
                    InternetEndpointEntryArgs.builder()
                        .entry("192.168.1.0/24")
                        .comment("entry-1")
                        .build(),
                    InternetEndpointEntryArgs.builder()
                        .entry("10.0.0.0/8")
                        .comment("entry-2")
                        .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      default:
        type: alicloud:cr:RegistryEnterpriseInstance
        properties:
          paymentType: Subscription
          period: 1
          renewalStatus: ManualRenewal
          instanceType: Advanced
          instanceName: ${name}
      defaultInternetEndpoint:
        type: alicloud:cr:InternetEndpoint
        name: default
        properties:
          instanceId: ${default.id}
          entries:
            - entry: 192.168.1.0/24
              comment: entry-1
            - entry: 10.0.0.0/8
              comment: entry-2
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_cr_registryenterpriseinstance" "default" {
      payment_type   = "Subscription"
      period         = 1
      renewal_status = "ManualRenewal"
      instance_type  = "Advanced"
      instance_name  = var.name
    }
    resource "alicloud_cr_internetendpoint" "default" {
      instance_id = alicloud_cr_registryenterpriseinstance.default.id
      entries {
        entry   = "192.168.1.0/24"
        comment = "entry-1"
      }
      entries {
        entry   = "10.0.0.0/8"
        comment = "entry-2"
      }
    }
    variable "name" {
      type    = string
      default = "tf-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create InternetEndpoint Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InternetEndpoint(name: string, args: InternetEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def InternetEndpoint(resource_name: str,
                         args: InternetEndpointArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def InternetEndpoint(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         instance_id: Optional[str] = None,
                         entries: Optional[Sequence[InternetEndpointEntryArgs]] = None)
    func NewInternetEndpoint(ctx *Context, name string, args InternetEndpointArgs, opts ...ResourceOption) (*InternetEndpoint, error)
    public InternetEndpoint(string name, InternetEndpointArgs args, CustomResourceOptions? opts = null)
    public InternetEndpoint(String name, InternetEndpointArgs args)
    public InternetEndpoint(String name, InternetEndpointArgs args, CustomResourceOptions options)
    
    type: alicloud:cr:InternetEndpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_cr_internet_endpoint" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args InternetEndpointArgs
    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 InternetEndpointArgs
    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 InternetEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InternetEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InternetEndpointArgs
    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 internetEndpointResource = new AliCloud.CR.InternetEndpoint("internetEndpointResource", new()
    {
        InstanceId = "string",
        Entries = new[]
        {
            new AliCloud.CR.Inputs.InternetEndpointEntryArgs
            {
                Comment = "string",
                Entry = "string",
            },
        },
    });
    
    example, err := cr.NewInternetEndpoint(ctx, "internetEndpointResource", &cr.InternetEndpointArgs{
    	InstanceId: pulumi.String("string"),
    	Entries: cr.InternetEndpointEntryArray{
    		&cr.InternetEndpointEntryArgs{
    			Comment: pulumi.String("string"),
    			Entry:   pulumi.String("string"),
    		},
    	},
    })
    
    resource "alicloud_cr_internet_endpoint" "internetEndpointResource" {
      lifecycle {
        create_before_destroy = true
      }
      instance_id = "string"
      entries {
        comment = "string"
        entry   = "string"
      }
    }
    
    var internetEndpointResource = new InternetEndpoint("internetEndpointResource", InternetEndpointArgs.builder()
        .instanceId("string")
        .entries(InternetEndpointEntryArgs.builder()
            .comment("string")
            .entry("string")
            .build())
        .build());
    
    internet_endpoint_resource = alicloud.cr.InternetEndpoint("internetEndpointResource",
        instance_id="string",
        entries=[{
            "comment": "string",
            "entry": "string",
        }])
    
    const internetEndpointResource = new alicloud.cr.InternetEndpoint("internetEndpointResource", {
        instanceId: "string",
        entries: [{
            comment: "string",
            entry: "string",
        }],
    });
    
    type: alicloud:cr:InternetEndpoint
    properties:
        entries:
            - comment: string
              entry: string
        instanceId: string
    

    InternetEndpoint 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 InternetEndpoint resource accepts the following input properties:

    InstanceId string
    The ID of the Container Registry Enterprise Edition instance.
    Entries List<Pulumi.AliCloud.CR.Inputs.InternetEndpointEntry>
    The ACL entries of the Internet endpoint. See entries below.
    InstanceId string
    The ID of the Container Registry Enterprise Edition instance.
    Entries []InternetEndpointEntryArgs
    The ACL entries of the Internet endpoint. See entries below.
    instance_id string
    The ID of the Container Registry Enterprise Edition instance.
    entries list(object)
    The ACL entries of the Internet endpoint. See entries below.
    instanceId String
    The ID of the Container Registry Enterprise Edition instance.
    entries List<InternetEndpointEntry>
    The ACL entries of the Internet endpoint. See entries below.
    instanceId string
    The ID of the Container Registry Enterprise Edition instance.
    entries InternetEndpointEntry[]
    The ACL entries of the Internet endpoint. See entries below.
    instance_id str
    The ID of the Container Registry Enterprise Edition instance.
    entries Sequence[InternetEndpointEntryArgs]
    The ACL entries of the Internet endpoint. See entries below.
    instanceId String
    The ID of the Container Registry Enterprise Edition instance.
    entries List<Property Map>
    The ACL entries of the Internet endpoint. See entries below.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Internet endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Internet endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Internet endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Internet endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Internet endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Internet endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Internet endpoint.

    Look up Existing InternetEndpoint Resource

    Get an existing InternetEndpoint 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?: InternetEndpointState, opts?: CustomResourceOptions): InternetEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entries: Optional[Sequence[InternetEndpointEntryArgs]] = None,
            instance_id: Optional[str] = None,
            status: Optional[str] = None) -> InternetEndpoint
    func GetInternetEndpoint(ctx *Context, name string, id IDInput, state *InternetEndpointState, opts ...ResourceOption) (*InternetEndpoint, error)
    public static InternetEndpoint Get(string name, Input<string> id, InternetEndpointState? state, CustomResourceOptions? opts = null)
    public static InternetEndpoint get(String name, Output<String> id, InternetEndpointState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cr:InternetEndpoint    get:      id: ${id}
    import {
      to = alicloud_cr_internet_endpoint.example
      id = "${id}"
    }
    
    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:
    Entries List<Pulumi.AliCloud.CR.Inputs.InternetEndpointEntry>
    The ACL entries of the Internet endpoint. See entries below.
    InstanceId string
    The ID of the Container Registry Enterprise Edition instance.
    Status string
    The status of the Internet endpoint.
    Entries []InternetEndpointEntryArgs
    The ACL entries of the Internet endpoint. See entries below.
    InstanceId string
    The ID of the Container Registry Enterprise Edition instance.
    Status string
    The status of the Internet endpoint.
    entries list(object)
    The ACL entries of the Internet endpoint. See entries below.
    instance_id string
    The ID of the Container Registry Enterprise Edition instance.
    status string
    The status of the Internet endpoint.
    entries List<InternetEndpointEntry>
    The ACL entries of the Internet endpoint. See entries below.
    instanceId String
    The ID of the Container Registry Enterprise Edition instance.
    status String
    The status of the Internet endpoint.
    entries InternetEndpointEntry[]
    The ACL entries of the Internet endpoint. See entries below.
    instanceId string
    The ID of the Container Registry Enterprise Edition instance.
    status string
    The status of the Internet endpoint.
    entries Sequence[InternetEndpointEntryArgs]
    The ACL entries of the Internet endpoint. See entries below.
    instance_id str
    The ID of the Container Registry Enterprise Edition instance.
    status str
    The status of the Internet endpoint.
    entries List<Property Map>
    The ACL entries of the Internet endpoint. See entries below.
    instanceId String
    The ID of the Container Registry Enterprise Edition instance.
    status String
    The status of the Internet endpoint.

    Supporting Types

    InternetEndpointEntry, InternetEndpointEntryArgs

    Comment string

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    Entry string
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    Comment string

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    Entry string
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    comment string

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    entry string
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    comment String

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    entry String
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    comment string

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    entry string
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    comment str

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    entry str
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.
    comment String

    The comment of the entry.

    NOTE: When the Internet endpoint is enabled, the CIDR block 127.0.0.1/32 with comment default is automatically added to the whitelist as a system-managed loopback ACL policy. It cannot be created or deleted through this resource's entries and is filtered out of state on Read, so adding entry = "127.0.0.1/32" with comment = "default" to entries causes a perpetual plan diff. Removing all user-managed entries exposes the instance to the Internet.

    entry String
    The CIDR-formatted IP address range that is allowed to access the instance over the Internet.

    Import

    CR Internet Endpoint can be imported using the id, e.g.

    $ pulumi import alicloud:cr/internetEndpoint:InternetEndpoint example <instance_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 alicloud logo
    Viewing docs for Alibaba Cloud v3.106.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial