Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.OspGateway.getAddressRule
Explore with Pulumi AI
This data source provides details about a specific Address Rule resource in Oracle Cloud Infrastructure Osp Gateway service.
Get the address rule for the compartment based on the country code
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddressRule = oci.OspGateway.getAddressRule({
compartmentId: compartmentId,
countryCode: addressRuleCountryCode,
ospHomeRegion: addressRuleOspHomeRegion,
});
import pulumi
import pulumi_oci as oci
test_address_rule = oci.OspGateway.get_address_rule(compartment_id=compartment_id,
country_code=address_rule_country_code,
osp_home_region=address_rule_osp_home_region)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OspGateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := OspGateway.GetAddressRule(ctx, &ospgateway.GetAddressRuleArgs{
CompartmentId: compartmentId,
CountryCode: addressRuleCountryCode,
OspHomeRegion: addressRuleOspHomeRegion,
}, 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 testAddressRule = Oci.OspGateway.GetAddressRule.Invoke(new()
{
CompartmentId = compartmentId,
CountryCode = addressRuleCountryCode,
OspHomeRegion = addressRuleOspHomeRegion,
});
});
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.GetAddressRuleArgs;
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 testAddressRule = OspGatewayFunctions.getAddressRule(GetAddressRuleArgs.builder()
.compartmentId(compartmentId)
.countryCode(addressRuleCountryCode)
.ospHomeRegion(addressRuleOspHomeRegion)
.build());
}
}
variables:
testAddressRule:
fn::invoke:
Function: oci:OspGateway:getAddressRule
Arguments:
compartmentId: ${compartmentId}
countryCode: ${addressRuleCountryCode}
ospHomeRegion: ${addressRuleOspHomeRegion}
Using getAddressRule
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 getAddressRule(args: GetAddressRuleArgs, opts?: InvokeOptions): Promise<GetAddressRuleResult>
function getAddressRuleOutput(args: GetAddressRuleOutputArgs, opts?: InvokeOptions): Output<GetAddressRuleResult>
def get_address_rule(compartment_id: Optional[str] = None,
country_code: Optional[str] = None,
osp_home_region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAddressRuleResult
def get_address_rule_output(compartment_id: Optional[pulumi.Input[str]] = None,
country_code: Optional[pulumi.Input[str]] = None,
osp_home_region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddressRuleResult]
func GetAddressRule(ctx *Context, args *GetAddressRuleArgs, opts ...InvokeOption) (*GetAddressRuleResult, error)
func GetAddressRuleOutput(ctx *Context, args *GetAddressRuleOutputArgs, opts ...InvokeOption) GetAddressRuleResultOutput
> Note: This function is named GetAddressRule
in the Go SDK.
public static class GetAddressRule
{
public static Task<GetAddressRuleResult> InvokeAsync(GetAddressRuleArgs args, InvokeOptions? opts = null)
public static Output<GetAddressRuleResult> Invoke(GetAddressRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAddressRuleResult> getAddressRule(GetAddressRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OspGateway/getAddressRule:getAddressRule
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Country
Code string - Country code for the address rule in ISO-3166-1 2-letter format.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- Compartment
Id string - The OCID of the compartment.
- Country
Code string - Country code for the address rule in ISO-3166-1 2-letter format.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- compartment
Id String - The OCID of the compartment.
- country
Code String - Country code for the address rule in ISO-3166-1 2-letter format.
- osp
Home StringRegion - The home region's public name of the logged in user.
- compartment
Id string - The OCID of the compartment.
- country
Code string - Country code for the address rule in ISO-3166-1 2-letter format.
- osp
Home stringRegion - The home region's public name of the logged in user.
- compartment_
id str - The OCID of the compartment.
- country_
code str - Country code for the address rule in ISO-3166-1 2-letter format.
- osp_
home_ strregion - The home region's public name of the logged in user.
- compartment
Id String - The OCID of the compartment.
- country
Code String - Country code for the address rule in ISO-3166-1 2-letter format.
- osp
Home StringRegion - The home region's public name of the logged in user.
getAddressRule Result
The following output properties are available:
- Addresses
List<Get
Address Rule Address> - Address type rule information
- Compartment
Id string - Contacts
List<Get
Address Rule Contact> - Contact type rule information
- Country
Code string - Country code for the address rule in ISO-3166-1 2-letter format
- Id string
- The provider-assigned unique ID for this managed resource.
- Osp
Home stringRegion - Taxes
List<Get
Address Rule Tax> - Tax type rule information
- Addresses
[]Get
Address Rule Address - Address type rule information
- Compartment
Id string - Contacts
[]Get
Address Rule Contact - Contact type rule information
- Country
Code string - Country code for the address rule in ISO-3166-1 2-letter format
- Id string
- The provider-assigned unique ID for this managed resource.
- Osp
Home stringRegion - Taxes
[]Get
Address Rule Tax - Tax type rule information
- addresses
List<Get
Address Rule Address> - Address type rule information
- compartment
Id String - contacts
List<Get
Address Rule Contact> - Contact type rule information
- country
Code String - Country code for the address rule in ISO-3166-1 2-letter format
- id String
- The provider-assigned unique ID for this managed resource.
- osp
Home StringRegion - taxes
List<Get
Address Rule Tax> - Tax type rule information
- addresses
Get
Address Rule Address[] - Address type rule information
- compartment
Id string - contacts
Get
Address Rule Contact[] - Contact type rule information
- country
Code string - Country code for the address rule in ISO-3166-1 2-letter format
- id string
- The provider-assigned unique ID for this managed resource.
- osp
Home stringRegion - taxes
Get
Address Rule Tax[] - Tax type rule information
- addresses
Sequence[ospgateway.
Get Address Rule Address] - Address type rule information
- compartment_
id str - contacts
Sequence[ospgateway.
Get Address Rule Contact] - Contact type rule information
- country_
code str - Country code for the address rule in ISO-3166-1 2-letter format
- id str
- The provider-assigned unique ID for this managed resource.
- osp_
home_ strregion - taxes
Sequence[ospgateway.
Get Address Rule Tax] - Tax type rule information
- addresses List<Property Map>
- Address type rule information
- compartment
Id String - contacts List<Property Map>
- Contact type rule information
- country
Code String - Country code for the address rule in ISO-3166-1 2-letter format
- id String
- The provider-assigned unique ID for this managed resource.
- osp
Home StringRegion - taxes List<Property Map>
- Tax type rule information
Supporting Types
GetAddressRuleAddress
- Fields
List<Get
Address Rule Address Field> - Tax type rule fields
- Third
Party stringValidation - Third party validation.
- Fields
[]Get
Address Rule Address Field - Tax type rule fields
- Third
Party stringValidation - Third party validation.
- fields
List<Get
Address Rule Address Field> - Tax type rule fields
- third
Party StringValidation - Third party validation.
- fields
Get
Address Rule Address Field[] - Tax type rule fields
- third
Party stringValidation - Third party validation.
- fields
Sequence[ospgateway.
Get Address Rule Address Field] - Tax type rule fields
- third_
party_ strvalidation - Third party validation.
- fields List<Property Map>
- Tax type rule fields
- third
Party StringValidation - Third party validation.
GetAddressRuleAddressField
- Formats
List<Get
Address Rule Address Field Format> - Format information
- Is
Required bool - The given field is requeired or not
- Labels
List<Get
Address Rule Address Field Label> - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- Formats
[]Get
Address Rule Address Field Format - Format information
- Is
Required bool - The given field is requeired or not
- Labels
[]Get
Address Rule Address Field Label - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- formats
List<Get
Address Rule Address Field Format> - Format information
- is
Required Boolean - The given field is requeired or not
- labels
List<Get
Address Rule Address Field Label> - Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
- formats
Get
Address Rule Address Field Format[] - Format information
- is
Required boolean - The given field is requeired or not
- labels
Get
Address Rule Address Field Label[] - Label information
- language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name string
- User friendly name
- formats
Sequence[ospgateway.
Get Address Rule Address Field Format] - Format information
- is_
required bool - The given field is requeired or not
- labels
Sequence[ospgateway.
Get Address Rule Address Field Label] - Label information
- language str
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name str
- User friendly name
- formats List<Property Map>
- Format information
- is
Required Boolean - The given field is requeired or not
- labels List<Property Map>
- Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
GetAddressRuleAddressFieldFormat
GetAddressRuleAddressFieldLabel
GetAddressRuleContact
- Fields
List<Get
Address Rule Contact Field> - Tax type rule fields
- Fields
[]Get
Address Rule Contact Field - Tax type rule fields
- fields
List<Get
Address Rule Contact Field> - Tax type rule fields
- fields
Get
Address Rule Contact Field[] - Tax type rule fields
- fields
Sequence[ospgateway.
Get Address Rule Contact Field] - Tax type rule fields
- fields List<Property Map>
- Tax type rule fields
GetAddressRuleContactField
- Formats
List<Get
Address Rule Contact Field Format> - Format information
- Is
Required bool - The given field is requeired or not
- Labels
List<Get
Address Rule Contact Field Label> - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- Formats
[]Get
Address Rule Contact Field Format - Format information
- Is
Required bool - The given field is requeired or not
- Labels
[]Get
Address Rule Contact Field Label - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- formats
List<Get
Address Rule Contact Field Format> - Format information
- is
Required Boolean - The given field is requeired or not
- labels
List<Get
Address Rule Contact Field Label> - Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
- formats
Get
Address Rule Contact Field Format[] - Format information
- is
Required boolean - The given field is requeired or not
- labels
Get
Address Rule Contact Field Label[] - Label information
- language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name string
- User friendly name
- formats
Sequence[ospgateway.
Get Address Rule Contact Field Format] - Format information
- is_
required bool - The given field is requeired or not
- labels
Sequence[ospgateway.
Get Address Rule Contact Field Label] - Label information
- language str
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name str
- User friendly name
- formats List<Property Map>
- Format information
- is
Required Boolean - The given field is requeired or not
- labels List<Property Map>
- Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
GetAddressRuleContactFieldFormat
GetAddressRuleContactFieldLabel
GetAddressRuleTax
- Fields
List<Get
Address Rule Tax Field> - Tax type rule fields
- Value
Sets List<GetAddress Rule Tax Value Set> - Label value pair for allowed values. Used for GIRO
- Fields
[]Get
Address Rule Tax Field - Tax type rule fields
- Value
Sets []GetAddress Rule Tax Value Set - Label value pair for allowed values. Used for GIRO
- fields
List<Get
Address Rule Tax Field> - Tax type rule fields
- value
Sets List<GetAddress Rule Tax Value Set> - Label value pair for allowed values. Used for GIRO
- fields
Get
Address Rule Tax Field[] - Tax type rule fields
- value
Sets GetAddress Rule Tax Value Set[] - Label value pair for allowed values. Used for GIRO
- fields
Sequence[ospgateway.
Get Address Rule Tax Field] - Tax type rule fields
- value_
sets Sequence[ospgateway.Get Address Rule Tax Value Set] - Label value pair for allowed values. Used for GIRO
- fields List<Property Map>
- Tax type rule fields
- value
Sets List<Property Map> - Label value pair for allowed values. Used for GIRO
GetAddressRuleTaxField
- Formats
List<Get
Address Rule Tax Field Format> - Format information
- Is
Required bool - The given field is requeired or not
- Labels
List<Get
Address Rule Tax Field Label> - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- Formats
[]Get
Address Rule Tax Field Format - Format information
- Is
Required bool - The given field is requeired or not
- Labels
[]Get
Address Rule Tax Field Label - Label information
- Language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- Name string
- User friendly name
- formats
List<Get
Address Rule Tax Field Format> - Format information
- is
Required Boolean - The given field is requeired or not
- labels
List<Get
Address Rule Tax Field Label> - Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
- formats
Get
Address Rule Tax Field Format[] - Format information
- is
Required boolean - The given field is requeired or not
- labels
Get
Address Rule Tax Field Label[] - Label information
- language string
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name string
- User friendly name
- formats
Sequence[ospgateway.
Get Address Rule Tax Field Format] - Format information
- is_
required bool - The given field is requeired or not
- labels
Sequence[ospgateway.
Get Address Rule Tax Field Label] - Label information
- language str
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name str
- User friendly name
- formats List<Property Map>
- Format information
- is
Required Boolean - The given field is requeired or not
- labels List<Property Map>
- Label information
- language String
- Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)
- name String
- User friendly name
GetAddressRuleTaxFieldFormat
GetAddressRuleTaxFieldLabel
GetAddressRuleTaxValueSet
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.