alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.cr.getEndpointAclService

Explore with Pulumi AI

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

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

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

});
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{
			Enable:       true,
			EndpointType: "internet",
			InstanceId:   "example_id",
			ModuleName:   pulumi.StringRef("Registry"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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()
            .enable(true)
            .endpointType("internet")
            .instanceId("example_id")
            .moduleName("Registry")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cr.get_endpoint_acl_service(enable=True,
    endpoint_type="internet",
    instance_id="example_id",
    module_name="Registry")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.cr.getEndpointAclService({
    enable: true,
    endpointType: "internet",
    instanceId: "example_id",
    moduleName: "Registry",
});
variables:
  example:
    fn::invoke:
      Function: alicloud:cr:getEndpointAclService
      Arguments:
        enable: true
        endpointType: internet
        instanceId: example_id
        moduleName: Registry

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>
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]
func GetEndpointAclService(ctx *Context, args *GetEndpointAclServiceArgs, opts ...InvokeOption) (*GetEndpointAclServiceResult, error)
func GetEndpointAclServiceOutput(ctx *Context, args *GetEndpointAclServiceOutputArgs, opts ...InvokeOption) GetEndpointAclServiceResultOutput

> 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)
}
public static CompletableFuture<GetEndpointAclServiceResult> getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cr/getEndpointAclService:getEndpointAclService
  arguments:
    # arguments dictionary

The following arguments are supported:

Enable bool

Whether to enable Acl Service. Valid values: true and false.

EndpointType string

The type of endpoint. Valid values: internet.

InstanceId 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 bool

Whether to enable Acl Service. Valid values: true and false.

EndpointType string

The type of endpoint. Valid values: internet.

InstanceId 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 Boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType String

The type of endpoint. Valid values: internet.

instanceId 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 boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType string

The type of endpoint. Valid values: internet.

instanceId 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 bool

Whether to enable Acl Service. Valid values: true and false.

endpoint_type str

The type of endpoint. Valid values: internet.

instance_id 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 Boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType String

The type of endpoint. Valid values: internet.

instanceId 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.