Class ResourceAnchor
A ResourceAnchor is a description of a ResourceAnchor.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to
an administrator. If you're an administrator who needs to write policies to give users access, see
Getting Started with Policies.
Inherited Members
Namespace: Oci.MulticloudService.Models
Assembly: OCI.DotNetSDK.Multicloud.dll
Syntax
public class ResourceAnchor
Properties
CloudServiceProviderMetadataItem
Declaration
[JsonProperty(PropertyName = "cloudServiceProviderMetadataItem")]
public CloudServiceProviderMetadataItem CloudServiceProviderMetadataItem { get; set; }
Property Value
| Type | Description |
|---|---|
| CloudServiceProviderMetadataItem |
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. |
Remarks
Required
DefinedTags
Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[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.
|
Remarks
Required
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A user-friendly name. Does not have to be unique, and it's changeable. |
Remarks
Required
FreeformTags
Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[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.
|
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the ResourceAnchor. |
Remarks
Required
LifecycleDetails
Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state. |
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ResourceAnchor.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| ResourceAnchor.LifecycleStateEnum? | The current state of the ResourceAnchor. |
Remarks
Required
LinkedCompartmentId
Declaration
[JsonProperty(PropertyName = "linkedCompartmentId")]
public string LinkedCompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live. |
Region
Declaration
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
Property Value
| Type | Description |
|---|---|
| string | OCI Region that resource is created. |
SetupMode
Declaration
[JsonProperty(PropertyName = "setupMode")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ResourceAnchor.SetupModeEnum? SetupMode { get; set; }
Property Value
| Type | Description |
|---|---|
| ResourceAnchor.SetupModeEnum? | AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only |
SubscriptionId
Declaration
[Required(ErrorMessage = "SubscriptionId is required.")]
[JsonProperty(PropertyName = "subscriptionId")]
public string SubscriptionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Oracle Cloud Infrastructure Subscription Id |
Remarks
Required
SubscriptionType
Declaration
[JsonProperty(PropertyName = "subscriptionType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public SubscriptionType? SubscriptionType { get; set; }
Property Value
| Type | Description |
|---|---|
| SubscriptionType? | subscription type |
SystemTags
Declaration
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | System tags for this resource. Each key is predefined and scoped to a namespace.
|
Remarks
Required
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the ResourceAnchor was created, in the format defined by RFC 3339.
|
Remarks
Required
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the ResourceAnchor was updated, in the format defined by RFC 3339.
|