1. Packages
  2. Outscale Provider
  3. API Docs
  4. getAccounts
outscale 1.1.0 published on Thursday, Apr 3, 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({});
Copy
import pulumi
import pulumi_outscale as outscale

all_accounts = outscale.get_accounts()
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var allAccounts = Outscale.GetAccounts.Invoke();

});
Copy
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();

    }
}
Copy
variables:
  allAccounts:
    fn::invoke:
      function: outscale:getAccounts
      arguments: {}
Copy

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>
Copy
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]
Copy
func GetAccounts(ctx *Context, args *GetAccountsArgs, opts ...InvokeOption) (*GetAccountsResult, error)
func GetAccountsOutput(ctx *Context, args *GetAccountsOutputArgs, opts ...InvokeOption) GetAccountsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
public static Output<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getAccounts:getAccounts
  arguments:
    # arguments dictionary
Copy

The 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<GetAccountsAccount>
The list of the accounts.
Id string
RequestId string
Accounts []GetAccountsAccount
The list of the accounts.
Id string
RequestId string
accounts List<GetAccountsAccount>
The list of the accounts.
id String
requestId String
accounts GetAccountsAccount[]
The list of the accounts.
id string
requestId string
accounts Sequence[GetAccountsAccount]
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 This property is required. string
The ID of the account.
AdditionalEmails This property is required. List<string>
One or more additional email addresses for the account. These addresses are used for notifications only.
City This property is required. string
The city of the account owner.
CompanyName This property is required. string
The name of the company for the account.
Country This property is required. string
The country of the account owner.
CustomerId This property is required. string
The ID of the customer.
Email This property is required. string
The main email address for the account. This address is used for your credentials and for notifications.
FirstName This property is required. string
The first name of the account owner.
JobTitle This property is required. string
The job title of the account owner.
LastName This property is required. string
The last name of the account owner.
MobileNumber This property is required. string
The mobile phone number of the account owner.
PhoneNumber This property is required. string
The landline phone number of the account owner.
StateProvince This property is required. string
The state/province of the account.
VatNumber This property is required. string
The value added tax (VAT) number for the account.
ZipCode This property is required. string
The ZIP code of the city.
AccountId This property is required. string
The ID of the account.
AdditionalEmails This property is required. []string
One or more additional email addresses for the account. These addresses are used for notifications only.
City This property is required. string
The city of the account owner.
CompanyName This property is required. string
The name of the company for the account.
Country This property is required. string
The country of the account owner.
CustomerId This property is required. string
The ID of the customer.
Email This property is required. string
The main email address for the account. This address is used for your credentials and for notifications.
FirstName This property is required. string
The first name of the account owner.
JobTitle This property is required. string
The job title of the account owner.
LastName This property is required. string
The last name of the account owner.
MobileNumber This property is required. string
The mobile phone number of the account owner.
PhoneNumber This property is required. string
The landline phone number of the account owner.
StateProvince This property is required. string
The state/province of the account.
VatNumber This property is required. string
The value added tax (VAT) number for the account.
ZipCode This property is required. string
The ZIP code of the city.
accountId This property is required. String
The ID of the account.
additionalEmails This property is required. List<String>
One or more additional email addresses for the account. These addresses are used for notifications only.
city This property is required. String
The city of the account owner.
companyName This property is required. String
The name of the company for the account.
country This property is required. String
The country of the account owner.
customerId This property is required. String
The ID of the customer.
email This property is required. String
The main email address for the account. This address is used for your credentials and for notifications.
firstName This property is required. String
The first name of the account owner.
jobTitle This property is required. String
The job title of the account owner.
lastName This property is required. String
The last name of the account owner.
mobileNumber This property is required. String
The mobile phone number of the account owner.
phoneNumber This property is required. String
The landline phone number of the account owner.
stateProvince This property is required. String
The state/province of the account.
vatNumber This property is required. String
The value added tax (VAT) number for the account.
zipCode This property is required. String
The ZIP code of the city.
accountId This property is required. string
The ID of the account.
additionalEmails This property is required. string[]
One or more additional email addresses for the account. These addresses are used for notifications only.
city This property is required. string
The city of the account owner.
companyName This property is required. string
The name of the company for the account.
country This property is required. string
The country of the account owner.
customerId This property is required. string
The ID of the customer.
email This property is required. string
The main email address for the account. This address is used for your credentials and for notifications.
firstName This property is required. string
The first name of the account owner.
jobTitle This property is required. string
The job title of the account owner.
lastName This property is required. string
The last name of the account owner.
mobileNumber This property is required. string
The mobile phone number of the account owner.
phoneNumber This property is required. string
The landline phone number of the account owner.
stateProvince This property is required. string
The state/province of the account.
vatNumber This property is required. string
The value added tax (VAT) number for the account.
zipCode This property is required. string
The ZIP code of the city.
account_id This property is required. str
The ID of the account.
additional_emails This property is required. Sequence[str]
One or more additional email addresses for the account. These addresses are used for notifications only.
city This property is required. str
The city of the account owner.
company_name This property is required. str
The name of the company for the account.
country This property is required. str
The country of the account owner.
customer_id This property is required. str
The ID of the customer.
email This property is required. str
The main email address for the account. This address is used for your credentials and for notifications.
first_name This property is required. str
The first name of the account owner.
job_title This property is required. str
The job title of the account owner.
last_name This property is required. str
The last name of the account owner.
mobile_number This property is required. str
The mobile phone number of the account owner.
phone_number This property is required. str
The landline phone number of the account owner.
state_province This property is required. str
The state/province of the account.
vat_number This property is required. str
The value added tax (VAT) number for the account.
zip_code This property is required. str
The ZIP code of the city.
accountId This property is required. String
The ID of the account.
additionalEmails This property is required. List<String>
One or more additional email addresses for the account. These addresses are used for notifications only.
city This property is required. String
The city of the account owner.
companyName This property is required. String
The name of the company for the account.
country This property is required. String
The country of the account owner.
customerId This property is required. String
The ID of the customer.
email This property is required. String
The main email address for the account. This address is used for your credentials and for notifications.
firstName This property is required. String
The first name of the account owner.
jobTitle This property is required. String
The job title of the account owner.
lastName This property is required. String
The last name of the account owner.
mobileNumber This property is required. String
The mobile phone number of the account owner.
phoneNumber This property is required. String
The landline phone number of the account owner.
stateProvince This property is required. String
The state/province of the account.
vatNumber This property is required. String
The value added tax (VAT) number for the account.
zipCode This property is required. String
The ZIP code of the city.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.