Skip to main content

partner

Creates, updates, deletes, gets or lists a partner resource.

Overview

Namepartner
TypeResource
Idazure_extras.management_partner.partner

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIdentifier of the partner.
namestringName of the partner.
createdTimestring (date-time)This is the DateTime when the partner was created.
etagintegerType of the partner.
objectIdstringThis is the object id.
partnerIdstringThis is the partner id.
partnerNamestringThis is the partner name.
statestringThis is the partner state. Known values are: "Active" and "Deleted".
tenantIdstringThis is the tenant id.
typestringType of resource. "Microsoft.ManagementPartner/partners".
updatedTimestring (date-time)This is the DateTime when the partner was updated.
versionintegerThis is the version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpartner_idGet a specific Partner. Get the management partner using the partnerId, objectId and tenantId.
createinsertpartner_idCreate a specific Partner. Create a management partner for the objectId and tenantId.
updateupdatepartner_idUpdate a specific Partner. Update the management partner for the objectId and tenantId.
deletedeletepartner_idDelete a specific Partner. Delete the management partner for the objectId and tenantId.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
partner_idstringId of the Partner. Required.

SELECT examples

Get a specific Partner. Get the management partner using the partnerId, objectId and tenantId.

SELECT
id,
name,
createdTime,
etag,
objectId,
partnerId,
partnerName,
state,
tenantId,
type,
updatedTime,
version
FROM azure_extras.management_partner.partner
WHERE partner_id = '{{ partner_id }}' -- required
;

INSERT examples

Create a specific Partner. Create a management partner for the objectId and tenantId.

INSERT INTO azure_extras.management_partner.partner (
partner_id
)
SELECT
'{{ partner_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

UPDATE examples

Update a specific Partner. Update the management partner for the objectId and tenantId.

UPDATE azure_extras.management_partner.partner
SET
-- No updatable properties
WHERE
partner_id = '{{ partner_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Delete a specific Partner. Delete the management partner for the objectId and tenantId.

DELETE FROM azure_extras.management_partner.partner
WHERE partner_id = '{{ partner_id }}' --required
;