1. Packages
  2. Netapp-Cloudmanager Provider
  3. API Docs
  4. NssAccount
netapp-cloudmanager 25.3.0 published on Monday, Apr 14, 2025 by netapp

netapp-cloudmanager.NssAccount

Explore with Pulumi AI

netapp-cloudmanager logo
netapp-cloudmanager 25.3.0 published on Monday, Apr 14, 2025 by netapp

    Provides a netapp-cloudmanager_nss_account resource. This can be used to create or delete a NetApp Support Site account on the Cloud Manager system.

    Example Usage

    S

    Read netapp-cloudmanager_nss_account:

    import * as pulumi from "@pulumi/pulumi";
    import * as netapp_cloudmanager from "@pulumi/netapp-cloudmanager";
    
    const nss_account_1 = netapp_cloudmanager.getNssAccount({
        clientId: "Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh",
        username: "user",
    });
    
    import pulumi
    import pulumi_netapp_cloudmanager as netapp_cloudmanager
    
    nss_account_1 = netapp_cloudmanager.get_nss_account(client_id="Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh",
        username="user")
    
    package main
    
    import (
    	netappcloudmanager "github.com/pulumi/pulumi-terraform-provider/sdks/go/netapp-cloudmanager/v25/netapp-cloudmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netappcloudmanager.LookupNssAccount(ctx, &netappcloudmanager.LookupNssAccountArgs{
    			ClientId: "Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh",
    			Username: "user",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NetappCloudmanager = Pulumi.NetappCloudmanager;
    
    return await Deployment.RunAsync(() => 
    {
        var nss_account_1 = NetappCloudmanager.GetNssAccount.Invoke(new()
        {
            ClientId = "Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh",
            Username = "user",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netappcloudmanager.NetappcloudmanagerFunctions;
    import com.pulumi.netappcloudmanager.inputs.GetNssAccountArgs;
    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 nss-account-1 = Netapp-cloudmanagerFunctions.getNssAccount(GetNssAccountArgs.builder()
                .clientId("Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh")
                .username("user")
                .build());
    
        }
    }
    
    variables:
      nss-account-1:
        fn::invoke:
          function: netapp-cloudmanager:getNssAccount
          arguments:
            clientId: Nw4Q2O1kdnLtvhwegGalFnodEHUfPJWh
            username: user
    

    Create netapp-cloudmanager_nss_account:

    import * as pulumi from "@pulumi/pulumi";
    import * as netapp_cloudmanager from "@pulumi/netapp-cloudmanager";
    
    const nss_account_2 = new netapp_cloudmanager.NssAccount("nss-account-2", {
        clientId: "AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
        username: "user",
        password: "pass",
    }, {
        provider: netapp_cloudmanager,
    });
    
    import pulumi
    import pulumi_netapp_cloudmanager as netapp_cloudmanager
    
    nss_account_2 = netapp_cloudmanager.NssAccount("nss-account-2",
        client_id="AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
        username="user",
        password="pass",
        opts = pulumi.ResourceOptions(provider=netapp_cloudmanager))
    
    package main
    
    import (
    	netappcloudmanager "github.com/pulumi/pulumi-terraform-provider/sdks/go/netapp-cloudmanager/v25/netapp-cloudmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netappcloudmanager.NewNssAccount(ctx, "nss-account-2", &netappcloudmanager.NssAccountArgs{
    			ClientId: pulumi.String("AbCd6kdnLtvhwcgGvlFntdEHUfPJGc"),
    			Username: pulumi.String("user"),
    			Password: pulumi.String("pass"),
    		}, pulumi.Provider(netapp_cloudmanager))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NetappCloudmanager = Pulumi.NetappCloudmanager;
    
    return await Deployment.RunAsync(() => 
    {
        var nss_account_2 = new NetappCloudmanager.NssAccount("nss-account-2", new()
        {
            ClientId = "AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
            Username = "user",
            Password = "pass",
        }, new CustomResourceOptions
        {
            Provider = netapp_cloudmanager,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netappcloudmanager.NssAccount;
    import com.pulumi.netappcloudmanager.NssAccountArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            var nss_account_2 = new NssAccount("nss-account-2", NssAccountArgs.builder()
                .clientId("AbCd6kdnLtvhwcgGvlFntdEHUfPJGc")
                .username("user")
                .password("pass")
                .build(), CustomResourceOptions.builder()
                    .provider(netapp_cloudmanager)
                    .build());
    
        }
    }
    
    resources:
      nss-account-2:
        type: netapp-cloudmanager:NssAccount
        properties:
          clientId: AbCd6kdnLtvhwcgGvlFntdEHUfPJGc
          username: user
          password: pass
        options:
          provider: ${["netapp-cloudmanager"]}
    

    Create NssAccount Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NssAccount(name: string, args: NssAccountArgs, opts?: CustomResourceOptions);
    @overload
    def NssAccount(resource_name: str,
                   args: NssAccountArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def NssAccount(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   client_id: Optional[str] = None,
                   password: Optional[str] = None,
                   username: Optional[str] = None,
                   nss_account_id: Optional[str] = None)
    func NewNssAccount(ctx *Context, name string, args NssAccountArgs, opts ...ResourceOption) (*NssAccount, error)
    public NssAccount(string name, NssAccountArgs args, CustomResourceOptions? opts = null)
    public NssAccount(String name, NssAccountArgs args)
    public NssAccount(String name, NssAccountArgs args, CustomResourceOptions options)
    
    type: netapp-cloudmanager:NssAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NssAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NssAccountArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NssAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NssAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NssAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var nssAccountResource = new NetappCloudmanager.NssAccount("nssAccountResource", new()
    {
        ClientId = "string",
        Password = "string",
        Username = "string",
        NssAccountId = "string",
    });
    
    example, err := netappcloudmanager.NewNssAccount(ctx, "nssAccountResource", &netappcloudmanager.NssAccountArgs{
    	ClientId:     pulumi.String("string"),
    	Password:     pulumi.String("string"),
    	Username:     pulumi.String("string"),
    	NssAccountId: pulumi.String("string"),
    })
    
    var nssAccountResource = new NssAccount("nssAccountResource", NssAccountArgs.builder()
        .clientId("string")
        .password("string")
        .username("string")
        .nssAccountId("string")
        .build());
    
    nss_account_resource = netapp_cloudmanager.NssAccount("nssAccountResource",
        client_id="string",
        password="string",
        username="string",
        nss_account_id="string")
    
    const nssAccountResource = new netapp_cloudmanager.NssAccount("nssAccountResource", {
        clientId: "string",
        password: "string",
        username: "string",
        nssAccountId: "string",
    });
    
    type: netapp-cloudmanager:NssAccount
    properties:
        clientId: string
        nssAccountId: string
        password: string
        username: string
    

    NssAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NssAccount resource accepts the following input properties:

    ClientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    Password string
    NSS password. Not required in data source.
    Username string
    NSS username. Not required in data source.
    NssAccountId string
    The unique identifier of the account.
    ClientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    Password string
    NSS password. Not required in data source.
    Username string
    NSS username. Not required in data source.
    NssAccountId string
    The unique identifier of the account.
    clientId String
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    password String
    NSS password. Not required in data source.
    username String
    NSS username. Not required in data source.
    nssAccountId String
    The unique identifier of the account.
    clientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    password string
    NSS password. Not required in data source.
    username string
    NSS username. Not required in data source.
    nssAccountId string
    The unique identifier of the account.
    client_id str
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    password str
    NSS password. Not required in data source.
    username str
    NSS username. Not required in data source.
    nss_account_id str
    The unique identifier of the account.
    clientId String
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    password String
    NSS password. Not required in data source.
    username String
    NSS username. Not required in data source.
    nssAccountId String
    The unique identifier of the account.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NssAccount resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NssAccount Resource

    Get an existing NssAccount resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NssAccountState, opts?: CustomResourceOptions): NssAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_id: Optional[str] = None,
            nss_account_id: Optional[str] = None,
            password: Optional[str] = None,
            username: Optional[str] = None) -> NssAccount
    func GetNssAccount(ctx *Context, name string, id IDInput, state *NssAccountState, opts ...ResourceOption) (*NssAccount, error)
    public static NssAccount Get(string name, Input<string> id, NssAccountState? state, CustomResourceOptions? opts = null)
    public static NssAccount get(String name, Output<String> id, NssAccountState state, CustomResourceOptions options)
    resources:  _:    type: netapp-cloudmanager:NssAccount    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    NssAccountId string
    The unique identifier of the account.
    Password string
    NSS password. Not required in data source.
    Username string
    NSS username. Not required in data source.
    ClientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    NssAccountId string
    The unique identifier of the account.
    Password string
    NSS password. Not required in data source.
    Username string
    NSS username. Not required in data source.
    clientId String
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    nssAccountId String
    The unique identifier of the account.
    password String
    NSS password. Not required in data source.
    username String
    NSS username. Not required in data source.
    clientId string
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    nssAccountId string
    The unique identifier of the account.
    password string
    NSS password. Not required in data source.
    username string
    NSS username. Not required in data source.
    client_id str
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    nss_account_id str
    The unique identifier of the account.
    password str
    NSS password. Not required in data source.
    username str
    NSS username. Not required in data source.
    clientId String
    The client ID of the Cloud Manager Connector. You can find the ID from a previous create Connector action as shown in the example, or from the Connector tab on https://console.bluexp.netapp.com/.
    nssAccountId String
    The unique identifier of the account.
    password String
    NSS password. Not required in data source.
    username String
    NSS username. Not required in data source.

    Package Details

    Repository
    netapp-cloudmanager netapp/terraform-provider-netapp-cloudmanager
    License
    Notes
    This Pulumi package is based on the netapp-cloudmanager Terraform Provider.
    netapp-cloudmanager logo
    netapp-cloudmanager 25.3.0 published on Monday, Apr 14, 2025 by netapp