scm

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	// (List) Domain ownership verification information.
	// This is a list, each item of data is as follows:
	Authentifications CertificateAuthentificationArrayOutput `pulumi:"authentifications"`
	// The public encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	Certificate pulumi.StringOutput `pulumi:"certificate"`
	// The chain of the certificate.
	// It can be extracted from the *server.crt* file in the Nginx directory,
	// usually after the second paragraph is the certificate chain.
	// Changing this parameter will create a new resource.
	CertificateChain pulumi.StringOutput `pulumi:"certificateChain"`
	// Domain name mapping to the verification value
	Domain pulumi.StringOutput `pulumi:"domain"`
	// Number of domain names can be bound to a certificate.
	DomainCount pulumi.IntOutput `pulumi:"domainCount"`
	// Human-readable name for the Certificate.
	// Does not have to be unique. The value contains a maximum of 63 characters.
	// Changing this parameter will create a new resource.
	Name pulumi.StringOutput `pulumi:"name"`
	// Time when the certificate becomes invalid. If no valid value is obtained, this parameter is left blank.
	NotAfter pulumi.StringOutput `pulumi:"notAfter"`
	// Time when the certificate takes effect. If no valid value is obtained, this parameter is left blank.
	NotBefore pulumi.StringOutput `pulumi:"notBefore"`
	// The private encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	// Whether a certificate can be pushed.
	PushSupport pulumi.StringOutput `pulumi:"pushSupport"`
	// The region in which to create the SCM certificate resource.
	// If omitted, the provider-level region will be used.
	// Changing this setting will push a new certificate.
	Region pulumi.StringOutput `pulumi:"region"`
	// Certificate status. The value can be:
	Status pulumi.StringOutput `pulumi:"status"`
	// The service to which the certificate needs to be pushed.
	Targets CertificateTargetArrayOutput `pulumi:"targets"`
}

SSL Certificate Manager (SCM) allows you to purchase Secure Sockets Layer (SSL) certificates from the world's leading digital certificate authorities (CAs), upload existing SSL certificates, and centrally manage all your SSL certificates in one place.

## Example Usage ### Load the certificate contents from the local files

```go package main

import (

"io/ioutil"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Scm.NewCertificate(ctx, "certificate1", &Scm.CertificateArgs{
			Certificate:      readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_ca.crt"),
			CertificateChain: readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_ca_chain.crt"),
			PrivateKey:       readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_server.key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Write the contents of the certificate into the Terrafrom script

```go package main

import (

"fmt"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Scm.NewCertificate(ctx, "certificate2", &Scm.CertificateArgs{
			Certificate: pulumi.String(fmt.Sprintf(`-----BEGIN CERTIFICATE-----

MIIC9DCCAl2gAwIBAgIUUcJZn3ep4l8iHu6lL/jE2UV+G8gwDQYJKoZIhvcNAQEL ZWlqaW5nMQswC... (This is an example, please replace it with a encrypted key of valid SSL certificate.) -----END CERTIFICATE----------

`)),

CertificateChain: pulumi.String(fmt.Sprintf(`-----BEGIN CERTIFICATE-----

MIIC9DCCAl2gAwIBAgIUUcJZn3ep4l8iHu6lL/jE2UV+G8gwDQYJKoZIhvcNAQEL BQAwgYsxCzAJB... (This is an example, please replace it with a encrypted key of valid SSL certificate.) -----END CERTIFICATE----------

`)),

PrivateKey: pulumi.String(fmt.Sprintf(`-----BEGIN PRIVATE KEY-----

QWH3GbHx5bGQyexHj2hre4yEahn4dAKKdjSAMUuSfLWygp2pEdNFOegYTdqk/snv mhNmxp74oUcVfi1Msw6KY2... (This is an example, please replace it with a encrypted key of valid SSL certificate.) -----END PRIVATE KEY-----

`)),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Push the SSL certificate to another HUAWEI CLOUD service

```go package main

import (

"io/ioutil"

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Scm.NewCertificate(ctx, "certificate3", &Scm.CertificateArgs{
			Certificate:      readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_ca.crt"),
			CertificateChain: readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_ca_chain.crt"),
			PrivateKey:       readFileOrPanic("/usr/local/data/certificate/cert_xxx/xxx_server.key"),
			Targets: scm.CertificateTargetArray{
				&scm.CertificateTargetArgs{
					Projects: pulumi.StringArray{
						pulumi.String("la-south-2"),
					},
					Service: pulumi.String("Enhance_ELB"),
				},
				&scm.CertificateTargetArgs{
					Service: pulumi.String("CDN"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Certificates can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Scm/certificate:Certificate certificate_1 scs1627959834994

```

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

NewCertificate registers a new resource with the given unique name, arguments, and options.

func (*Certificate) ElementType

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs

type CertificateArgs struct {
	// The public encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	Certificate pulumi.StringInput
	// The chain of the certificate.
	// It can be extracted from the *server.crt* file in the Nginx directory,
	// usually after the second paragraph is the certificate chain.
	// Changing this parameter will create a new resource.
	CertificateChain pulumi.StringInput
	// Human-readable name for the Certificate.
	// Does not have to be unique. The value contains a maximum of 63 characters.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// The private encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	PrivateKey pulumi.StringInput
	// The region in which to create the SCM certificate resource.
	// If omitted, the provider-level region will be used.
	// Changing this setting will push a new certificate.
	Region pulumi.StringPtrInput
	// The service to which the certificate needs to be pushed.
	Targets CertificateTargetArrayInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray

type CertificateArray []CertificateInput

func (CertificateArray) ElementType

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index

func (CertificateArrayOutput) ToCertificateArrayOutput

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateAuthentification

type CertificateAuthentification struct {
	// Domain name mapping to the verification value
	Domain *string `pulumi:"domain"`
	// Name of a domain ownership verification value.
	RecordName *string `pulumi:"recordName"`
	// Type of the domain name verification value.
	RecordType *string `pulumi:"recordType"`
	// Domain verification value.
	RecordValue *string `pulumi:"recordValue"`
}

type CertificateAuthentificationArgs

type CertificateAuthentificationArgs struct {
	// Domain name mapping to the verification value
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// Name of a domain ownership verification value.
	RecordName pulumi.StringPtrInput `pulumi:"recordName"`
	// Type of the domain name verification value.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// Domain verification value.
	RecordValue pulumi.StringPtrInput `pulumi:"recordValue"`
}

func (CertificateAuthentificationArgs) ElementType

func (CertificateAuthentificationArgs) ToCertificateAuthentificationOutput

func (i CertificateAuthentificationArgs) ToCertificateAuthentificationOutput() CertificateAuthentificationOutput

func (CertificateAuthentificationArgs) ToCertificateAuthentificationOutputWithContext

func (i CertificateAuthentificationArgs) ToCertificateAuthentificationOutputWithContext(ctx context.Context) CertificateAuthentificationOutput

type CertificateAuthentificationArray

type CertificateAuthentificationArray []CertificateAuthentificationInput

func (CertificateAuthentificationArray) ElementType

func (CertificateAuthentificationArray) ToCertificateAuthentificationArrayOutput

func (i CertificateAuthentificationArray) ToCertificateAuthentificationArrayOutput() CertificateAuthentificationArrayOutput

func (CertificateAuthentificationArray) ToCertificateAuthentificationArrayOutputWithContext

func (i CertificateAuthentificationArray) ToCertificateAuthentificationArrayOutputWithContext(ctx context.Context) CertificateAuthentificationArrayOutput

type CertificateAuthentificationArrayInput

type CertificateAuthentificationArrayInput interface {
	pulumi.Input

	ToCertificateAuthentificationArrayOutput() CertificateAuthentificationArrayOutput
	ToCertificateAuthentificationArrayOutputWithContext(context.Context) CertificateAuthentificationArrayOutput
}

CertificateAuthentificationArrayInput is an input type that accepts CertificateAuthentificationArray and CertificateAuthentificationArrayOutput values. You can construct a concrete instance of `CertificateAuthentificationArrayInput` via:

CertificateAuthentificationArray{ CertificateAuthentificationArgs{...} }

type CertificateAuthentificationArrayOutput

type CertificateAuthentificationArrayOutput struct{ *pulumi.OutputState }

func (CertificateAuthentificationArrayOutput) ElementType

func (CertificateAuthentificationArrayOutput) Index

func (CertificateAuthentificationArrayOutput) ToCertificateAuthentificationArrayOutput

func (o CertificateAuthentificationArrayOutput) ToCertificateAuthentificationArrayOutput() CertificateAuthentificationArrayOutput

func (CertificateAuthentificationArrayOutput) ToCertificateAuthentificationArrayOutputWithContext

func (o CertificateAuthentificationArrayOutput) ToCertificateAuthentificationArrayOutputWithContext(ctx context.Context) CertificateAuthentificationArrayOutput

type CertificateAuthentificationInput

type CertificateAuthentificationInput interface {
	pulumi.Input

	ToCertificateAuthentificationOutput() CertificateAuthentificationOutput
	ToCertificateAuthentificationOutputWithContext(context.Context) CertificateAuthentificationOutput
}

CertificateAuthentificationInput is an input type that accepts CertificateAuthentificationArgs and CertificateAuthentificationOutput values. You can construct a concrete instance of `CertificateAuthentificationInput` via:

CertificateAuthentificationArgs{...}

type CertificateAuthentificationOutput

type CertificateAuthentificationOutput struct{ *pulumi.OutputState }

func (CertificateAuthentificationOutput) Domain

Domain name mapping to the verification value

func (CertificateAuthentificationOutput) ElementType

func (CertificateAuthentificationOutput) RecordName

Name of a domain ownership verification value.

func (CertificateAuthentificationOutput) RecordType

Type of the domain name verification value.

func (CertificateAuthentificationOutput) RecordValue

Domain verification value.

func (CertificateAuthentificationOutput) ToCertificateAuthentificationOutput

func (o CertificateAuthentificationOutput) ToCertificateAuthentificationOutput() CertificateAuthentificationOutput

func (CertificateAuthentificationOutput) ToCertificateAuthentificationOutputWithContext

func (o CertificateAuthentificationOutput) ToCertificateAuthentificationOutputWithContext(ctx context.Context) CertificateAuthentificationOutput

type CertificateInput

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex

func (CertificateMapOutput) ToCertificateMapOutput

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Authentifications

(List) Domain ownership verification information. This is a list, each item of data is as follows:

func (CertificateOutput) Certificate

func (o CertificateOutput) Certificate() pulumi.StringOutput

The public encrypted key of the Certificate, PEM format. Changing this parameter will create a new resource.

func (CertificateOutput) CertificateChain

func (o CertificateOutput) CertificateChain() pulumi.StringOutput

The chain of the certificate. It can be extracted from the *server.crt* file in the Nginx directory, usually after the second paragraph is the certificate chain. Changing this parameter will create a new resource.

func (CertificateOutput) Domain

Domain name mapping to the verification value

func (CertificateOutput) DomainCount

func (o CertificateOutput) DomainCount() pulumi.IntOutput

Number of domain names can be bound to a certificate.

func (CertificateOutput) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Name

Human-readable name for the Certificate. Does not have to be unique. The value contains a maximum of 63 characters. Changing this parameter will create a new resource.

func (CertificateOutput) NotAfter

func (o CertificateOutput) NotAfter() pulumi.StringOutput

Time when the certificate becomes invalid. If no valid value is obtained, this parameter is left blank.

func (CertificateOutput) NotBefore

func (o CertificateOutput) NotBefore() pulumi.StringOutput

Time when the certificate takes effect. If no valid value is obtained, this parameter is left blank.

func (CertificateOutput) PrivateKey

func (o CertificateOutput) PrivateKey() pulumi.StringOutput

The private encrypted key of the Certificate, PEM format. Changing this parameter will create a new resource.

func (CertificateOutput) PushSupport

func (o CertificateOutput) PushSupport() pulumi.StringOutput

Whether a certificate can be pushed.

func (CertificateOutput) Region

The region in which to create the SCM certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.

func (CertificateOutput) Status

Certificate status. The value can be:

func (CertificateOutput) Targets

The service to which the certificate needs to be pushed.

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateState

type CertificateState struct {
	// (List) Domain ownership verification information.
	// This is a list, each item of data is as follows:
	Authentifications CertificateAuthentificationArrayInput
	// The public encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	Certificate pulumi.StringPtrInput
	// The chain of the certificate.
	// It can be extracted from the *server.crt* file in the Nginx directory,
	// usually after the second paragraph is the certificate chain.
	// Changing this parameter will create a new resource.
	CertificateChain pulumi.StringPtrInput
	// Domain name mapping to the verification value
	Domain pulumi.StringPtrInput
	// Number of domain names can be bound to a certificate.
	DomainCount pulumi.IntPtrInput
	// Human-readable name for the Certificate.
	// Does not have to be unique. The value contains a maximum of 63 characters.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// Time when the certificate becomes invalid. If no valid value is obtained, this parameter is left blank.
	NotAfter pulumi.StringPtrInput
	// Time when the certificate takes effect. If no valid value is obtained, this parameter is left blank.
	NotBefore pulumi.StringPtrInput
	// The private encrypted key of the Certificate, PEM format.
	// Changing this parameter will create a new resource.
	PrivateKey pulumi.StringPtrInput
	// Whether a certificate can be pushed.
	PushSupport pulumi.StringPtrInput
	// The region in which to create the SCM certificate resource.
	// If omitted, the provider-level region will be used.
	// Changing this setting will push a new certificate.
	Region pulumi.StringPtrInput
	// Certificate status. The value can be:
	Status pulumi.StringPtrInput
	// The service to which the certificate needs to be pushed.
	Targets CertificateTargetArrayInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type CertificateTarget

type CertificateTarget struct {
	// The project where the service you want to push a certificate to. The same certificate
	// can be pushed repeatedly to the same WAF or ELB service in the same `project`, but the CDN service can only be pushed
	// once.
	Projects []string `pulumi:"projects"`
	// Service to which the certificate is pushed. The options include `CDN`,`WAF`
	// and `Enhance_ELB`.
	Service string `pulumi:"service"`
}

type CertificateTargetArgs

type CertificateTargetArgs struct {
	// The project where the service you want to push a certificate to. The same certificate
	// can be pushed repeatedly to the same WAF or ELB service in the same `project`, but the CDN service can only be pushed
	// once.
	Projects pulumi.StringArrayInput `pulumi:"projects"`
	// Service to which the certificate is pushed. The options include `CDN`,`WAF`
	// and `Enhance_ELB`.
	Service pulumi.StringInput `pulumi:"service"`
}

func (CertificateTargetArgs) ElementType

func (CertificateTargetArgs) ElementType() reflect.Type

func (CertificateTargetArgs) ToCertificateTargetOutput

func (i CertificateTargetArgs) ToCertificateTargetOutput() CertificateTargetOutput

func (CertificateTargetArgs) ToCertificateTargetOutputWithContext

func (i CertificateTargetArgs) ToCertificateTargetOutputWithContext(ctx context.Context) CertificateTargetOutput

type CertificateTargetArray

type CertificateTargetArray []CertificateTargetInput

func (CertificateTargetArray) ElementType

func (CertificateTargetArray) ElementType() reflect.Type

func (CertificateTargetArray) ToCertificateTargetArrayOutput

func (i CertificateTargetArray) ToCertificateTargetArrayOutput() CertificateTargetArrayOutput

func (CertificateTargetArray) ToCertificateTargetArrayOutputWithContext

func (i CertificateTargetArray) ToCertificateTargetArrayOutputWithContext(ctx context.Context) CertificateTargetArrayOutput

type CertificateTargetArrayInput

type CertificateTargetArrayInput interface {
	pulumi.Input

	ToCertificateTargetArrayOutput() CertificateTargetArrayOutput
	ToCertificateTargetArrayOutputWithContext(context.Context) CertificateTargetArrayOutput
}

CertificateTargetArrayInput is an input type that accepts CertificateTargetArray and CertificateTargetArrayOutput values. You can construct a concrete instance of `CertificateTargetArrayInput` via:

CertificateTargetArray{ CertificateTargetArgs{...} }

type CertificateTargetArrayOutput

type CertificateTargetArrayOutput struct{ *pulumi.OutputState }

func (CertificateTargetArrayOutput) ElementType

func (CertificateTargetArrayOutput) Index

func (CertificateTargetArrayOutput) ToCertificateTargetArrayOutput

func (o CertificateTargetArrayOutput) ToCertificateTargetArrayOutput() CertificateTargetArrayOutput

func (CertificateTargetArrayOutput) ToCertificateTargetArrayOutputWithContext

func (o CertificateTargetArrayOutput) ToCertificateTargetArrayOutputWithContext(ctx context.Context) CertificateTargetArrayOutput

type CertificateTargetInput

type CertificateTargetInput interface {
	pulumi.Input

	ToCertificateTargetOutput() CertificateTargetOutput
	ToCertificateTargetOutputWithContext(context.Context) CertificateTargetOutput
}

CertificateTargetInput is an input type that accepts CertificateTargetArgs and CertificateTargetOutput values. You can construct a concrete instance of `CertificateTargetInput` via:

CertificateTargetArgs{...}

type CertificateTargetOutput

type CertificateTargetOutput struct{ *pulumi.OutputState }

func (CertificateTargetOutput) ElementType

func (CertificateTargetOutput) ElementType() reflect.Type

func (CertificateTargetOutput) Projects

The project where the service you want to push a certificate to. The same certificate can be pushed repeatedly to the same WAF or ELB service in the same `project`, but the CDN service can only be pushed once.

func (CertificateTargetOutput) Service

Service to which the certificate is pushed. The options include `CDN`,`WAF` and `Enhance_ELB`.

func (CertificateTargetOutput) ToCertificateTargetOutput

func (o CertificateTargetOutput) ToCertificateTargetOutput() CertificateTargetOutput

func (CertificateTargetOutput) ToCertificateTargetOutputWithContext

func (o CertificateTargetOutput) ToCertificateTargetOutputWithContext(ctx context.Context) CertificateTargetOutput

type GetCertificatesArgs

type GetCertificatesArgs struct {
	// Whether to support deployment.
	DeploySupport *bool `pulumi:"deploySupport"`
	// The enterprise project id of the project.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// Certificate name.
	Name *string `pulumi:"name"`
	// Specifies the region in which to query the data source.
	// If omitted, the provider-level region will be used.
	Region *string `pulumi:"region"`
	// Certificate status.\
	// The options are as follows:
	// - ALL: All certificate status.
	// - PAID: The certificate has been paid and needs to be applied for from the CA.
	// - ISSUED: The certificate has been issued.
	// - CHECKING: The certificate application is being reviewed.
	// - CANCELCHECKING: The certificate application cancellation is being reviewed.
	// - UNPASSED: The certificate application fails.
	// - EXPIRED: The certificate has expired.
	// - REVOKING: The certificate revocation application is being reviewed.
	// - REVOKED: The certificate has been revoked.
	// - UPLOAD: The certificate is being managed.
	// - CHECKING_ORG: The organization verification is to be completed.
	// - ISSUING: The certificate is to be issued.
	// - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getCertificates.

type GetCertificatesCertificate

type GetCertificatesCertificate struct {
	// Certificate authority.\
	// The value can be: **GLOBALSIGN**, **SYMANTEC**, **GEOTRUST**, **CFCA**.
	Brand string `pulumi:"brand"`
	// Whether to support deployment.
	DeploySupport bool `pulumi:"deploySupport"`
	// Certificate description.
	Description string `pulumi:"description"`
	// Domain name associated with the certificate.
	Domain string `pulumi:"domain"`
	// Number of domain names that can be associated with the certificate.
	DomainCount int `pulumi:"domainCount"`
	// Domain name type.\
	// The options are as follows:
	// - SINGLE_DOMAIN: Single domain names
	// - WILDCARD: Wildcard domain names
	// - MULTI_DOMAIN: Multiple domain names
	DomainType string `pulumi:"domainType"`
	// The enterprise project id of the project.
	EnterpriseProjectId string `pulumi:"enterpriseProjectId"`
	// Certificate expiration time.
	ExpireTime string `pulumi:"expireTime"`
	// Certificate ID.
	Id string `pulumi:"id"`
	// Certificate name.
	Name string `pulumi:"name"`
	// Additional domain name associated with the certificate.
	Sans string `pulumi:"sans"`
	// Signature algorithm.
	SignatureAlgorithm string `pulumi:"signatureAlgorithm"`
	// Certificate status.\
	// The options are as follows:
	// - ALL: All certificate status.
	// - PAID: The certificate has been paid and needs to be applied for from the CA.
	// - ISSUED: The certificate has been issued.
	// - CHECKING: The certificate application is being reviewed.
	// - CANCELCHECKING: The certificate application cancellation is being reviewed.
	// - UNPASSED: The certificate application fails.
	// - EXPIRED: The certificate has expired.
	// - REVOKING: The certificate revocation application is being reviewed.
	// - REVOKED: The certificate has been revoked.
	// - UPLOAD: The certificate is being managed.
	// - CHECKING_ORG: The organization verification is to be completed.
	// - ISSUING: The certificate is to be issued.
	// - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.
	Status string `pulumi:"status"`
	// Certificate type.\
	// The value can be: **DV_SSL_CERT**, **DV_SSL_CERT_BASIC**, **EV_SSL_CERT**, **EV_SSL_CERT_PRO**, **OV_SSL_CERT**, **OV_SSL_CERT_PRO**.
	Type string `pulumi:"type"`
	// Certificate validity period, in months.
	ValidityPeriod int `pulumi:"validityPeriod"`
	// Number of wildcard domain names that can be associated with the certificate.
	WildcardCount int `pulumi:"wildcardCount"`
}

type GetCertificatesCertificateArgs

type GetCertificatesCertificateArgs struct {
	// Certificate authority.\
	// The value can be: **GLOBALSIGN**, **SYMANTEC**, **GEOTRUST**, **CFCA**.
	Brand pulumi.StringInput `pulumi:"brand"`
	// Whether to support deployment.
	DeploySupport pulumi.BoolInput `pulumi:"deploySupport"`
	// Certificate description.
	Description pulumi.StringInput `pulumi:"description"`
	// Domain name associated with the certificate.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Number of domain names that can be associated with the certificate.
	DomainCount pulumi.IntInput `pulumi:"domainCount"`
	// Domain name type.\
	// The options are as follows:
	// - SINGLE_DOMAIN: Single domain names
	// - WILDCARD: Wildcard domain names
	// - MULTI_DOMAIN: Multiple domain names
	DomainType pulumi.StringInput `pulumi:"domainType"`
	// The enterprise project id of the project.
	EnterpriseProjectId pulumi.StringInput `pulumi:"enterpriseProjectId"`
	// Certificate expiration time.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// Certificate ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Certificate name.
	Name pulumi.StringInput `pulumi:"name"`
	// Additional domain name associated with the certificate.
	Sans pulumi.StringInput `pulumi:"sans"`
	// Signature algorithm.
	SignatureAlgorithm pulumi.StringInput `pulumi:"signatureAlgorithm"`
	// Certificate status.\
	// The options are as follows:
	// - ALL: All certificate status.
	// - PAID: The certificate has been paid and needs to be applied for from the CA.
	// - ISSUED: The certificate has been issued.
	// - CHECKING: The certificate application is being reviewed.
	// - CANCELCHECKING: The certificate application cancellation is being reviewed.
	// - UNPASSED: The certificate application fails.
	// - EXPIRED: The certificate has expired.
	// - REVOKING: The certificate revocation application is being reviewed.
	// - REVOKED: The certificate has been revoked.
	// - UPLOAD: The certificate is being managed.
	// - CHECKING_ORG: The organization verification is to be completed.
	// - ISSUING: The certificate is to be issued.
	// - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.
	Status pulumi.StringInput `pulumi:"status"`
	// Certificate type.\
	// The value can be: **DV_SSL_CERT**, **DV_SSL_CERT_BASIC**, **EV_SSL_CERT**, **EV_SSL_CERT_PRO**, **OV_SSL_CERT**, **OV_SSL_CERT_PRO**.
	Type pulumi.StringInput `pulumi:"type"`
	// Certificate validity period, in months.
	ValidityPeriod pulumi.IntInput `pulumi:"validityPeriod"`
	// Number of wildcard domain names that can be associated with the certificate.
	WildcardCount pulumi.IntInput `pulumi:"wildcardCount"`
}

func (GetCertificatesCertificateArgs) ElementType

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesCertificateArray

type GetCertificatesCertificateArray []GetCertificatesCertificateInput

func (GetCertificatesCertificateArray) ElementType

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayInput

type GetCertificatesCertificateArrayInput interface {
	pulumi.Input

	ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
	ToGetCertificatesCertificateArrayOutputWithContext(context.Context) GetCertificatesCertificateArrayOutput
}

GetCertificatesCertificateArrayInput is an input type that accepts GetCertificatesCertificateArray and GetCertificatesCertificateArrayOutput values. You can construct a concrete instance of `GetCertificatesCertificateArrayInput` via:

GetCertificatesCertificateArray{ GetCertificatesCertificateArgs{...} }

type GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateArrayOutput) ElementType

func (GetCertificatesCertificateArrayOutput) Index

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateInput

type GetCertificatesCertificateInput interface {
	pulumi.Input

	ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
	ToGetCertificatesCertificateOutputWithContext(context.Context) GetCertificatesCertificateOutput
}

GetCertificatesCertificateInput is an input type that accepts GetCertificatesCertificateArgs and GetCertificatesCertificateOutput values. You can construct a concrete instance of `GetCertificatesCertificateInput` via:

GetCertificatesCertificateArgs{...}

type GetCertificatesCertificateOutput

type GetCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateOutput) Brand

Certificate authority.\ The value can be: **GLOBALSIGN**, **SYMANTEC**, **GEOTRUST**, **CFCA**.

func (GetCertificatesCertificateOutput) DeploySupport

Whether to support deployment.

func (GetCertificatesCertificateOutput) Description

Certificate description.

func (GetCertificatesCertificateOutput) Domain

Domain name associated with the certificate.

func (GetCertificatesCertificateOutput) DomainCount

Number of domain names that can be associated with the certificate.

func (GetCertificatesCertificateOutput) DomainType

Domain name type.\ The options are as follows: - SINGLE_DOMAIN: Single domain names - WILDCARD: Wildcard domain names - MULTI_DOMAIN: Multiple domain names

func (GetCertificatesCertificateOutput) ElementType

func (GetCertificatesCertificateOutput) EnterpriseProjectId

func (o GetCertificatesCertificateOutput) EnterpriseProjectId() pulumi.StringOutput

The enterprise project id of the project.

func (GetCertificatesCertificateOutput) ExpireTime

Certificate expiration time.

func (GetCertificatesCertificateOutput) Id

Certificate ID.

func (GetCertificatesCertificateOutput) Name

Certificate name.

func (GetCertificatesCertificateOutput) Sans

Additional domain name associated with the certificate.

func (GetCertificatesCertificateOutput) SignatureAlgorithm

func (o GetCertificatesCertificateOutput) SignatureAlgorithm() pulumi.StringOutput

Signature algorithm.

func (GetCertificatesCertificateOutput) Status

Certificate status.\ The options are as follows: - ALL: All certificate status. - PAID: The certificate has been paid and needs to be applied for from the CA. - ISSUED: The certificate has been issued. - CHECKING: The certificate application is being reviewed. - CANCELCHECKING: The certificate application cancellation is being reviewed. - UNPASSED: The certificate application fails. - EXPIRED: The certificate has expired. - REVOKING: The certificate revocation application is being reviewed. - REVOKED: The certificate has been revoked. - UPLOAD: The certificate is being managed. - CHECKING_ORG: The organization verification is to be completed. - ISSUING: The certificate is to be issued. - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) Type

Certificate type.\ The value can be: **DV_SSL_CERT**, **DV_SSL_CERT_BASIC**, **EV_SSL_CERT**, **EV_SSL_CERT_PRO**, **OV_SSL_CERT**, **OV_SSL_CERT_PRO**.

func (GetCertificatesCertificateOutput) ValidityPeriod

Certificate validity period, in months.

func (GetCertificatesCertificateOutput) WildcardCount

Number of wildcard domain names that can be associated with the certificate.

type GetCertificatesOutputArgs

type GetCertificatesOutputArgs struct {
	// Whether to support deployment.
	DeploySupport pulumi.BoolPtrInput `pulumi:"deploySupport"`
	// The enterprise project id of the project.
	EnterpriseProjectId pulumi.StringPtrInput `pulumi:"enterpriseProjectId"`
	// Certificate name.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the region in which to query the data source.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Certificate status.\
	// The options are as follows:
	// - ALL: All certificate status.
	// - PAID: The certificate has been paid and needs to be applied for from the CA.
	// - ISSUED: The certificate has been issued.
	// - CHECKING: The certificate application is being reviewed.
	// - CANCELCHECKING: The certificate application cancellation is being reviewed.
	// - UNPASSED: The certificate application fails.
	// - EXPIRED: The certificate has expired.
	// - REVOKING: The certificate revocation application is being reviewed.
	// - REVOKED: The certificate has been revoked.
	// - UPLOAD: The certificate is being managed.
	// - CHECKING_ORG: The organization verification is to be completed.
	// - ISSUING: The certificate is to be issued.
	// - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getCertificates.

func (GetCertificatesOutputArgs) ElementType

func (GetCertificatesOutputArgs) ElementType() reflect.Type

type GetCertificatesResult

type GetCertificatesResult struct {
	// Certificate list. For details, see Data structure of the Certificate field.
	// The Certificate structure is documented below.
	Certificates []GetCertificatesCertificate `pulumi:"certificates"`
	// Whether to support deployment.
	DeploySupport *bool `pulumi:"deploySupport"`
	// The enterprise project id of the project.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Certificate name.
	Name   *string `pulumi:"name"`
	Region string  `pulumi:"region"`
	// Certificate status.\
	// The options are as follows:
	// - ALL: All certificate status.
	// - PAID: The certificate has been paid and needs to be applied for from the CA.
	// - ISSUED: The certificate has been issued.
	// - CHECKING: The certificate application is being reviewed.
	// - CANCELCHECKING: The certificate application cancellation is being reviewed.
	// - UNPASSED: The certificate application fails.
	// - EXPIRED: The certificate has expired.
	// - REVOKING: The certificate revocation application is being reviewed.
	// - REVOKED: The certificate has been revoked.
	// - UPLOAD: The certificate is being managed.
	// - CHECKING_ORG: The organization verification is to be completed.
	// - ISSUING: The certificate is to be issued.
	// - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.
	Status *string `pulumi:"status"`
}

A collection of values returned by getCertificates.

func GetCertificates

func GetCertificates(ctx *pulumi.Context, args *GetCertificatesArgs, opts ...pulumi.InvokeOption) (*GetCertificatesResult, error)

Use this data source to get the list of SCM certificates.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Scm.GetCertificates(ctx, &scm.GetCertificatesArgs{
			Status: pulumi.StringRef("ALL"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetCertificatesResultOutput

type GetCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificates.

func (GetCertificatesResultOutput) Certificates

Certificate list. For details, see Data structure of the Certificate field. The Certificate structure is documented below.

func (GetCertificatesResultOutput) DeploySupport

Whether to support deployment.

func (GetCertificatesResultOutput) ElementType

func (GetCertificatesResultOutput) EnterpriseProjectId

func (o GetCertificatesResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput

The enterprise project id of the project.

func (GetCertificatesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetCertificatesResultOutput) Name

Certificate name.

func (GetCertificatesResultOutput) Region

func (GetCertificatesResultOutput) Status

Certificate status.\ The options are as follows: - ALL: All certificate status. - PAID: The certificate has been paid and needs to be applied for from the CA. - ISSUED: The certificate has been issued. - CHECKING: The certificate application is being reviewed. - CANCELCHECKING: The certificate application cancellation is being reviewed. - UNPASSED: The certificate application fails. - EXPIRED: The certificate has expired. - REVOKING: The certificate revocation application is being reviewed. - REVOKED: The certificate has been revoked. - UPLOAD: The certificate is being managed. - CHECKING_ORG: The organization verification is to be completed. - ISSUING: The certificate is to be issued. - SUPPLEMENTCHECKING: Additional domain names to be added for a multi-domain certificate are being reviewed.

func (GetCertificatesResultOutput) ToGetCertificatesResultOutput

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutput() GetCertificatesResultOutput

func (GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext(ctx context.Context) GetCertificatesResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL