1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. SamlIdpMetadata
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides a Datadog SAML IdP metadata resource. This can be used to upload or replace the identity provider (IdP) metadata used for the organization’s SAML login configuration. An organization has at most one SAML configuration. Note: the uploaded metadata XML cannot be read back from the Datadog API, so changes made outside of Terraform to the metadata content are not detected. Destroying this resource removes it from Terraform state but does not remove the IdP metadata from Datadog.

    Create SamlIdpMetadata Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SamlIdpMetadata(name: string, args: SamlIdpMetadataArgs, opts?: CustomResourceOptions);
    @overload
    def SamlIdpMetadata(resource_name: str,
                        args: SamlIdpMetadataArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SamlIdpMetadata(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        idp_metadata: Optional[str] = None)
    func NewSamlIdpMetadata(ctx *Context, name string, args SamlIdpMetadataArgs, opts ...ResourceOption) (*SamlIdpMetadata, error)
    public SamlIdpMetadata(string name, SamlIdpMetadataArgs args, CustomResourceOptions? opts = null)
    public SamlIdpMetadata(String name, SamlIdpMetadataArgs args)
    public SamlIdpMetadata(String name, SamlIdpMetadataArgs args, CustomResourceOptions options)
    
    type: datadog:SamlIdpMetadata
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_saml_idp_metadata" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SamlIdpMetadataArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SamlIdpMetadataArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SamlIdpMetadataArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SamlIdpMetadataArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SamlIdpMetadataArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var samlIdpMetadataResource = new Datadog.SamlIdpMetadata("samlIdpMetadataResource", new()
    {
        IdpMetadata = "string",
    });
    
    example, err := datadog.NewSamlIdpMetadata(ctx, "samlIdpMetadataResource", &datadog.SamlIdpMetadataArgs{
    	IdpMetadata: pulumi.String("string"),
    })
    
    resource "datadog_saml_idp_metadata" "samlIdpMetadataResource" {
      lifecycle {
        create_before_destroy = true
      }
      idp_metadata = "string"
    }
    
    var samlIdpMetadataResource = new SamlIdpMetadata("samlIdpMetadataResource", SamlIdpMetadataArgs.builder()
        .idpMetadata("string")
        .build());
    
    saml_idp_metadata_resource = datadog.SamlIdpMetadata("samlIdpMetadataResource", idp_metadata="string")
    
    const samlIdpMetadataResource = new datadog.SamlIdpMetadata("samlIdpMetadataResource", {idpMetadata: "string"});
    
    type: datadog:SamlIdpMetadata
    properties:
        idpMetadata: string
    

    SamlIdpMetadata Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SamlIdpMetadata resource accepts the following input properties:

    IdpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    IdpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    idp_metadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    idpMetadata String
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    idpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    idp_metadata str
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    idpMetadata String
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SamlIdpMetadata resource produces the following output properties:

    AssertionConsumerServices List<string>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    EntityId string
    The service provider entity ID Datadog presents to the identity provider.
    ExpiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    Id string
    The provider-assigned unique ID for this managed resource.
    SsoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    AssertionConsumerServices []string
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    EntityId string
    The service provider entity ID Datadog presents to the identity provider.
    ExpiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    Id string
    The provider-assigned unique ID for this managed resource.
    SsoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertion_consumer_services list(string)
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entity_id string
    The service provider entity ID Datadog presents to the identity provider.
    expires_at string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    id string
    The provider-assigned unique ID for this managed resource.
    sso_url string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices List<String>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId String
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt String
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    id String
    The provider-assigned unique ID for this managed resource.
    ssoUrl String
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices string[]
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId string
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    id string
    The provider-assigned unique ID for this managed resource.
    ssoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertion_consumer_services Sequence[str]
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entity_id str
    The service provider entity ID Datadog presents to the identity provider.
    expires_at str
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    id str
    The provider-assigned unique ID for this managed resource.
    sso_url str
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices List<String>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId String
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt String
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    id String
    The provider-assigned unique ID for this managed resource.
    ssoUrl String
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.

    Look up Existing SamlIdpMetadata Resource

    Get an existing SamlIdpMetadata resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SamlIdpMetadataState, opts?: CustomResourceOptions): SamlIdpMetadata
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assertion_consumer_services: Optional[Sequence[str]] = None,
            entity_id: Optional[str] = None,
            expires_at: Optional[str] = None,
            idp_metadata: Optional[str] = None,
            sso_url: Optional[str] = None) -> SamlIdpMetadata
    func GetSamlIdpMetadata(ctx *Context, name string, id IDInput, state *SamlIdpMetadataState, opts ...ResourceOption) (*SamlIdpMetadata, error)
    public static SamlIdpMetadata Get(string name, Input<string> id, SamlIdpMetadataState? state, CustomResourceOptions? opts = null)
    public static SamlIdpMetadata get(String name, Output<String> id, SamlIdpMetadataState state, CustomResourceOptions options)
    resources:  _:    type: datadog:SamlIdpMetadata    get:      id: ${id}
    import {
      to = datadog_saml_idp_metadata.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AssertionConsumerServices List<string>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    EntityId string
    The service provider entity ID Datadog presents to the identity provider.
    ExpiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    IdpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    SsoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    AssertionConsumerServices []string
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    EntityId string
    The service provider entity ID Datadog presents to the identity provider.
    ExpiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    IdpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    SsoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertion_consumer_services list(string)
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entity_id string
    The service provider entity ID Datadog presents to the identity provider.
    expires_at string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    idp_metadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    sso_url string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices List<String>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId String
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt String
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    idpMetadata String
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    ssoUrl String
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices string[]
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId string
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt string
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    idpMetadata string
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    ssoUrl string
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertion_consumer_services Sequence[str]
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entity_id str
    The service provider entity ID Datadog presents to the identity provider.
    expires_at str
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    idp_metadata str
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    sso_url str
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.
    assertionConsumerServices List<String>
    The assertion consumer service (ACS) URLs that the identity provider posts SAML responses to.
    entityId String
    The service provider entity ID Datadog presents to the identity provider.
    expiresAt String
    The timestamp (RFC3339) at which the uploaded identity provider metadata expires.
    idpMetadata String
    The content of the IdP metadata XML file, for example loaded with the file() function. A leading UTF-8 byte order mark (BOM) is stripped automatically before upload.
    ssoUrl String
    The single sign-on URL users can visit to start a SAML login. null when the organization is identity-provider-initiated and has no subdomain.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.11.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial