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:
- Edgeworker
Id int The unique identifier of the EdgeWorker.
- Local
Bundle string The path where the EdgeWorkers
.tgz
code bundle will be stored.
- Edgeworker
Id int The unique identifier of the EdgeWorker.
- Local
Bundle string The path where the EdgeWorkers
.tgz
code bundle will be stored.
- edgeworker
Id Integer The unique identifier of the EdgeWorker.
- local
Bundle String The path where the EdgeWorkers
.tgz
code bundle will be stored.
- edgeworker
Id number The unique identifier of the EdgeWorker.
- local
Bundle 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.
- edgeworker
Id Number The unique identifier of the EdgeWorker.
- local
Bundle String The path where the EdgeWorkers
.tgz
code bundle will be stored.
getEdgeWorker Result
The following output properties are available:
- Edgeworker
Id int - Group
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Local
Bundle stringHash - Name string
- Resource
Tier intId - Version string
- Warnings List<string>
- Local
Bundle string
- Edgeworker
Id int - Group
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Local
Bundle stringHash - Name string
- Resource
Tier intId - Version string
- Warnings []string
- Local
Bundle string
- edgeworker
Id Integer - group
Id String - id String
The provider-assigned unique ID for this managed resource.
- local
Bundle StringHash - name String
- resource
Tier IntegerId - version String
- warnings List<String>
- local
Bundle String
- edgeworker
Id number - group
Id string - id string
The provider-assigned unique ID for this managed resource.
- local
Bundle stringHash - name string
- resource
Tier numberId - version string
- warnings string[]
- local
Bundle string
- edgeworker_
id int - group_
id str - id str
The provider-assigned unique ID for this managed resource.
- local_
bundle_ strhash - name str
- resource_
tier_ intid - version str
- warnings Sequence[str]
- local_
bundle str
- edgeworker
Id Number - group
Id String - id String
The provider-assigned unique ID for this managed resource.
- local
Bundle StringHash - name String
- resource
Tier NumberId - version String
- warnings List<String>
- local
Bundle String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.