Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Marketplace.getListingTaxes
Explore with Pulumi AI
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: testListing.id,
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_listing_taxes = oci.Marketplace.get_listing_taxes(listing_id=test_listing["id"],
compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testListing.Id,
CompartmentId: pulumi.StringRef(compartmentId),
}, 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 = testListing.Id,
CompartmentId = compartmentId,
});
});
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(testListing.id())
.compartmentId(compartmentId)
.build());
}
}
variables:
testListingTaxes:
fn::invoke:
Function: oci:Marketplace:getListingTaxes
Arguments:
listingId: ${testListing.id}
compartmentId: ${compartmentId}
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:
- Listing
Id string - The unique identifier for the listing.
- Compartment
Id string - The unique identifier for the compartment.
- Filters
List<Get
Listing Taxes Filter>
- Listing
Id string - The unique identifier for the listing.
- Compartment
Id string - The unique identifier for the compartment.
- Filters
[]Get
Listing Taxes Filter
- listing
Id String - The unique identifier for the listing.
- compartment
Id String - The unique identifier for the compartment.
- filters
List<Get
Listing Taxes Filter>
- listing
Id string - The unique identifier for the listing.
- compartment
Id string - The unique identifier for the compartment.
- filters
Get
Listing Taxes Filter[]
- listing_
id str - The unique identifier for the listing.
- compartment_
id str - The unique identifier for the compartment.
- filters
Sequence[marketplace.
Get Listing Taxes Filter]
- listing
Id String - The unique identifier for the listing.
- compartment
Id 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.
- Listing
Id string - Taxes
List<Get
Listing Taxes Tax> - The list of taxes.
- Compartment
Id string - Filters
List<Get
Listing Taxes Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Listing
Id string - Taxes
[]Get
Listing Taxes Tax - The list of taxes.
- Compartment
Id string - Filters
[]Get
Listing Taxes Filter
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Id String - taxes
List<Get
Listing Taxes Tax> - The list of taxes.
- compartment
Id String - filters
List<Get
Listing Taxes Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- listing
Id string - taxes
Get
Listing Taxes Tax[] - The list of taxes.
- compartment
Id string - filters
Get
Listing Taxes Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- listing_
id str - taxes
Sequence[marketplace.
Get Listing Taxes Tax] - The list of taxes.
- compartment_
id str - filters
Sequence[marketplace.
Get Listing Taxes Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Id String - taxes List<Property Map>
- The list of taxes.
- compartment
Id String - filters List<Property Map>
Supporting Types
GetListingTaxesFilter
GetListingTaxesTax
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.