Akamai

Pulumi Official
Package maintained by Pulumi
v2.9.0 published on Wednesday, Apr 6, 2022 by Pulumi

getDatastreamActivationHistory

Use the akamai.getDatastreamActivationHistory data source to list detailed information about the activation status changes for all versions of a stream.

Attributes reference

This data source returns these attributes:

  • activations - Detailed information about an activation status change for a version of a stream, including:
    • created_by - The user who activated or deactivated the stream.
    • created_date - The date and time of an activation status change.
    • stream_id - A stream’s unique identifier.
    • stream_version_id - A stream version’s unique identifier.
    • is_active - Whether the version of the stream is active.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var ds = Output.Create(Akamai.GetDatastreamActivationHistory.InvokeAsync(new Akamai.GetDatastreamActivationHistoryArgs
        {
            StreamId = 12345,
        }));
        this.DsHistoryStreamId = ds.Apply(ds => ds.StreamId);
        this.DsHistoryActivations = ds.Apply(ds => ds.Activations);
    }

    [Output("dsHistoryStreamId")]
    public Output<string> DsHistoryStreamId { get; set; }
    [Output("dsHistoryActivations")]
    public Output<string> DsHistoryActivations { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ds, err := akamai.GetDatastreamActivationHistory(ctx, &GetDatastreamActivationHistoryArgs{
			StreamId: 12345,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dsHistoryStreamId", ds.StreamId)
		ctx.Export("dsHistoryActivations", ds.Activations)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

ds = akamai.get_datastream_activation_history(stream_id=12345)
pulumi.export("dsHistoryStreamId", ds.stream_id)
pulumi.export("dsHistoryActivations", ds.activations)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const ds = akamai.getDatastreamActivationHistory({
    streamId: 12345,
});
export const dsHistoryStreamId = ds.then(ds => ds.streamId);
export const dsHistoryActivations = ds.then(ds => ds.activations);

Coming soon!

Using getDatastreamActivationHistory

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 getDatastreamActivationHistory(args: GetDatastreamActivationHistoryArgs, opts?: InvokeOptions): Promise<GetDatastreamActivationHistoryResult>
function getDatastreamActivationHistoryOutput(args: GetDatastreamActivationHistoryOutputArgs, opts?: InvokeOptions): Output<GetDatastreamActivationHistoryResult>
def get_datastream_activation_history(stream_id: Optional[int] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetDatastreamActivationHistoryResult
def get_datastream_activation_history_output(stream_id: Optional[pulumi.Input[int]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetDatastreamActivationHistoryResult]
func GetDatastreamActivationHistory(ctx *Context, args *GetDatastreamActivationHistoryArgs, opts ...InvokeOption) (*GetDatastreamActivationHistoryResult, error)
func GetDatastreamActivationHistoryOutput(ctx *Context, args *GetDatastreamActivationHistoryOutputArgs, opts ...InvokeOption) GetDatastreamActivationHistoryResultOutput

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

public static class GetDatastreamActivationHistory 
{
    public static Task<GetDatastreamActivationHistoryResult> InvokeAsync(GetDatastreamActivationHistoryArgs args, InvokeOptions? opts = null)
    public static Output<GetDatastreamActivationHistoryResult> Invoke(GetDatastreamActivationHistoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatastreamActivationHistoryResult> getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory
  Arguments:
    # Arguments dictionary

The following arguments are supported:

StreamId int

- (Required) A stream's unique identifier.

StreamId int

- (Required) A stream's unique identifier.

streamId Integer

- (Required) A stream's unique identifier.

streamId number

- (Required) A stream's unique identifier.

stream_id int

- (Required) A stream's unique identifier.

streamId Number

- (Required) A stream's unique identifier.

getDatastreamActivationHistory Result

The following output properties are available:

Activations List<GetDatastreamActivationHistoryActivation>
Id string

The provider-assigned unique ID for this managed resource.

StreamId int
Activations []GetDatastreamActivationHistoryActivation
Id string

The provider-assigned unique ID for this managed resource.

StreamId int
activations List<GetDatastreamActivationHistoryActivation>
id String

The provider-assigned unique ID for this managed resource.

streamId Integer
activations GetDatastreamActivationHistoryActivation[]
id string

The provider-assigned unique ID for this managed resource.

streamId number
activations Sequence[GetDatastreamActivationHistoryActivation]
id str

The provider-assigned unique ID for this managed resource.

stream_id int
activations List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

streamId Number

Supporting Types

GetDatastreamActivationHistoryActivation

CreatedBy string
CreatedDate string
IsActive bool
StreamId int

- (Required) A stream's unique identifier.

StreamVersionId int
CreatedBy string
CreatedDate string
IsActive bool
StreamId int

- (Required) A stream's unique identifier.

StreamVersionId int
createdBy String
createdDate String
isActive Boolean
streamId Integer

- (Required) A stream's unique identifier.

streamVersionId Integer
createdBy string
createdDate string
isActive boolean
streamId number

- (Required) A stream's unique identifier.

streamVersionId number
created_by str
created_date str
is_active bool
stream_id int

- (Required) A stream's unique identifier.

stream_version_id int
createdBy String
createdDate String
isActive Boolean
streamId Number

- (Required) A stream's unique identifier.

streamVersionId Number

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.