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[_marketplace.PublicationPackageDetailsArgs] = None,
short_description: Optional[str] = None,
support_contacts: Optional[Sequence[_marketplace.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:
- Compartment
Id string - (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 string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- Package
Details PublicationPackage Details - A base object for creating a publication package.
- Short
Description string - (Updatable) A short description of the publication to use in the listing.
- Support
Contacts 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"}
- Long
Description 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 string - (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 string - 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 string - (Updatable) A short description of the publication to use in the listing.
- Support
Contacts []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"}
- Long
Description 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 String - (Updatable) The OCID of the compartment where you want to create the publication.
- is
Agreement 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.
- listing
Type String - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- package
Details PublicationPackage Details - A base object for creating a publication package.
- short
Description String - (Updatable) A short description of the publication to use in the listing.
- support
Contacts 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"}
- long
Description 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 string - (Updatable) The OCID of the compartment where you want to create the publication.
- is
Agreement 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.
- listing
Type string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- package
Details PublicationPackage Details - A base object for creating a publication package.
- short
Description string - (Updatable) A short description of the publication to use in the listing.
- support
Contacts 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"}
- long
Description 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 marketplace.Publication Package 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[marketplace.Publication Support 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.
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the publication.
- is
Agreement 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.
- listing
Type String - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- package
Details Property Map - A base object for creating a publication package.
- short
Description String - (Updatable) A short description of the publication to use in the listing.
- support
Contacts 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"}
- long
Description 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<Publication
Icon> - The model for upload data for images and icons.
- Id string
- The provider-assigned unique ID for this managed resource.
- Package
Type string - The listing's package type.
- State string
- The lifecycle state of the publication.
- Supported
Operating 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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Icons
[]Publication
Icon - The model for upload data for images and icons.
- Id string
- The provider-assigned unique ID for this managed resource.
- Package
Type string - The listing's package type.
- State string
- The lifecycle state of the publication.
- Supported
Operating []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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- icons
List<Publication
Icon> - The model for upload data for images and icons.
- id String
- The provider-assigned unique ID for this managed resource.
- package
Type String - The listing's package type.
- state String
- The lifecycle state of the publication.
- supported
Operating 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}}
- time
Created String - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- icons
Publication
Icon[] - The model for upload data for images and icons.
- id string
- The provider-assigned unique ID for this managed resource.
- package
Type string - The listing's package type.
- state string
- The lifecycle state of the publication.
- supported
Operating 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}}
- time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- icons
Sequence[marketplace.
Publication Icon] - 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[marketplace.systems Publication 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.
- package
Type String - The listing's package type.
- state String
- The lifecycle state of the publication.
- supported
Operating 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}}
- time
Created 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[_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, str]] = 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.
- Compartment
Id 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<Publication
Icon> - 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 string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- Long
Description 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.
- Package
Details PublicationPackage Details - A base object for creating a publication package.
- Package
Type string - The listing's package type.
- Short
Description string - (Updatable) A short description of the publication to use in the listing.
- State string
- The lifecycle state of the publication.
- Support
Contacts List<PublicationSupport Contact> - (Updatable) Contact information for getting support from the publisher for the listing.
- Supported
Operating 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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id 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
[]Publication
Icon 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 string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- Long
Description 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.
- Package
Details PublicationPackage Details Args - A base object for creating a publication package.
- Package
Type string - The listing's package type.
- Short
Description string - (Updatable) A short description of the publication to use in the listing.
- State string
- The lifecycle state of the publication.
- Support
Contacts []PublicationSupport Contact Args - (Updatable) Contact information for getting support from the publisher for the listing.
- Supported
Operating []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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id 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<Publication
Icon> - The model for upload data for images and icons.
- is
Agreement 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.
- listing
Type String - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- long
Description 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.
- package
Details PublicationPackage Details - A base object for creating a publication package.
- package
Type String - The listing's package type.
- short
Description String - (Updatable) A short description of the publication to use in the listing.
- state String
- The lifecycle state of the publication.
- support
Contacts List<PublicationSupport Contact> - (Updatable) Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created String - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id 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
Publication
Icon[] - The model for upload data for images and icons.
- is
Agreement 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.
- listing
Type string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- long
Description 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.
- package
Details PublicationPackage Details - A base object for creating a publication package.
- package
Type string - The listing's package type.
- short
Description string - (Updatable) A short description of the publication to use in the listing.
- state string
- The lifecycle state of the publication.
- support
Contacts PublicationSupport Contact[] - (Updatable) Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created 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[marketplace.
Publication Icon 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 marketplace.Publication Package 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[marketplace.Publication Support Contact Args] - (Updatable) Contact information for getting support from the publisher for the listing.
- supported_
operating_ Sequence[marketplace.systems Publication 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
- compartment
Id 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.
- is
Agreement 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.
- listing
Type String - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- long
Description 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.
- package
Details Property Map - A base object for creating a publication package.
- package
Type String - The listing's package type.
- short
Description String - (Updatable) A short description of the publication to use in the listing.
- state String
- The lifecycle state of the publication.
- support
Contacts List<Property Map> - (Updatable) Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created 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
- Content
Url string - The content URL of the upload data.
- File
Extension string - The file extension of the upload data.
- Mime
Type 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 string - The content URL of the upload data.
- File
Extension string - The file extension of the upload data.
- Mime
Type 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 String - The content URL of the upload data.
- file
Extension String - The file extension of the upload data.
- mime
Type 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 string - The content URL of the upload data.
- file
Extension string - The file extension of the upload data.
- mime
Type 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.
- content
Url String - The content URL of the upload data.
- file
Extension String - The file extension of the upload data.
- mime
Type 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<Publication
Package 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 string - The package's type.
- Package
Version string - The package version.
- Image
Id string - The unique identifier for the base image of the publication.
- Eulas
[]Publication
Package 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 string - The package's type.
- Package
Version string - The package version.
- Image
Id string - The unique identifier for the base image of the publication.
- eulas
List<Publication
Package 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 String - The package's type.
- package
Version String - The package version.
- image
Id String - The unique identifier for the base image of the publication.
- eulas
Publication
Package 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 string - The package's type.
- package
Version string - The package version.
- image
Id string - The unique identifier for the base image of the publication.
- eulas
Sequence[marketplace.
Publication Package Details Eula] - The end user license agreeement (EULA) that consumers of this listing must accept.
- operating_
system marketplace.Publication Package 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.
- operating
System Property Map - The operating system used by the listing.
- package
Type String - The package's type.
- package
Version String - The package version.
- image
Id String - The unique identifier for the base image of the publication.
PublicationPackageDetailsEula, PublicationPackageDetailsEulaArgs
- Eula
Type string - The end user license agreement's type.
- License
Text string - The text of the end user license agreement.
- Eula
Type string - The end user license agreement's type.
- License
Text string - The text of the end user license agreement.
- eula
Type String - The end user license agreement's type.
- license
Text String - The text of the end user license agreement.
- eula
Type string - The end user license agreement's type.
- license
Text 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.
- eula
Type String - The end user license agreement's type.
- license
Text 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
oci
Terraform Provider.