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

netapp-cloudmanager.getCifsServer

Explore with Pulumi AI

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

    Provides a netapp-cloudmanager_cifs_server resource. This can be used to read a CIFS server on the Cloud Volume ONTAP system that requires a CIFS volume, based on an Active Directory or Workgroup. Requires existence of a Cloud Manager Connector and a Cloud Volumes ONTAP system.

    Example Usage

    S

    Read netapp-cloudmanager_cifs_server:

    import * as pulumi from "@pulumi/pulumi";
    import * as netapp_cloudmanager from "@pulumi/netapp-cloudmanager";
    
    const cvo_cifs = netapp_cloudmanager.getCifsServer({
        clientId: "AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
        workingEnvironmentName: "CvoName",
    });
    
    import pulumi
    import pulumi_netapp_cloudmanager as netapp_cloudmanager
    
    cvo_cifs = netapp_cloudmanager.get_cifs_server(client_id="AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
        working_environment_name="CvoName")
    
    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.LookupCifsServer(ctx, &netappcloudmanager.LookupCifsServerArgs{
    			ClientId:               "AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
    			WorkingEnvironmentName: pulumi.StringRef("CvoName"),
    		}, 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 cvo_cifs = NetappCloudmanager.GetCifsServer.Invoke(new()
        {
            ClientId = "AbCd6kdnLtvhwcgGvlFntdEHUfPJGc",
            WorkingEnvironmentName = "CvoName",
        });
    
    });
    
    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.GetCifsServerArgs;
    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 cvo-cifs = Netapp-cloudmanagerFunctions.getCifsServer(GetCifsServerArgs.builder()
                .clientId("AbCd6kdnLtvhwcgGvlFntdEHUfPJGc")
                .workingEnvironmentName("CvoName")
                .build());
    
        }
    }
    
    variables:
      cvo-cifs:
        fn::invoke:
          function: netapp-cloudmanager:getCifsServer
          arguments:
            clientId: AbCd6kdnLtvhwcgGvlFntdEHUfPJGc
            workingEnvironmentName: CvoName
    

    Using getCifsServer

    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 getCifsServer(args: GetCifsServerArgs, opts?: InvokeOptions): Promise<GetCifsServerResult>
    function getCifsServerOutput(args: GetCifsServerOutputArgs, opts?: InvokeOptions): Output<GetCifsServerResult>
    def get_cifs_server(client_id: Optional[str] = None,
                        dns_domain: Optional[str] = None,
                        domain: Optional[str] = None,
                        id: Optional[str] = None,
                        ip_addresses: Optional[Sequence[str]] = None,
                        is_workgroup: Optional[bool] = None,
                        netbios: Optional[str] = None,
                        organizational_unit: Optional[str] = None,
                        password: Optional[str] = None,
                        server_name: Optional[str] = None,
                        svm_name: Optional[str] = None,
                        username: Optional[str] = None,
                        workgroup_name: Optional[str] = None,
                        working_environment_id: Optional[str] = None,
                        working_environment_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCifsServerResult
    def get_cifs_server_output(client_id: Optional[pulumi.Input[str]] = None,
                        dns_domain: Optional[pulumi.Input[str]] = None,
                        domain: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        is_workgroup: Optional[pulumi.Input[bool]] = None,
                        netbios: Optional[pulumi.Input[str]] = None,
                        organizational_unit: Optional[pulumi.Input[str]] = None,
                        password: Optional[pulumi.Input[str]] = None,
                        server_name: Optional[pulumi.Input[str]] = None,
                        svm_name: Optional[pulumi.Input[str]] = None,
                        username: Optional[pulumi.Input[str]] = None,
                        workgroup_name: Optional[pulumi.Input[str]] = None,
                        working_environment_id: Optional[pulumi.Input[str]] = None,
                        working_environment_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCifsServerResult]
    func LookupCifsServer(ctx *Context, args *LookupCifsServerArgs, opts ...InvokeOption) (*LookupCifsServerResult, error)
    func LookupCifsServerOutput(ctx *Context, args *LookupCifsServerOutputArgs, opts ...InvokeOption) LookupCifsServerResultOutput

    > Note: This function is named LookupCifsServer in the Go SDK.

    public static class GetCifsServer 
    {
        public static Task<GetCifsServerResult> InvokeAsync(GetCifsServerArgs args, InvokeOptions? opts = null)
        public static Output<GetCifsServerResult> Invoke(GetCifsServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCifsServerResult> getCifsServer(GetCifsServerArgs args, InvokeOptions options)
    public static Output<GetCifsServerResult> getCifsServer(GetCifsServerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: netapp-cloudmanager:index/getCifsServer:getCifsServer
      arguments:
        # arguments dictionary

    The following 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/.
    DnsDomain string
    DNS domain name. For CIFS AD only.
    Domain string
    Active Directory domain name. For CIFS AD only.
    Id string
    The name of the SVM.
    IpAddresses List<string>
    DNS server IP addresses. For CIFS AD only.
    IsWorkgroup bool
    Netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    OrganizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    Password string
    ServerName string
    SvmName string
    The name of the SVM.
    Username string
    WorkgroupName string
    WorkingEnvironmentId string
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    WorkingEnvironmentName string
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.
    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/.
    DnsDomain string
    DNS domain name. For CIFS AD only.
    Domain string
    Active Directory domain name. For CIFS AD only.
    Id string
    The name of the SVM.
    IpAddresses []string
    DNS server IP addresses. For CIFS AD only.
    IsWorkgroup bool
    Netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    OrganizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    Password string
    ServerName string
    SvmName string
    The name of the SVM.
    Username string
    WorkgroupName string
    WorkingEnvironmentId string
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    WorkingEnvironmentName string
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.
    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/.
    dnsDomain String
    DNS domain name. For CIFS AD only.
    domain String
    Active Directory domain name. For CIFS AD only.
    id String
    The name of the SVM.
    ipAddresses List<String>
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup Boolean
    netbios String
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit String
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password String
    serverName String
    svmName String
    The name of the SVM.
    username String
    workgroupName String
    workingEnvironmentId String
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    workingEnvironmentName String
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.
    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/.
    dnsDomain string
    DNS domain name. For CIFS AD only.
    domain string
    Active Directory domain name. For CIFS AD only.
    id string
    The name of the SVM.
    ipAddresses string[]
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup boolean
    netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password string
    serverName string
    svmName string
    The name of the SVM.
    username string
    workgroupName string
    workingEnvironmentId string
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    workingEnvironmentName string
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.
    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/.
    dns_domain str
    DNS domain name. For CIFS AD only.
    domain str
    Active Directory domain name. For CIFS AD only.
    id str
    The name of the SVM.
    ip_addresses Sequence[str]
    DNS server IP addresses. For CIFS AD only.
    is_workgroup bool
    netbios str
    CIFS server NetBIOS name. For CIFS AD only.
    organizational_unit str
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password str
    server_name str
    svm_name str
    The name of the SVM.
    username str
    workgroup_name str
    working_environment_id str
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    working_environment_name str
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.
    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/.
    dnsDomain String
    DNS domain name. For CIFS AD only.
    domain String
    Active Directory domain name. For CIFS AD only.
    id String
    The name of the SVM.
    ipAddresses List<String>
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup Boolean
    netbios String
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit String
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password String
    serverName String
    svmName String
    The name of the SVM.
    username String
    workgroupName String
    workingEnvironmentId String
    The public ID of the working environment where the CIFS server will be created. This argument is optional if working_environment_name is provided. You can find the ID from a previous create Cloud Volumes ONTAP action as shown in the example, or from the information page of the Cloud Volumes ONTAP working environment on https://console.bluexp.netapp.com/.
    workingEnvironmentName String
    The working environment name where the CIFS server will be created. The argument will be ignored if working_environment_id is provided.

    getCifsServer Result

    The following output properties are available:

    ClientId string
    Id string
    The name of the SVM.
    DnsDomain string
    DNS domain name. For CIFS AD only.
    Domain string
    Active Directory domain name. For CIFS AD only.
    IpAddresses List<string>
    DNS server IP addresses. For CIFS AD only.
    IsWorkgroup bool
    Netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    OrganizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    Password string
    ServerName string
    SvmName string
    Username string
    WorkgroupName string
    WorkingEnvironmentId string
    WorkingEnvironmentName string
    ClientId string
    Id string
    The name of the SVM.
    DnsDomain string
    DNS domain name. For CIFS AD only.
    Domain string
    Active Directory domain name. For CIFS AD only.
    IpAddresses []string
    DNS server IP addresses. For CIFS AD only.
    IsWorkgroup bool
    Netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    OrganizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    Password string
    ServerName string
    SvmName string
    Username string
    WorkgroupName string
    WorkingEnvironmentId string
    WorkingEnvironmentName string
    clientId String
    id String
    The name of the SVM.
    dnsDomain String
    DNS domain name. For CIFS AD only.
    domain String
    Active Directory domain name. For CIFS AD only.
    ipAddresses List<String>
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup Boolean
    netbios String
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit String
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password String
    serverName String
    svmName String
    username String
    workgroupName String
    workingEnvironmentId String
    workingEnvironmentName String
    clientId string
    id string
    The name of the SVM.
    dnsDomain string
    DNS domain name. For CIFS AD only.
    domain string
    Active Directory domain name. For CIFS AD only.
    ipAddresses string[]
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup boolean
    netbios string
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit string
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password string
    serverName string
    svmName string
    username string
    workgroupName string
    workingEnvironmentId string
    workingEnvironmentName string
    client_id str
    id str
    The name of the SVM.
    dns_domain str
    DNS domain name. For CIFS AD only.
    domain str
    Active Directory domain name. For CIFS AD only.
    ip_addresses Sequence[str]
    DNS server IP addresses. For CIFS AD only.
    is_workgroup bool
    netbios str
    CIFS server NetBIOS name. For CIFS AD only.
    organizational_unit str
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password str
    server_name str
    svm_name str
    username str
    workgroup_name str
    working_environment_id str
    working_environment_name str
    clientId String
    id String
    The name of the SVM.
    dnsDomain String
    DNS domain name. For CIFS AD only.
    domain String
    Active Directory domain name. For CIFS AD only.
    ipAddresses List<String>
    DNS server IP addresses. For CIFS AD only.
    isWorkgroup Boolean
    netbios String
    CIFS server NetBIOS name. For CIFS AD only.
    organizationalUnit String
    Organizational Unit in which to register the CIFS server. For CIFS AD only.
    password String
    serverName String
    svmName String
    username String
    workgroupName String
    workingEnvironmentId String
    workingEnvironmentName String

    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