Get Microsoft Partner Network profile

Applies To

  • Partner Center
  • Partner Center operated by 21Vianet
  • Partner Center for Microsoft Cloud Germany
  • Partner Center for Microsoft Cloud for US Government

Gets an object representing the partner's MPN profile.

Prerequisites

Examples

C#

To get a partner network profile, use your IAggregatePartner.Profiles collection and call the MpnProfile property. Finally, call the Get() or GetAsync() methods.

// IAggregatePartner partnerOperations;

var mpnProfile = partnerOperations.Profiles.MpnProfile.Get();

Sample: Console test app. Project:PartnerCenterSDK.FeaturesSamples Class: GetMPNProfile.cs

Java

To get a partner network profile, use your IAggregatePartner.getProfiles function and call the getMpnProfile function. Finally, call the get() function.

// IAggregatePartner partnerOperations;

MpnProfile mpnProfile = partnerOperations.getProfiles().getMpnProfile().get();

PowerShell

To get a partner network profile, execute the Get-PartnerMpnProfile command.

Get-PartnerMpnProfile

Request

Request syntax

Method Request URI
GET {baseURL}/v1/profiles/mpn HTTP/1.1

Request headers

  • See Headers for more information.

Request body

None.

Request example

GET https://api.partnercenter.microsoft.com/v1/profiles/mpn HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: 76879323-92d1-437e-90dd-c84dbb9f7dec
MS-CorrelationId: cb9f3209-d020-4bf9-871c-e1f1c75348f8
Connection: Keep-Alive

Response

If successful, this method returns a MPNProfile object in the response body.

Response success and error codes

Each response comes with an HTTP status code that indicates success or failure and additional debugging information. Use a network trace tool to read this code, error type, and additional parameters. For the full list, see Error Codes.

Response example

HTTP/1.1 200 OK
Content-Length: 177
Content-Type: application/json; charset=utf-8
MS-CorrelationId: cb9f3209-d020-4bf9-871c-e1f1c75348f8
MS-RequestId: 76879323-92d1-437e-90dd-c84dbb9f7dec
Date: Mon, 21 Mar 2016 05:51:29 GMT

{
    "mpnId":"<mpnID>",
    "profileType":"MpnProfile",
    "links":{
        "self":{
            "uri":"/profiles/mpn",
            "method":"GET",
            "headers":[]
        }
    },
    "attributes":{
        "objectType":"MpnProfile"
    }
}