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.- Service
Name string - Acls
List<Get
Elastic Search Acl Acl Args> - 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.
- 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.- Service
Name string - Acls
[]Get
Elastic Search Acl Acl - 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.
- 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.- service
Name string - acls
Get
Elastic Search Acl Acl[] - enabled boolean
enables or disables Elasticsearch ACLs.
- extended
Acl 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[Get
Elastic Search Acl Acl Args] - 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
- Service
Name string - Acls
List<Get
Elastic Search Acl Acl> - 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.
- Id string
The provider-assigned unique ID for this managed resource.
- Project string
- Service
Name string - Acls
[]Get
Elastic Search Acl Acl - 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.
- id string
The provider-assigned unique ID for this managed resource.
- project string
- service
Name string - acls
Get
Elastic Search Acl Acl[] - enabled boolean
enables or disables Elasticsearch ACLs.
- extended
Acl 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[Get
Elastic Search Acl Acl] - 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
- index str
- permission str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.