Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbProfiles
Explore with Pulumi AI
List profiles in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const profiles = nutanix.getNdbProfiles({});
export const profilesList = profiles;
import pulumi
import pulumi_nutanix as nutanix
profiles = nutanix.get_ndb_profiles()
pulumi.export("profilesList", profiles)
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
profiles, err := nutanix.GetNdbProfiles(ctx, &nutanix.GetNdbProfilesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("profilesList", profiles)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var profiles = Nutanix.GetNdbProfiles.Invoke();
return new Dictionary<string, object?>
{
["profilesList"] = profiles,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetNdbProfilesArgs;
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 profiles = NutanixFunctions.getNdbProfiles();
ctx.export("profilesList", profiles.applyValue(getNdbProfilesResult -> getNdbProfilesResult));
}
}
variables:
profiles:
fn::invoke:
Function: nutanix:getNdbProfiles
Arguments: {}
outputs:
profilesList: ${profiles}
profiles
The following attributes are exported for each profile:
id
: - id of profilename
: - profile namedescription
: - description of profilestatus
: - status of profileowner
: - owner nameengine_type
: - database engine typedb_version
: - database versiontopology
: - topologysystem_profile
: - if system profile or notassoc_db_servers
: - associated DB serversassoc_databases
: - associated databaseslatest_version
: - latest version for engine softwarelatest_version_id
: - ID of latest version for engine softwareversions
: - profile’s different version configcluster_availability
: - list of clusters availabilitynx_cluster_id
: - era cluster ID
See detailed information in Nutanix Database Service Profiles.
Using getNdbProfiles
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 getNdbProfiles(args: GetNdbProfilesArgs, opts?: InvokeOptions): Promise<GetNdbProfilesResult>
function getNdbProfilesOutput(args: GetNdbProfilesOutputArgs, opts?: InvokeOptions): Output<GetNdbProfilesResult>
def get_ndb_profiles(engine: Optional[str] = None,
profile_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNdbProfilesResult
def get_ndb_profiles_output(engine: Optional[pulumi.Input[str]] = None,
profile_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNdbProfilesResult]
func GetNdbProfiles(ctx *Context, args *GetNdbProfilesArgs, opts ...InvokeOption) (*GetNdbProfilesResult, error)
func GetNdbProfilesOutput(ctx *Context, args *GetNdbProfilesOutputArgs, opts ...InvokeOption) GetNdbProfilesResultOutput
> Note: This function is named GetNdbProfiles
in the Go SDK.
public static class GetNdbProfiles
{
public static Task<GetNdbProfilesResult> InvokeAsync(GetNdbProfilesArgs args, InvokeOptions? opts = null)
public static Output<GetNdbProfilesResult> Invoke(GetNdbProfilesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbProfilesResult> getNdbProfiles(GetNdbProfilesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbProfiles:getNdbProfiles
arguments:
# arguments dictionary
The following arguments are supported:
- Engine string
- Database engine. For eg. postgres_database
- Profile
Type string - profile type. Types: Software, Compute, Network and Database_Parameter
- Engine string
- Database engine. For eg. postgres_database
- Profile
Type string - profile type. Types: Software, Compute, Network and Database_Parameter
- engine String
- Database engine. For eg. postgres_database
- profile
Type String - profile type. Types: Software, Compute, Network and Database_Parameter
- engine string
- Database engine. For eg. postgres_database
- profile
Type string - profile type. Types: Software, Compute, Network and Database_Parameter
- engine str
- Database engine. For eg. postgres_database
- profile_
type str - profile type. Types: Software, Compute, Network and Database_Parameter
- engine String
- Database engine. For eg. postgres_database
- profile
Type String - profile type. Types: Software, Compute, Network and Database_Parameter
getNdbProfiles Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Profiles
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Profiles Profile> - List of profiles
- Engine string
- Profile
Type string
- Id string
- The provider-assigned unique ID for this managed resource.
- Profiles
[]Get
Ndb Profiles Profile - List of profiles
- Engine string
- Profile
Type string
- id String
- The provider-assigned unique ID for this managed resource.
- profiles
List<Get
Ndb Profiles Profile> - List of profiles
- engine String
- profile
Type String
- id string
- The provider-assigned unique ID for this managed resource.
- profiles
Get
Ndb Profiles Profile[] - List of profiles
- engine string
- profile
Type string
- id str
- The provider-assigned unique ID for this managed resource.
- profiles
Sequence[Get
Ndb Profiles Profile] - List of profiles
- engine str
- profile_
type str
- id String
- The provider-assigned unique ID for this managed resource.
- profiles List<Property Map>
- List of profiles
- engine String
- profile
Type String
Supporting Types
GetNdbProfilesProfile
- Assoc
Databases List<string> - Assoc
Db List<string>Servers - Cluster
Availabilities List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Profiles Profile Cluster Availability> - Db
Version string - Description string
- Engine
Type string - Id string
- Latest
Version string - Latest
Version stringId - Name string
- Nx
Cluster stringId - Owner string
- Status string
- System
Profile bool - Topology string
- Type string
- Versions
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Profiles Profile Version>
- Assoc
Databases []string - Assoc
Db []stringServers - Cluster
Availabilities []GetNdb Profiles Profile Cluster Availability - Db
Version string - Description string
- Engine
Type string - Id string
- Latest
Version string - Latest
Version stringId - Name string
- Nx
Cluster stringId - Owner string
- Status string
- System
Profile bool - Topology string
- Type string
- Versions
[]Get
Ndb Profiles Profile Version
- assoc
Databases List<String> - assoc
Db List<String>Servers - cluster
Availabilities List<GetNdb Profiles Profile Cluster Availability> - db
Version String - description String
- engine
Type String - id String
- latest
Version String - latest
Version StringId - name String
- nx
Cluster StringId - owner String
- status String
- system
Profile Boolean - topology String
- type String
- versions
List<Get
Ndb Profiles Profile Version>
- assoc
Databases string[] - assoc
Db string[]Servers - cluster
Availabilities GetNdb Profiles Profile Cluster Availability[] - db
Version string - description string
- engine
Type string - id string
- latest
Version string - latest
Version stringId - name string
- nx
Cluster stringId - owner string
- status string
- system
Profile boolean - topology string
- type string
- versions
Get
Ndb Profiles Profile Version[]
- assoc_
databases Sequence[str] - assoc_
db_ Sequence[str]servers - cluster_
availabilities Sequence[GetNdb Profiles Profile Cluster Availability] - db_
version str - description str
- engine_
type str - id str
- latest_
version str - latest_
version_ strid - name str
- nx_
cluster_ strid - owner str
- status str
- system_
profile bool - topology str
- type str
- versions
Sequence[Get
Ndb Profiles Profile Version]
- assoc
Databases List<String> - assoc
Db List<String>Servers - cluster
Availabilities List<Property Map> - db
Version String - description String
- engine
Type String - id String
- latest
Version String - latest
Version StringId - name String
- nx
Cluster StringId - owner String
- status String
- system
Profile Boolean - topology String
- type String
- versions List<Property Map>
GetNdbProfilesProfileClusterAvailability
- Date
Created string - Date
Modified string - Nx
Cluster stringId - Owner
Id string - Profile
Id string - Status string
- Date
Created string - Date
Modified string - Nx
Cluster stringId - Owner
Id string - Profile
Id string - Status string
- date
Created String - date
Modified String - nx
Cluster StringId - owner
Id String - profile
Id String - status String
- date
Created string - date
Modified string - nx
Cluster stringId - owner
Id string - profile
Id string - status string
- date_
created str - date_
modified str - nx_
cluster_ strid - owner_
id str - profile_
id str - status str
- date
Created String - date
Modified String - nx
Cluster StringId - owner
Id String - profile
Id String - status String
GetNdbProfilesProfileVersion
- Db
Version string - Deprecated bool
- Description string
- Engine
Type string - Id string
- Name string
- Owner string
- Profile
Id string - Properties
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Profiles Profile Version Property> - Properties
Map Dictionary<string, string> - Published bool
- Status string
- System
Profile bool - Topology string
- Type string
- Version string
- Version
Cluster List<PiersAssociations Karsenbarg. Nutanix. Inputs. Get Ndb Profiles Profile Version Version Cluster Association>
- Db
Version string - Deprecated bool
- Description string
- Engine
Type string - Id string
- Name string
- Owner string
- Profile
Id string - Properties
[]Get
Ndb Profiles Profile Version Property - Properties
Map map[string]string - Published bool
- Status string
- System
Profile bool - Topology string
- Type string
- Version string
- Version
Cluster []GetAssociations Ndb Profiles Profile Version Version Cluster Association
- db
Version String - deprecated Boolean
- description String
- engine
Type String - id String
- name String
- owner String
- profile
Id String - properties
List<Get
Ndb Profiles Profile Version Property> - properties
Map Map<String,String> - published Boolean
- status String
- system
Profile Boolean - topology String
- type String
- version String
- version
Cluster List<GetAssociations Ndb Profiles Profile Version Version Cluster Association>
- db
Version string - deprecated boolean
- description string
- engine
Type string - id string
- name string
- owner string
- profile
Id string - properties
Get
Ndb Profiles Profile Version Property[] - properties
Map {[key: string]: string} - published boolean
- status string
- system
Profile boolean - topology string
- type string
- version string
- version
Cluster GetAssociations Ndb Profiles Profile Version Version Cluster Association[]
- db_
version str - deprecated bool
- description str
- engine_
type str - id str
- name str
- owner str
- profile_
id str - properties
Sequence[Get
Ndb Profiles Profile Version Property] - properties_
map Mapping[str, str] - published bool
- status str
- system_
profile bool - topology str
- type str
- version str
- version_
cluster_ Sequence[Getassociations Ndb Profiles Profile Version Version Cluster Association]
- db
Version String - deprecated Boolean
- description String
- engine
Type String - id String
- name String
- owner String
- profile
Id String - properties List<Property Map>
- properties
Map Map<String> - published Boolean
- status String
- system
Profile Boolean - topology String
- type String
- version String
- version
Cluster List<Property Map>Associations
GetNdbProfilesProfileVersionProperty
GetNdbProfilesProfileVersionVersionClusterAssociation
- Date
Created string - Date
Modified string - Nx
Cluster stringId - Optimized
For boolProvisioning - Owner
Id string - Profile
Version stringId - Properties
[]Get
Ndb Profiles Profile Version Version Cluster Association Property - Status string
- date
Created String - date
Modified String - nx
Cluster StringId - optimized
For BooleanProvisioning - owner
Id String - profile
Version StringId - properties
List<Get
Ndb Profiles Profile Version Version Cluster Association Property> - status String
- date
Created string - date
Modified string - nx
Cluster stringId - optimized
For booleanProvisioning - owner
Id string - profile
Version stringId - properties
Get
Ndb Profiles Profile Version Version Cluster Association Property[] - status string
- date
Created String - date
Modified String - nx
Cluster StringId - optimized
For BooleanProvisioning - owner
Id String - profile
Version StringId - properties List<Property Map>
- status String
GetNdbProfilesProfileVersionVersionClusterAssociationProperty
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.