siteverification

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

## 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 (GetTokenResultOutput) ElementType

func (GetTokenResultOutput) ElementType() reflect.Type

func (GetTokenResultOutput) Id

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

The generated token for use in subsequent verification steps.

func (GetTokenResultOutput) Type

func (GetTokenResultOutput) VerificationMethod

func (o GetTokenResultOutput) VerificationMethod() pulumi.StringOutput

Jump to

Keyboard shortcuts

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