Share via


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
subscriptionId
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

Plan

Details of the resource plan.

properties.intent

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

OracleSubscription

Resource 'OracleSubscription' update operation succeeded

201 Created

OracleSubscription

Resource 'OracleSubscription' create operation succeeded

Headers

  • Azure-AsyncOperation: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

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
AddSubscriptionOperationState

Add Subscription Operation state enum

CloudAccountProvisioningState

CloudAccountProvisioningState enum

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

Intent

Intent enum

OracleSubscription

OracleSubscription resource definition

OracleSubscriptionProvisioningState

OracleSubscriptionProvisioningState enum

Plan

Plan for the resource.

systemData

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

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

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

Plan

Details of the resource plan.

properties.addSubscriptionOperationState

AddSubscriptionOperationState

State of the add Azure subscription operation on Oracle subscription

properties.azureSubscriptionIds

string[]

Azure subscriptions to be added

properties.cloudAccountId

string

minLength: 1
maxLength: 255

Cloud Account Id

properties.cloudAccountState

CloudAccountProvisioningState

Cloud Account provisioning state.

properties.intent

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

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

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

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

createdByType

The type of identity that last modified the resource.