1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cr
  5. getEndpointAclService
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cr.getEndpointAclService

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the CR Endpoint Acl Service of the current Alibaba Cloud user.

For information about Event Bridge and how to use it, see What is CR Endpoint Acl.

NOTE: Available in v1.139.0+.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.cr.getEndpointAclService({
    endpointType: "internet",
    enable: true,
    instanceId: "example_id",
    moduleName: "Registry",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cr.get_endpoint_acl_service(endpoint_type="internet",
    enable=True,
    instance_id="example_id",
    module_name="Registry")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.GetEndpointAclService(ctx, &cr.GetEndpointAclServiceArgs{
			EndpointType: "internet",
			Enable:       true,
			InstanceId:   "example_id",
			ModuleName:   pulumi.StringRef("Registry"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.CR.GetEndpointAclService.Invoke(new()
    {
        EndpointType = "internet",
        Enable = true,
        InstanceId = "example_id",
        ModuleName = "Registry",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cr.CrFunctions;
import com.pulumi.alicloud.cr.inputs.GetEndpointAclServiceArgs;
import java.util.List;
import java.util.ArrayList;
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 example = CrFunctions.getEndpointAclService(GetEndpointAclServiceArgs.builder()
            .endpointType("internet")
            .enable(true)
            .instanceId("example_id")
            .moduleName("Registry")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:cr:getEndpointAclService
      arguments:
        endpointType: internet
        enable: true
        instanceId: example_id
        moduleName: Registry
Copy

Using getEndpointAclService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEndpointAclService(args: GetEndpointAclServiceArgs, opts?: InvokeOptions): Promise<GetEndpointAclServiceResult>
function getEndpointAclServiceOutput(args: GetEndpointAclServiceOutputArgs, opts?: InvokeOptions): Output<GetEndpointAclServiceResult>
Copy
def get_endpoint_acl_service(enable: Optional[bool] = None,
                             endpoint_type: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             module_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetEndpointAclServiceResult
def get_endpoint_acl_service_output(enable: Optional[pulumi.Input[bool]] = None,
                             endpoint_type: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             module_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetEndpointAclServiceResult]
Copy
func GetEndpointAclService(ctx *Context, args *GetEndpointAclServiceArgs, opts ...InvokeOption) (*GetEndpointAclServiceResult, error)
func GetEndpointAclServiceOutput(ctx *Context, args *GetEndpointAclServiceOutputArgs, opts ...InvokeOption) GetEndpointAclServiceResultOutput
Copy

> Note: This function is named GetEndpointAclService in the Go SDK.

public static class GetEndpointAclService 
{
    public static Task<GetEndpointAclServiceResult> InvokeAsync(GetEndpointAclServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetEndpointAclServiceResult> Invoke(GetEndpointAclServiceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEndpointAclServiceResult> getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOptions options)
public static Output<GetEndpointAclServiceResult> getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cr/getEndpointAclService:getEndpointAclService
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Enable This property is required. bool
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
EndpointType This property is required. string
The type of endpoint. Valid values: internet.
InstanceId This property is required. string
The ID of the CR Instance.
ModuleName string

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

Enable This property is required. bool
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
EndpointType This property is required. string
The type of endpoint. Valid values: internet.
InstanceId This property is required. string
The ID of the CR Instance.
ModuleName string

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

enable This property is required. Boolean
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
endpointType This property is required. String
The type of endpoint. Valid values: internet.
instanceId This property is required. String
The ID of the CR Instance.
moduleName String

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

enable This property is required. boolean
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
endpointType This property is required. string
The type of endpoint. Valid values: internet.
instanceId This property is required. string
The ID of the CR Instance.
moduleName string

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

enable This property is required. bool
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
endpoint_type This property is required. str
The type of endpoint. Valid values: internet.
instance_id This property is required. str
The ID of the CR Instance.
module_name str

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

enable This property is required. Boolean
Whether to enable Acl Service, Setting the value to true to enable the acl service. Valid values: true and false.
endpointType This property is required. String
The type of endpoint. Valid values: internet.
instanceId This property is required. String
The ID of the CR Instance.
moduleName String

The ModuleName. Valid values: Registry.

NOTE: After You enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.

NOTE: You may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked.

getEndpointAclService Result

The following output properties are available:

Enable bool
EndpointType string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
Status string
ModuleName string
Enable bool
EndpointType string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
Status string
ModuleName string
enable Boolean
endpointType String
id String
The provider-assigned unique ID for this managed resource.
instanceId String
status String
moduleName String
enable boolean
endpointType string
id string
The provider-assigned unique ID for this managed resource.
instanceId string
status string
moduleName string
enable bool
endpoint_type str
id str
The provider-assigned unique ID for this managed resource.
instance_id str
status str
module_name str
enable Boolean
endpointType String
id String
The provider-assigned unique ID for this managed resource.
instanceId String
status String
moduleName String

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi