outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getAccounts
Explore with Pulumi AI
Provides information about accounts.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const allAccounts = outscale.getAccounts({});
import pulumi
import pulumi_outscale as outscale
all_accounts = outscale.get_accounts()
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetAccounts(ctx, &outscale.GetAccountsArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var allAccounts = Outscale.GetAccounts.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetAccountsArgs;
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 allAccounts = OutscaleFunctions.getAccounts();
    }
}
variables:
  allAccounts:
    fn::invoke:
      function: outscale:getAccounts
      arguments: {}
Using getAccounts
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 getAccounts(args: GetAccountsArgs, opts?: InvokeOptions): Promise<GetAccountsResult>
function getAccountsOutput(args: GetAccountsOutputArgs, opts?: InvokeOptions): Output<GetAccountsResult>def get_accounts(id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetAccountsResult
def get_accounts_output(id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetAccountsResult]func GetAccounts(ctx *Context, args *GetAccountsArgs, opts ...InvokeOption) (*GetAccountsResult, error)
func GetAccountsOutput(ctx *Context, args *GetAccountsOutputArgs, opts ...InvokeOption) GetAccountsResultOutput> Note: This function is named GetAccounts in the Go SDK.
public static class GetAccounts 
{
    public static Task<GetAccountsResult> InvokeAsync(GetAccountsArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountsResult> Invoke(GetAccountsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
public static Output<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getAccounts:getAccounts
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getAccounts Result
The following output properties are available:
- Accounts
List<GetAccounts Account> 
- The list of the accounts.
- Id string
- RequestId string
- Accounts
[]GetAccounts Account 
- The list of the accounts.
- Id string
- RequestId string
- accounts
List<GetAccounts Account> 
- The list of the accounts.
- id String
- requestId String
- accounts
GetAccounts Account[] 
- The list of the accounts.
- id string
- requestId string
- accounts
Sequence[GetAccounts Account] 
- The list of the accounts.
- id str
- request_id str
- accounts List<Property Map>
- The list of the accounts.
- id String
- requestId String
Supporting Types
GetAccountsAccount  
- AccountId string
- The ID of the account.
- AdditionalEmails List<string>
- One or more additional email addresses for the account. These addresses are used for notifications only.
- City string
- The city of the account owner.
- CompanyName string
- The name of the company for the account.
- Country string
- The country of the account owner.
- CustomerId string
- The ID of the customer.
- Email string
- The main email address for the account. This address is used for your credentials and for notifications.
- FirstName string
- The first name of the account owner.
- JobTitle string
- The job title of the account owner.
- LastName string
- The last name of the account owner.
- MobileNumber string
- The mobile phone number of the account owner.
- PhoneNumber string
- The landline phone number of the account owner.
- StateProvince string
- The state/province of the account.
- VatNumber string
- The value added tax (VAT) number for the account.
- ZipCode string
- The ZIP code of the city.
- AccountId string
- The ID of the account.
- AdditionalEmails []string
- One or more additional email addresses for the account. These addresses are used for notifications only.
- City string
- The city of the account owner.
- CompanyName string
- The name of the company for the account.
- Country string
- The country of the account owner.
- CustomerId string
- The ID of the customer.
- Email string
- The main email address for the account. This address is used for your credentials and for notifications.
- FirstName string
- The first name of the account owner.
- JobTitle string
- The job title of the account owner.
- LastName string
- The last name of the account owner.
- MobileNumber string
- The mobile phone number of the account owner.
- PhoneNumber string
- The landline phone number of the account owner.
- StateProvince string
- The state/province of the account.
- VatNumber string
- The value added tax (VAT) number for the account.
- ZipCode string
- The ZIP code of the city.
- accountId String
- The ID of the account.
- additionalEmails List<String>
- One or more additional email addresses for the account. These addresses are used for notifications only.
- city String
- The city of the account owner.
- companyName String
- The name of the company for the account.
- country String
- The country of the account owner.
- customerId String
- The ID of the customer.
- email String
- The main email address for the account. This address is used for your credentials and for notifications.
- firstName String
- The first name of the account owner.
- jobTitle String
- The job title of the account owner.
- lastName String
- The last name of the account owner.
- mobileNumber String
- The mobile phone number of the account owner.
- phoneNumber String
- The landline phone number of the account owner.
- stateProvince String
- The state/province of the account.
- vatNumber String
- The value added tax (VAT) number for the account.
- zipCode String
- The ZIP code of the city.
- accountId string
- The ID of the account.
- additionalEmails string[]
- One or more additional email addresses for the account. These addresses are used for notifications only.
- city string
- The city of the account owner.
- companyName string
- The name of the company for the account.
- country string
- The country of the account owner.
- customerId string
- The ID of the customer.
- email string
- The main email address for the account. This address is used for your credentials and for notifications.
- firstName string
- The first name of the account owner.
- jobTitle string
- The job title of the account owner.
- lastName string
- The last name of the account owner.
- mobileNumber string
- The mobile phone number of the account owner.
- phoneNumber string
- The landline phone number of the account owner.
- stateProvince string
- The state/province of the account.
- vatNumber string
- The value added tax (VAT) number for the account.
- zipCode string
- The ZIP code of the city.
- account_id str
- The ID of the account.
- additional_emails Sequence[str]
- One or more additional email addresses for the account. These addresses are used for notifications only.
- city str
- The city of the account owner.
- company_name str
- The name of the company for the account.
- country str
- The country of the account owner.
- customer_id str
- The ID of the customer.
- email str
- The main email address for the account. This address is used for your credentials and for notifications.
- first_name str
- The first name of the account owner.
- job_title str
- The job title of the account owner.
- last_name str
- The last name of the account owner.
- mobile_number str
- The mobile phone number of the account owner.
- phone_number str
- The landline phone number of the account owner.
- state_province str
- The state/province of the account.
- vat_number str
- The value added tax (VAT) number for the account.
- zip_code str
- The ZIP code of the city.
- accountId String
- The ID of the account.
- additionalEmails List<String>
- One or more additional email addresses for the account. These addresses are used for notifications only.
- city String
- The city of the account owner.
- companyName String
- The name of the company for the account.
- country String
- The country of the account owner.
- customerId String
- The ID of the customer.
- email String
- The main email address for the account. This address is used for your credentials and for notifications.
- firstName String
- The first name of the account owner.
- jobTitle String
- The job title of the account owner.
- lastName String
- The last name of the account owner.
- mobileNumber String
- The mobile phone number of the account owner.
- phoneNumber String
- The landline phone number of the account owner.
- stateProvince String
- The state/province of the account.
- vatNumber String
- The value added tax (VAT) number for the account.
- zipCode String
- The ZIP code of the city.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.