Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.OspGateway.getAddress
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Address resource in Oracle Cloud Infrastructure Osp Gateway service.
Get the address by id for the compartment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddress = oci.OspGateway.getAddress({
addressId: testAddres.id,
compartmentId: compartmentId,
ospHomeRegion: addressOspHomeRegion,
});
import pulumi
import pulumi_oci as oci
test_address = oci.OspGateway.get_address(address_id=test_addres["id"],
compartment_id=compartment_id,
osp_home_region=address_osp_home_region)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/OspGateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := OspGateway.GetAddress(ctx, &ospgateway.GetAddressArgs{
AddressId: testAddres.Id,
CompartmentId: compartmentId,
OspHomeRegion: addressOspHomeRegion,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAddress = Oci.OspGateway.GetAddress.Invoke(new()
{
AddressId = testAddres.Id,
CompartmentId = compartmentId,
OspHomeRegion = addressOspHomeRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OspGateway.OspGatewayFunctions;
import com.pulumi.oci.OspGateway.inputs.GetAddressArgs;
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 testAddress = OspGatewayFunctions.getAddress(GetAddressArgs.builder()
.addressId(testAddres.id())
.compartmentId(compartmentId)
.ospHomeRegion(addressOspHomeRegion)
.build());
}
}
variables:
testAddress:
fn::invoke:
Function: oci:OspGateway:getAddress
Arguments:
addressId: ${testAddres.id}
compartmentId: ${compartmentId}
ospHomeRegion: ${addressOspHomeRegion}
Using getAddress
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 getAddress(args: GetAddressArgs, opts?: InvokeOptions): Promise<GetAddressResult>
function getAddressOutput(args: GetAddressOutputArgs, opts?: InvokeOptions): Output<GetAddressResult>
def get_address(address_id: Optional[str] = None,
compartment_id: Optional[str] = None,
osp_home_region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAddressResult
def get_address_output(address_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
osp_home_region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddressResult]
func GetAddress(ctx *Context, args *GetAddressArgs, opts ...InvokeOption) (*GetAddressResult, error)
func GetAddressOutput(ctx *Context, args *GetAddressOutputArgs, opts ...InvokeOption) GetAddressResultOutput
> Note: This function is named GetAddress
in the Go SDK.
public static class GetAddress
{
public static Task<GetAddressResult> InvokeAsync(GetAddressArgs args, InvokeOptions? opts = null)
public static Output<GetAddressResult> Invoke(GetAddressInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAddressResult> getAddress(GetAddressArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OspGateway/getAddress:getAddress
arguments:
# arguments dictionary
The following arguments are supported:
- Address
Id string - The identifier of the address.
- Compartment
Id string - The OCID of the compartment.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- Address
Id string - The identifier of the address.
- Compartment
Id string - The OCID of the compartment.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- address
Id String - The identifier of the address.
- compartment
Id String - The OCID of the compartment.
- osp
Home StringRegion - The home region's public name of the logged in user.
- address
Id string - The identifier of the address.
- compartment
Id string - The OCID of the compartment.
- osp
Home stringRegion - The home region's public name of the logged in user.
- address_
id str - The identifier of the address.
- compartment_
id str - The OCID of the compartment.
- osp_
home_ strregion - The home region's public name of the logged in user.
- address
Id String - The identifier of the address.
- compartment
Id String - The OCID of the compartment.
- osp
Home StringRegion - The home region's public name of the logged in user.
getAddress Result
The following output properties are available:
- Address
Id string - Address
Key string - Address identifier.
- City string
- Name of the city.
- Company
Name string - Name of the customer company.
- Compartment
Id string - Contributor
Class string - Contributor class of the customer company.
- Country string
- Country of the address.
- County string
- County of the address.
- Department
Name string - Department name of the customer company.
- Email
Address string - Contact person email address.
- First
Name string - First name of the contact person.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Number string - Internal number of the customer company.
- Job
Title string - Job title of the contact person.
- Last
Name string - Last name of the contact person.
- Line1 string
- Address line 1.
- Line2 string
- Address line 2.
- Line3 string
- Address line 3.
- Line4 string
- Address line 4.
- Middle
Name string - Middle name of the contact person.
- Municipal
Inscription string - Municipal Inscription.
- Osp
Home stringRegion - Phone
Country stringCode - Phone country code of the contact person.
- Phone
Number string - Phone number of the contact person.
- Postal
Code string - Post code of the address.
- Province string
- Province of the address.
- State string
- State of the address.
- State
Inscription string - State Inscription.
- Street
Name string - Street name of the address.
- Street
Number string - Street number of the address.
- Address
Id string - Address
Key string - Address identifier.
- City string
- Name of the city.
- Company
Name string - Name of the customer company.
- Compartment
Id string - Contributor
Class string - Contributor class of the customer company.
- Country string
- Country of the address.
- County string
- County of the address.
- Department
Name string - Department name of the customer company.
- Email
Address string - Contact person email address.
- First
Name string - First name of the contact person.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Number string - Internal number of the customer company.
- Job
Title string - Job title of the contact person.
- Last
Name string - Last name of the contact person.
- Line1 string
- Address line 1.
- Line2 string
- Address line 2.
- Line3 string
- Address line 3.
- Line4 string
- Address line 4.
- Middle
Name string - Middle name of the contact person.
- Municipal
Inscription string - Municipal Inscription.
- Osp
Home stringRegion - Phone
Country stringCode - Phone country code of the contact person.
- Phone
Number string - Phone number of the contact person.
- Postal
Code string - Post code of the address.
- Province string
- Province of the address.
- State string
- State of the address.
- State
Inscription string - State Inscription.
- Street
Name string - Street name of the address.
- Street
Number string - Street number of the address.
- address
Id String - address
Key String - Address identifier.
- city String
- Name of the city.
- company
Name String - Name of the customer company.
- compartment
Id String - contributor
Class String - Contributor class of the customer company.
- country String
- Country of the address.
- county String
- County of the address.
- department
Name String - Department name of the customer company.
- email
Address String - Contact person email address.
- first
Name String - First name of the contact person.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Number String - Internal number of the customer company.
- job
Title String - Job title of the contact person.
- last
Name String - Last name of the contact person.
- line1 String
- Address line 1.
- line2 String
- Address line 2.
- line3 String
- Address line 3.
- line4 String
- Address line 4.
- middle
Name String - Middle name of the contact person.
- municipal
Inscription String - Municipal Inscription.
- osp
Home StringRegion - phone
Country StringCode - Phone country code of the contact person.
- phone
Number String - Phone number of the contact person.
- postal
Code String - Post code of the address.
- province String
- Province of the address.
- state String
- State of the address.
- state
Inscription String - State Inscription.
- street
Name String - Street name of the address.
- street
Number String - Street number of the address.
- address
Id string - address
Key string - Address identifier.
- city string
- Name of the city.
- company
Name string - Name of the customer company.
- compartment
Id string - contributor
Class string - Contributor class of the customer company.
- country string
- Country of the address.
- county string
- County of the address.
- department
Name string - Department name of the customer company.
- email
Address string - Contact person email address.
- first
Name string - First name of the contact person.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Number string - Internal number of the customer company.
- job
Title string - Job title of the contact person.
- last
Name string - Last name of the contact person.
- line1 string
- Address line 1.
- line2 string
- Address line 2.
- line3 string
- Address line 3.
- line4 string
- Address line 4.
- middle
Name string - Middle name of the contact person.
- municipal
Inscription string - Municipal Inscription.
- osp
Home stringRegion - phone
Country stringCode - Phone country code of the contact person.
- phone
Number string - Phone number of the contact person.
- postal
Code string - Post code of the address.
- province string
- Province of the address.
- state string
- State of the address.
- state
Inscription string - State Inscription.
- street
Name string - Street name of the address.
- street
Number string - Street number of the address.
- address_
id str - address_
key str - Address identifier.
- city str
- Name of the city.
- company_
name str - Name of the customer company.
- compartment_
id str - contributor_
class str - Contributor class of the customer company.
- country str
- Country of the address.
- county str
- County of the address.
- department_
name str - Department name of the customer company.
- email_
address str - Contact person email address.
- first_
name str - First name of the contact person.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
number str - Internal number of the customer company.
- job_
title str - Job title of the contact person.
- last_
name str - Last name of the contact person.
- line1 str
- Address line 1.
- line2 str
- Address line 2.
- line3 str
- Address line 3.
- line4 str
- Address line 4.
- middle_
name str - Middle name of the contact person.
- municipal_
inscription str - Municipal Inscription.
- osp_
home_ strregion - phone_
country_ strcode - Phone country code of the contact person.
- phone_
number str - Phone number of the contact person.
- postal_
code str - Post code of the address.
- province str
- Province of the address.
- state str
- State of the address.
- state_
inscription str - State Inscription.
- street_
name str - Street name of the address.
- street_
number str - Street number of the address.
- address
Id String - address
Key String - Address identifier.
- city String
- Name of the city.
- company
Name String - Name of the customer company.
- compartment
Id String - contributor
Class String - Contributor class of the customer company.
- country String
- Country of the address.
- county String
- County of the address.
- department
Name String - Department name of the customer company.
- email
Address String - Contact person email address.
- first
Name String - First name of the contact person.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Number String - Internal number of the customer company.
- job
Title String - Job title of the contact person.
- last
Name String - Last name of the contact person.
- line1 String
- Address line 1.
- line2 String
- Address line 2.
- line3 String
- Address line 3.
- line4 String
- Address line 4.
- middle
Name String - Middle name of the contact person.
- municipal
Inscription String - Municipal Inscription.
- osp
Home StringRegion - phone
Country StringCode - Phone country code of the contact person.
- phone
Number String - Phone number of the contact person.
- postal
Code String - Post code of the address.
- province String
- Province of the address.
- state String
- State of the address.
- state
Inscription String - State Inscription.
- street
Name String - Street name of the address.
- street
Number String - Street number of the address.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi