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
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",
});
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")
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
})
}
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",
});
});
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());
}
}
variables:
example:
fn::invoke:
Function: alicloud:cr:getEndpointAclService
Arguments:
endpointType: internet
enable: true
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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - Endpoint
Type string - The type of endpoint. Valid values:
internet
. - Instance
Id string - The ID of the CR Instance.
- Module
Name 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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - Endpoint
Type string - The type of endpoint. Valid values:
internet
. - Instance
Id string - The ID of the CR Instance.
- Module
Name 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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - endpoint
Type String - The type of endpoint. Valid values:
internet
. - instance
Id String - The ID of the CR Instance.
- module
Name 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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - endpoint
Type string - The type of endpoint. Valid values:
internet
. - instance
Id string - The ID of the CR Instance.
- module
Name 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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - 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, Setting the value to
true
to enable the acl service. Valid values:true
andfalse
. - endpoint
Type String - The type of endpoint. Valid values:
internet
. - instance
Id String - The ID of the CR Instance.
- module
Name 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
- Endpoint
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Status string
- Module
Name string
- Enable bool
- Endpoint
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Status string
- Module
Name string
- enable Boolean
- endpoint
Type String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - status String
- module
Name String
- enable boolean
- endpoint
Type string - id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - status string
- module
Name 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
- endpoint
Type String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - status String
- module
Name String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.