akamai.getEdgeWorker

Use the akamai.EdgeWorker data source to get an EdgeWorker for a given EdgeWorker ID.

Attributes reference

This data source returns these attributes:

  • name - The EdgeWorker name.
  • group_id - Defines the group association for the EdgeWorker.
  • resource_tier_id - The unique identifier of a resource tier.
  • local_bundle_hash - The local bundle hash for the EdgeWorker. It’s used to identify content changes for the bundle.
  • version - The bundle version.
  • warnings - The list of warnings returned by EdgeWorker validation.

Example Usage

This example returns the resource tier fields for the selected EdgeWorker ID

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

return await Deployment.RunAsync(() => 
{
    var test = Akamai.GetEdgeWorker.Invoke(new()
    {
        EdgeworkerId = 3,
        LocalBundle = "test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz",
    });

});
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.LookupEdgeWorker(ctx, &akamai.LookupEdgeWorkerArgs{
			EdgeworkerId: 3,
			LocalBundle:  pulumi.StringRef("test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz"),
		}, 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.GetEdgeWorkerArgs;
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.getEdgeWorker(GetEdgeWorkerArgs.builder()
            .edgeworkerId(3)
            .localBundle("test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

test = akamai.get_edge_worker(edgeworker_id=3,
    local_bundle="test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const test = akamai.getEdgeWorker({
    edgeworkerId: 3,
    localBundle: "test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz",
});
variables:
  test:
    fn::invoke:
      Function: akamai:getEdgeWorker
      Arguments:
        edgeworkerId: 3
        localBundle: test_tmp/TestDataEdgeWorkersEdgeWorker/bundles/edgeworker_one_warning.tgz

Using getEdgeWorker

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 getEdgeWorker(args: GetEdgeWorkerArgs, opts?: InvokeOptions): Promise<GetEdgeWorkerResult>
function getEdgeWorkerOutput(args: GetEdgeWorkerOutputArgs, opts?: InvokeOptions): Output<GetEdgeWorkerResult>
def get_edge_worker(edgeworker_id: Optional[int] = None,
                    local_bundle: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetEdgeWorkerResult
def get_edge_worker_output(edgeworker_id: Optional[pulumi.Input[int]] = None,
                    local_bundle: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetEdgeWorkerResult]
func LookupEdgeWorker(ctx *Context, args *LookupEdgeWorkerArgs, opts ...InvokeOption) (*LookupEdgeWorkerResult, error)
func LookupEdgeWorkerOutput(ctx *Context, args *LookupEdgeWorkerOutputArgs, opts ...InvokeOption) LookupEdgeWorkerResultOutput

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

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

The following arguments are supported:

EdgeworkerId int

The unique identifier of the EdgeWorker.

LocalBundle string

The path where the EdgeWorkers .tgz code bundle will be stored.

EdgeworkerId int

The unique identifier of the EdgeWorker.

LocalBundle string

The path where the EdgeWorkers .tgz code bundle will be stored.

edgeworkerId Integer

The unique identifier of the EdgeWorker.

localBundle String

The path where the EdgeWorkers .tgz code bundle will be stored.

edgeworkerId number

The unique identifier of the EdgeWorker.

localBundle string

The path where the EdgeWorkers .tgz code bundle will be stored.

edgeworker_id int

The unique identifier of the EdgeWorker.

local_bundle str

The path where the EdgeWorkers .tgz code bundle will be stored.

edgeworkerId Number

The unique identifier of the EdgeWorker.

localBundle String

The path where the EdgeWorkers .tgz code bundle will be stored.

getEdgeWorker Result

The following output properties are available:

EdgeworkerId int
GroupId string
Id string

The provider-assigned unique ID for this managed resource.

LocalBundleHash string
Name string
ResourceTierId int
Version string
Warnings List<string>
LocalBundle string
EdgeworkerId int
GroupId string
Id string

The provider-assigned unique ID for this managed resource.

LocalBundleHash string
Name string
ResourceTierId int
Version string
Warnings []string
LocalBundle string
edgeworkerId Integer
groupId String
id String

The provider-assigned unique ID for this managed resource.

localBundleHash String
name String
resourceTierId Integer
version String
warnings List<String>
localBundle String
edgeworkerId number
groupId string
id string

The provider-assigned unique ID for this managed resource.

localBundleHash string
name string
resourceTierId number
version string
warnings string[]
localBundle string
edgeworker_id int
group_id str
id str

The provider-assigned unique ID for this managed resource.

local_bundle_hash str
name str
resource_tier_id int
version str
warnings Sequence[str]
local_bundle str
edgeworkerId Number
groupId String
id String

The provider-assigned unique ID for this managed resource.

localBundleHash String
name String
resourceTierId Number
version String
warnings List<String>
localBundle String

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.