1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbProfiles
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.getNdbProfiles

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    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, nil, 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 profile
    • name: - profile name
    • description: - description of profile
    • status: - status of profile
    • owner: - owner name
    • engine_type: - database engine type
    • db_version: - database version
    • topology: - topology
    • system_profile: - if system profile or not
    • assoc_db_servers: - associated DB servers
    • assoc_databases: - associated databases
    • latest_version: - latest version for engine software
    • latest_version_id: - ID of latest version for engine software
    • versions: - profile’s different version config
    • cluster_availability: - list of clusters availability
    • nx_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
    ProfileType string
    profile type. Types: Software, Compute, Network and Database_Parameter
    Engine string
    Database engine. For eg. postgres_database
    ProfileType string
    profile type. Types: Software, Compute, Network and Database_Parameter
    engine String
    Database engine. For eg. postgres_database
    profileType String
    profile type. Types: Software, Compute, Network and Database_Parameter
    engine string
    Database engine. For eg. postgres_database
    profileType 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
    profileType 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<PiersKarsenbarg.Nutanix.Outputs.GetNdbProfilesProfile>
    List of profiles
    Engine string
    ProfileType string
    Id string
    The provider-assigned unique ID for this managed resource.
    Profiles []GetNdbProfilesProfile
    List of profiles
    Engine string
    ProfileType string
    id String
    The provider-assigned unique ID for this managed resource.
    profiles List<GetNdbProfilesProfile>
    List of profiles
    engine String
    profileType String
    id string
    The provider-assigned unique ID for this managed resource.
    profiles GetNdbProfilesProfile[]
    List of profiles
    engine string
    profileType string
    id str
    The provider-assigned unique ID for this managed resource.
    profiles Sequence[GetNdbProfilesProfile]
    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
    profileType String

    Supporting Types

    GetNdbProfilesProfile

    GetNdbProfilesProfileClusterAvailability

    DateCreated string
    DateModified string
    NxClusterId string
    OwnerId string
    ProfileId string
    Status string
    DateCreated string
    DateModified string
    NxClusterId string
    OwnerId string
    ProfileId string
    Status string
    dateCreated String
    dateModified String
    nxClusterId String
    ownerId String
    profileId String
    status String
    dateCreated string
    dateModified string
    nxClusterId string
    ownerId string
    profileId string
    status string
    dateCreated String
    dateModified String
    nxClusterId String
    ownerId String
    profileId String
    status String

    GetNdbProfilesProfileVersion

    GetNdbProfilesProfileVersionProperty

    Name string
    Secure bool
    Value string
    Name string
    Secure bool
    Value string
    name String
    secure Boolean
    value String
    name string
    secure boolean
    value string
    name str
    secure bool
    value str
    name String
    secure Boolean
    value String

    GetNdbProfilesProfileVersionVersionClusterAssociation

    GetNdbProfilesProfileVersionVersionClusterAssociationProperty

    Name string
    Secure bool
    Value string
    Name string
    Secure bool
    Value string
    name String
    secure Boolean
    value String
    name string
    secure boolean
    value string
    name str
    secure bool
    value str
    name String
    secure Boolean
    value String

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg