coralogix 2.0.20 published on Tuesday, May 20, 2025 by coralogix
coralogix.getCustomRole
Start a Neo task
Explain and create a coralogix.getCustomRole resource
coralogix 2.0.20 published on Tuesday, May 20, 2025 by coralogix
Coralogix Custom Role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";
const importedById = coralogix.getCustomRole({
id: coralogix_custom_role.example.id,
});
const importedByName = coralogix.getCustomRole({
name: coralogix_custom_role.example.name,
});
import pulumi
import pulumi_coralogix as coralogix
imported_by_id = coralogix.get_custom_role(id=coralogix_custom_role["example"]["id"])
imported_by_name = coralogix.get_custom_role(name=coralogix_custom_role["example"]["name"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := coralogix.LookupCustomRole(ctx, &coralogix.LookupCustomRoleArgs{
Id: pulumi.StringRef(coralogix_custom_role.Example.Id),
}, nil)
if err != nil {
return err
}
_, err = coralogix.LookupCustomRole(ctx, &coralogix.LookupCustomRoleArgs{
Name: pulumi.StringRef(coralogix_custom_role.Example.Name),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;
return await Deployment.RunAsync(() =>
{
var importedById = Coralogix.GetCustomRole.Invoke(new()
{
Id = coralogix_custom_role.Example.Id,
});
var importedByName = Coralogix.GetCustomRole.Invoke(new()
{
Name = coralogix_custom_role.Example.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.CoralogixFunctions;
import com.pulumi.coralogix.inputs.GetCustomRoleArgs;
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 importedById = CoralogixFunctions.getCustomRole(GetCustomRoleArgs.builder()
.id(coralogix_custom_role.example().id())
.build());
final var importedByName = CoralogixFunctions.getCustomRole(GetCustomRoleArgs.builder()
.name(coralogix_custom_role.example().name())
.build());
}
}
variables:
importedById:
fn::invoke:
function: coralogix:getCustomRole
arguments:
id: ${coralogix_custom_role.example.id}
importedByName:
fn::invoke:
function: coralogix:getCustomRole
arguments:
name: ${coralogix_custom_role.example.name}
Using getCustomRole
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 getCustomRole(args: GetCustomRoleArgs, opts?: InvokeOptions): Promise<GetCustomRoleResult>
function getCustomRoleOutput(args: GetCustomRoleOutputArgs, opts?: InvokeOptions): Output<GetCustomRoleResult>def get_custom_role(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomRoleResult
def get_custom_role_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoleResult]func LookupCustomRole(ctx *Context, args *LookupCustomRoleArgs, opts ...InvokeOption) (*LookupCustomRoleResult, error)
func LookupCustomRoleOutput(ctx *Context, args *LookupCustomRoleOutputArgs, opts ...InvokeOption) LookupCustomRoleResultOutput> Note: This function is named LookupCustomRole in the Go SDK.
public static class GetCustomRole
{
public static Task<GetCustomRoleResult> InvokeAsync(GetCustomRoleArgs args, InvokeOptions? opts = null)
public static Output<GetCustomRoleResult> Invoke(GetCustomRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomRoleResult> getCustomRole(GetCustomRoleArgs args, InvokeOptions options)
public static Output<GetCustomRoleResult> getCustomRole(GetCustomRoleArgs args, InvokeOptions options)
fn::invoke:
function: coralogix:index/getCustomRole:getCustomRole
arguments:
# arguments dictionaryThe following arguments are supported:
getCustomRole Result
The following output properties are available:
- Description string
- Custom Role description.
- Name string
- Custom Role name.
- Parent
Role string - Parent role name
- Permissions List<string>
- Custom role permissions
- Id string
- Custom Role ID.
- Description string
- Custom Role description.
- Name string
- Custom Role name.
- Parent
Role string - Parent role name
- Permissions []string
- Custom role permissions
- Id string
- Custom Role ID.
- description String
- Custom Role description.
- name String
- Custom Role name.
- parent
Role String - Parent role name
- permissions List<String>
- Custom role permissions
- id String
- Custom Role ID.
- description string
- Custom Role description.
- name string
- Custom Role name.
- parent
Role string - Parent role name
- permissions string[]
- Custom role permissions
- id string
- Custom Role ID.
- description str
- Custom Role description.
- name str
- Custom Role name.
- parent_
role str - Parent role name
- permissions Sequence[str]
- Custom role permissions
- id str
- Custom Role ID.
- description String
- Custom Role description.
- name String
- Custom Role name.
- parent
Role String - Parent role name
- permissions List<String>
- Custom role permissions
- id String
- Custom Role ID.
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the
coralogixTerraform Provider.
coralogix 2.0.20 published on Tuesday, May 20, 2025 by coralogix
