Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getElasticSearchAcl

# Elasticsearch ACL Data Source

The Elasticsearch ACL data source provides information about the existing Aiven Elasticsearch ACL for Elasticsearch service.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var es_acls = Output.Create(Aiven.GetElasticSearchAcl.InvokeAsync(new Aiven.GetElasticSearchAclArgs
        {
            Project = aiven_project.Es_project.Project,
            ServiceName = aiven_service.Es.Service_name,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupElasticSearchAcl(ctx, &aiven.LookupElasticSearchAclArgs{
            Project:     aiven_project.Es - project.Project,
            ServiceName: aiven_service.Es.Service_name,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

es_acls = aiven.get_elastic_search_acl(project=aiven_project["es-project"]["project"],
    service_name=aiven_service["es"]["service_name"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const es-acls = aiven.getElasticSearchAcl({
    project: aiven_project["es-project"].project,
    serviceName: aiven_service.es.service_name,
});

Using getElasticSearchAcl

function getElasticSearchAcl(args: GetElasticSearchAclArgs, opts?: InvokeOptions): Promise<GetElasticSearchAclResult>
def get_elastic_search_acl(acls: Optional[Sequence[GetElasticSearchAclAclArgs]] = None, enabled: Optional[bool] = None, extended_acl: Optional[bool] = None, project: Optional[str] = None, service_name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetElasticSearchAclResult
func LookupElasticSearchAcl(ctx *Context, args *LookupElasticSearchAclArgs, opts ...InvokeOption) (*LookupElasticSearchAclResult, error)

Note: This function is named LookupElasticSearchAcl in the Go SDK.

public static class GetElasticSearchAcl {
    public static Task<GetElasticSearchAclResult> InvokeAsync(GetElasticSearchAclArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

and service_name - (Required) define the project and service the ACL belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
Acls List<GetElasticSearchAclAclArgs>
Enabled bool

enables or disables Elasticsearch ACLs.

ExtendedAcl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

Project string

and service_name - (Required) define the project and service the ACL belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
Acls []GetElasticSearchAclAcl
Enabled bool

enables or disables Elasticsearch ACLs.

ExtendedAcl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

project string

and service_name - (Required) define the project and service the ACL belongs to. They should be defined using reference as shown above to set up dependencies correctly.

serviceName string
acls GetElasticSearchAclAcl[]
enabled boolean

enables or disables Elasticsearch ACLs.

extendedAcl boolean

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

project str

and service_name - (Required) define the project and service the ACL belongs to. They should be defined using reference as shown above to set up dependencies correctly.

service_name str
acls Sequence[GetElasticSearchAclAclArgs]
enabled bool

enables or disables Elasticsearch ACLs.

extended_acl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

getElasticSearchAcl Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
Acls List<GetElasticSearchAclAcl>
Enabled bool

enables or disables Elasticsearch ACLs.

ExtendedAcl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
Acls []GetElasticSearchAclAcl
Enabled bool

enables or disables Elasticsearch ACLs.

ExtendedAcl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

id string

The provider-assigned unique ID for this managed resource.

project string
serviceName string
acls GetElasticSearchAclAcl[]
enabled boolean

enables or disables Elasticsearch ACLs.

extendedAcl boolean

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

id str

The provider-assigned unique ID for this managed resource.

project str
service_name str
acls Sequence[GetElasticSearchAclAcl]
enabled bool

enables or disables Elasticsearch ACLs.

extended_acl bool

Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to.

Supporting Types

GetElasticSearchAclAcl

GetElasticSearchAclAclRule

Index string
Permission string
Index string
Permission string
index string
permission string

Package Details

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