Okta v4.11.0 published on Tuesday, Sep 17, 2024 by Pulumi
okta.idp.getMetadataSaml
Explore with Pulumi AI
Get SAML IdP metadata from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.idp.getMetadataSaml({
idpId: "<idp id>",
});
import pulumi
import pulumi_okta as okta
example = okta.idp.get_metadata_saml(idp_id="<idp id>")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/idp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := idp.GetMetadataSaml(ctx, &idp.GetMetadataSamlArgs{
IdpId: pulumi.StringRef("<idp id>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.Idp.GetMetadataSaml.Invoke(new()
{
IdpId = "<idp id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.idp.IdpFunctions;
import com.pulumi.okta.idp.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 = IdpFunctions.getMetadataSaml(GetMetadataSamlArgs.builder()
.idpId("<idp id>")
.build());
}
}
variables:
example:
fn::invoke:
Function: okta:idp:getMetadataSaml
Arguments:
idpId: <idp 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(idp_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetadataSamlResult
def get_metadata_saml_output(idp_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:idp/getMetadataSaml:getMetadataSaml
arguments:
# arguments dictionary
The following arguments are supported:
- Idp
Id string - The id of the IdP to retrieve metadata for.
- Idp
Id string - The id of the IdP to retrieve metadata for.
- idp
Id String - The id of the IdP to retrieve metadata for.
- idp
Id string - The id of the IdP to retrieve metadata for.
- idp_
id str - The id of the IdP to retrieve metadata for.
- idp
Id String - The id of the IdP to retrieve metadata for.
getMetadataSaml Result
The following output properties are available:
- Assertions
Signed bool - Whether assertions are signed.
- Authn
Request boolSigned - Whether authn requests are signed.
- Encryption
Certificate string - SAML request encryption certificate.
- 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 IdP metadata.
- Signing
Certificate string - SAML request signing certificate.
- Idp
Id string - The id of the IdP to retrieve metadata for.
- Assertions
Signed bool - Whether assertions are signed.
- Authn
Request boolSigned - Whether authn requests are signed.
- Encryption
Certificate string - SAML request encryption certificate.
- 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 IdP metadata.
- Signing
Certificate string - SAML request signing certificate.
- Idp
Id string - The id of the IdP to retrieve metadata for.
- assertions
Signed Boolean - Whether assertions are signed.
- authn
Request BooleanSigned - Whether authn requests are signed.
- encryption
Certificate String - SAML request encryption certificate.
- 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 IdP metadata.
- signing
Certificate String - SAML request signing certificate.
- idp
Id String - The id of the IdP to retrieve metadata for.
- assertions
Signed boolean - Whether assertions are signed.
- authn
Request booleanSigned - Whether authn requests are signed.
- encryption
Certificate string - SAML request encryption certificate.
- 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 IdP metadata.
- signing
Certificate string - SAML request signing certificate.
- idp
Id string - The id of the IdP to retrieve metadata for.
- assertions_
signed bool - Whether assertions are signed.
- authn_
request_ boolsigned - Whether authn requests are signed.
- encryption_
certificate str - SAML request encryption certificate.
- 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 IdP metadata.
- signing_
certificate str - SAML request signing certificate.
- idp_
id str - The id of the IdP to retrieve metadata for.
- assertions
Signed Boolean - Whether assertions are signed.
- authn
Request BooleanSigned - Whether authn requests are signed.
- encryption
Certificate String - SAML request encryption certificate.
- 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 IdP metadata.
- signing
Certificate String - SAML request signing certificate.
- idp
Id String - The id of the IdP to retrieve metadata for.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.