Documentation ¶
Index ¶
- type GetTokenArgs
- type GetTokenOutputArgs
- type GetTokenResult
- type GetTokenResultOutput
- func (GetTokenResultOutput) ElementType() reflect.Type
- func (o GetTokenResultOutput) Id() pulumi.StringOutput
- func (o GetTokenResultOutput) Identifier() pulumi.StringOutput
- func (o GetTokenResultOutput) ToGetTokenResultOutput() GetTokenResultOutput
- func (o GetTokenResultOutput) ToGetTokenResultOutputWithContext(ctx context.Context) GetTokenResultOutput
- func (o GetTokenResultOutput) Token() pulumi.StringOutput
- func (o GetTokenResultOutput) Type() pulumi.StringOutput
- func (o GetTokenResultOutput) VerificationMethod() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTokenArgs ¶
type GetTokenArgs struct { // The site identifier. If the type is set to SITE, the identifier is a URL. If the type is // set to INET_DOMAIN, the identifier is a domain name. Identifier string `pulumi:"identifier"` // The type of resource to be verified, either a domain or a web site. // Possible values are: `INET_DOMAIN`, `SITE`. Type string `pulumi:"type"` // The verification method for the Site Verification system to use to verify // this site or domain. // Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`. // // *** VerificationMethod string `pulumi:"verificationMethod"` }
A collection of arguments for invoking getToken.
type GetTokenOutputArgs ¶
type GetTokenOutputArgs struct { // The site identifier. If the type is set to SITE, the identifier is a URL. If the type is // set to INET_DOMAIN, the identifier is a domain name. Identifier pulumi.StringInput `pulumi:"identifier"` // The type of resource to be verified, either a domain or a web site. // Possible values are: `INET_DOMAIN`, `SITE`. Type pulumi.StringInput `pulumi:"type"` // The verification method for the Site Verification system to use to verify // this site or domain. // Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`. // // *** VerificationMethod pulumi.StringInput `pulumi:"verificationMethod"` }
A collection of arguments for invoking getToken.
func (GetTokenOutputArgs) ElementType ¶
func (GetTokenOutputArgs) ElementType() reflect.Type
type GetTokenResult ¶
type GetTokenResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Identifier string `pulumi:"identifier"` // The generated token for use in subsequent verification steps. Token string `pulumi:"token"` Type string `pulumi:"type"` VerificationMethod string `pulumi:"verificationMethod"` }
A collection of values returned by getToken.
func GetToken ¶
func GetToken(ctx *pulumi.Context, args *GetTokenArgs, opts ...pulumi.InvokeOption) (*GetTokenResult, error)
## subcategory: "Site Verification"
description: |-
A verification token is used to demonstrate ownership of a website or domain.
---
siteverification.getToken ¶
A verification token is used to demonstrate ownership of a website or domain.
To get more information about Token, see:
* [API documentation](https://developers.google.com/site-verification/v1) * How-to Guides
- [Getting Started](https://developers.google.com/site-verification/v1/getting_started)
## Example Usage
### Site Verification Via Site META Tag
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/siteverification" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := siteverification.GetToken(ctx, &siteverification.GetTokenArgs{ Type: "SITE", Identifier: "https://www.example.com", VerificationMethod: "META", }, nil) if err != nil { return err } return nil }) }
```
### Site Verification Via DNS TXT Record
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/siteverification" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := siteverification.GetToken(ctx, &siteverification.GetTokenArgs{ Type: "INET_DOMAIN", Identifier: "www.example.com", VerificationMethod: "DNS_TXT", }, nil) if err != nil { return err } return nil }) }
```
type GetTokenResultOutput ¶
type GetTokenResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getToken.
func GetTokenOutput ¶
func GetTokenOutput(ctx *pulumi.Context, args GetTokenOutputArgs, opts ...pulumi.InvokeOption) GetTokenResultOutput
func (GetTokenResultOutput) ElementType ¶
func (GetTokenResultOutput) ElementType() reflect.Type
func (GetTokenResultOutput) Id ¶
func (o GetTokenResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetTokenResultOutput) Identifier ¶
func (o GetTokenResultOutput) Identifier() pulumi.StringOutput
func (GetTokenResultOutput) ToGetTokenResultOutput ¶
func (o GetTokenResultOutput) ToGetTokenResultOutput() GetTokenResultOutput
func (GetTokenResultOutput) ToGetTokenResultOutputWithContext ¶
func (o GetTokenResultOutput) ToGetTokenResultOutputWithContext(ctx context.Context) GetTokenResultOutput
func (GetTokenResultOutput) Token ¶
func (o GetTokenResultOutput) Token() pulumi.StringOutput
The generated token for use in subsequent verification steps.
func (GetTokenResultOutput) Type ¶
func (o GetTokenResultOutput) Type() pulumi.StringOutput
func (GetTokenResultOutput) VerificationMethod ¶
func (o GetTokenResultOutput) VerificationMethod() pulumi.StringOutput