Viewing docs for Fastly v12.7.0
published on Friday, Sep 18, 2026 by Pulumi
published on Friday, Sep 18, 2026 by Pulumi
Viewing docs for Fastly v12.7.0
published on Friday, Sep 18, 2026 by Pulumi
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 dictionarydata "fastly_get_ai_runtime_control_virtual_keys" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
- 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.
- include
Deleted Boolean - 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.
- include
Deleted boolean - 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.
- 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.
- include
Deleted Boolean - 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.
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.
- Virtual
Keys List<GetAi Runtime Control Virtual Keys Virtual Key> - 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 int
- The total number of virtual keys returned.
- Virtual
Keys []GetAi Runtime Control Virtual Keys Virtual Key - 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 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.
- virtual
Keys List<GetAi Runtime Control Virtual Keys Virtual Key> - The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
- include
Deleted Boolean - 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 number
- The total number of virtual keys returned.
- virtual
Keys GetAi Runtime Control Virtual Keys Virtual Key[] - The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
- include
Deleted boolean - 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 str
- The provider-assigned unique ID for this managed resource.
- total int
- The total number of virtual keys returned.
- virtual_
keys Sequence[GetAi Runtime Control Virtual Keys Virtual Key] - 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.
- virtual
Keys List<Property Map> - The virtual keys matching the given filters. Access tokens are never returned by this endpoint.
- include
Deleted Boolean - 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.
Supporting Types
GetAiRuntimeControlVirtualKeysVirtualKey
- 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 stringAt - 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.
- 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 stringAt - 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.
- 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_ stringat - 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.
- 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 StringAt - 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.
- 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 stringAt - 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.
- 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_ strat - 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.
- 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 StringAt - 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.
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastlyTerraform Provider.
Viewing docs for Fastly v12.7.0
published on Friday, Sep 18, 2026 by Pulumi
published on Friday, Sep 18, 2026 by Pulumi