okta.app.getMetadataSaml
Use this data source to retrieve the metadata for SAML application from Okta.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.App.GetMetadataSaml.Invoke(new()
{
AppId = "<app id>",
KeyId = "<cert key id>",
});
});
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.GetMetadataSaml(ctx, &app.GetMetadataSamlArgs{
AppId: "<app id>",
KeyId: pulumi.StringRef("<cert key id>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetMetadataSamlArgs;
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.getMetadataSaml(GetMetadataSamlArgs.builder()
.appId("<app id>")
.keyId("<cert key id>")
.build());
}
}
import pulumi
import pulumi_okta as okta
example = okta.app.get_metadata_saml(app_id="<app id>",
key_id="<cert key id>")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.app.getMetadataSaml({
appId: "<app id>",
keyId: "<cert key id>",
});
variables:
example:
fn::invoke:
Function: okta:app:getMetadataSaml
Arguments:
appId: <app id>
keyId: <cert key id>
Using getMetadataSaml
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 getMetadataSaml(args: GetMetadataSamlArgs, opts?: InvokeOptions): Promise<GetMetadataSamlResult>
function getMetadataSamlOutput(args: GetMetadataSamlOutputArgs, opts?: InvokeOptions): Output<GetMetadataSamlResult>
def get_metadata_saml(app_id: Optional[str] = None,
key_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetadataSamlResult
def get_metadata_saml_output(app_id: Optional[pulumi.Input[str]] = None,
key_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetadataSamlResult]
func GetMetadataSaml(ctx *Context, args *GetMetadataSamlArgs, opts ...InvokeOption) (*GetMetadataSamlResult, error)
func GetMetadataSamlOutput(ctx *Context, args *GetMetadataSamlOutputArgs, opts ...InvokeOption) GetMetadataSamlResultOutput
> Note: This function is named GetMetadataSaml
in the Go SDK.
public static class GetMetadataSaml
{
public static Task<GetMetadataSamlResult> InvokeAsync(GetMetadataSamlArgs args, InvokeOptions? opts = null)
public static Output<GetMetadataSamlResult> Invoke(GetMetadataSamlInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetadataSamlResult> getMetadataSaml(GetMetadataSamlArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: okta:app/getMetadataSaml:getMetadataSaml
arguments:
# arguments dictionary
The following arguments are supported:
getMetadataSaml Result
The following output properties are available:
- App
Id string - Certificate string
public certificate from application metadata.
- Entity
Id string Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- Http
Post stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- Http
Redirect stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- Id string
The provider-assigned unique ID for this managed resource.
- Metadata string
raw metadata of application.
- Want
Authn boolRequests Signed Whether authn requests are signed.
- Key
Id string
- App
Id string - Certificate string
public certificate from application metadata.
- Entity
Id string Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- Http
Post stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- Http
Redirect stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- Id string
The provider-assigned unique ID for this managed resource.
- Metadata string
raw metadata of application.
- Want
Authn boolRequests Signed Whether authn requests are signed.
- Key
Id string
- app
Id String - certificate String
public certificate from application metadata.
- entity
Id String Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- http
Post StringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- http
Redirect StringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- id String
The provider-assigned unique ID for this managed resource.
- metadata String
raw metadata of application.
- want
Authn BooleanRequests Signed Whether authn requests are signed.
- key
Id String
- app
Id string - certificate string
public certificate from application metadata.
- entity
Id string Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- http
Post stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- http
Redirect stringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- id string
The provider-assigned unique ID for this managed resource.
- metadata string
raw metadata of application.
- want
Authn booleanRequests Signed Whether authn requests are signed.
- key
Id string
- app_
id str - certificate str
public certificate from application metadata.
- entity_
id str Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- http_
post_ strbinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- http_
redirect_ strbinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- id str
The provider-assigned unique ID for this managed resource.
- metadata str
raw metadata of application.
- want_
authn_ boolrequests_ signed Whether authn requests are signed.
- key_
id str
- app
Id String - certificate String
public certificate from application metadata.
- entity
Id String Entity URL for instance
https://www.okta.com/saml2/service-provider/sposcfdmlybtwkdcgtuf
.- http
Post StringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post location from the SAML metadata.
- http
Redirect StringBinding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect location from the SAML metadata.
- id String
The provider-assigned unique ID for this managed resource.
- metadata String
raw metadata of application.
- want
Authn BooleanRequests Signed Whether authn requests are signed.
- key
Id String
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
okta
Terraform Provider.