Alibaba Cloud

v3.15.0 published on Thursday, Jan 13, 2022 by Pulumi

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.CR.GetEndpointAclService.InvokeAsync(new AliCloud.CR.GetEndpointAclServiceArgs
        {
            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 {
		opt0 := "Registry"
		_, err := cr.GetEndpointAclService(ctx, &cr.GetEndpointAclServiceArgs{
			Enable:       true,
			EndpointType: "internet",
			InstanceId:   "example_id",
			ModuleName:   &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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 = pulumi.output(alicloud.cr.getEndpointAclService({
    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)
}

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

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 bool
endpoint_type str
id str
The provider-assigned unique ID for this managed resource.
instance_id str
status str
module_name str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.