1. Packages
  2. Platform Provider
  3. API Docs
  4. MyjfrogIpAllowlist
platform 2.2.2 published on Thursday, Apr 3, 2025 by jfrog

platform.MyjfrogIpAllowlist

Explore with Pulumi AI

Provides a MyJFrog IP allowlist resource to manage list of allow IP/CIDR addresses. To use this resource, you need an access token. Only a Primary Admin can generate MyJFrog tokens. For more information, see Generate a Token in MyJFrog.

->This resource is supported only on the Cloud (SaaS) platform.

~>The rate limit is 5 times per hour for actions that result in a successful outcome (for Create, Update, and Delete actions). See Allowlist REST API for full list of limitations.

!>This resource is being deprecated and moved to the new provider jfrog/myjfrog. Use myjfrog_ip_allowlist resource there instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as platform from "@pulumi/platform";

const myjfrog_ip_allowlist = new platform.MyjfrogIpAllowlist("myjfrog-ip-allowlist", {
    ips: [
        "1.1.1.7/1",
        "2.2.2.7/1",
    ],
    serverName: "my-jpd-server-name",
});
Copy
import pulumi
import pulumi_platform as platform

myjfrog_ip_allowlist = platform.MyjfrogIpAllowlist("myjfrog-ip-allowlist",
    ips=[
        "1.1.1.7/1",
        "2.2.2.7/1",
    ],
    server_name="my-jpd-server-name")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/platform/v2/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.NewMyjfrogIpAllowlist(ctx, "myjfrog-ip-allowlist", &platform.MyjfrogIpAllowlistArgs{
			Ips: pulumi.StringArray{
				pulumi.String("1.1.1.7/1"),
				pulumi.String("2.2.2.7/1"),
			},
			ServerName: pulumi.String("my-jpd-server-name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Platform = Pulumi.Platform;

return await Deployment.RunAsync(() => 
{
    var myjfrog_ip_allowlist = new Platform.MyjfrogIpAllowlist("myjfrog-ip-allowlist", new()
    {
        Ips = new[]
        {
            "1.1.1.7/1",
            "2.2.2.7/1",
        },
        ServerName = "my-jpd-server-name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.platform.MyjfrogIpAllowlist;
import com.pulumi.platform.MyjfrogIpAllowlistArgs;
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 myjfrog_ip_allowlist = new MyjfrogIpAllowlist("myjfrog-ip-allowlist", MyjfrogIpAllowlistArgs.builder()
            .ips(            
                "1.1.1.7/1",
                "2.2.2.7/1")
            .serverName("my-jpd-server-name")
            .build());

    }
}
Copy
resources:
  myjfrog-ip-allowlist:
    type: platform:MyjfrogIpAllowlist
    properties:
      ips:
        - 1.1.1.7/1
        - 2.2.2.7/1
      serverName: my-jpd-server-name
Copy

Create MyjfrogIpAllowlist Resource

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

Constructor syntax

new MyjfrogIpAllowlist(name: string, args: MyjfrogIpAllowlistArgs, opts?: CustomResourceOptions);
@overload
def MyjfrogIpAllowlist(resource_name: str,
                       args: MyjfrogIpAllowlistArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def MyjfrogIpAllowlist(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       ips: Optional[Sequence[str]] = None,
                       server_name: Optional[str] = None)
func NewMyjfrogIpAllowlist(ctx *Context, name string, args MyjfrogIpAllowlistArgs, opts ...ResourceOption) (*MyjfrogIpAllowlist, error)
public MyjfrogIpAllowlist(string name, MyjfrogIpAllowlistArgs args, CustomResourceOptions? opts = null)
public MyjfrogIpAllowlist(String name, MyjfrogIpAllowlistArgs args)
public MyjfrogIpAllowlist(String name, MyjfrogIpAllowlistArgs args, CustomResourceOptions options)
type: platform:MyjfrogIpAllowlist
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MyjfrogIpAllowlistArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MyjfrogIpAllowlistArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MyjfrogIpAllowlistArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MyjfrogIpAllowlistArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MyjfrogIpAllowlistArgs
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 myjfrogIpAllowlistResource = new Platform.MyjfrogIpAllowlist("myjfrogIpAllowlistResource", new()
{
    Ips = new[]
    {
        "string",
    },
    ServerName = "string",
});
Copy
example, err := platform.NewMyjfrogIpAllowlist(ctx, "myjfrogIpAllowlistResource", &platform.MyjfrogIpAllowlistArgs{
Ips: pulumi.StringArray{
pulumi.String("string"),
},
ServerName: pulumi.String("string"),
})
Copy
var myjfrogIpAllowlistResource = new MyjfrogIpAllowlist("myjfrogIpAllowlistResource", MyjfrogIpAllowlistArgs.builder()
    .ips("string")
    .serverName("string")
    .build());
Copy
myjfrog_ip_allowlist_resource = platform.MyjfrogIpAllowlist("myjfrogIpAllowlistResource",
    ips=["string"],
    server_name="string")
Copy
const myjfrogIpAllowlistResource = new platform.MyjfrogIpAllowlist("myjfrogIpAllowlistResource", {
    ips: ["string"],
    serverName: "string",
});
Copy
type: platform:MyjfrogIpAllowlist
properties:
    ips:
        - string
    serverName: string
Copy

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

Ips This property is required. List<string>
List of IPs for the JPD allowlist
ServerName This property is required. string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
Ips This property is required. []string
List of IPs for the JPD allowlist
ServerName This property is required. string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips This property is required. List<String>
List of IPs for the JPD allowlist
serverName This property is required. String
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips This property is required. string[]
List of IPs for the JPD allowlist
serverName This property is required. string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips This property is required. Sequence[str]
List of IPs for the JPD allowlist
server_name This property is required. str
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips This property is required. List<String>
List of IPs for the JPD allowlist
serverName This property is required. String
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.

Outputs

All input properties are implicitly available as output properties. Additionally, the MyjfrogIpAllowlist 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 MyjfrogIpAllowlist Resource

Get an existing MyjfrogIpAllowlist 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?: MyjfrogIpAllowlistState, opts?: CustomResourceOptions): MyjfrogIpAllowlist
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ips: Optional[Sequence[str]] = None,
        server_name: Optional[str] = None) -> MyjfrogIpAllowlist
func GetMyjfrogIpAllowlist(ctx *Context, name string, id IDInput, state *MyjfrogIpAllowlistState, opts ...ResourceOption) (*MyjfrogIpAllowlist, error)
public static MyjfrogIpAllowlist Get(string name, Input<string> id, MyjfrogIpAllowlistState? state, CustomResourceOptions? opts = null)
public static MyjfrogIpAllowlist get(String name, Output<String> id, MyjfrogIpAllowlistState state, CustomResourceOptions options)
resources:  _:    type: platform:MyjfrogIpAllowlist    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Ips List<string>
List of IPs for the JPD allowlist
ServerName string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
Ips []string
List of IPs for the JPD allowlist
ServerName string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips List<String>
List of IPs for the JPD allowlist
serverName String
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips string[]
List of IPs for the JPD allowlist
serverName string
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips Sequence[str]
List of IPs for the JPD allowlist
server_name str
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.
ips List<String>
List of IPs for the JPD allowlist
serverName String
Name of the server. If your JFrog URL is myserver.jfrog.io, the server_name is myserver.

Import

$ pulumi import platform:index/myjfrogIpAllowlist:MyjfrogIpAllowlist myjfrog-ip-allowlist jpd-server-name
Copy

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

Package Details

Repository
platform jfrog/terraform-provider-platform
License
Notes
This Pulumi package is based on the platform Terraform Provider.