1. Packages
  2. Bitbucket Provider
  3. API Docs
  4. getIpRanges
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92

bitbucket.getIpRanges

Explore with Pulumi AI

Provides a way to fetch IP Ranges for whitelisting.

OAuth2 Scopes: none

Example Usage

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

const example = bitbucket.getIpRanges({});
Copy
import pulumi
import pulumi_bitbucket as bitbucket

example = bitbucket.get_ip_ranges()
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bitbucket.GetIpRanges(ctx, &bitbucket.GetIpRangesArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;

return await Deployment.RunAsync(() => 
{
    var example = Bitbucket.GetIpRanges.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetIpRangesArgs;
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 example = BitbucketFunctions.getIpRanges();

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: bitbucket:getIpRanges
      arguments: {}
Copy

Using getIpRanges

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 getIpRanges(args: GetIpRangesArgs, opts?: InvokeOptions): Promise<GetIpRangesResult>
function getIpRangesOutput(args: GetIpRangesOutputArgs, opts?: InvokeOptions): Output<GetIpRangesResult>
Copy
def get_ip_ranges(id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetIpRangesResult
def get_ip_ranges_output(id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetIpRangesResult]
Copy
func GetIpRanges(ctx *Context, args *GetIpRangesArgs, opts ...InvokeOption) (*GetIpRangesResult, error)
func GetIpRangesOutput(ctx *Context, args *GetIpRangesOutputArgs, opts ...InvokeOption) GetIpRangesResultOutput
Copy

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

public static class GetIpRanges 
{
    public static Task<GetIpRangesResult> InvokeAsync(GetIpRangesArgs args, InvokeOptions? opts = null)
    public static Output<GetIpRangesResult> Invoke(GetIpRangesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIpRangesResult> getIpRanges(GetIpRangesArgs args, InvokeOptions options)
public static Output<GetIpRangesResult> getIpRanges(GetIpRangesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: bitbucket:index/getIpRanges:getIpRanges
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Id string
id String
id string
id str
id String

getIpRanges Result

The following output properties are available:

Id string
Ranges List<GetIpRangesRange>
A Set of IP Ranges. See Ranges below.
Id string
Ranges []GetIpRangesRange
A Set of IP Ranges. See Ranges below.
id String
ranges List<GetIpRangesRange>
A Set of IP Ranges. See Ranges below.
id string
ranges GetIpRangesRange[]
A Set of IP Ranges. See Ranges below.
id str
ranges Sequence[GetIpRangesRange]
A Set of IP Ranges. See Ranges below.
id String
ranges List<Property Map>
A Set of IP Ranges. See Ranges below.

Supporting Types

GetIpRangesRange

Cidr This property is required. string
The CIDR of the range.
Directions This property is required. List<string>
A Set of directions (Ingress/Egress) the range is associated with.
Mask This property is required. string
More mask of the range.
MaskLen This property is required. double
The make length of the range.
Network This property is required. string
The network of the range.
Perimeter This property is required. string
The allowed perimeter of the range.
Products This property is required. List<string>
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
Regions This property is required. List<string>
A Set of regions the range is associated with.
Cidr This property is required. string
The CIDR of the range.
Directions This property is required. []string
A Set of directions (Ingress/Egress) the range is associated with.
Mask This property is required. string
More mask of the range.
MaskLen This property is required. float64
The make length of the range.
Network This property is required. string
The network of the range.
Perimeter This property is required. string
The allowed perimeter of the range.
Products This property is required. []string
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
Regions This property is required. []string
A Set of regions the range is associated with.
cidr This property is required. String
The CIDR of the range.
directions This property is required. List<String>
A Set of directions (Ingress/Egress) the range is associated with.
mask This property is required. String
More mask of the range.
maskLen This property is required. Double
The make length of the range.
network This property is required. String
The network of the range.
perimeter This property is required. String
The allowed perimeter of the range.
products This property is required. List<String>
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
regions This property is required. List<String>
A Set of regions the range is associated with.
cidr This property is required. string
The CIDR of the range.
directions This property is required. string[]
A Set of directions (Ingress/Egress) the range is associated with.
mask This property is required. string
More mask of the range.
maskLen This property is required. number
The make length of the range.
network This property is required. string
The network of the range.
perimeter This property is required. string
The allowed perimeter of the range.
products This property is required. string[]
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
regions This property is required. string[]
A Set of regions the range is associated with.
cidr This property is required. str
The CIDR of the range.
directions This property is required. Sequence[str]
A Set of directions (Ingress/Egress) the range is associated with.
mask This property is required. str
More mask of the range.
mask_len This property is required. float
The make length of the range.
network This property is required. str
The network of the range.
perimeter This property is required. str
The allowed perimeter of the range.
products This property is required. Sequence[str]
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
regions This property is required. Sequence[str]
A Set of regions the range is associated with.
cidr This property is required. String
The CIDR of the range.
directions This property is required. List<String>
A Set of directions (Ingress/Egress) the range is associated with.
mask This property is required. String
More mask of the range.
maskLen This property is required. Number
The make length of the range.
network This property is required. String
The network of the range.
perimeter This property is required. String
The allowed perimeter of the range.
products This property is required. List<String>
A Set of Atlasian products (Bitbucket, Jira, etc) the range is associated with.
regions This property is required. List<String>
A Set of regions the range is associated with.

Package Details

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