cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
cloudfoundry.getIsolationSegment
Explore with Pulumi AI
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
Gets information on a Cloud Foundry Isolation segment.
Example Usage
The following example looks up a segment named ‘public-exposure’.
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const _public = cloudfoundry.getIsolationSegment({
name: "public_exposure",
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
public = cloudfoundry.get_isolation_segment(name="public_exposure")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfoundry.LookupIsolationSegment(ctx, &cloudfoundry.LookupIsolationSegmentArgs{
Name: "public_exposure",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var @public = Cloudfoundry.GetIsolationSegment.Invoke(new()
{
Name = "public_exposure",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudfoundry.CloudfoundryFunctions;
import com.pulumi.cloudfoundry.inputs.GetIsolationSegmentArgs;
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 public = CloudfoundryFunctions.getIsolationSegment(GetIsolationSegmentArgs.builder()
.name("public_exposure")
.build());
}
}
variables:
public:
fn::invoke:
function: cloudfoundry:getIsolationSegment
arguments:
name: public_exposure
Using getIsolationSegment
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 getIsolationSegment(args: GetIsolationSegmentArgs, opts?: InvokeOptions): Promise<GetIsolationSegmentResult>
function getIsolationSegmentOutput(args: GetIsolationSegmentOutputArgs, opts?: InvokeOptions): Output<GetIsolationSegmentResult>
def get_isolation_segment(annotations: Optional[Mapping[str, str]] = None,
id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsolationSegmentResult
def get_isolation_segment_output(annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsolationSegmentResult]
func LookupIsolationSegment(ctx *Context, args *LookupIsolationSegmentArgs, opts ...InvokeOption) (*LookupIsolationSegmentResult, error)
func LookupIsolationSegmentOutput(ctx *Context, args *LookupIsolationSegmentOutputArgs, opts ...InvokeOption) LookupIsolationSegmentResultOutput
> Note: This function is named LookupIsolationSegment
in the Go SDK.
public static class GetIsolationSegment
{
public static Task<GetIsolationSegmentResult> InvokeAsync(GetIsolationSegmentArgs args, InvokeOptions? opts = null)
public static Output<GetIsolationSegmentResult> Invoke(GetIsolationSegmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsolationSegmentResult> getIsolationSegment(GetIsolationSegmentArgs args, InvokeOptions options)
public static Output<GetIsolationSegmentResult> getIsolationSegment(GetIsolationSegmentArgs args, InvokeOptions options)
fn::invoke:
function: cloudfoundry:index/getIsolationSegment:getIsolationSegment
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the segment to look up.
- Annotations Dictionary<string, string>
- Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
- Id string
- The GUID of the segment
- Labels Dictionary<string, string>
- Map of labels as described here. Works only on cloud foundry with api >= v3.63.
- name string
- The name of the segment to look up.
- annotations {[key: string]: string}
- Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
- id string
- The GUID of the segment
- labels {[key: string]: string}
- Map of labels as described here. Works only on cloud foundry with api >= v3.63.
getIsolationSegment Result
The following output properties are available:
Package Details
- Repository
- cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundry
Terraform Provider.
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community