1. Packages
  2. Okta Provider
  3. API Docs
  4. getBehaviours
Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi

okta.getBehaviours

Explore with Pulumi AI

Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi

Get a behaviors by search criteria.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = okta.getBehaviours({
    q: "New",
});
Copy
import pulumi
import pulumi_okta as okta

example = okta.get_behaviours(q="New")
Copy
package main

import (
	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := okta.GetBehaviours(ctx, &okta.GetBehavioursArgs{
			Q: pulumi.StringRef("New"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;

return await Deployment.RunAsync(() => 
{
    var example = Okta.GetBehaviours.Invoke(new()
    {
        Q = "New",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetBehavioursArgs;
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 example = OktaFunctions.getBehaviours(GetBehavioursArgs.builder()
            .q("New")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: okta:getBehaviours
      arguments:
        q: New
Copy

Using getBehaviours

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 getBehaviours(args: GetBehavioursArgs, opts?: InvokeOptions): Promise<GetBehavioursResult>
function getBehavioursOutput(args: GetBehavioursOutputArgs, opts?: InvokeOptions): Output<GetBehavioursResult>
Copy
def get_behaviours(q: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetBehavioursResult
def get_behaviours_output(q: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetBehavioursResult]
Copy
func GetBehaviours(ctx *Context, args *GetBehavioursArgs, opts ...InvokeOption) (*GetBehavioursResult, error)
func GetBehavioursOutput(ctx *Context, args *GetBehavioursOutputArgs, opts ...InvokeOption) GetBehavioursResultOutput
Copy

> Note: This function is named GetBehaviours in the Go SDK.

public static class GetBehaviours 
{
    public static Task<GetBehavioursResult> InvokeAsync(GetBehavioursArgs args, InvokeOptions? opts = null)
    public static Output<GetBehavioursResult> Invoke(GetBehavioursInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBehavioursResult> getBehaviours(GetBehavioursArgs args, InvokeOptions options)
public static Output<GetBehavioursResult> getBehaviours(GetBehavioursArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: okta:index/getBehaviours:getBehaviours
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Q string
Searches the name property of behaviors for matching value
Q string
Searches the name property of behaviors for matching value
q String
Searches the name property of behaviors for matching value
q string
Searches the name property of behaviors for matching value
q str
Searches the name property of behaviors for matching value
q String
Searches the name property of behaviors for matching value

getBehaviours Result

The following output properties are available:

Behaviors List<GetBehavioursBehavior>
Id string
The provider-assigned unique ID for this managed resource.
Q string
Searches the name property of behaviors for matching value
Behaviors []GetBehavioursBehavior
Id string
The provider-assigned unique ID for this managed resource.
Q string
Searches the name property of behaviors for matching value
behaviors List<GetBehavioursBehavior>
id String
The provider-assigned unique ID for this managed resource.
q String
Searches the name property of behaviors for matching value
behaviors GetBehavioursBehavior[]
id string
The provider-assigned unique ID for this managed resource.
q string
Searches the name property of behaviors for matching value
behaviors Sequence[GetBehavioursBehavior]
id str
The provider-assigned unique ID for this managed resource.
q str
Searches the name property of behaviors for matching value
behaviors List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
q String
Searches the name property of behaviors for matching value

Supporting Types

GetBehavioursBehavior

Id This property is required. string
Behavior ID.
Name This property is required. string
Behavior name.
Settings This property is required. Dictionary<string, string>
Map of behavior settings.
Status This property is required. string
Behavior status.
Type This property is required. string
Behavior type.
Id This property is required. string
Behavior ID.
Name This property is required. string
Behavior name.
Settings This property is required. map[string]string
Map of behavior settings.
Status This property is required. string
Behavior status.
Type This property is required. string
Behavior type.
id This property is required. String
Behavior ID.
name This property is required. String
Behavior name.
settings This property is required. Map<String,String>
Map of behavior settings.
status This property is required. String
Behavior status.
type This property is required. String
Behavior type.
id This property is required. string
Behavior ID.
name This property is required. string
Behavior name.
settings This property is required. {[key: string]: string}
Map of behavior settings.
status This property is required. string
Behavior status.
type This property is required. string
Behavior type.
id This property is required. str
Behavior ID.
name This property is required. str
Behavior name.
settings This property is required. Mapping[str, str]
Map of behavior settings.
status This property is required. str
Behavior status.
type This property is required. str
Behavior type.
id This property is required. String
Behavior ID.
name This property is required. String
Behavior name.
settings This property is required. Map<String>
Map of behavior settings.
status This property is required. String
Behavior status.
type This property is required. String
Behavior type.

Package Details

Repository
Okta pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.
Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi