1. Packages
  2. Linode Provider
  3. API Docs
  4. getAccountAvailability
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

linode.getAccountAvailability

Explore with Pulumi AI

linode logo
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

    Provides details about service availability in a region to an account specifically. For more information, see the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this data source to access information about a Linode account availability.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const myAccountAvailability = linode.getAccountAvailability({
        region: "us-east",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    my_account_availability = linode.get_account_availability(region="us-east")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetAccountAvailability(ctx, &linode.GetAccountAvailabilityArgs{
    			Region: "us-east",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var myAccountAvailability = Linode.GetAccountAvailability.Invoke(new()
        {
            Region = "us-east",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetAccountAvailabilityArgs;
    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 myAccountAvailability = LinodeFunctions.getAccountAvailability(GetAccountAvailabilityArgs.builder()
                .region("us-east")
                .build());
    
        }
    }
    
    variables:
      myAccountAvailability:
        fn::invoke:
          Function: linode:getAccountAvailability
          Arguments:
            region: us-east
    

    Using getAccountAvailability

    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 getAccountAvailability(args: GetAccountAvailabilityArgs, opts?: InvokeOptions): Promise<GetAccountAvailabilityResult>
    function getAccountAvailabilityOutput(args: GetAccountAvailabilityOutputArgs, opts?: InvokeOptions): Output<GetAccountAvailabilityResult>
    def get_account_availability(region: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAccountAvailabilityResult
    def get_account_availability_output(region: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAccountAvailabilityResult]
    func GetAccountAvailability(ctx *Context, args *GetAccountAvailabilityArgs, opts ...InvokeOption) (*GetAccountAvailabilityResult, error)
    func GetAccountAvailabilityOutput(ctx *Context, args *GetAccountAvailabilityOutputArgs, opts ...InvokeOption) GetAccountAvailabilityResultOutput

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

    public static class GetAccountAvailability 
    {
        public static Task<GetAccountAvailabilityResult> InvokeAsync(GetAccountAvailabilityArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountAvailabilityResult> Invoke(GetAccountAvailabilityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountAvailabilityResult> getAccountAvailability(GetAccountAvailabilityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: linode:index/getAccountAvailability:getAccountAvailability
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    The region ID.
    Region string
    The region ID.
    region String
    The region ID.
    region string
    The region ID.
    region str
    The region ID.
    region String
    The region ID.

    getAccountAvailability Result

    The following output properties are available:

    Availables List<string>
    A set of services which are available to the account in a region.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region ID.
    Unavailables List<string>
    A set of services which are unavailable to the account in a region.
    Availables []string
    A set of services which are available to the account in a region.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region ID.
    Unavailables []string
    A set of services which are unavailable to the account in a region.
    availables List<String>
    A set of services which are available to the account in a region.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region ID.
    unavailables List<String>
    A set of services which are unavailable to the account in a region.
    availables string[]
    A set of services which are available to the account in a region.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The region ID.
    unavailables string[]
    A set of services which are unavailable to the account in a region.
    availables Sequence[str]
    A set of services which are available to the account in a region.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The region ID.
    unavailables Sequence[str]
    A set of services which are unavailable to the account in a region.
    availables List<String>
    A set of services which are available to the account in a region.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region ID.
    unavailables List<String>
    A set of services which are unavailable to the account in a region.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi