1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. ProjectServiceAccountAccessListEntry
MongoDB Atlas v4.2.0 published on Friday, Jan 23, 2026 by Pulumi
mongodbatlas logo
MongoDB Atlas v4.2.0 published on Friday, Jan 23, 2026 by Pulumi

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const thisProjectServiceAccount = new mongodbatlas.ProjectServiceAccount("this", {
        projectId: projectId,
        name: "example-project-service-account",
        description: "Example Project Service Account",
        roles: ["GROUP_READ_ONLY"],
        secretExpiresAfterHours: 2160,
    });
    // Add IP Access List Entry to Project Service Account using CIDR Block
    const cidr = new mongodbatlas.ProjectServiceAccountAccessListEntry("cidr", {
        projectId: projectId,
        clientId: thisProjectServiceAccount.clientId,
        cidrBlock: "1.2.3.4/32",
    });
    // Add IP Access List Entry to Project Service Account using IP Address
    const ip = new mongodbatlas.ProjectServiceAccountAccessListEntry("ip", {
        projectId: projectId,
        clientId: thisProjectServiceAccount.clientId,
        ipAddress: "2.3.4.5",
    });
    // Data source to read a single Access List entry for the Project Service Account
    const _this = mongodbatlas.getProjectServiceAccountAccessListEntryOutput({
        projectId: cidr.projectId,
        clientId: cidr.clientId,
        cidrBlock: cidr.cidrBlock,
    });
    export const accessListEntryCidrBlock = _this.apply(_this => _this.cidrBlock);
    // Data source to read all Access List entries for the Project Service Account
    const thisGetProjectServiceAccountAccessListEntries = mongodbatlas.getProjectServiceAccountAccessListEntriesOutput({
        projectId: thisProjectServiceAccount.projectId,
        clientId: thisProjectServiceAccount.clientId,
    });
    export const allAccessListEntries = thisGetProjectServiceAccountAccessListEntries.apply(thisGetProjectServiceAccountAccessListEntries => thisGetProjectServiceAccountAccessListEntries.results);
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    this_project_service_account = mongodbatlas.ProjectServiceAccount("this",
        project_id=project_id,
        name="example-project-service-account",
        description="Example Project Service Account",
        roles=["GROUP_READ_ONLY"],
        secret_expires_after_hours=2160)
    # Add IP Access List Entry to Project Service Account using CIDR Block
    cidr = mongodbatlas.ProjectServiceAccountAccessListEntry("cidr",
        project_id=project_id,
        client_id=this_project_service_account.client_id,
        cidr_block="1.2.3.4/32")
    # Add IP Access List Entry to Project Service Account using IP Address
    ip = mongodbatlas.ProjectServiceAccountAccessListEntry("ip",
        project_id=project_id,
        client_id=this_project_service_account.client_id,
        ip_address="2.3.4.5")
    # Data source to read a single Access List entry for the Project Service Account
    this = mongodbatlas.get_project_service_account_access_list_entry_output(project_id=cidr.project_id,
        client_id=cidr.client_id,
        cidr_block=cidr.cidr_block)
    pulumi.export("accessListEntryCidrBlock", this.cidr_block)
    # Data source to read all Access List entries for the Project Service Account
    this_get_project_service_account_access_list_entries = mongodbatlas.get_project_service_account_access_list_entries_output(project_id=this_project_service_account.project_id,
        client_id=this_project_service_account.client_id)
    pulumi.export("allAccessListEntries", this_get_project_service_account_access_list_entries.results)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		thisProjectServiceAccount, err := mongodbatlas.NewProjectServiceAccount(ctx, "this", &mongodbatlas.ProjectServiceAccountArgs{
    			ProjectId:   pulumi.Any(projectId),
    			Name:        pulumi.String("example-project-service-account"),
    			Description: pulumi.String("Example Project Service Account"),
    			Roles: pulumi.StringArray{
    				pulumi.String("GROUP_READ_ONLY"),
    			},
    			SecretExpiresAfterHours: pulumi.Int(2160),
    		})
    		if err != nil {
    			return err
    		}
    		// Add IP Access List Entry to Project Service Account using CIDR Block
    		cidr, err := mongodbatlas.NewProjectServiceAccountAccessListEntry(ctx, "cidr", &mongodbatlas.ProjectServiceAccountAccessListEntryArgs{
    			ProjectId: pulumi.Any(projectId),
    			ClientId:  thisProjectServiceAccount.ClientId,
    			CidrBlock: pulumi.String("1.2.3.4/32"),
    		})
    		if err != nil {
    			return err
    		}
    		// Add IP Access List Entry to Project Service Account using IP Address
    		_, err = mongodbatlas.NewProjectServiceAccountAccessListEntry(ctx, "ip", &mongodbatlas.ProjectServiceAccountAccessListEntryArgs{
    			ProjectId: pulumi.Any(projectId),
    			ClientId:  thisProjectServiceAccount.ClientId,
    			IpAddress: pulumi.String("2.3.4.5"),
    		})
    		if err != nil {
    			return err
    		}
    		// Data source to read a single Access List entry for the Project Service Account
    		this := mongodbatlas.LookupProjectServiceAccountAccessListEntryOutput(ctx, mongodbatlas.GetProjectServiceAccountAccessListEntryOutputArgs{
    			ProjectId: cidr.ProjectId,
    			ClientId:  cidr.ClientId,
    			CidrBlock: cidr.CidrBlock,
    		}, nil)
    		ctx.Export("accessListEntryCidrBlock", this.ApplyT(func(this mongodbatlas.GetProjectServiceAccountAccessListEntryResult) (*string, error) {
    			return &this.CidrBlock, nil
    		}).(pulumi.StringPtrOutput))
    		// Data source to read all Access List entries for the Project Service Account
    		thisGetProjectServiceAccountAccessListEntries := mongodbatlas.LookupProjectServiceAccountAccessListEntriesOutput(ctx, mongodbatlas.GetProjectServiceAccountAccessListEntriesOutputArgs{
    			ProjectId: thisProjectServiceAccount.ProjectId,
    			ClientId:  thisProjectServiceAccount.ClientId,
    		}, nil)
    		ctx.Export("allAccessListEntries", thisGetProjectServiceAccountAccessListEntries.ApplyT(func(thisGetProjectServiceAccountAccessListEntries mongodbatlas.GetProjectServiceAccountAccessListEntriesResult) ([]mongodbatlas.GetProjectServiceAccountAccessListEntriesResult, error) {
    			return []mongodbatlas.GetProjectServiceAccountAccessListEntriesResult(thisGetProjectServiceAccountAccessListEntries.Results), nil
    		}).([]mongodbatlas.GetProjectServiceAccountAccessListEntriesResultOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var thisProjectServiceAccount = new Mongodbatlas.ProjectServiceAccount("this", new()
        {
            ProjectId = projectId,
            Name = "example-project-service-account",
            Description = "Example Project Service Account",
            Roles = new[]
            {
                "GROUP_READ_ONLY",
            },
            SecretExpiresAfterHours = 2160,
        });
    
        // Add IP Access List Entry to Project Service Account using CIDR Block
        var cidr = new Mongodbatlas.ProjectServiceAccountAccessListEntry("cidr", new()
        {
            ProjectId = projectId,
            ClientId = thisProjectServiceAccount.ClientId,
            CidrBlock = "1.2.3.4/32",
        });
    
        // Add IP Access List Entry to Project Service Account using IP Address
        var ip = new Mongodbatlas.ProjectServiceAccountAccessListEntry("ip", new()
        {
            ProjectId = projectId,
            ClientId = thisProjectServiceAccount.ClientId,
            IpAddress = "2.3.4.5",
        });
    
        // Data source to read a single Access List entry for the Project Service Account
        var @this = Mongodbatlas.GetProjectServiceAccountAccessListEntry.Invoke(new()
        {
            ProjectId = cidr.ProjectId,
            ClientId = cidr.ClientId,
            CidrBlock = cidr.CidrBlock,
        });
    
        // Data source to read all Access List entries for the Project Service Account
        var thisGetProjectServiceAccountAccessListEntries = Mongodbatlas.GetProjectServiceAccountAccessListEntries.Invoke(new()
        {
            ProjectId = thisProjectServiceAccount.ProjectId,
            ClientId = thisProjectServiceAccount.ClientId,
        });
    
        return new Dictionary<string, object?>
        {
            ["accessListEntryCidrBlock"] = @this.Apply(@this => @this.Apply(getProjectServiceAccountAccessListEntryResult => getProjectServiceAccountAccessListEntryResult.CidrBlock)),
            ["allAccessListEntries"] = thisGetProjectServiceAccountAccessListEntries.Apply(getProjectServiceAccountAccessListEntriesResult => getProjectServiceAccountAccessListEntriesResult.Results),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mongodbatlas.ProjectServiceAccount;
    import com.pulumi.mongodbatlas.ProjectServiceAccountArgs;
    import com.pulumi.mongodbatlas.ProjectServiceAccountAccessListEntry;
    import com.pulumi.mongodbatlas.ProjectServiceAccountAccessListEntryArgs;
    import com.pulumi.mongodbatlas.MongodbatlasFunctions;
    import com.pulumi.mongodbatlas.inputs.GetProjectServiceAccountAccessListEntryArgs;
    import com.pulumi.mongodbatlas.inputs.GetProjectServiceAccountAccessListEntriesArgs;
    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 thisProjectServiceAccount = new ProjectServiceAccount("thisProjectServiceAccount", ProjectServiceAccountArgs.builder()
                .projectId(projectId)
                .name("example-project-service-account")
                .description("Example Project Service Account")
                .roles("GROUP_READ_ONLY")
                .secretExpiresAfterHours(2160)
                .build());
    
            // Add IP Access List Entry to Project Service Account using CIDR Block
            var cidr = new ProjectServiceAccountAccessListEntry("cidr", ProjectServiceAccountAccessListEntryArgs.builder()
                .projectId(projectId)
                .clientId(thisProjectServiceAccount.clientId())
                .cidrBlock("1.2.3.4/32")
                .build());
    
            // Add IP Access List Entry to Project Service Account using IP Address
            var ip = new ProjectServiceAccountAccessListEntry("ip", ProjectServiceAccountAccessListEntryArgs.builder()
                .projectId(projectId)
                .clientId(thisProjectServiceAccount.clientId())
                .ipAddress("2.3.4.5")
                .build());
    
            // Data source to read a single Access List entry for the Project Service Account
            final var this = MongodbatlasFunctions.getProjectServiceAccountAccessListEntry(GetProjectServiceAccountAccessListEntryArgs.builder()
                .projectId(cidr.projectId())
                .clientId(cidr.clientId())
                .cidrBlock(cidr.cidrBlock())
                .build());
    
            ctx.export("accessListEntryCidrBlock", this_.applyValue(_this_ -> _this_.cidrBlock()));
            // Data source to read all Access List entries for the Project Service Account
            final var thisGetProjectServiceAccountAccessListEntries = MongodbatlasFunctions.getProjectServiceAccountAccessListEntries(GetProjectServiceAccountAccessListEntriesArgs.builder()
                .projectId(thisProjectServiceAccount.projectId())
                .clientId(thisProjectServiceAccount.clientId())
                .build());
    
            ctx.export("allAccessListEntries", thisGetProjectServiceAccountAccessListEntries.applyValue(_thisGetProjectServiceAccountAccessListEntries -> _thisGetProjectServiceAccountAccessListEntries.results()));
        }
    }
    
    resources:
      thisProjectServiceAccount:
        type: mongodbatlas:ProjectServiceAccount
        name: this
        properties:
          projectId: ${projectId}
          name: example-project-service-account
          description: Example Project Service Account
          roles:
            - GROUP_READ_ONLY
          secretExpiresAfterHours: 2160 # 90 days
      # Add IP Access List Entry to Project Service Account using CIDR Block
      cidr:
        type: mongodbatlas:ProjectServiceAccountAccessListEntry
        properties:
          projectId: ${projectId}
          clientId: ${thisProjectServiceAccount.clientId}
          cidrBlock: 1.2.3.4/32
      # Add IP Access List Entry to Project Service Account using IP Address
      ip:
        type: mongodbatlas:ProjectServiceAccountAccessListEntry
        properties:
          projectId: ${projectId}
          clientId: ${thisProjectServiceAccount.clientId}
          ipAddress: 2.3.4.5
    variables:
      # Data source to read a single Access List entry for the Project Service Account
      this:
        fn::invoke:
          function: mongodbatlas:getProjectServiceAccountAccessListEntry
          arguments:
            projectId: ${cidr.projectId}
            clientId: ${cidr.clientId}
            cidrBlock: ${cidr.cidrBlock}
      # Data source to read all Access List entries for the Project Service Account
      thisGetProjectServiceAccountAccessListEntries:
        fn::invoke:
          function: mongodbatlas:getProjectServiceAccountAccessListEntries
          arguments:
            projectId: ${thisProjectServiceAccount.projectId}
            clientId: ${thisProjectServiceAccount.clientId}
    outputs:
      accessListEntryCidrBlock: ${this.cidrBlock}
      allAccessListEntries: ${thisGetProjectServiceAccountAccessListEntries.results}
    

    Create ProjectServiceAccountAccessListEntry Resource

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

    Constructor syntax

    new ProjectServiceAccountAccessListEntry(name: string, args: ProjectServiceAccountAccessListEntryArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectServiceAccountAccessListEntry(resource_name: str,
                                             args: ProjectServiceAccountAccessListEntryArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectServiceAccountAccessListEntry(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             client_id: Optional[str] = None,
                                             project_id: Optional[str] = None,
                                             cidr_block: Optional[str] = None,
                                             ip_address: Optional[str] = None)
    func NewProjectServiceAccountAccessListEntry(ctx *Context, name string, args ProjectServiceAccountAccessListEntryArgs, opts ...ResourceOption) (*ProjectServiceAccountAccessListEntry, error)
    public ProjectServiceAccountAccessListEntry(string name, ProjectServiceAccountAccessListEntryArgs args, CustomResourceOptions? opts = null)
    public ProjectServiceAccountAccessListEntry(String name, ProjectServiceAccountAccessListEntryArgs args)
    public ProjectServiceAccountAccessListEntry(String name, ProjectServiceAccountAccessListEntryArgs args, CustomResourceOptions options)
    
    type: mongodbatlas:ProjectServiceAccountAccessListEntry
    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 ProjectServiceAccountAccessListEntryArgs
    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 ProjectServiceAccountAccessListEntryArgs
    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 ProjectServiceAccountAccessListEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectServiceAccountAccessListEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectServiceAccountAccessListEntryArgs
    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 projectServiceAccountAccessListEntryResource = new Mongodbatlas.ProjectServiceAccountAccessListEntry("projectServiceAccountAccessListEntryResource", new()
    {
        ClientId = "string",
        ProjectId = "string",
        CidrBlock = "string",
        IpAddress = "string",
    });
    
    example, err := mongodbatlas.NewProjectServiceAccountAccessListEntry(ctx, "projectServiceAccountAccessListEntryResource", &mongodbatlas.ProjectServiceAccountAccessListEntryArgs{
    	ClientId:  pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	CidrBlock: pulumi.String("string"),
    	IpAddress: pulumi.String("string"),
    })
    
    var projectServiceAccountAccessListEntryResource = new ProjectServiceAccountAccessListEntry("projectServiceAccountAccessListEntryResource", ProjectServiceAccountAccessListEntryArgs.builder()
        .clientId("string")
        .projectId("string")
        .cidrBlock("string")
        .ipAddress("string")
        .build());
    
    project_service_account_access_list_entry_resource = mongodbatlas.ProjectServiceAccountAccessListEntry("projectServiceAccountAccessListEntryResource",
        client_id="string",
        project_id="string",
        cidr_block="string",
        ip_address="string")
    
    const projectServiceAccountAccessListEntryResource = new mongodbatlas.ProjectServiceAccountAccessListEntry("projectServiceAccountAccessListEntryResource", {
        clientId: "string",
        projectId: "string",
        cidrBlock: "string",
        ipAddress: "string",
    });
    
    type: mongodbatlas:ProjectServiceAccountAccessListEntry
    properties:
        cidrBlock: string
        clientId: string
        ipAddress: string
        projectId: string
    

    ProjectServiceAccountAccessListEntry 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 ProjectServiceAccountAccessListEntry resource accepts the following input properties:

    ClientId string
    The Client ID of the Service Account.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project.
    CidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    IpAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    ClientId string
    The Client ID of the Service Account.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project.
    CidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    IpAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    clientId String
    The Client ID of the Service Account.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project.
    cidrBlock String
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ipAddress String
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    clientId string
    The Client ID of the Service Account.
    projectId string
    Unique 24-hexadecimal digit string that identifies the project.
    cidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ipAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    client_id str
    The Client ID of the Service Account.
    project_id str
    Unique 24-hexadecimal digit string that identifies the project.
    cidr_block str
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ip_address str
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    clientId String
    The Client ID of the Service Account.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project.
    cidrBlock String
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ipAddress String
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.

    Outputs

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

    CreatedAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAddress string
    Network address that issued the most recent request to the API.
    LastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    RequestCount int
    The number of requests that has originated from this network address.
    CreatedAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAddress string
    Network address that issued the most recent request to the API.
    LastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    RequestCount int
    The number of requests that has originated from this network address.
    createdAt String
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAddress String
    Network address that issued the most recent request to the API.
    lastUsedAt String
    Date when the API received the most recent request that originated from this network address.
    requestCount Integer
    The number of requests that has originated from this network address.
    createdAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUsedAddress string
    Network address that issued the most recent request to the API.
    lastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    requestCount number
    The number of requests that has originated from this network address.
    created_at str
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    last_used_address str
    Network address that issued the most recent request to the API.
    last_used_at str
    Date when the API received the most recent request that originated from this network address.
    request_count int
    The number of requests that has originated from this network address.
    createdAt String
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAddress String
    Network address that issued the most recent request to the API.
    lastUsedAt String
    Date when the API received the most recent request that originated from this network address.
    requestCount Number
    The number of requests that has originated from this network address.

    Look up Existing ProjectServiceAccountAccessListEntry Resource

    Get an existing ProjectServiceAccountAccessListEntry 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?: ProjectServiceAccountAccessListEntryState, opts?: CustomResourceOptions): ProjectServiceAccountAccessListEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr_block: Optional[str] = None,
            client_id: Optional[str] = None,
            created_at: Optional[str] = None,
            ip_address: Optional[str] = None,
            last_used_address: Optional[str] = None,
            last_used_at: Optional[str] = None,
            project_id: Optional[str] = None,
            request_count: Optional[int] = None) -> ProjectServiceAccountAccessListEntry
    func GetProjectServiceAccountAccessListEntry(ctx *Context, name string, id IDInput, state *ProjectServiceAccountAccessListEntryState, opts ...ResourceOption) (*ProjectServiceAccountAccessListEntry, error)
    public static ProjectServiceAccountAccessListEntry Get(string name, Input<string> id, ProjectServiceAccountAccessListEntryState? state, CustomResourceOptions? opts = null)
    public static ProjectServiceAccountAccessListEntry get(String name, Output<String> id, ProjectServiceAccountAccessListEntryState state, CustomResourceOptions options)
    resources:  _:    type: mongodbatlas:ProjectServiceAccountAccessListEntry    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:
    CidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ClientId string
    The Client ID of the Service Account.
    CreatedAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    IpAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    LastUsedAddress string
    Network address that issued the most recent request to the API.
    LastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project.
    RequestCount int
    The number of requests that has originated from this network address.
    CidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    ClientId string
    The Client ID of the Service Account.
    CreatedAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    IpAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    LastUsedAddress string
    Network address that issued the most recent request to the API.
    LastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project.
    RequestCount int
    The number of requests that has originated from this network address.
    cidrBlock String
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    clientId String
    The Client ID of the Service Account.
    createdAt String
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress String
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    lastUsedAddress String
    Network address that issued the most recent request to the API.
    lastUsedAt String
    Date when the API received the most recent request that originated from this network address.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project.
    requestCount Integer
    The number of requests that has originated from this network address.
    cidrBlock string
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    clientId string
    The Client ID of the Service Account.
    createdAt string
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress string
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    lastUsedAddress string
    Network address that issued the most recent request to the API.
    lastUsedAt string
    Date when the API received the most recent request that originated from this network address.
    projectId string
    Unique 24-hexadecimal digit string that identifies the project.
    requestCount number
    The number of requests that has originated from this network address.
    cidr_block str
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    client_id str
    The Client ID of the Service Account.
    created_at str
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    ip_address str
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    last_used_address str
    Network address that issued the most recent request to the API.
    last_used_at str
    Date when the API received the most recent request that originated from this network address.
    project_id str
    Unique 24-hexadecimal digit string that identifies the project.
    request_count int
    The number of requests that has originated from this network address.
    cidrBlock String
    Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or ip_address, but not for both.
    clientId String
    The Client ID of the Service Account.
    createdAt String
    Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress String
    IP address to be added to the access list. You can set a value for this parameter or cidr_block, but not for both.
    lastUsedAddress String
    Network address that issued the most recent request to the API.
    lastUsedAt String
    Date when the API received the most recent request that originated from this network address.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project.
    requestCount Number
    The number of requests that has originated from this network address.

    Import

    Access List entries for Project Service Accounts can be imported using the project_id, client_id and cidr_block or ip_address, e.g.

    $ pulumi import mongodbatlas:index/projectServiceAccountAccessListEntry:ProjectServiceAccountAccessListEntry test 5d0f1f74cf09a29120e123cd-mdb_sa_id_1234567890abcdef12345678-10.242.88.0/21
    

    For more information, see Add Access List Entries for One Project Service Account in the MongoDB Atlas API documentation.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v4.2.0 published on Friday, Jan 23, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate