Show / Hide Table of Contents

Class CreateSubscriptionDetails

The data to create a Subscription.

Inheritance
object
CreateSubscriptionDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.SelfService.Models
Assembly: OCI.DotNetSDK.Self.dll
Syntax
public class CreateSubscriptionDetails

Properties

AdditionalDetails

Declaration
[JsonProperty(PropertyName = "additionalDetails")]
public List<ExtendedMetadata> AdditionalDetails { get; set; }
Property Value
Type Description
List<ExtendedMetadata>

Additional details that are specific for this subscription such as activation details.

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment to create the subscription in.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

The subscription name. Must be unique within the compartment. This value can be updated.

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}

ProductId

Declaration
[Required(ErrorMessage = "ProductId is required.")]
[JsonProperty(PropertyName = "productId")]
public string ProductId { get; set; }
Property Value
Type Description
string

The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.

Remarks

Required

Realm

Declaration
[JsonProperty(PropertyName = "realm")]
public string Realm { get; set; }
Property Value
Type Description
string

The realm from where customer is buying the subscription.

Region

Declaration
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
Property Value
Type Description
string

The region from where customer is buying the subscription.

SellerId

Declaration
[Required(ErrorMessage = "SellerId is required.")]
[JsonProperty(PropertyName = "sellerId")]
public string SellerId { get; set; }
Property Value
Type Description
string

The OCID for the seller in SELF Service.

Remarks

Required

SourceType

Declaration
[JsonProperty(PropertyName = "sourceType")]
[JsonConverter(typeof(StringEnumConverter))]
public SourceType? SourceType { get; set; }
Property Value
Type Description
SourceType?

The type of seller in SELF Service.

SubscriptionDetails

Declaration
[Required(ErrorMessage = "SubscriptionDetails is required.")]
[JsonProperty(PropertyName = "subscriptionDetails")]
public SubscriptionDetails SubscriptionDetails { get; set; }
Property Value
Type Description
SubscriptionDetails
Remarks

Required

TenantId

Declaration
[Required(ErrorMessage = "TenantId is required.")]
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
Property Value
Type Description
string

The OCID of the tenant to create the subscription in.

Remarks

Required

In this article
Back to top