Viewing docs for juju 1.3.1
published on Tuesday, Mar 10, 2026 by juju
published on Tuesday, Mar 10, 2026 by juju
Viewing docs for juju 1.3.1
published on Tuesday, Mar 10, 2026 by juju
published on Tuesday, Mar 10, 2026 by juju
A data source representing a Juju Offer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as juju from "@pulumi/juju";
const _this = juju.getOffer({
url: "admin/development.mysql",
});
import pulumi
import pulumi_juju as juju
this = juju.get_offer(url="admin/development.mysql")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/juju/juju"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := juju.LookupOffer(ctx, &juju.LookupOfferArgs{
Url: "admin/development.mysql",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Juju = Pulumi.Juju;
return await Deployment.RunAsync(() =>
{
var @this = Juju.GetOffer.Invoke(new()
{
Url = "admin/development.mysql",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.juju.JujuFunctions;
import com.pulumi.juju.inputs.GetOfferArgs;
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 this = JujuFunctions.getOffer(GetOfferArgs.builder()
.url("admin/development.mysql")
.build());
}
}
variables:
this:
fn::invoke:
function: juju:getOffer
arguments:
url: admin/development.mysql
Using getOffer
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 getOffer(args: GetOfferArgs, opts?: InvokeOptions): Promise<GetOfferResult>
function getOfferOutput(args: GetOfferOutputArgs, opts?: InvokeOptions): Output<GetOfferResult>def get_offer(offering_controller: Optional[str] = None,
url: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOfferResult
def get_offer_output(offering_controller: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOfferResult]func LookupOffer(ctx *Context, args *LookupOfferArgs, opts ...InvokeOption) (*LookupOfferResult, error)
func LookupOfferOutput(ctx *Context, args *LookupOfferOutputArgs, opts ...InvokeOption) LookupOfferResultOutput> Note: This function is named LookupOffer in the Go SDK.
public static class GetOffer
{
public static Task<GetOfferResult> InvokeAsync(GetOfferArgs args, InvokeOptions? opts = null)
public static Output<GetOfferResult> Invoke(GetOfferInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
public static Output<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
fn::invoke:
function: juju:index/getOffer:getOffer
arguments:
# arguments dictionaryThe following arguments are supported:
- Url string
- The offer URL.
- Offering
Controller string - The name of the offering controller.
- Url string
- The offer URL.
- Offering
Controller string - The name of the offering controller.
- url String
- The offer URL.
- offering
Controller String - The name of the offering controller.
- url string
- The offer URL.
- offering
Controller string - The name of the offering controller.
- url str
- The offer URL.
- offering_
controller str - The name of the offering controller.
- url String
- The offer URL.
- offering
Controller String - The name of the offering controller.
getOffer Result
The following output properties are available:
- Application
Name string - The name of the application.
- Endpoints List<string>
- The endpoint names.
- Id string
- The ID of this resource.
- Name string
- The name of the offer.
- Url string
- The offer URL.
- Offering
Controller string - The name of the offering controller.
- Application
Name string - The name of the application.
- Endpoints []string
- The endpoint names.
- Id string
- The ID of this resource.
- Name string
- The name of the offer.
- Url string
- The offer URL.
- Offering
Controller string - The name of the offering controller.
- application
Name String - The name of the application.
- endpoints List<String>
- The endpoint names.
- id String
- The ID of this resource.
- name String
- The name of the offer.
- url String
- The offer URL.
- offering
Controller String - The name of the offering controller.
- application
Name string - The name of the application.
- endpoints string[]
- The endpoint names.
- id string
- The ID of this resource.
- name string
- The name of the offer.
- url string
- The offer URL.
- offering
Controller string - The name of the offering controller.
- application_
name str - The name of the application.
- endpoints Sequence[str]
- The endpoint names.
- id str
- The ID of this resource.
- name str
- The name of the offer.
- url str
- The offer URL.
- offering_
controller str - The name of the offering controller.
- application
Name String - The name of the application.
- endpoints List<String>
- The endpoint names.
- id String
- The ID of this resource.
- name String
- The name of the offer.
- url String
- The offer URL.
- offering
Controller String - The name of the offering controller.
Package Details
- Repository
- juju juju/terraform-provider-juju
- License
- Notes
- This Pulumi package is based on the
jujuTerraform Provider.
Viewing docs for juju 1.3.1
published on Tuesday, Mar 10, 2026 by juju
published on Tuesday, Mar 10, 2026 by juju
