Share via


Look Up Resource Id - Post

This operation fetches ARM resource id of support resource type.

POST https://management.azure.com/providers/Microsoft.Support/lookUpResourceId?api-version=2023-06-01-preview

URI Parameters

Name In Required Type Description
api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Type Description
identifier

string

The System generated Id that is unique. Use supportTicketId property for Microsoft.Support/supportTickets resource type.

type

ResourceType

The type of resource.

Responses

Name Type Description
200 OK

LookUpResourceIdResponse

OK. Successfully obtained resource id of support resource type.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

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

Look up resource id of support resource type

Sample request

POST https://management.azure.com/providers/Microsoft.Support/lookUpResourceId?api-version=2023-06-01-preview

{
  "type": "Microsoft.Support/supportTickets",
  "identifier": "1234668596"
}

Sample response

{
  "resourceId": "/subscriptions/subId/providers/Microsoft.Support/supportTickets/SupportTicketName"
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

LookUpResourceIdRequest

The look up resource Id request body

LookUpResourceIdResponse

The look up resource id response

ResourceType

The type of resource.

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.

LookUpResourceIdRequest

The look up resource Id request body

Name Type Description
identifier

string

The System generated Id that is unique. Use supportTicketId property for Microsoft.Support/supportTickets resource type.

type

ResourceType

The type of resource.

LookUpResourceIdResponse

The look up resource id response

Name Type Description
resourceId

string

The resource Id of support resource type.

ResourceType

The type of resource.

Value Description
Microsoft.Support/supportTickets