1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationExternalSamlIdentityProvider
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack

    Provides a resource to create a Organization external saml identity provider

    NOTE: When creating it for the first time, you must set one of encoded_metadata_document and x509_certificate, another_x509_certificate cannot be set alone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OrganizationExternalSamlIdentityProvider("example", {
        zoneId: "z-1os7c9znogct",
        encodedMetadataDocument: "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4=",
        anotherX509Certificate: `-----BEGIN CERTIFICATE-----
    MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
    ......
    qs39KP9jOtSzEzc1YhiX
    -----END CERTIFICATE-----
    `,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OrganizationExternalSamlIdentityProvider("example",
        zone_id="z-1os7c9znogct",
        encoded_metadata_document="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4=",
        another_x509_certificate="""-----BEGIN CERTIFICATE-----
    MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
    ......
    qs39KP9jOtSzEzc1YhiX
    -----END CERTIFICATE-----
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewOrganizationExternalSamlIdentityProvider(ctx, "example", &tencentcloud.OrganizationExternalSamlIdentityProviderArgs{
    			ZoneId:                  pulumi.String("z-1os7c9znogct"),
    			EncodedMetadataDocument: pulumi.String("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4="),
    			AnotherX509Certificate: pulumi.String(`-----BEGIN CERTIFICATE-----
    MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
    ......
    qs39KP9jOtSzEzc1YhiX
    -----END CERTIFICATE-----
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.OrganizationExternalSamlIdentityProvider("example", new()
        {
            ZoneId = "z-1os7c9znogct",
            EncodedMetadataDocument = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4=",
            AnotherX509Certificate = @"-----BEGIN CERTIFICATE-----
    MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
    ......
    qs39KP9jOtSzEzc1YhiX
    -----END CERTIFICATE-----
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationExternalSamlIdentityProvider;
    import com.pulumi.tencentcloud.OrganizationExternalSamlIdentityProviderArgs;
    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) {
            var example = new OrganizationExternalSamlIdentityProvider("example", OrganizationExternalSamlIdentityProviderArgs.builder()
                .zoneId("z-1os7c9znogct")
                .encodedMetadataDocument("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4=")
                .anotherX509Certificate("""
    -----BEGIN CERTIFICATE-----
    MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
    ......
    qs39KP9jOtSzEzc1YhiX
    -----END CERTIFICATE-----
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OrganizationExternalSamlIdentityProvider
        properties:
          zoneId: z-1os7c9znogct
          encodedMetadataDocument: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz......RGVzY3JpcHRvcj4=
          anotherX509Certificate: |
            -----BEGIN CERTIFICATE-----
            MIIC8DCCAdigAwIBAgIQPCotiH/l8K1K6kBgL4mBfzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQD
            ......
            qs39KP9jOtSzEzc1YhiX
            -----END CERTIFICATE-----        
    

    Create OrganizationExternalSamlIdentityProvider Resource

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

    Constructor syntax

    new OrganizationExternalSamlIdentityProvider(name: string, args: OrganizationExternalSamlIdentityProviderArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationExternalSamlIdentityProvider(resource_name: str,
                                                 args: OrganizationExternalSamlIdentityProviderArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationExternalSamlIdentityProvider(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 zone_id: Optional[str] = None,
                                                 another_x509_certificate: Optional[str] = None,
                                                 encoded_metadata_document: Optional[str] = None,
                                                 entity_id: Optional[str] = None,
                                                 login_url: Optional[str] = None,
                                                 organization_external_saml_identity_provider_id: Optional[str] = None,
                                                 sso_status: Optional[str] = None,
                                                 x509_certificate: Optional[str] = None)
    func NewOrganizationExternalSamlIdentityProvider(ctx *Context, name string, args OrganizationExternalSamlIdentityProviderArgs, opts ...ResourceOption) (*OrganizationExternalSamlIdentityProvider, error)
    public OrganizationExternalSamlIdentityProvider(string name, OrganizationExternalSamlIdentityProviderArgs args, CustomResourceOptions? opts = null)
    public OrganizationExternalSamlIdentityProvider(String name, OrganizationExternalSamlIdentityProviderArgs args)
    public OrganizationExternalSamlIdentityProvider(String name, OrganizationExternalSamlIdentityProviderArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationExternalSamlIdentityProvider
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OrganizationExternalSamlIdentityProviderArgs
    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 OrganizationExternalSamlIdentityProviderArgs
    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 OrganizationExternalSamlIdentityProviderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationExternalSamlIdentityProviderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationExternalSamlIdentityProviderArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    OrganizationExternalSamlIdentityProvider 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 OrganizationExternalSamlIdentityProvider resource accepts the following input properties:

    ZoneId string
    Space ID.
    AnotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    EncodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    EntityId string
    IdP identifier.
    LoginUrl string
    IdP login URL.
    OrganizationExternalSamlIdentityProviderId string
    ID of the resource.
    SsoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    X509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    ZoneId string
    Space ID.
    AnotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    EncodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    EntityId string
    IdP identifier.
    LoginUrl string
    IdP login URL.
    OrganizationExternalSamlIdentityProviderId string
    ID of the resource.
    SsoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    X509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId String
    Space ID.
    anotherX509Certificate String
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    encodedMetadataDocument String
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId String
    IdP identifier.
    loginUrl String
    IdP login URL.
    organizationExternalSamlIdentityProviderId String
    ID of the resource.
    ssoStatus String
    SSO enabling status. Valid values: Enabled, Disabled (default).
    x509Certificate String
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId string
    Space ID.
    anotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    encodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId string
    IdP identifier.
    loginUrl string
    IdP login URL.
    organizationExternalSamlIdentityProviderId string
    ID of the resource.
    ssoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    x509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zone_id str
    Space ID.
    another_x509_certificate str
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    encoded_metadata_document str
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entity_id str
    IdP identifier.
    login_url str
    IdP login URL.
    organization_external_saml_identity_provider_id str
    ID of the resource.
    sso_status str
    SSO enabling status. Valid values: Enabled, Disabled (default).
    x509_certificate str
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId String
    Space ID.
    anotherX509Certificate String
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    encodedMetadataDocument String
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId String
    IdP identifier.
    loginUrl String
    IdP login URL.
    organizationExternalSamlIdentityProviderId String
    ID of the resource.
    ssoStatus String
    SSO enabling status. Valid values: Enabled, Disabled (default).
    x509Certificate String
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.

    Outputs

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

    AnotherCertificateId string
    Another certificate ID.
    CertificateId string
    Certificate ID.
    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    AnotherCertificateId string
    Another certificate ID.
    CertificateId string
    Certificate ID.
    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    anotherCertificateId String
    Another certificate ID.
    certificateId String
    Certificate ID.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.
    anotherCertificateId string
    Another certificate ID.
    certificateId string
    Certificate ID.
    createTime string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    Update time.
    another_certificate_id str
    Another certificate ID.
    certificate_id str
    Certificate ID.
    create_time str
    Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    Update time.
    anotherCertificateId String
    Another certificate ID.
    certificateId String
    Certificate ID.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.

    Look up Existing OrganizationExternalSamlIdentityProvider Resource

    Get an existing OrganizationExternalSamlIdentityProvider 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?: OrganizationExternalSamlIdentityProviderState, opts?: CustomResourceOptions): OrganizationExternalSamlIdentityProvider
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            another_certificate_id: Optional[str] = None,
            another_x509_certificate: Optional[str] = None,
            certificate_id: Optional[str] = None,
            create_time: Optional[str] = None,
            encoded_metadata_document: Optional[str] = None,
            entity_id: Optional[str] = None,
            login_url: Optional[str] = None,
            organization_external_saml_identity_provider_id: Optional[str] = None,
            sso_status: Optional[str] = None,
            update_time: Optional[str] = None,
            x509_certificate: Optional[str] = None,
            zone_id: Optional[str] = None) -> OrganizationExternalSamlIdentityProvider
    func GetOrganizationExternalSamlIdentityProvider(ctx *Context, name string, id IDInput, state *OrganizationExternalSamlIdentityProviderState, opts ...ResourceOption) (*OrganizationExternalSamlIdentityProvider, error)
    public static OrganizationExternalSamlIdentityProvider Get(string name, Input<string> id, OrganizationExternalSamlIdentityProviderState? state, CustomResourceOptions? opts = null)
    public static OrganizationExternalSamlIdentityProvider get(String name, Output<String> id, OrganizationExternalSamlIdentityProviderState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationExternalSamlIdentityProvider    get:      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:
    AnotherCertificateId string
    Another certificate ID.
    AnotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    CertificateId string
    Certificate ID.
    CreateTime string
    Create time.
    EncodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    EntityId string
    IdP identifier.
    LoginUrl string
    IdP login URL.
    OrganizationExternalSamlIdentityProviderId string
    ID of the resource.
    SsoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    UpdateTime string
    Update time.
    X509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    ZoneId string
    Space ID.
    AnotherCertificateId string
    Another certificate ID.
    AnotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    CertificateId string
    Certificate ID.
    CreateTime string
    Create time.
    EncodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    EntityId string
    IdP identifier.
    LoginUrl string
    IdP login URL.
    OrganizationExternalSamlIdentityProviderId string
    ID of the resource.
    SsoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    UpdateTime string
    Update time.
    X509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    ZoneId string
    Space ID.
    anotherCertificateId String
    Another certificate ID.
    anotherX509Certificate String
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    certificateId String
    Certificate ID.
    createTime String
    Create time.
    encodedMetadataDocument String
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId String
    IdP identifier.
    loginUrl String
    IdP login URL.
    organizationExternalSamlIdentityProviderId String
    ID of the resource.
    ssoStatus String
    SSO enabling status. Valid values: Enabled, Disabled (default).
    updateTime String
    Update time.
    x509Certificate String
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId String
    Space ID.
    anotherCertificateId string
    Another certificate ID.
    anotherX509Certificate string
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    certificateId string
    Certificate ID.
    createTime string
    Create time.
    encodedMetadataDocument string
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId string
    IdP identifier.
    loginUrl string
    IdP login URL.
    organizationExternalSamlIdentityProviderId string
    ID of the resource.
    ssoStatus string
    SSO enabling status. Valid values: Enabled, Disabled (default).
    updateTime string
    Update time.
    x509Certificate string
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId string
    Space ID.
    another_certificate_id str
    Another certificate ID.
    another_x509_certificate str
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    certificate_id str
    Certificate ID.
    create_time str
    Create time.
    encoded_metadata_document str
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entity_id str
    IdP identifier.
    login_url str
    IdP login URL.
    organization_external_saml_identity_provider_id str
    ID of the resource.
    sso_status str
    SSO enabling status. Valid values: Enabled, Disabled (default).
    update_time str
    Update time.
    x509_certificate str
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zone_id str
    Space ID.
    anotherCertificateId String
    Another certificate ID.
    anotherX509Certificate String
    Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    certificateId String
    Certificate ID.
    createTime String
    Create time.
    encodedMetadataDocument String
    IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
    entityId String
    IdP identifier.
    loginUrl String
    IdP login URL.
    organizationExternalSamlIdentityProviderId String
    ID of the resource.
    ssoStatus String
    SSO enabling status. Valid values: Enabled, Disabled (default).
    updateTime String
    Update time.
    x509Certificate String
    X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
    zoneId String
    Space ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate