getEndpointAclService

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

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());
}
}

Return

A collection of values returned by getEndpointAclService.

Parameters

argument

A collection of arguments for invoking getEndpointAclService.


suspend fun getEndpointAclService(enable: Boolean, endpointType: String, instanceId: String, moduleName: String? = null): GetEndpointAclServiceResult

Return

A collection of values returned by getEndpointAclService.

See also

Parameters

enable

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

endpointType

The type of endpoint. Valid values: internet.

instanceId

The ID of the CR Instance.

moduleName

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.


Return

A collection of values returned by getEndpointAclService.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cr.kotlin.inputs.GetEndpointAclServicePlainArgs.