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_documentandx509_certificate,another_x509_certificatecannot 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:
- Zone
Id string - Space ID.
- Another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- Entity
Id string - IdP identifier.
- Login
Url string - IdP login URL.
- Organization
External stringSaml Identity Provider Id - ID of the resource.
- Sso
Status 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 string - Space ID.
- Another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- Entity
Id string - IdP identifier.
- Login
Url string - IdP login URL.
- Organization
External stringSaml Identity Provider Id - ID of the resource.
- Sso
Status 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 String - Space ID.
- another
X509Certificate String - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- encoded
Metadata StringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id String - IdP identifier.
- login
Url String - IdP login URL.
- organization
External StringSaml Identity Provider Id - ID of the resource.
- sso
Status 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 string - Space ID.
- another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id string - IdP identifier.
- login
Url string - IdP login URL.
- organization
External stringSaml Identity Provider Id - ID of the resource.
- sso
Status 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_ strcertificate - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- encoded_
metadata_ strdocument - 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_ strsaml_ identity_ provider_ id - 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.
- zone
Id String - Space ID.
- another
X509Certificate String - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- encoded
Metadata StringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id String - IdP identifier.
- login
Url String - IdP login URL.
- organization
External StringSaml Identity Provider Id - ID of the resource.
- sso
Status 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:
- Another
Certificate stringId - Another certificate ID.
- Certificate
Id string - Certificate ID.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update time.
- Another
Certificate stringId - Another certificate ID.
- Certificate
Id string - Certificate ID.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update time.
- another
Certificate StringId - Another certificate ID.
- certificate
Id String - Certificate ID.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Update time.
- another
Certificate stringId - Another certificate ID.
- certificate
Id string - Certificate ID.
- create
Time string - Create time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Update time.
- another_
certificate_ strid - 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.
- another
Certificate StringId - Another certificate ID.
- certificate
Id String - Certificate ID.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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) -> OrganizationExternalSamlIdentityProviderfunc 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.
- Another
Certificate stringId - Another certificate ID.
- Another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Certificate
Id string - Certificate ID.
- Create
Time string - Create time.
- Encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- Entity
Id string - IdP identifier.
- Login
Url string - IdP login URL.
- Organization
External stringSaml Identity Provider Id - ID of the resource.
- Sso
Status string - SSO enabling status. Valid values: Enabled, Disabled (default).
- Update
Time string - Update time.
- X509Certificate string
- X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Zone
Id string - Space ID.
- Another
Certificate stringId - Another certificate ID.
- Another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Certificate
Id string - Certificate ID.
- Create
Time string - Create time.
- Encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- Entity
Id string - IdP identifier.
- Login
Url string - IdP login URL.
- Organization
External stringSaml Identity Provider Id - ID of the resource.
- Sso
Status string - SSO enabling status. Valid values: Enabled, Disabled (default).
- Update
Time string - Update time.
- X509Certificate string
- X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- Zone
Id string - Space ID.
- another
Certificate StringId - Another certificate ID.
- another
X509Certificate String - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- certificate
Id String - Certificate ID.
- create
Time String - Create time.
- encoded
Metadata StringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id String - IdP identifier.
- login
Url String - IdP login URL.
- organization
External StringSaml Identity Provider Id - ID of the resource.
- sso
Status String - SSO enabling status. Valid values: Enabled, Disabled (default).
- update
Time String - Update time.
- x509Certificate String
- X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- zone
Id String - Space ID.
- another
Certificate stringId - Another certificate ID.
- another
X509Certificate string - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- certificate
Id string - Certificate ID.
- create
Time string - Create time.
- encoded
Metadata stringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id string - IdP identifier.
- login
Url string - IdP login URL.
- organization
External stringSaml Identity Provider Id - ID of the resource.
- sso
Status string - SSO enabling status. Valid values: Enabled, Disabled (default).
- update
Time string - Update time.
- x509Certificate string
- X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- zone
Id string - Space ID.
- another_
certificate_ strid - Another certificate ID.
- another_
x509_ strcertificate - 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_ strdocument - 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_ strsaml_ identity_ provider_ id - 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.
- another
Certificate StringId - Another certificate ID.
- another
X509Certificate String - Another X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- certificate
Id String - Certificate ID.
- create
Time String - Create time.
- encoded
Metadata StringDocument - IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
- entity
Id String - IdP identifier.
- login
Url String - IdP login URL.
- organization
External StringSaml Identity Provider Id - ID of the resource.
- sso
Status String - SSO enabling status. Valid values: Enabled, Disabled (default).
- update
Time String - Update time.
- x509Certificate String
- X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
- zone
Id String - Space ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
