1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getListingTaxes
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

oci.Marketplace.getListingTaxes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

    This data source provides the list of Listing Taxes in Oracle Cloud Infrastructure Marketplace service.

    Returns list of all tax implications that current tenant may be liable to once they launch the listing.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testListingTaxes = oci.Marketplace.getListingTaxes({
        listingId: oci_marketplace_listing.test_listing.id,
        compartmentId: _var.compartment_id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_listing_taxes = oci.Marketplace.get_listing_taxes(listing_id=oci_marketplace_listing["test_listing"]["id"],
        compartment_id=var["compartment_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Marketplace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Marketplace.GetListingTaxes(ctx, &marketplace.GetListingTaxesArgs{
    			ListingId:     oci_marketplace_listing.Test_listing.Id,
    			CompartmentId: pulumi.StringRef(_var.Compartment_id),
    		}, 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 testListingTaxes = Oci.Marketplace.GetListingTaxes.Invoke(new()
        {
            ListingId = oci_marketplace_listing.Test_listing.Id,
            CompartmentId = @var.Compartment_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.MarketplaceFunctions;
    import com.pulumi.oci.Marketplace.inputs.GetListingTaxesArgs;
    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 testListingTaxes = MarketplaceFunctions.getListingTaxes(GetListingTaxesArgs.builder()
                .listingId(oci_marketplace_listing.test_listing().id())
                .compartmentId(var_.compartment_id())
                .build());
    
        }
    }
    
    variables:
      testListingTaxes:
        fn::invoke:
          Function: oci:Marketplace:getListingTaxes
          Arguments:
            listingId: ${oci_marketplace_listing.test_listing.id}
            compartmentId: ${var.compartment_id}
    

    Using getListingTaxes

    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 getListingTaxes(args: GetListingTaxesArgs, opts?: InvokeOptions): Promise<GetListingTaxesResult>
    function getListingTaxesOutput(args: GetListingTaxesOutputArgs, opts?: InvokeOptions): Output<GetListingTaxesResult>
    def get_listing_taxes(compartment_id: Optional[str] = None,
                          filters: Optional[Sequence[_marketplace.GetListingTaxesFilter]] = None,
                          listing_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetListingTaxesResult
    def get_listing_taxes_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetListingTaxesFilterArgs]]]] = None,
                          listing_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetListingTaxesResult]
    func GetListingTaxes(ctx *Context, args *GetListingTaxesArgs, opts ...InvokeOption) (*GetListingTaxesResult, error)
    func GetListingTaxesOutput(ctx *Context, args *GetListingTaxesOutputArgs, opts ...InvokeOption) GetListingTaxesResultOutput

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

    public static class GetListingTaxes 
    {
        public static Task<GetListingTaxesResult> InvokeAsync(GetListingTaxesArgs args, InvokeOptions? opts = null)
        public static Output<GetListingTaxesResult> Invoke(GetListingTaxesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetListingTaxesResult> getListingTaxes(GetListingTaxesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Marketplace/getListingTaxes:getListingTaxes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ListingId string
    The unique identifier for the listing.
    CompartmentId string
    The unique identifier for the compartment.
    Filters List<GetListingTaxesFilter>
    ListingId string
    The unique identifier for the listing.
    CompartmentId string
    The unique identifier for the compartment.
    Filters []GetListingTaxesFilter
    listingId String
    The unique identifier for the listing.
    compartmentId String
    The unique identifier for the compartment.
    filters List<GetListingTaxesFilter>
    listingId string
    The unique identifier for the listing.
    compartmentId string
    The unique identifier for the compartment.
    filters GetListingTaxesFilter[]
    listing_id str
    The unique identifier for the listing.
    compartment_id str
    The unique identifier for the compartment.
    filters GetListingTaxesFilter]
    listingId String
    The unique identifier for the listing.
    compartmentId String
    The unique identifier for the compartment.
    filters List<Property Map>

    getListingTaxes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    Taxes List<GetListingTaxesTax>
    The list of taxes.
    CompartmentId string
    Filters List<GetListingTaxesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    Taxes []GetListingTaxesTax
    The list of taxes.
    CompartmentId string
    Filters []GetListingTaxesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    taxes List<GetListingTaxesTax>
    The list of taxes.
    compartmentId String
    filters List<GetListingTaxesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    listingId string
    taxes GetListingTaxesTax[]
    The list of taxes.
    compartmentId string
    filters GetListingTaxesFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    listing_id str
    taxes GetListingTaxesTax]
    The list of taxes.
    compartment_id str
    filters GetListingTaxesFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    taxes List<Property Map>
    The list of taxes.
    compartmentId String
    filters List<Property Map>

    Supporting Types

    GetListingTaxesFilter

    Name string
    Name of the tax code.
    Values List<string>
    Regex bool
    Name string
    Name of the tax code.
    Values []string
    Regex bool
    name String
    Name of the tax code.
    values List<String>
    regex Boolean
    name string
    Name of the tax code.
    values string[]
    regex boolean
    name str
    Name of the tax code.
    values Sequence[str]
    regex bool
    name String
    Name of the tax code.
    values List<String>
    regex Boolean

    GetListingTaxesTax

    Code string
    Unique code for the tax.
    Country string
    Country, which imposes the tax.
    Name string
    Name of the tax code.
    Url string
    The URL with more details about this tax.
    Code string
    Unique code for the tax.
    Country string
    Country, which imposes the tax.
    Name string
    Name of the tax code.
    Url string
    The URL with more details about this tax.
    code String
    Unique code for the tax.
    country String
    Country, which imposes the tax.
    name String
    Name of the tax code.
    url String
    The URL with more details about this tax.
    code string
    Unique code for the tax.
    country string
    Country, which imposes the tax.
    name string
    Name of the tax code.
    url string
    The URL with more details about this tax.
    code str
    Unique code for the tax.
    country str
    Country, which imposes the tax.
    name str
    Name of the tax code.
    url str
    The URL with more details about this tax.
    code String
    Unique code for the tax.
    country String
    Country, which imposes the tax.
    name String
    Name of the tax code.
    url String
    The URL with more details about this tax.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi