Oracle Subscriptions - Create Or Update
Create a OracleSubscription
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default?api-version=2025-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
plan |
Details of the resource plan. |
|
properties.intent |
Intent for the update operation |
|
properties.productCode |
string |
Product code for the term unit |
properties.termUnit |
string |
Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601 |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Resource 'OracleSubscription' update operation succeeded |
|
201 Created |
Resource 'OracleSubscription' create operation succeeded Headers
|
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Create or Update Oracle Subscription
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default?api-version=2025-03-01
{
"properties": {},
"plan": {
"name": "plan1",
"publisher": "publisher1",
"product": "product1",
"promotionCode": "none",
"version": "alpha"
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default",
"type": "Oracle.Database/oracleSubscriptions",
"properties": {
"provisioningState": "Succeeded",
"saasSubscriptionId": "saas1",
"cloudAccountId": "ocid1..aaaaaa",
"cloudAccountState": "Pending"
},
"plan": {
"name": "plan1",
"publisher": "publisher1",
"product": "product1",
"promotionCode": "none",
"version": "alpha"
}
}
Retry-After: 100000000
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default",
"type": "Oracle.Database/oracleSubscriptions",
"properties": {},
"plan": {
"name": "plan1",
"publisher": "publisher1",
"product": "product1",
"promotionCode": "none",
"version": "alpha"
}
}
Definitions
Name | Description |
---|---|
Add |
Add Subscription Operation state enum |
Cloud |
CloudAccountProvisioningState enum |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Intent |
Intent enum |
Oracle |
OracleSubscription resource definition |
Oracle |
OracleSubscriptionProvisioningState enum |
Plan |
Plan for the resource. |
system |
Metadata pertaining to creation and last modification of the resource. |
AddSubscriptionOperationState
Add Subscription Operation state enum
Value | Description |
---|---|
Succeeded |
Succeeded - State when Add Subscription operation succeeded |
Updating |
Updating - State when Add Subscription operation is being Updated |
Failed |
Failed - State when Add Subscription operation failed |
CloudAccountProvisioningState
CloudAccountProvisioningState enum
Value | Description |
---|---|
Pending |
Pending - Initial state when Oracle cloud account is not configured |
Provisioning |
Provisioning - State when Oracle cloud account is being provisioned |
Available |
Available - State when Oracle cloud account cloud linking is complete and it is available |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
Intent
Intent enum
Value | Description |
---|---|
Retain |
Retain intent |
Reset |
Reset intent |
OracleSubscription
OracleSubscription resource definition
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
plan |
Details of the resource plan. |
|
properties.addSubscriptionOperationState |
State of the add Azure subscription operation on Oracle subscription |
|
properties.azureSubscriptionIds |
string[] |
Azure subscriptions to be added |
properties.cloudAccountId |
string minLength: 1maxLength: 255 |
Cloud Account Id |
properties.cloudAccountState |
Cloud Account provisioning state. |
|
properties.intent |
Intent for the update operation |
|
properties.lastOperationStatusDetail |
string |
Status details of the last operation on Oracle subscription |
properties.productCode |
string |
Product code for the term unit |
properties.provisioningState |
OracleSubscriptionProvisioningState provisioning state |
|
properties.saasSubscriptionId |
string |
SAAS subscription ID generated by Marketplace |
properties.termUnit |
string |
Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601 |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
OracleSubscriptionProvisioningState
OracleSubscriptionProvisioningState enum
Value | Description |
---|---|
Succeeded |
Resource has been created. |
Failed |
Resource creation failed. |
Canceled |
Resource creation was canceled. |
Plan
Plan for the resource.
Name | Type | Description |
---|---|---|
name |
string |
A user defined name of the 3rd Party Artifact that is being procured. |
product |
string |
The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. |
promotionCode |
string |
A publisher provided promotion code as provisioned in Data Market for the said product/artifact. |
publisher |
string |
The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic |
version |
string |
The version of the desired product/artifact. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |