Avisi cloud logo
Cloud accounts

List cloud accounts in an organisation.

GET
/api/v1/orgs/{organisationSlug}/cloud-accounts

Path Parameters

organisationSlugstring
Pattern"^[a-z0-9-]+$"

Query Parameters

display-name?string

Optional search parameter

cloud-provider-slug?string

Optional search parameter

Response Body

Request was successfully processed. The response body contains the requested data.

TypeScript Definitions

Use the response body type in TypeScript.

totalElements?integer
Format"int64"
totalPages?integer
Format"int32"
first?boolean
last?boolean
size?integer
Format"int32"
content?array<object>
number?integer
Format"int32"
sort?object
numberOfElements?integer
Format"int32"
pageable?object
empty?boolean

Invalid request parameters. Please review the documentation for valid parameter values.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

You do not have the necessary permissions to access this resource.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

The requested resource could not be found. Please check the resource URL or identifier.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

An internal error occurred on the server.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown
curl -X GET "https://api.avisi.cloud/api/v1/orgs/string/cloud-accounts?display-name=string&cloud-provider-slug=string"
fetch("https://api.avisi.cloud/api/v1/orgs/string/cloud-accounts?display-name=string&cloud-provider-slug=string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.avisi.cloud/api/v1/orgs/string/cloud-accounts?display-name=string&cloud-provider-slug=string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.avisi.cloud/api/v1/orgs/string/cloud-accounts?display-name=string&cloud-provider-slug=string"

response = requests.request("GET", url)

print(response.text)
{
  "totalElements": 0,
  "totalPages": 0,
  "first": true,
  "last": true,
  "size": 0,
  "content": [
    {
      "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
      "displayName": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "cloudProfile": {
        "identity": "string",
        "displayName": "string",
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "cloudProvider": "string",
        "regions": [
          "string"
        ],
        "enabled": true,
        "type": "aws",
        "cloudProviderResponse": {
          "id": 0,
          "name": "string",
          "slug": "string",
          "available": true,
          "createdAt": "2019-08-24T14:15:22Z",
          "modifiedAt": "2019-08-24T14:15:22Z",
          "logo": "string",
          "byon": true,
          "type": "aws",
          "privateClusterSetting": "UNAVAILABLE",
          "metadata": {
            "property1": "string",
            "property2": "string"
          },
          "validateCloudCredentials": true
        },
        "cloudProviderRegionResponses": [
          {
            "id": 0,
            "provider": "string",
            "name": "string",
            "slug": "string",
            "available": true,
            "restricted": true,
            "createdAt": "2019-08-24T14:15:22Z",
            "modifiedAt": "2019-08-24T14:15:22Z"
          }
        ],
        "public": true
      },
      "enabled": true,
      "primaryCloudCredentialsIdentity": "962b660f-35b8-4ef0-9e6d-6f86f64922e0"
    }
  ],
  "number": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true,
    "paged": true,
    "pageNumber": 0,
    "pageSize": 0
  },
  "empty": true
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}