Retrieves the default provisioning connection for an app.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.app.getConnection({
id: "0oa1234567890abcdef",
});
export const connectionStatus = example.then(example => example.status);
import pulumi
import pulumi_okta as okta
example = okta.app.get_connection(id="0oa1234567890abcdef")
pulumi.export("connectionStatus", example.status)
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta/app"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := app.LookupConnection(ctx, &app.LookupConnectionArgs{
Id: "0oa1234567890abcdef",
}, nil)
if err != nil {
return err
}
ctx.Export("connectionStatus", example.Status)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.App.GetConnection.Invoke(new()
{
Id = "0oa1234567890abcdef",
});
return new Dictionary<string, object?>
{
["connectionStatus"] = example.Apply(getConnectionResult => getConnectionResult.Status),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.app.AppFunctions;
import com.pulumi.okta.app.inputs.GetConnectionArgs;
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 = AppFunctions.getConnection(GetConnectionArgs.builder()
.id("0oa1234567890abcdef")
.build());
ctx.export("connectionStatus", example.status());
}
}
variables:
example:
fn::invoke:
function: okta:app:getConnection
arguments:
id: 0oa1234567890abcdef
outputs:
# Use the retrieved data
connectionStatus: ${example.status}
Using getConnection
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 getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>def get_connection(auth_scheme: Optional[str] = None,
base_url: Optional[str] = None,
id: Optional[str] = None,
profile: Optional[GetConnectionProfile] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(auth_scheme: Optional[pulumi.Input[str]] = None,
base_url: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
profile: Optional[pulumi.Input[GetConnectionProfileArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]func LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput> Note: This function is named LookupConnection in the Go SDK.
public static class GetConnection
{
public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
fn::invoke:
function: okta:app/getConnection:getConnection
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The application ID for which to retrieve the provisioning connection information.
- Auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- Base
Url string - The base URL for the provisioning connection.
- Profile
Get
Connection Profile - Profile information for the app connection.
- Id string
- The application ID for which to retrieve the provisioning connection information.
- Auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- Base
Url string - The base URL for the provisioning connection.
- Profile
Get
Connection Profile - Profile information for the app connection.
- id String
- The application ID for which to retrieve the provisioning connection information.
- auth
Scheme String - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url String - The base URL for the provisioning connection.
- profile
Get
Connection Profile - Profile information for the app connection.
- id string
- The application ID for which to retrieve the provisioning connection information.
- auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url string - The base URL for the provisioning connection.
- profile
Get
Connection Profile - Profile information for the app connection.
- id str
- The application ID for which to retrieve the provisioning connection information.
- auth_
scheme str - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base_
url str - The base URL for the provisioning connection.
- profile
Get
Connection Profile - Profile information for the app connection.
- id String
- The application ID for which to retrieve the provisioning connection information.
- auth
Scheme String - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url String - The base URL for the provisioning connection.
- profile Property Map
- Profile information for the app connection.
getConnection Result
The following output properties are available:
- Auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- Base
Url string - The base URL for the provisioning connection.
- Id string
- The application ID for which to retrieve the provisioning connection information.
- Status string
- Provisioning connection status.
- Profile
Get
Connection Profile - Profile information for the app connection.
- Auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- Base
Url string - The base URL for the provisioning connection.
- Id string
- The application ID for which to retrieve the provisioning connection information.
- Status string
- Provisioning connection status.
- Profile
Get
Connection Profile - Profile information for the app connection.
- auth
Scheme String - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url String - The base URL for the provisioning connection.
- id String
- The application ID for which to retrieve the provisioning connection information.
- status String
- Provisioning connection status.
- profile
Get
Connection Profile - Profile information for the app connection.
- auth
Scheme string - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url string - The base URL for the provisioning connection.
- id string
- The application ID for which to retrieve the provisioning connection information.
- status string
- Provisioning connection status.
- profile
Get
Connection Profile - Profile information for the app connection.
- auth_
scheme str - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base_
url str - The base URL for the provisioning connection.
- id str
- The application ID for which to retrieve the provisioning connection information.
- status str
- Provisioning connection status.
- profile
Get
Connection Profile - Profile information for the app connection.
- auth
Scheme String - A token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
- base
Url String - The base URL for the provisioning connection.
- id String
- The application ID for which to retrieve the provisioning connection information.
- status String
- Provisioning connection status.
- profile Property Map
- Profile information for the app connection.
Supporting Types
GetConnectionProfile
- Auth
Scheme string - Defines the method of authentication.
- Auth
Scheme string - Defines the method of authentication.
- auth
Scheme String - Defines the method of authentication.
- auth
Scheme string - Defines the method of authentication.
- auth_
scheme str - Defines the method of authentication.
- auth
Scheme String - Defines the method of authentication.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
