akamai.getEdgeWorkerActivation

Use the akamai.getEdgeWorkerActivation data source to fetch the latest activation for a given EdgeWorker ID.

Attributes reference

This data source returns these attributes:

  • activation_id - The unique identifier of the activation.
  • version - The EdgeWorker version of the latest activation.

Example Usage

This example returns the latest activation on the staging network

using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var test = Akamai.GetEdgeWorkerActivation.Invoke(new()
    {
        EdgeworkerId = 1,
        Network = "STAGING",
    });

});
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.GetEdgeWorkerActivation(ctx, &akamai.GetEdgeWorkerActivationArgs{
			EdgeworkerId: 1,
			Network:      "STAGING",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetEdgeWorkerActivationArgs;
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 test = AkamaiFunctions.getEdgeWorkerActivation(GetEdgeWorkerActivationArgs.builder()
            .edgeworkerId(1)
            .network("STAGING")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

test = akamai.get_edge_worker_activation(edgeworker_id=1,
    network="STAGING")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const test = akamai.getEdgeWorkerActivation({
    edgeworkerId: 1,
    network: "STAGING",
});
variables:
  test:
    fn::invoke:
      Function: akamai:getEdgeWorkerActivation
      Arguments:
        edgeworkerId: 1
        network: STAGING

Using getEdgeWorkerActivation

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 getEdgeWorkerActivation(args: GetEdgeWorkerActivationArgs, opts?: InvokeOptions): Promise<GetEdgeWorkerActivationResult>
function getEdgeWorkerActivationOutput(args: GetEdgeWorkerActivationOutputArgs, opts?: InvokeOptions): Output<GetEdgeWorkerActivationResult>
def get_edge_worker_activation(edgeworker_id: Optional[int] = None,
                               network: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEdgeWorkerActivationResult
def get_edge_worker_activation_output(edgeworker_id: Optional[pulumi.Input[int]] = None,
                               network: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEdgeWorkerActivationResult]
func GetEdgeWorkerActivation(ctx *Context, args *GetEdgeWorkerActivationArgs, opts ...InvokeOption) (*GetEdgeWorkerActivationResult, error)
func GetEdgeWorkerActivationOutput(ctx *Context, args *GetEdgeWorkerActivationOutputArgs, opts ...InvokeOption) GetEdgeWorkerActivationResultOutput

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

public static class GetEdgeWorkerActivation 
{
    public static Task<GetEdgeWorkerActivationResult> InvokeAsync(GetEdgeWorkerActivationArgs args, InvokeOptions? opts = null)
    public static Output<GetEdgeWorkerActivationResult> Invoke(GetEdgeWorkerActivationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEdgeWorkerActivationResult> getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation
  arguments:
    # arguments dictionary

The following arguments are supported:

EdgeworkerId int

The unique identifier of the EdgeWorker.

Network string

The network from where the activation information will be fetched.

EdgeworkerId int

The unique identifier of the EdgeWorker.

Network string

The network from where the activation information will be fetched.

edgeworkerId Integer

The unique identifier of the EdgeWorker.

network String

The network from where the activation information will be fetched.

edgeworkerId number

The unique identifier of the EdgeWorker.

network string

The network from where the activation information will be fetched.

edgeworker_id int

The unique identifier of the EdgeWorker.

network str

The network from where the activation information will be fetched.

edgeworkerId Number

The unique identifier of the EdgeWorker.

network String

The network from where the activation information will be fetched.

getEdgeWorkerActivation Result

The following output properties are available:

ActivationId int
EdgeworkerId int
Id string

The provider-assigned unique ID for this managed resource.

Network string
Version string
ActivationId int
EdgeworkerId int
Id string

The provider-assigned unique ID for this managed resource.

Network string
Version string
activationId Integer
edgeworkerId Integer
id String

The provider-assigned unique ID for this managed resource.

network String
version String
activationId number
edgeworkerId number
id string

The provider-assigned unique ID for this managed resource.

network string
version string
activation_id int
edgeworker_id int
id str

The provider-assigned unique ID for this managed resource.

network str
version str
activationId Number
edgeworkerId Number
id String

The provider-assigned unique ID for this managed resource.

network String
version String

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.