1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. Publication
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Marketplace.Publication

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This resource provides the Publication resource in Oracle Cloud Infrastructure Marketplace service.

    Creates a publication of the specified listing type with an optional default package.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPublication = new oci.marketplace.Publication("testPublication", {
        compartmentId: _var.compartment_id,
        isAgreementAcknowledged: _var.publication_is_agreement_acknowledged,
        listingType: _var.publication_listing_type,
        packageDetails: {
            eulas: [{
                eulaType: _var.publication_package_details_eula_eula_type,
                licenseText: _var.publication_package_details_eula_license_text,
            }],
            operatingSystem: {
                name: _var.publication_package_details_operating_system_name,
            },
            packageType: _var.publication_package_details_package_type,
            packageVersion: _var.publication_package_details_package_version,
            imageId: oci_core_image.test_image.id,
        },
        shortDescription: _var.publication_short_description,
        supportContacts: [{
            email: _var.publication_support_contacts_email,
            name: _var.publication_support_contacts_name,
            phone: _var.publication_support_contacts_phone,
            subject: _var.publication_support_contacts_subject,
        }],
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
        longDescription: _var.publication_long_description,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_publication = oci.marketplace.Publication("testPublication",
        compartment_id=var["compartment_id"],
        is_agreement_acknowledged=var["publication_is_agreement_acknowledged"],
        listing_type=var["publication_listing_type"],
        package_details=oci.marketplace.PublicationPackageDetailsArgs(
            eulas=[oci.marketplace.PublicationPackageDetailsEulaArgs(
                eula_type=var["publication_package_details_eula_eula_type"],
                license_text=var["publication_package_details_eula_license_text"],
            )],
            operating_system=oci.marketplace.PublicationPackageDetailsOperatingSystemArgs(
                name=var["publication_package_details_operating_system_name"],
            ),
            package_type=var["publication_package_details_package_type"],
            package_version=var["publication_package_details_package_version"],
            image_id=oci_core_image["test_image"]["id"],
        ),
        short_description=var["publication_short_description"],
        support_contacts=[oci.marketplace.PublicationSupportContactArgs(
            email=var["publication_support_contacts_email"],
            name=var["publication_support_contacts_name"],
            phone=var["publication_support_contacts_phone"],
            subject=var["publication_support_contacts_subject"],
        )],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        },
        long_description=var["publication_long_description"])
    
    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.NewPublication(ctx, "testPublication", &Marketplace.PublicationArgs{
    			CompartmentId:           pulumi.Any(_var.Compartment_id),
    			IsAgreementAcknowledged: pulumi.Any(_var.Publication_is_agreement_acknowledged),
    			ListingType:             pulumi.Any(_var.Publication_listing_type),
    			PackageDetails: &marketplace.PublicationPackageDetailsArgs{
    				Eulas: marketplace.PublicationPackageDetailsEulaArray{
    					&marketplace.PublicationPackageDetailsEulaArgs{
    						EulaType:    pulumi.Any(_var.Publication_package_details_eula_eula_type),
    						LicenseText: pulumi.Any(_var.Publication_package_details_eula_license_text),
    					},
    				},
    				OperatingSystem: &marketplace.PublicationPackageDetailsOperatingSystemArgs{
    					Name: pulumi.Any(_var.Publication_package_details_operating_system_name),
    				},
    				PackageType:    pulumi.Any(_var.Publication_package_details_package_type),
    				PackageVersion: pulumi.Any(_var.Publication_package_details_package_version),
    				ImageId:        pulumi.Any(oci_core_image.Test_image.Id),
    			},
    			ShortDescription: pulumi.Any(_var.Publication_short_description),
    			SupportContacts: marketplace.PublicationSupportContactArray{
    				&marketplace.PublicationSupportContactArgs{
    					Email:   pulumi.Any(_var.Publication_support_contacts_email),
    					Name:    pulumi.Any(_var.Publication_support_contacts_name),
    					Phone:   pulumi.Any(_var.Publication_support_contacts_phone),
    					Subject: pulumi.Any(_var.Publication_support_contacts_subject),
    				},
    			},
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			LongDescription: pulumi.Any(_var.Publication_long_description),
    		})
    		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 testPublication = new Oci.Marketplace.Publication("testPublication", new()
        {
            CompartmentId = @var.Compartment_id,
            IsAgreementAcknowledged = @var.Publication_is_agreement_acknowledged,
            ListingType = @var.Publication_listing_type,
            PackageDetails = new Oci.Marketplace.Inputs.PublicationPackageDetailsArgs
            {
                Eulas = new[]
                {
                    new Oci.Marketplace.Inputs.PublicationPackageDetailsEulaArgs
                    {
                        EulaType = @var.Publication_package_details_eula_eula_type,
                        LicenseText = @var.Publication_package_details_eula_license_text,
                    },
                },
                OperatingSystem = new Oci.Marketplace.Inputs.PublicationPackageDetailsOperatingSystemArgs
                {
                    Name = @var.Publication_package_details_operating_system_name,
                },
                PackageType = @var.Publication_package_details_package_type,
                PackageVersion = @var.Publication_package_details_package_version,
                ImageId = oci_core_image.Test_image.Id,
            },
            ShortDescription = @var.Publication_short_description,
            SupportContacts = new[]
            {
                new Oci.Marketplace.Inputs.PublicationSupportContactArgs
                {
                    Email = @var.Publication_support_contacts_email,
                    Name = @var.Publication_support_contacts_name,
                    Phone = @var.Publication_support_contacts_phone,
                    Subject = @var.Publication_support_contacts_subject,
                },
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            LongDescription = @var.Publication_long_description,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.Publication;
    import com.pulumi.oci.Marketplace.PublicationArgs;
    import com.pulumi.oci.Marketplace.inputs.PublicationPackageDetailsArgs;
    import com.pulumi.oci.Marketplace.inputs.PublicationPackageDetailsOperatingSystemArgs;
    import com.pulumi.oci.Marketplace.inputs.PublicationSupportContactArgs;
    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) {
            var testPublication = new Publication("testPublication", PublicationArgs.builder()        
                .compartmentId(var_.compartment_id())
                .isAgreementAcknowledged(var_.publication_is_agreement_acknowledged())
                .listingType(var_.publication_listing_type())
                .packageDetails(PublicationPackageDetailsArgs.builder()
                    .eulas(PublicationPackageDetailsEulaArgs.builder()
                        .eulaType(var_.publication_package_details_eula_eula_type())
                        .licenseText(var_.publication_package_details_eula_license_text())
                        .build())
                    .operatingSystem(PublicationPackageDetailsOperatingSystemArgs.builder()
                        .name(var_.publication_package_details_operating_system_name())
                        .build())
                    .packageType(var_.publication_package_details_package_type())
                    .packageVersion(var_.publication_package_details_package_version())
                    .imageId(oci_core_image.test_image().id())
                    .build())
                .shortDescription(var_.publication_short_description())
                .supportContacts(PublicationSupportContactArgs.builder()
                    .email(var_.publication_support_contacts_email())
                    .name(var_.publication_support_contacts_name())
                    .phone(var_.publication_support_contacts_phone())
                    .subject(var_.publication_support_contacts_subject())
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .longDescription(var_.publication_long_description())
                .build());
    
        }
    }
    
    resources:
      testPublication:
        type: oci:Marketplace:Publication
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          isAgreementAcknowledged: ${var.publication_is_agreement_acknowledged}
          listingType: ${var.publication_listing_type}
          packageDetails:
            eulas:
              - eulaType: ${var.publication_package_details_eula_eula_type}
                licenseText: ${var.publication_package_details_eula_license_text}
            operatingSystem:
              name: ${var.publication_package_details_operating_system_name}
            packageType: ${var.publication_package_details_package_type}
            packageVersion: ${var.publication_package_details_package_version}
            imageId: ${oci_core_image.test_image.id}
          shortDescription: ${var.publication_short_description}
          supportContacts:
            - email: ${var.publication_support_contacts_email}
              name: ${var.publication_support_contacts_name}
              phone: ${var.publication_support_contacts_phone}
              subject: ${var.publication_support_contacts_subject}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
          longDescription: ${var.publication_long_description}
    

    Create Publication Resource

    new Publication(name: string, args: PublicationArgs, opts?: CustomResourceOptions);
    @overload
    def Publication(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    compartment_id: Optional[str] = None,
                    defined_tags: Optional[Mapping[str, Any]] = None,
                    freeform_tags: Optional[Mapping[str, Any]] = None,
                    is_agreement_acknowledged: Optional[bool] = None,
                    listing_type: Optional[str] = None,
                    long_description: Optional[str] = None,
                    name: Optional[str] = None,
                    package_details: Optional[_marketplace.PublicationPackageDetailsArgs] = None,
                    short_description: Optional[str] = None,
                    support_contacts: Optional[Sequence[_marketplace.PublicationSupportContactArgs]] = None)
    @overload
    def Publication(resource_name: str,
                    args: PublicationArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewPublication(ctx *Context, name string, args PublicationArgs, opts ...ResourceOption) (*Publication, error)
    public Publication(string name, PublicationArgs args, CustomResourceOptions? opts = null)
    public Publication(String name, PublicationArgs args)
    public Publication(String name, PublicationArgs args, CustomResourceOptions options)
    
    type: oci:Marketplace:Publication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args PublicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PublicationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PublicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PublicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PublicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Publication Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Publication resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    IsAgreementAcknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    PackageDetails PublicationPackageDetails
    A base object for creating a publication package.
    ShortDescription string
    (Updatable) A short description of the publication to use in the listing.
    SupportContacts List<PublicationSupportContact>
    (Updatable) Contact information for getting support from the publisher for the listing.
    DefinedTags Dictionary<string, object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LongDescription string
    (Updatable) A long description of the publication to use in the listing.
    Name string
    (Updatable) The name of the contact.
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    IsAgreementAcknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    PackageDetails PublicationPackageDetailsArgs
    A base object for creating a publication package.
    ShortDescription string
    (Updatable) A short description of the publication to use in the listing.
    SupportContacts []PublicationSupportContactArgs
    (Updatable) Contact information for getting support from the publisher for the listing.
    DefinedTags map[string]interface{}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]interface{}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LongDescription string
    (Updatable) A long description of the publication to use in the listing.
    Name string
    (Updatable) The name of the contact.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the publication.
    isAgreementAcknowledged Boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    packageDetails PublicationPackageDetails
    A base object for creating a publication package.
    shortDescription String
    (Updatable) A short description of the publication to use in the listing.
    supportContacts List<PublicationSupportContact>
    (Updatable) Contact information for getting support from the publisher for the listing.
    definedTags Map<String,Object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,Object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    longDescription String
    (Updatable) A long description of the publication to use in the listing.
    name String
    (Updatable) The name of the contact.
    compartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    isAgreementAcknowledged boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    packageDetails PublicationPackageDetails
    A base object for creating a publication package.
    shortDescription string
    (Updatable) A short description of the publication to use in the listing.
    supportContacts PublicationSupportContact[]
    (Updatable) Contact information for getting support from the publisher for the listing.
    definedTags {[key: string]: any}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: any}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    longDescription string
    (Updatable) A long description of the publication to use in the listing.
    name string
    (Updatable) The name of the contact.
    compartment_id str
    (Updatable) The OCID of the compartment where you want to create the publication.
    is_agreement_acknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listing_type str
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    package_details PublicationPackageDetailsArgs
    A base object for creating a publication package.
    short_description str
    (Updatable) A short description of the publication to use in the listing.
    support_contacts PublicationSupportContactArgs]
    (Updatable) Contact information for getting support from the publisher for the listing.
    defined_tags Mapping[str, Any]
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, Any]
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    long_description str
    (Updatable) A long description of the publication to use in the listing.
    name str
    (Updatable) The name of the contact.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the publication.
    isAgreementAcknowledged Boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    packageDetails Property Map
    A base object for creating a publication package.
    shortDescription String
    (Updatable) A short description of the publication to use in the listing.
    supportContacts List<Property Map>
    (Updatable) Contact information for getting support from the publisher for the listing.
    definedTags Map<Any>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<Any>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    longDescription String
    (Updatable) A long description of the publication to use in the listing.
    name String
    (Updatable) The name of the contact.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Publication resource produces the following output properties:

    Icons List<PublicationIcon>
    The model for upload data for images and icons.
    Id string
    The provider-assigned unique ID for this managed resource.
    PackageType string
    The package's type.
    State string
    The lifecycle state of the publication.
    SupportedOperatingSystems List<PublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    SystemTags Dictionary<string, object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    Icons []PublicationIcon
    The model for upload data for images and icons.
    Id string
    The provider-assigned unique ID for this managed resource.
    PackageType string
    The package's type.
    State string
    The lifecycle state of the publication.
    SupportedOperatingSystems []PublicationSupportedOperatingSystem
    The list of operating systems supported by the listing.
    SystemTags map[string]interface{}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    icons List<PublicationIcon>
    The model for upload data for images and icons.
    id String
    The provider-assigned unique ID for this managed resource.
    packageType String
    The package's type.
    state String
    The lifecycle state of the publication.
    supportedOperatingSystems List<PublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    systemTags Map<String,Object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    icons PublicationIcon[]
    The model for upload data for images and icons.
    id string
    The provider-assigned unique ID for this managed resource.
    packageType string
    The package's type.
    state string
    The lifecycle state of the publication.
    supportedOperatingSystems PublicationSupportedOperatingSystem[]
    The list of operating systems supported by the listing.
    systemTags {[key: string]: any}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    icons PublicationIcon]
    The model for upload data for images and icons.
    id str
    The provider-assigned unique ID for this managed resource.
    package_type str
    The package's type.
    state str
    The lifecycle state of the publication.
    supported_operating_systems PublicationSupportedOperatingSystem]
    The list of operating systems supported by the listing.
    system_tags Mapping[str, Any]
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    time_created str
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    icons List<Property Map>
    The model for upload data for images and icons.
    id String
    The provider-assigned unique ID for this managed resource.
    packageType String
    The package's type.
    state String
    The lifecycle state of the publication.
    supportedOperatingSystems List<Property Map>
    The list of operating systems supported by the listing.
    systemTags Map<Any>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

    Look up Existing Publication Resource

    Get an existing Publication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PublicationState, opts?: CustomResourceOptions): Publication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            icons: Optional[Sequence[_marketplace.PublicationIconArgs]] = None,
            is_agreement_acknowledged: Optional[bool] = None,
            listing_type: Optional[str] = None,
            long_description: Optional[str] = None,
            name: Optional[str] = None,
            package_details: Optional[_marketplace.PublicationPackageDetailsArgs] = None,
            package_type: Optional[str] = None,
            short_description: Optional[str] = None,
            state: Optional[str] = None,
            support_contacts: Optional[Sequence[_marketplace.PublicationSupportContactArgs]] = None,
            supported_operating_systems: Optional[Sequence[_marketplace.PublicationSupportedOperatingSystemArgs]] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None) -> Publication
    func GetPublication(ctx *Context, name string, id IDInput, state *PublicationState, opts ...ResourceOption) (*Publication, error)
    public static Publication Get(string name, Input<string> id, PublicationState? state, CustomResourceOptions? opts = null)
    public static Publication get(String name, Output<String> id, PublicationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    DefinedTags Dictionary<string, object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Icons List<PublicationIcon>
    The model for upload data for images and icons.
    IsAgreementAcknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    LongDescription string
    (Updatable) A long description of the publication to use in the listing.
    Name string
    (Updatable) The name of the contact.
    PackageDetails PublicationPackageDetails
    A base object for creating a publication package.
    PackageType string
    The package's type.
    ShortDescription string
    (Updatable) A short description of the publication to use in the listing.
    State string
    The lifecycle state of the publication.
    SupportContacts List<PublicationSupportContact>
    (Updatable) Contact information for getting support from the publisher for the listing.
    SupportedOperatingSystems List<PublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    SystemTags Dictionary<string, object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    DefinedTags map[string]interface{}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]interface{}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Icons []PublicationIconArgs
    The model for upload data for images and icons.
    IsAgreementAcknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    LongDescription string
    (Updatable) A long description of the publication to use in the listing.
    Name string
    (Updatable) The name of the contact.
    PackageDetails PublicationPackageDetailsArgs
    A base object for creating a publication package.
    PackageType string
    The package's type.
    ShortDescription string
    (Updatable) A short description of the publication to use in the listing.
    State string
    The lifecycle state of the publication.
    SupportContacts []PublicationSupportContactArgs
    (Updatable) Contact information for getting support from the publisher for the listing.
    SupportedOperatingSystems []PublicationSupportedOperatingSystemArgs
    The list of operating systems supported by the listing.
    SystemTags map[string]interface{}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the publication.
    definedTags Map<String,Object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,Object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons List<PublicationIcon>
    The model for upload data for images and icons.
    isAgreementAcknowledged Boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    longDescription String
    (Updatable) A long description of the publication to use in the listing.
    name String
    (Updatable) The name of the contact.
    packageDetails PublicationPackageDetails
    A base object for creating a publication package.
    packageType String
    The package's type.
    shortDescription String
    (Updatable) A short description of the publication to use in the listing.
    state String
    The lifecycle state of the publication.
    supportContacts List<PublicationSupportContact>
    (Updatable) Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems List<PublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    systemTags Map<String,Object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    (Updatable) The OCID of the compartment where you want to create the publication.
    definedTags {[key: string]: any}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: any}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons PublicationIcon[]
    The model for upload data for images and icons.
    isAgreementAcknowledged boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    longDescription string
    (Updatable) A long description of the publication to use in the listing.
    name string
    (Updatable) The name of the contact.
    packageDetails PublicationPackageDetails
    A base object for creating a publication package.
    packageType string
    The package's type.
    shortDescription string
    (Updatable) A short description of the publication to use in the listing.
    state string
    The lifecycle state of the publication.
    supportContacts PublicationSupportContact[]
    (Updatable) Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems PublicationSupportedOperatingSystem[]
    The list of operating systems supported by the listing.
    systemTags {[key: string]: any}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    (Updatable) The OCID of the compartment where you want to create the publication.
    defined_tags Mapping[str, Any]
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, Any]
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons PublicationIconArgs]
    The model for upload data for images and icons.
    is_agreement_acknowledged bool
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listing_type str
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    long_description str
    (Updatable) A long description of the publication to use in the listing.
    name str
    (Updatable) The name of the contact.
    package_details PublicationPackageDetailsArgs
    A base object for creating a publication package.
    package_type str
    The package's type.
    short_description str
    (Updatable) A short description of the publication to use in the listing.
    state str
    The lifecycle state of the publication.
    support_contacts PublicationSupportContactArgs]
    (Updatable) Contact information for getting support from the publisher for the listing.
    supported_operating_systems PublicationSupportedOperatingSystemArgs]
    The list of operating systems supported by the listing.
    system_tags Mapping[str, Any]
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    time_created str
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the publication.
    definedTags Map<Any>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<Any>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons List<Property Map>
    The model for upload data for images and icons.
    isAgreementAcknowledged Boolean
    Whether the publisher acknowledged that they have the right and authority to share the contents of the publication and that they accepted the Oracle terms of use agreements required to create a publication.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    longDescription String
    (Updatable) A long description of the publication to use in the listing.
    name String
    (Updatable) The name of the contact.
    packageDetails Property Map
    A base object for creating a publication package.
    packageType String
    The package's type.
    shortDescription String
    (Updatable) A short description of the publication to use in the listing.
    state String
    The lifecycle state of the publication.
    supportContacts List<Property Map>
    (Updatable) Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems List<Property Map>
    The list of operating systems supported by the listing.
    systemTags Map<Any>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    PublicationIcon, PublicationIconArgs

    ContentUrl string
    The content URL of the upload data.
    FileExtension string
    The file extension of the upload data.
    MimeType string
    The MIME type of the upload data.
    Name string
    (Updatable) The name of the contact.
    ContentUrl string
    The content URL of the upload data.
    FileExtension string
    The file extension of the upload data.
    MimeType string
    The MIME type of the upload data.
    Name string
    (Updatable) The name of the contact.
    contentUrl String
    The content URL of the upload data.
    fileExtension String
    The file extension of the upload data.
    mimeType String
    The MIME type of the upload data.
    name String
    (Updatable) The name of the contact.
    contentUrl string
    The content URL of the upload data.
    fileExtension string
    The file extension of the upload data.
    mimeType string
    The MIME type of the upload data.
    name string
    (Updatable) The name of the contact.
    content_url str
    The content URL of the upload data.
    file_extension str
    The file extension of the upload data.
    mime_type str
    The MIME type of the upload data.
    name str
    (Updatable) The name of the contact.
    contentUrl String
    The content URL of the upload data.
    fileExtension String
    The file extension of the upload data.
    mimeType String
    The MIME type of the upload data.
    name String
    (Updatable) The name of the contact.

    PublicationPackageDetails, PublicationPackageDetailsArgs

    Eulas List<PublicationPackageDetailsEula>
    The end user license agreeement (EULA) that consumers of this listing must accept.
    OperatingSystem PublicationPackageDetailsOperatingSystem
    The operating system used by the listing.
    PackageType string
    The package's type.
    PackageVersion string
    The package version.
    ImageId string
    The unique identifier for the base image of the publication.
    Eulas []PublicationPackageDetailsEula
    The end user license agreeement (EULA) that consumers of this listing must accept.
    OperatingSystem PublicationPackageDetailsOperatingSystem
    The operating system used by the listing.
    PackageType string
    The package's type.
    PackageVersion string
    The package version.
    ImageId string
    The unique identifier for the base image of the publication.
    eulas List<PublicationPackageDetailsEula>
    The end user license agreeement (EULA) that consumers of this listing must accept.
    operatingSystem PublicationPackageDetailsOperatingSystem
    The operating system used by the listing.
    packageType String
    The package's type.
    packageVersion String
    The package version.
    imageId String
    The unique identifier for the base image of the publication.
    eulas PublicationPackageDetailsEula[]
    The end user license agreeement (EULA) that consumers of this listing must accept.
    operatingSystem PublicationPackageDetailsOperatingSystem
    The operating system used by the listing.
    packageType string
    The package's type.
    packageVersion string
    The package version.
    imageId string
    The unique identifier for the base image of the publication.
    eulas PublicationPackageDetailsEula]
    The end user license agreeement (EULA) that consumers of this listing must accept.
    operating_system PublicationPackageDetailsOperatingSystem
    The operating system used by the listing.
    package_type str
    The package's type.
    package_version str
    The package version.
    image_id str
    The unique identifier for the base image of the publication.
    eulas List<Property Map>
    The end user license agreeement (EULA) that consumers of this listing must accept.
    operatingSystem Property Map
    The operating system used by the listing.
    packageType String
    The package's type.
    packageVersion String
    The package version.
    imageId String
    The unique identifier for the base image of the publication.

    PublicationPackageDetailsEula, PublicationPackageDetailsEulaArgs

    EulaType string
    The end user license agreement's type.
    LicenseText string
    The text of the end user license agreement.
    EulaType string
    The end user license agreement's type.
    LicenseText string
    The text of the end user license agreement.
    eulaType String
    The end user license agreement's type.
    licenseText String
    The text of the end user license agreement.
    eulaType string
    The end user license agreement's type.
    licenseText string
    The text of the end user license agreement.
    eula_type str
    The end user license agreement's type.
    license_text str
    The text of the end user license agreement.
    eulaType String
    The end user license agreement's type.
    licenseText String
    The text of the end user license agreement.

    PublicationPackageDetailsOperatingSystem, PublicationPackageDetailsOperatingSystemArgs

    Name string
    (Updatable) The name of the contact.
    Name string
    (Updatable) The name of the contact.
    name String
    (Updatable) The name of the contact.
    name string
    (Updatable) The name of the contact.
    name str
    (Updatable) The name of the contact.
    name String
    (Updatable) The name of the contact.

    PublicationSupportContact, PublicationSupportContactArgs

    Email string
    (Updatable) The email of the contact.
    Name string
    (Updatable) The name of the contact.
    Phone string
    (Updatable) The phone number of the contact.
    Subject string

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Email string
    (Updatable) The email of the contact.
    Name string
    (Updatable) The name of the contact.
    Phone string
    (Updatable) The phone number of the contact.
    Subject string

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    email String
    (Updatable) The email of the contact.
    name String
    (Updatable) The name of the contact.
    phone String
    (Updatable) The phone number of the contact.
    subject String

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    email string
    (Updatable) The email of the contact.
    name string
    (Updatable) The name of the contact.
    phone string
    (Updatable) The phone number of the contact.
    subject string

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    email str
    (Updatable) The email of the contact.
    name str
    (Updatable) The name of the contact.
    phone str
    (Updatable) The phone number of the contact.
    subject str

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    email String
    (Updatable) The email of the contact.
    name String
    (Updatable) The name of the contact.
    phone String
    (Updatable) The phone number of the contact.
    subject String

    (Updatable) The email subject line to use when contacting support.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    PublicationSupportedOperatingSystem, PublicationSupportedOperatingSystemArgs

    Name string
    (Updatable) The name of the contact.
    Name string
    (Updatable) The name of the contact.
    name String
    (Updatable) The name of the contact.
    name string
    (Updatable) The name of the contact.
    name str
    (Updatable) The name of the contact.
    name String
    (Updatable) The name of the contact.

    Import

    Publications can be imported using the id, e.g.

    $ pulumi import oci:Marketplace/publication:Publication test_publication "id"
    

    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.29.0 published on Thursday, Mar 28, 2024 by Pulumi