FusionAuth v5.0.4 published on Tuesday, Jul 9, 2024 by Theo Gravity
fusionauth.getApplicationRole
Explore with Pulumi AI
# Application Role Resource
This Resource is used to create a role for an Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";
const admin = fusionauth.getApplicationRole({
applicationId: data.fusionauth_application.FusionAuth.id,
name: "admin",
});
import pulumi
import pulumi_fusionauth as fusionauth
admin = fusionauth.get_application_role(application_id=data["fusionauth_application"]["FusionAuth"]["id"],
name="admin")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fusionauth.GetApplicationRole(ctx, &fusionauth.GetApplicationRoleArgs{
ApplicationId: data.Fusionauth_application.FusionAuth.Id,
Name: "admin",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = Pulumi.Fusionauth;
return await Deployment.RunAsync(() =>
{
var admin = Fusionauth.GetApplicationRole.Invoke(new()
{
ApplicationId = data.Fusionauth_application.FusionAuth.Id,
Name = "admin",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionauthFunctions;
import com.pulumi.fusionauth.inputs.GetApplicationRoleArgs;
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 admin = FusionauthFunctions.getApplicationRole(GetApplicationRoleArgs.builder()
.applicationId(data.fusionauth_application().FusionAuth().id())
.name("admin")
.build());
}
}
variables:
admin:
fn::invoke:
Function: fusionauth:getApplicationRole
Arguments:
applicationId: ${data.fusionauth_application.FusionAuth.id}
name: admin
Using getApplicationRole
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 getApplicationRole(args: GetApplicationRoleArgs, opts?: InvokeOptions): Promise<GetApplicationRoleResult>
function getApplicationRoleOutput(args: GetApplicationRoleOutputArgs, opts?: InvokeOptions): Output<GetApplicationRoleResult>
def get_application_role(application_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationRoleResult
def get_application_role_output(application_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationRoleResult]
func GetApplicationRole(ctx *Context, args *GetApplicationRoleArgs, opts ...InvokeOption) (*GetApplicationRoleResult, error)
func GetApplicationRoleOutput(ctx *Context, args *GetApplicationRoleOutputArgs, opts ...InvokeOption) GetApplicationRoleResultOutput
> Note: This function is named GetApplicationRole
in the Go SDK.
public static class GetApplicationRole
{
public static Task<GetApplicationRoleResult> InvokeAsync(GetApplicationRoleArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationRoleResult> Invoke(GetApplicationRoleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationRoleResult> getApplicationRole(GetApplicationRoleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fusionauth:index/getApplicationRole:getApplicationRole
arguments:
# arguments dictionary
The following arguments are supported:
- Application
Id string - ID of the application that this role is for.
- Name string
- The name of the Role.
- Application
Id string - ID of the application that this role is for.
- Name string
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- name String
- The name of the Role.
- application
Id string - ID of the application that this role is for.
- name string
- The name of the Role.
- application_
id str - ID of the application that this role is for.
- name str
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- name String
- The name of the Role.
getApplicationRole Result
The following output properties are available:
- Application
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Application
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- application
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- application
Id string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- application_
id str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- application
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
Package Details
- Repository
- fusionauth theogravity/pulumi-fusionauth
- License
- MIT
- Notes
- This Pulumi package is based on the
fusionauth
Terraform Provider.