1. Packages
  2. Vercel
  3. API Docs
  4. getEndpointVerification
Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse

vercel.getEndpointVerification

Explore with Pulumi AI

Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse

Provides a verification code that can be used to prove ownership over an API.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumi/vercel";

const example = vercel.getEndpointVerification({});
Copy
import pulumi
import pulumi_vercel as vercel

example = vercel.get_endpoint_verification()
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vercel.GetEndpointVerification(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumi.Vercel;

return await Deployment.RunAsync(() => 
{
    var example = Vercel.GetEndpointVerification.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vercel.VercelFunctions;
import com.pulumi.vercel.inputs.GetEndpointVerificationArgs;
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) {
        final var example = VercelFunctions.getEndpointVerification();

    }
}
Copy
variables:
  example:
    fn::invoke:
      Function: vercel:getEndpointVerification
      Arguments: {}
Copy

Using getEndpointVerification

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEndpointVerification(args: GetEndpointVerificationArgs, opts?: InvokeOptions): Promise<GetEndpointVerificationResult>
function getEndpointVerificationOutput(args: GetEndpointVerificationOutputArgs, opts?: InvokeOptions): Output<GetEndpointVerificationResult>
Copy
def get_endpoint_verification(team_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEndpointVerificationResult
def get_endpoint_verification_output(team_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEndpointVerificationResult]
Copy
func GetEndpointVerification(ctx *Context, args *GetEndpointVerificationArgs, opts ...InvokeOption) (*GetEndpointVerificationResult, error)
func GetEndpointVerificationOutput(ctx *Context, args *GetEndpointVerificationOutputArgs, opts ...InvokeOption) GetEndpointVerificationResultOutput
Copy

> Note: This function is named GetEndpointVerification in the Go SDK.

public static class GetEndpointVerification 
{
    public static Task<GetEndpointVerificationResult> InvokeAsync(GetEndpointVerificationArgs args, InvokeOptions? opts = null)
    public static Output<GetEndpointVerificationResult> Invoke(GetEndpointVerificationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEndpointVerificationResult> getEndpointVerification(GetEndpointVerificationArgs args, InvokeOptions options)
public static Output<GetEndpointVerificationResult> getEndpointVerification(GetEndpointVerificationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vercel:index/getEndpointVerification:getEndpointVerification
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TeamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
TeamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
teamId String
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
teamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
team_id str
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
teamId String
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.

getEndpointVerification Result

The following output properties are available:

Id string
The ID of this resource.
TeamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
VerificationCode string
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.
Id string
The ID of this resource.
TeamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
VerificationCode string
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.
id String
The ID of this resource.
teamId String
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
verificationCode String
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.
id string
The ID of this resource.
teamId string
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
verificationCode string
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.
id str
The ID of this resource.
team_id str
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
verification_code str
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.
id String
The ID of this resource.
teamId String
The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
verificationCode String
A verification code that should be set in the x-vercel-verify response header for your API. This is used to verify that the endpoint belongs to you.

Package Details

Repository
vercel pulumiverse/pulumi-vercel
License
Apache-2.0
Notes
This Pulumi package is based on the vercel Terraform Provider.
Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse