oci.Marketplace.Publication
Explore with Pulumi AI
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("test_publication", {
    compartmentId: compartmentId,
    isAgreementAcknowledged: publicationIsAgreementAcknowledged,
    listingType: publicationListingType,
    name: publicationName,
    packageDetails: {
        eulas: [{
            eulaType: publicationPackageDetailsEulaEulaType,
            licenseText: publicationPackageDetailsEulaLicenseText,
        }],
        operatingSystem: {
            name: publicationPackageDetailsOperatingSystemName,
        },
        packageType: publicationPackageDetailsPackageType,
        packageVersion: publicationPackageDetailsPackageVersion,
        imageId: testImage.id,
    },
    shortDescription: publicationShortDescription,
    supportContacts: [{
        email: publicationSupportContactsEmail,
        name: publicationSupportContactsName,
        phone: publicationSupportContactsPhone,
        subject: publicationSupportContactsSubject,
    }],
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
    longDescription: publicationLongDescription,
});
import pulumi
import pulumi_oci as oci
test_publication = oci.marketplace.Publication("test_publication",
    compartment_id=compartment_id,
    is_agreement_acknowledged=publication_is_agreement_acknowledged,
    listing_type=publication_listing_type,
    name=publication_name,
    package_details={
        "eulas": [{
            "eula_type": publication_package_details_eula_eula_type,
            "license_text": publication_package_details_eula_license_text,
        }],
        "operating_system": {
            "name": publication_package_details_operating_system_name,
        },
        "package_type": publication_package_details_package_type,
        "package_version": publication_package_details_package_version,
        "image_id": test_image["id"],
    },
    short_description=publication_short_description,
    support_contacts=[{
        "email": publication_support_contacts_email,
        "name": publication_support_contacts_name,
        "phone": publication_support_contacts_phone,
        "subject": publication_support_contacts_subject,
    }],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    },
    long_description=publication_long_description)
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.NewPublication(ctx, "test_publication", &marketplace.PublicationArgs{
			CompartmentId:           pulumi.Any(compartmentId),
			IsAgreementAcknowledged: pulumi.Any(publicationIsAgreementAcknowledged),
			ListingType:             pulumi.Any(publicationListingType),
			Name:                    pulumi.Any(publicationName),
			PackageDetails: &marketplace.PublicationPackageDetailsArgs{
				Eulas: marketplace.PublicationPackageDetailsEulaArray{
					&marketplace.PublicationPackageDetailsEulaArgs{
						EulaType:    pulumi.Any(publicationPackageDetailsEulaEulaType),
						LicenseText: pulumi.Any(publicationPackageDetailsEulaLicenseText),
					},
				},
				OperatingSystem: &marketplace.PublicationPackageDetailsOperatingSystemArgs{
					Name: pulumi.Any(publicationPackageDetailsOperatingSystemName),
				},
				PackageType:    pulumi.Any(publicationPackageDetailsPackageType),
				PackageVersion: pulumi.Any(publicationPackageDetailsPackageVersion),
				ImageId:        pulumi.Any(testImage.Id),
			},
			ShortDescription: pulumi.Any(publicationShortDescription),
			SupportContacts: marketplace.PublicationSupportContactArray{
				&marketplace.PublicationSupportContactArgs{
					Email:   pulumi.Any(publicationSupportContactsEmail),
					Name:    pulumi.Any(publicationSupportContactsName),
					Phone:   pulumi.Any(publicationSupportContactsPhone),
					Subject: pulumi.Any(publicationSupportContactsSubject),
				},
			},
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			LongDescription: pulumi.Any(publicationLongDescription),
		})
		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("test_publication", new()
    {
        CompartmentId = compartmentId,
        IsAgreementAcknowledged = publicationIsAgreementAcknowledged,
        ListingType = publicationListingType,
        Name = publicationName,
        PackageDetails = new Oci.Marketplace.Inputs.PublicationPackageDetailsArgs
        {
            Eulas = new[]
            {
                new Oci.Marketplace.Inputs.PublicationPackageDetailsEulaArgs
                {
                    EulaType = publicationPackageDetailsEulaEulaType,
                    LicenseText = publicationPackageDetailsEulaLicenseText,
                },
            },
            OperatingSystem = new Oci.Marketplace.Inputs.PublicationPackageDetailsOperatingSystemArgs
            {
                Name = publicationPackageDetailsOperatingSystemName,
            },
            PackageType = publicationPackageDetailsPackageType,
            PackageVersion = publicationPackageDetailsPackageVersion,
            ImageId = testImage.Id,
        },
        ShortDescription = publicationShortDescription,
        SupportContacts = new[]
        {
            new Oci.Marketplace.Inputs.PublicationSupportContactArgs
            {
                Email = publicationSupportContactsEmail,
                Name = publicationSupportContactsName,
                Phone = publicationSupportContactsPhone,
                Subject = publicationSupportContactsSubject,
            },
        },
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        LongDescription = publicationLongDescription,
    });
});
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(compartmentId)
            .isAgreementAcknowledged(publicationIsAgreementAcknowledged)
            .listingType(publicationListingType)
            .name(publicationName)
            .packageDetails(PublicationPackageDetailsArgs.builder()
                .eulas(PublicationPackageDetailsEulaArgs.builder()
                    .eulaType(publicationPackageDetailsEulaEulaType)
                    .licenseText(publicationPackageDetailsEulaLicenseText)
                    .build())
                .operatingSystem(PublicationPackageDetailsOperatingSystemArgs.builder()
                    .name(publicationPackageDetailsOperatingSystemName)
                    .build())
                .packageType(publicationPackageDetailsPackageType)
                .packageVersion(publicationPackageDetailsPackageVersion)
                .imageId(testImage.id())
                .build())
            .shortDescription(publicationShortDescription)
            .supportContacts(PublicationSupportContactArgs.builder()
                .email(publicationSupportContactsEmail)
                .name(publicationSupportContactsName)
                .phone(publicationSupportContactsPhone)
                .subject(publicationSupportContactsSubject)
                .build())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .longDescription(publicationLongDescription)
            .build());
    }
}
resources:
  testPublication:
    type: oci:Marketplace:Publication
    name: test_publication
    properties:
      compartmentId: ${compartmentId}
      isAgreementAcknowledged: ${publicationIsAgreementAcknowledged}
      listingType: ${publicationListingType}
      name: ${publicationName}
      packageDetails:
        eulas:
          - eulaType: ${publicationPackageDetailsEulaEulaType}
            licenseText: ${publicationPackageDetailsEulaLicenseText}
        operatingSystem:
          name: ${publicationPackageDetailsOperatingSystemName}
        packageType: ${publicationPackageDetailsPackageType}
        packageVersion: ${publicationPackageDetailsPackageVersion}
        imageId: ${testImage.id}
      shortDescription: ${publicationShortDescription}
      supportContacts:
        - email: ${publicationSupportContactsEmail}
          name: ${publicationSupportContactsName}
          phone: ${publicationSupportContactsPhone}
          subject: ${publicationSupportContactsSubject}
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance
      longDescription: ${publicationLongDescription}
Create Publication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Publication(name: string, args: PublicationArgs, opts?: CustomResourceOptions);@overload
def Publication(resource_name: str,
                args: PublicationArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def Publication(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                compartment_id: Optional[str] = None,
                is_agreement_acknowledged: Optional[bool] = None,
                listing_type: Optional[str] = None,
                package_details: Optional[PublicationPackageDetailsArgs] = None,
                short_description: Optional[str] = None,
                support_contacts: Optional[Sequence[PublicationSupportContactArgs]] = None,
                defined_tags: Optional[Mapping[str, str]] = None,
                freeform_tags: Optional[Mapping[str, str]] = None,
                long_description: Optional[str] = None,
                name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var publicationResource = new Oci.Marketplace.Publication("publicationResource", new()
{
    CompartmentId = "string",
    IsAgreementAcknowledged = false,
    ListingType = "string",
    PackageDetails = new Oci.Marketplace.Inputs.PublicationPackageDetailsArgs
    {
        Eulas = new[]
        {
            new Oci.Marketplace.Inputs.PublicationPackageDetailsEulaArgs
            {
                EulaType = "string",
                LicenseText = "string",
            },
        },
        OperatingSystem = new Oci.Marketplace.Inputs.PublicationPackageDetailsOperatingSystemArgs
        {
            Name = "string",
        },
        PackageType = "string",
        PackageVersion = "string",
        ImageId = "string",
    },
    ShortDescription = "string",
    SupportContacts = new[]
    {
        new Oci.Marketplace.Inputs.PublicationSupportContactArgs
        {
            Email = "string",
            Name = "string",
            Phone = "string",
            Subject = "string",
        },
    },
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    LongDescription = "string",
    Name = "string",
});
example, err := marketplace.NewPublication(ctx, "publicationResource", &marketplace.PublicationArgs{
	CompartmentId:           pulumi.String("string"),
	IsAgreementAcknowledged: pulumi.Bool(false),
	ListingType:             pulumi.String("string"),
	PackageDetails: &marketplace.PublicationPackageDetailsArgs{
		Eulas: marketplace.PublicationPackageDetailsEulaArray{
			&marketplace.PublicationPackageDetailsEulaArgs{
				EulaType:    pulumi.String("string"),
				LicenseText: pulumi.String("string"),
			},
		},
		OperatingSystem: &marketplace.PublicationPackageDetailsOperatingSystemArgs{
			Name: pulumi.String("string"),
		},
		PackageType:    pulumi.String("string"),
		PackageVersion: pulumi.String("string"),
		ImageId:        pulumi.String("string"),
	},
	ShortDescription: pulumi.String("string"),
	SupportContacts: marketplace.PublicationSupportContactArray{
		&marketplace.PublicationSupportContactArgs{
			Email:   pulumi.String("string"),
			Name:    pulumi.String("string"),
			Phone:   pulumi.String("string"),
			Subject: pulumi.String("string"),
		},
	},
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	LongDescription: pulumi.String("string"),
	Name:            pulumi.String("string"),
})
var publicationResource = new Publication("publicationResource", PublicationArgs.builder()
    .compartmentId("string")
    .isAgreementAcknowledged(false)
    .listingType("string")
    .packageDetails(PublicationPackageDetailsArgs.builder()
        .eulas(PublicationPackageDetailsEulaArgs.builder()
            .eulaType("string")
            .licenseText("string")
            .build())
        .operatingSystem(PublicationPackageDetailsOperatingSystemArgs.builder()
            .name("string")
            .build())
        .packageType("string")
        .packageVersion("string")
        .imageId("string")
        .build())
    .shortDescription("string")
    .supportContacts(PublicationSupportContactArgs.builder()
        .email("string")
        .name("string")
        .phone("string")
        .subject("string")
        .build())
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .longDescription("string")
    .name("string")
    .build());
publication_resource = oci.marketplace.Publication("publicationResource",
    compartment_id="string",
    is_agreement_acknowledged=False,
    listing_type="string",
    package_details={
        "eulas": [{
            "eula_type": "string",
            "license_text": "string",
        }],
        "operating_system": {
            "name": "string",
        },
        "package_type": "string",
        "package_version": "string",
        "image_id": "string",
    },
    short_description="string",
    support_contacts=[{
        "email": "string",
        "name": "string",
        "phone": "string",
        "subject": "string",
    }],
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    },
    long_description="string",
    name="string")
const publicationResource = new oci.marketplace.Publication("publicationResource", {
    compartmentId: "string",
    isAgreementAcknowledged: false,
    listingType: "string",
    packageDetails: {
        eulas: [{
            eulaType: "string",
            licenseText: "string",
        }],
        operatingSystem: {
            name: "string",
        },
        packageType: "string",
        packageVersion: "string",
        imageId: "string",
    },
    shortDescription: "string",
    supportContacts: [{
        email: "string",
        name: "string",
        phone: "string",
        subject: "string",
    }],
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
    longDescription: "string",
    name: "string",
});
type: oci:Marketplace:Publication
properties:
    compartmentId: string
    definedTags:
        string: string
    freeformTags:
        string: string
    isAgreementAcknowledged: false
    listingType: string
    longDescription: string
    name: string
    packageDetails:
        eulas:
            - eulaType: string
              licenseText: string
        imageId: string
        operatingSystem:
            name: string
        packageType: string
        packageVersion: string
    shortDescription: string
    supportContacts:
        - email: string
          name: string
          phone: string
          subject: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Publication resource accepts the following input properties:
- CompartmentId string
- (Updatable) The OCID of the compartment where you want to create the publication.
- IsAgreement boolAcknowledged 
- 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 PublicationPackage Details 
- A base object for creating a publication package.
- ShortDescription string
- (Updatable) A short description of the publication to use in the listing.
- SupportContacts List<PublicationSupport Contact> 
- (Updatable) Contact information for getting support from the publisher for the listing.
- Dictionary<string, string>
- (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"}
- Dictionary<string, string>
- (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 publication, which is also used in the listing.
- CompartmentId string
- (Updatable) The OCID of the compartment where you want to create the publication.
- IsAgreement boolAcknowledged 
- 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 PublicationPackage Details Args 
- A base object for creating a publication package.
- ShortDescription string
- (Updatable) A short description of the publication to use in the listing.
- SupportContacts []PublicationSupport Contact Args 
- (Updatable) Contact information for getting support from the publisher for the listing.
- map[string]string
- (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"}
- map[string]string
- (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 publication, which is also used in the listing.
- compartmentId String
- (Updatable) The OCID of the compartment where you want to create the publication.
- isAgreement BooleanAcknowledged 
- 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 PublicationPackage Details 
- A base object for creating a publication package.
- shortDescription String
- (Updatable) A short description of the publication to use in the listing.
- supportContacts List<PublicationSupport Contact> 
- (Updatable) Contact information for getting support from the publisher for the listing.
- Map<String,String>
- (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"}
- Map<String,String>
- (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 publication, which is also used in the listing.
- compartmentId string
- (Updatable) The OCID of the compartment where you want to create the publication.
- isAgreement booleanAcknowledged 
- 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 PublicationPackage Details 
- A base object for creating a publication package.
- shortDescription string
- (Updatable) A short description of the publication to use in the listing.
- supportContacts PublicationSupport Contact[] 
- (Updatable) Contact information for getting support from the publisher for the listing.
- {[key: string]: string}
- (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"}
- {[key: string]: string}
- (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 publication, which is also used in the listing.
- compartment_id str
- (Updatable) The OCID of the compartment where you want to create the publication.
- is_agreement_ boolacknowledged 
- 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 PublicationPackage Details Args 
- 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 Sequence[PublicationSupport Contact Args] 
- (Updatable) Contact information for getting support from the publisher for the listing.
- Mapping[str, str]
- (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"}
- Mapping[str, str]
- (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 publication, which is also used in the listing.
- compartmentId String
- (Updatable) The OCID of the compartment where you want to create the publication.
- isAgreement BooleanAcknowledged 
- 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.
- Map<String>
- (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"}
- Map<String>
- (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 publication, which is also used in the listing.
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 listing's package type.
- State string
- The lifecycle state of the publication.
- SupportedOperating List<PublicationSystems Supported Operating System> 
- The list of operating systems supported by the listing.
- Dictionary<string, string>
- 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 listing's package type.
- State string
- The lifecycle state of the publication.
- SupportedOperating []PublicationSystems Supported Operating System 
- The list of operating systems supported by the listing.
- map[string]string
- 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 listing's package type.
- state String
- The lifecycle state of the publication.
- supportedOperating List<PublicationSystems Supported Operating System> 
- The list of operating systems supported by the listing.
- Map<String,String>
- 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 listing's package type.
- state string
- The lifecycle state of the publication.
- supportedOperating PublicationSystems Supported Operating System[] 
- The list of operating systems supported by the listing.
- {[key: string]: string}
- 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
Sequence[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 listing's package type.
- state str
- The lifecycle state of the publication.
- supported_operating_ Sequence[Publicationsystems Supported Operating System] 
- The list of operating systems supported by the listing.
- Mapping[str, str]
- 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 listing's package type.
- state String
- The lifecycle state of the publication.
- supportedOperating List<Property Map>Systems 
- The list of operating systems supported by the listing.
- Map<String>
- 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, str]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        icons: Optional[Sequence[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[PublicationPackageDetailsArgs] = None,
        package_type: Optional[str] = None,
        short_description: Optional[str] = None,
        state: Optional[str] = None,
        support_contacts: Optional[Sequence[PublicationSupportContactArgs]] = None,
        supported_operating_systems: Optional[Sequence[PublicationSupportedOperatingSystemArgs]] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None) -> Publicationfunc 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)resources:  _:    type: oci:Marketplace:Publication    get:      id: ${id}- 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.
- CompartmentId string
- (Updatable) The OCID of the compartment where you want to create the publication.
- Dictionary<string, string>
- (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"}
- Dictionary<string, string>
- (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.
- IsAgreement boolAcknowledged 
- 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 publication, which is also used in the listing.
- PackageDetails PublicationPackage Details 
- A base object for creating a publication package.
- PackageType string
- The listing's package 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<PublicationSupport Contact> 
- (Updatable) Contact information for getting support from the publisher for the listing.
- SupportedOperating List<PublicationSystems Supported Operating System> 
- The list of operating systems supported by the listing.
- Dictionary<string, string>
- 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.
- map[string]string
- (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"}
- map[string]string
- (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 Args 
- The model for upload data for images and icons.
- IsAgreement boolAcknowledged 
- 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 publication, which is also used in the listing.
- PackageDetails PublicationPackage Details Args 
- A base object for creating a publication package.
- PackageType string
- The listing's package type.
- ShortDescription string
- (Updatable) A short description of the publication to use in the listing.
- State string
- The lifecycle state of the publication.
- SupportContacts []PublicationSupport Contact Args 
- (Updatable) Contact information for getting support from the publisher for the listing.
- SupportedOperating []PublicationSystems Supported Operating System Args 
- The list of operating systems supported by the listing.
- map[string]string
- 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.
- Map<String,String>
- (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"}
- Map<String,String>
- (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.
- isAgreement BooleanAcknowledged 
- 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 publication, which is also used in the listing.
- packageDetails PublicationPackage Details 
- A base object for creating a publication package.
- packageType String
- The listing's package 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<PublicationSupport Contact> 
- (Updatable) Contact information for getting support from the publisher for the listing.
- supportedOperating List<PublicationSystems Supported Operating System> 
- The list of operating systems supported by the listing.
- Map<String,String>
- 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.
- {[key: string]: string}
- (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"}
- {[key: string]: string}
- (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.
- isAgreement booleanAcknowledged 
- 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 publication, which is also used in the listing.
- packageDetails PublicationPackage Details 
- A base object for creating a publication package.
- packageType string
- The listing's package type.
- shortDescription string
- (Updatable) A short description of the publication to use in the listing.
- state string
- The lifecycle state of the publication.
- supportContacts PublicationSupport Contact[] 
- (Updatable) Contact information for getting support from the publisher for the listing.
- supportedOperating PublicationSystems Supported Operating System[] 
- The list of operating systems supported by the listing.
- {[key: string]: string}
- 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.
- Mapping[str, str]
- (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"}
- Mapping[str, str]
- (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
Sequence[PublicationIcon Args] 
- The model for upload data for images and icons.
- is_agreement_ boolacknowledged 
- 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 publication, which is also used in the listing.
- package_details PublicationPackage Details Args 
- A base object for creating a publication package.
- package_type str
- The listing's package 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 Sequence[PublicationSupport Contact Args] 
- (Updatable) Contact information for getting support from the publisher for the listing.
- supported_operating_ Sequence[Publicationsystems Supported Operating System Args] 
- The list of operating systems supported by the listing.
- Mapping[str, str]
- 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.
- Map<String>
- (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"}
- Map<String>
- (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.
- isAgreement BooleanAcknowledged 
- 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 publication, which is also used in the listing.
- packageDetails Property Map
- A base object for creating a publication package.
- packageType String
- The listing's package 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.
- supportedOperating List<Property Map>Systems 
- The list of operating systems supported by the listing.
- Map<String>
- 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 publication, which is also used in the listing.
- 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 publication, which is also used in the listing.
- 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 publication, which is also used in the listing.
- 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 publication, which is also used in the listing.
- 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 publication, which is also used in the listing.
- 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 publication, which is also used in the listing.
PublicationPackageDetails, PublicationPackageDetailsArgs      
- Eulas
List<PublicationPackage Details Eula> 
- The end user license agreeement (EULA) that consumers of this listing must accept.
- OperatingSystem PublicationPackage Details Operating System 
- 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
[]PublicationPackage Details Eula 
- The end user license agreeement (EULA) that consumers of this listing must accept.
- OperatingSystem PublicationPackage Details Operating System 
- 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<PublicationPackage Details Eula> 
- The end user license agreeement (EULA) that consumers of this listing must accept.
- operatingSystem PublicationPackage Details Operating System 
- 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
PublicationPackage Details Eula[] 
- The end user license agreeement (EULA) that consumers of this listing must accept.
- operatingSystem PublicationPackage Details Operating System 
- 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
Sequence[PublicationPackage Details Eula] 
- The end user license agreeement (EULA) that consumers of this listing must accept.
- operating_system PublicationPackage Details Operating System 
- 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
- The name of the operating system.
- Name string
- The name of the operating system.
- name String
- The name of the operating system.
- name string
- The name of the operating system.
- name str
- The name of the operating system.
- name String
- The name of the operating system.
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 publication, which is also used in the listing.
- Name string
- (Updatable) The name of the publication, which is also used in the listing.
- name String
- (Updatable) The name of the publication, which is also used in the listing.
- name string
- (Updatable) The name of the publication, which is also used in the listing.
- name str
- (Updatable) The name of the publication, which is also used in the listing.
- name String
- (Updatable) The name of the publication, which is also used in the listing.
Import
Publications can be imported using the id, e.g.
$ pulumi import oci:Marketplace/publication:Publication test_publication "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.