Files
developer.sailpoint.com/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md
2025-05-19 15:06:17 +00:00

1.8 KiB

id, title, pagination_label, sidebar_label, sidebar_class_name, keywords, slug, tags
id title pagination_label sidebar_label sidebar_class_name keywords slug tags
beta-tenant Tenant Tenant Tenant gosdk
go
Golang
sdk
Tenant
BetaTenant
/tools/sdk/go/beta/methods/tenant
SDK
Software Development Kit
Tenant
BetaTenant

TenantAPI

API for reading tenant details. All URIs are relative to https://sailpoint.api.identitynow.com/beta

Method HTTP request Description
get-tenant Get /tenant Get tenant information.

get-tenant

Get tenant information. This rest endpoint can be used to retrieve tenant details.

API Spec

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetTenantRequest struct via the builder pattern

Return type

Tenant

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

package main

import (
	"context"
	"fmt"
	"os"
  
    
	sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {

    

    configuration := sailpoint.NewDefaultConfiguration()
    apiClient := sailpoint.NewAPIClient(configuration)
    resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute()
	  //resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute()
    if err != nil {
	    fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err)
	    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetTenant`: Tenant
    fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp)
}

[Back to top]