1. Registry
  2. Packages
  3. Fastly Provider
  4. API Docs
  5. getAiRuntimeControlVirtualKeys
Viewing docs for Fastly v12.7.0
published on Friday, Sep 18, 2026 by Pulumi
fastly logo
Viewing docs for Fastly v12.7.0
published on Friday, Sep 18, 2026 by Pulumi

    Use this data source to get the list of virtual keys configured for your customer account in Fastly AI Runtime Control, optionally filtered by model, provider, or a substring match on the key name.

    Note: Access tokens are never returned by this endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const anthropic = fastly.getAiRuntimeControlVirtualKeys({
        providerName: "Anthropic",
    });
    export const fastlyAiRuntimeControlVirtualKeysAll = anthropic.then(anthropic => anthropic.virtualKeys);
    // Substring match on the virtual key name.
    const chatbot = fastly.getAiRuntimeControlVirtualKeys({
        search: "chatbot",
    });
    export const fastlyAiRuntimeControlChatbotKeyIds = chatbot.then(chatbot => .map(key => (key.id)));
    
    import pulumi
    import pulumi_fastly as fastly
    
    anthropic = fastly.get_ai_runtime_control_virtual_keys(provider_name="Anthropic")
    pulumi.export("fastlyAiRuntimeControlVirtualKeysAll", anthropic.virtual_keys)
    # Substring match on the virtual key name.
    chatbot = fastly.get_ai_runtime_control_virtual_keys(search="chatbot")
    pulumi.export("fastlyAiRuntimeControlChatbotKeyIds", [key.id for key in chatbot.virtual_keys])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var anthropic = Fastly.GetAiRuntimeControlVirtualKeys.Invoke(new()
        {
            ProviderName = "Anthropic",
        });
    
        // Substring match on the virtual key name.
        var chatbot = Fastly.GetAiRuntimeControlVirtualKeys.Invoke(new()
        {
            Search = "chatbot",
        });
    
        return new Dictionary<string, object?>
        {
            ["fastlyAiRuntimeControlVirtualKeysAll"] = anthropic.Apply(getAiRuntimeControlVirtualKeysResult => getAiRuntimeControlVirtualKeysResult.VirtualKeys),
            ["fastlyAiRuntimeControlChatbotKeyIds"] = .Select(key => 
            {
                return key.Id;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    pulumi {
      required_providers {
        fastly = {
          source = "pulumi/fastly"
        }
      }
    }
    
    data "fastly_getairuntimecontrolvirtualkeys" "anthropic" {
      provider_name = "Anthropic"
    }
    data "fastly_getairuntimecontrolvirtualkeys" "chatbot" {
      search = "chatbot"
    }
    
    output "fastlyAiRuntimeControlVirtualKeysAll" {
      value = data.fastly_getairuntimecontrolvirtualkeys.anthropic.virtual_keys
    }
    # Substring match on the virtual key name.
    output "fastlyAiRuntimeControlChatbotKeyIds" {
      value = [for key in data.fastly_getairuntimecontrolvirtualkeys.chatbot.virtual_keys : key.id]
    }
    

    Using getAiRuntimeControlVirtualKeys

    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 getAiRuntimeControlVirtualKeys(args: GetAiRuntimeControlVirtualKeysArgs, opts?: InvokeOptions): Promise<GetAiRuntimeControlVirtualKeysResult>
    function getAiRuntimeControlVirtualKeysOutput(args: GetAiRuntimeControlVirtualKeysOutputArgs, opts?: InvokeOutputOptions): Output<GetAiRuntimeControlVirtualKeysResult>
    def get_ai_runtime_control_virtual_keys(include_deleted: Optional[bool] = None,
                                            model: Optional[str] = None,
                                            provider_name: Optional[str] = None,
                                            search: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetAiRuntimeControlVirtualKeysResult
    def get_ai_runtime_control_virtual_keys_output(include_deleted: pulumi.Input[Optional[bool]] = None,
                                            model: pulumi.Input[Optional[str]] = None,
                                            provider_name: pulumi.Input[Optional[str]] = None,
                                            search: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiRuntimeControlVirtualKeysResult]
    func GetAiRuntimeControlVirtualKeys(ctx *Context, args *GetAiRuntimeControlVirtualKeysArgs, opts ...InvokeOption) (*GetAiRuntimeControlVirtualKeysResult, error)
    func GetAiRuntimeControlVirtualKeysOutput(ctx *Context, args *GetAiRuntimeControlVirtualKeysOutputArgs, opts ...InvokeOption) GetAiRuntimeControlVirtualKeysResultOutput

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

    public static class GetAiRuntimeControlVirtualKeys 
    {
        public static Task<GetAiRuntimeControlVirtualKeysResult> InvokeAsync(GetAiRuntimeControlVirtualKeysArgs args, InvokeOptions? opts = null)
        public static Output<GetAiRuntimeControlVirtualKeysResult> Invoke(GetAiRuntimeControlVirtualKeysInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAiRuntimeControlVirtualKeysResult> Invoke(GetAiRuntimeControlVirtualKeysInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAiRuntimeControlVirtualKeysResult> getAiRuntimeControlVirtualKeys(GetAiRuntimeControlVirtualKeysArgs args, InvokeOptions options)
    public static Output<GetAiRuntimeControlVirtualKeysResult> getAiRuntimeControlVirtualKeys(GetAiRuntimeControlVirtualKeysArgs args, InvokeOptions options)
    public static Output<GetAiRuntimeControlVirtualKeysResult> getAiRuntimeControlVirtualKeys(GetAiRuntimeControlVirtualKeysArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: fastly:index/getAiRuntimeControlVirtualKeys:getAiRuntimeControlVirtualKeys
      arguments:
        # arguments dictionary
    data "fastly_get_ai_runtime_control_virtual_keys" "name" {
        # arguments
    }

    The following arguments are supported:

    IncludeDeleted bool
    Include deleted virtual keys in the results. Default false.
    Model string
    Filter the results by AI model identifier.
    ProviderName string
    Filter the results by AI model provider name.
    Search string
    Filter the results by a substring match on the virtual key name.
    IncludeDeleted bool
    Include deleted virtual keys in the results. Default false.
    Model string
    Filter the results by AI model identifier.
    ProviderName string
    Filter the results by AI model provider name.
    Search string
    Filter the results by a substring match on the virtual key name.
    include_deleted bool
    Include deleted virtual keys in the results. Default false.
    model string
    Filter the results by AI model identifier.
    provider_name string
    Filter the results by AI model provider name.
    search string
    Filter the results by a substring match on the virtual key name.
    includeDeleted Boolean
    Include deleted virtual keys in the results. Default false.
    model String
    Filter the results by AI model identifier.
    providerName String
    Filter the results by AI model provider name.
    search String
    Filter the results by a substring match on the virtual key name.
    includeDeleted boolean
    Include deleted virtual keys in the results. Default false.
    model string
    Filter the results by AI model identifier.
    providerName string
    Filter the results by AI model provider name.
    search string
    Filter the results by a substring match on the virtual key name.
    include_deleted bool
    Include deleted virtual keys in the results. Default false.
    model str
    Filter the results by AI model identifier.
    provider_name str
    Filter the results by AI model provider name.
    search str
    Filter the results by a substring match on the virtual key name.
    includeDeleted Boolean
    Include deleted virtual keys in the results. Default false.
    model String
    Filter the results by AI model identifier.
    providerName String
    Filter the results by AI model provider name.
    search String
    Filter the results by a substring match on the virtual key name.

    getAiRuntimeControlVirtualKeys Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Total int
    The total number of virtual keys returned.
    VirtualKeys List<GetAiRuntimeControlVirtualKeysVirtualKey>
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    IncludeDeleted bool
    Include deleted virtual keys in the results. Default false.
    Model string
    Filter the results by AI model identifier.
    ProviderName string
    Filter the results by AI model provider name.
    Search string
    Filter the results by a substring match on the virtual key name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Total int
    The total number of virtual keys returned.
    VirtualKeys []GetAiRuntimeControlVirtualKeysVirtualKey
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    IncludeDeleted bool
    Include deleted virtual keys in the results. Default false.
    Model string
    Filter the results by AI model identifier.
    ProviderName string
    Filter the results by AI model provider name.
    Search string
    Filter the results by a substring match on the virtual key name.
    id string
    The provider-assigned unique ID for this managed resource.
    total number
    The total number of virtual keys returned.
    virtual_keys list(object)
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    include_deleted bool
    Include deleted virtual keys in the results. Default false.
    model string
    Filter the results by AI model identifier.
    provider_name string
    Filter the results by AI model provider name.
    search string
    Filter the results by a substring match on the virtual key name.
    id String
    The provider-assigned unique ID for this managed resource.
    total Integer
    The total number of virtual keys returned.
    virtualKeys List<GetAiRuntimeControlVirtualKeysVirtualKey>
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    includeDeleted Boolean
    Include deleted virtual keys in the results. Default false.
    model String
    Filter the results by AI model identifier.
    providerName String
    Filter the results by AI model provider name.
    search String
    Filter the results by a substring match on the virtual key name.
    id string
    The provider-assigned unique ID for this managed resource.
    total number
    The total number of virtual keys returned.
    virtualKeys GetAiRuntimeControlVirtualKeysVirtualKey[]
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    includeDeleted boolean
    Include deleted virtual keys in the results. Default false.
    model string
    Filter the results by AI model identifier.
    providerName string
    Filter the results by AI model provider name.
    search string
    Filter the results by a substring match on the virtual key name.
    id str
    The provider-assigned unique ID for this managed resource.
    total int
    The total number of virtual keys returned.
    virtual_keys Sequence[GetAiRuntimeControlVirtualKeysVirtualKey]
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    include_deleted bool
    Include deleted virtual keys in the results. Default false.
    model str
    Filter the results by AI model identifier.
    provider_name str
    Filter the results by AI model provider name.
    search str
    Filter the results by a substring match on the virtual key name.
    id String
    The provider-assigned unique ID for this managed resource.
    total Number
    The total number of virtual keys returned.
    virtualKeys List<Property Map>
    The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
    includeDeleted Boolean
    Include deleted virtual keys in the results. Default false.
    model String
    Filter the results by AI model identifier.
    providerName String
    Filter the results by AI model provider name.
    search String
    Filter the results by a substring match on the virtual key name.

    Supporting Types

    GetAiRuntimeControlVirtualKeysVirtualKey

    CreatedAt string
    Timestamp (UTC) of when the virtual key was created.
    CreatedBy string
    The display name of the user who created the virtual key.
    CustomerId string
    The ID of the customer that owns the virtual key.
    DeletedAt string
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    ExpiresAt string
    The expiration timestamp of the virtual key, if any.
    Id string
    The ID of the virtual key.
    LastUsedAt string
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    Model string
    The AI model identifier.
    Name string
    The human-readable name of the virtual key.
    Provider string
    The AI model provider name.
    Type string
    The type of the virtual key.
    UpdatedAt string
    Timestamp (UTC) of when the virtual key was last updated.
    UserId string
    The ID of the user who created the virtual key.
    UserName string
    The display name of the user who created the virtual key.
    CreatedAt string
    Timestamp (UTC) of when the virtual key was created.
    CreatedBy string
    The display name of the user who created the virtual key.
    CustomerId string
    The ID of the customer that owns the virtual key.
    DeletedAt string
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    ExpiresAt string
    The expiration timestamp of the virtual key, if any.
    Id string
    The ID of the virtual key.
    LastUsedAt string
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    Model string
    The AI model identifier.
    Name string
    The human-readable name of the virtual key.
    Provider string
    The AI model provider name.
    Type string
    The type of the virtual key.
    UpdatedAt string
    Timestamp (UTC) of when the virtual key was last updated.
    UserId string
    The ID of the user who created the virtual key.
    UserName string
    The display name of the user who created the virtual key.
    created_at string
    Timestamp (UTC) of when the virtual key was created.
    created_by string
    The display name of the user who created the virtual key.
    customer_id string
    The ID of the customer that owns the virtual key.
    deleted_at string
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    expires_at string
    The expiration timestamp of the virtual key, if any.
    id string
    The ID of the virtual key.
    last_used_at string
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    model string
    The AI model identifier.
    name string
    The human-readable name of the virtual key.
    provider string
    The AI model provider name.
    type string
    The type of the virtual key.
    updated_at string
    Timestamp (UTC) of when the virtual key was last updated.
    user_id string
    The ID of the user who created the virtual key.
    user_name string
    The display name of the user who created the virtual key.
    createdAt String
    Timestamp (UTC) of when the virtual key was created.
    createdBy String
    The display name of the user who created the virtual key.
    customerId String
    The ID of the customer that owns the virtual key.
    deletedAt String
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    expiresAt String
    The expiration timestamp of the virtual key, if any.
    id String
    The ID of the virtual key.
    lastUsedAt String
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    model String
    The AI model identifier.
    name String
    The human-readable name of the virtual key.
    provider String
    The AI model provider name.
    type String
    The type of the virtual key.
    updatedAt String
    Timestamp (UTC) of when the virtual key was last updated.
    userId String
    The ID of the user who created the virtual key.
    userName String
    The display name of the user who created the virtual key.
    createdAt string
    Timestamp (UTC) of when the virtual key was created.
    createdBy string
    The display name of the user who created the virtual key.
    customerId string
    The ID of the customer that owns the virtual key.
    deletedAt string
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    expiresAt string
    The expiration timestamp of the virtual key, if any.
    id string
    The ID of the virtual key.
    lastUsedAt string
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    model string
    The AI model identifier.
    name string
    The human-readable name of the virtual key.
    provider string
    The AI model provider name.
    type string
    The type of the virtual key.
    updatedAt string
    Timestamp (UTC) of when the virtual key was last updated.
    userId string
    The ID of the user who created the virtual key.
    userName string
    The display name of the user who created the virtual key.
    created_at str
    Timestamp (UTC) of when the virtual key was created.
    created_by str
    The display name of the user who created the virtual key.
    customer_id str
    The ID of the customer that owns the virtual key.
    deleted_at str
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    expires_at str
    The expiration timestamp of the virtual key, if any.
    id str
    The ID of the virtual key.
    last_used_at str
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    model str
    The AI model identifier.
    name str
    The human-readable name of the virtual key.
    provider str
    The AI model provider name.
    type str
    The type of the virtual key.
    updated_at str
    Timestamp (UTC) of when the virtual key was last updated.
    user_id str
    The ID of the user who created the virtual key.
    user_name str
    The display name of the user who created the virtual key.
    createdAt String
    Timestamp (UTC) of when the virtual key was created.
    createdBy String
    The display name of the user who created the virtual key.
    customerId String
    The ID of the customer that owns the virtual key.
    deletedAt String
    Timestamp (UTC) of when the virtual key was deleted, if applicable.
    expiresAt String
    The expiration timestamp of the virtual key, if any.
    id String
    The ID of the virtual key.
    lastUsedAt String
    Timestamp (UTC) of when the virtual key was last used, if applicable.
    model String
    The AI model identifier.
    name String
    The human-readable name of the virtual key.
    provider String
    The AI model provider name.
    type String
    The type of the virtual key.
    updatedAt String
    Timestamp (UTC) of when the virtual key was last updated.
    userId String
    The ID of the user who created the virtual key.
    userName String
    The display name of the user who created the virtual key.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Viewing docs for Fastly v12.7.0
    published on Friday, Sep 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial