1. Packages
  2. Fastly Provider
  3. API Docs
  4. getTlsSubscriptionIds
Fastly v8.11.1 published on Monday, Sep 16, 2024 by Pulumi

fastly.getTlsSubscriptionIds

Explore with Pulumi AI

fastly logo
Fastly v8.11.1 published on Monday, Sep 16, 2024 by Pulumi

    Use this data source to get the list of IDs of TLS Subscriptions in Fastly.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const example = fastly.getTlsSubscriptionIds({});
    const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({
        id: __value,
    }) })));
    export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority)));
    
    import pulumi
    import pulumi_fastly as fastly
    
    example = fastly.get_tls_subscription_ids()
    example_get_tls_subscription = {__key: fastly.get_tls_subscription(id=__value) for __key, __value in example.ids}
    pulumi.export("subscriptionDomains", [a.certificate_authority for a in example_get_tls_subscription])
    
    Coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Fastly.GetTlsSubscriptionIds.Invoke();
    
        var exampleGetTlsSubscription = ;
    
        return new Dictionary<string, object?>
        {
            ["subscriptionDomains"] = exampleGetTlsSubscription.Apply(exampleGetTlsSubscription => (exampleGetTlsSubscription).Values.Select(a => 
            {
                return a.CertificateAuthority;
            }).ToList()),
        };
    });
    
    Coming soon!
    
    Coming soon!
    

    Using getTlsSubscriptionIds

    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 getTlsSubscriptionIds(opts?: InvokeOptions): Promise<GetTlsSubscriptionIdsResult>
    function getTlsSubscriptionIdsOutput(opts?: InvokeOptions): Output<GetTlsSubscriptionIdsResult>
    def get_tls_subscription_ids(opts: Optional[InvokeOptions] = None) -> GetTlsSubscriptionIdsResult
    def get_tls_subscription_ids_output(opts: Optional[InvokeOptions] = None) -> Output[GetTlsSubscriptionIdsResult]
    func GetTlsSubscriptionIds(ctx *Context, opts ...InvokeOption) (*GetTlsSubscriptionIdsResult, error)
    func GetTlsSubscriptionIdsOutput(ctx *Context, opts ...InvokeOption) GetTlsSubscriptionIdsResultOutput

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

    public static class GetTlsSubscriptionIds 
    {
        public static Task<GetTlsSubscriptionIdsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetTlsSubscriptionIdsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTlsSubscriptionIdsResult> getTlsSubscriptionIds(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds
      arguments:
        # arguments dictionary

    getTlsSubscriptionIds Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    IDs of available TLS subscriptions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    IDs of available TLS subscriptions.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    IDs of available TLS subscriptions.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    IDs of available TLS subscriptions.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    IDs of available TLS subscriptions.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    IDs of available TLS subscriptions.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v8.11.1 published on Monday, Sep 16, 2024 by Pulumi