All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
PreviewSAMLmetadataForApplication | GET /api/v1/apps/{appId}/sso/saml/metadata | Preview the application SAML metadata |
string PreviewSAMLmetadataForApplication (string appId)
Preview the application SAML metadata
Previews the SSO SAML metadata for an application
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class PreviewSAMLmetadataForApplicationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ApplicationSSOApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
try
{
// Preview the application SAML metadata
string result = apiInstance.PreviewSAMLmetadataForApplication(appId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationSSOApi.PreviewSAMLmetadataForApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID |
string
- Content-Type: Not defined
- Accept: text/xml, application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]