Get applicationTemplate
Article
09/27/2023
8 contributors
Feedback
In this article
Namespace: microsoft.graph
Retrieve the properties of an applicationTemplate object.
This API is supported in the following national cloud deployments .
Global service
US Government L4
US Government L5 (DOD)
China operated by 21Vianet
✅
✅
✅
❌
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions .
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
None.
Delegated (personal Microsoft account)
Not supported.
Application
None.
Additional permissions aren't required to call this API, as long as your application has a valid access token to call Microsoft Graph.
HTTP request
GET /applicationTemplates/{id}
Optional query parameters
You can use a $select
query parameter to specify only the properties you need for best performance. The id property is always returned.
For general information, see OData query parameters .
Name
Description
Authorization
Bearer {code}
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and the requested applicationTemplate object in the response body.
Examples
Request
Here's an example of the request.
GET https://graph.microsoft.com/v1.0/applicationTemplates/4f2fc37d-967b-4929-9959-fbe9c9dbccca
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.ApplicationTemplates["{applicationTemplate-id}"].GetAsync();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
applicationTemplates, err := graphClient.ApplicationTemplates().ByApplicationTemplateId("applicationTemplate-id").Get(context.Background(), nil)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
ApplicationTemplate applicationTemplate = graphClient.applicationTemplates("4f2fc37d-967b-4929-9959-fbe9c9dbccca")
.buildRequest()
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
const options = {
authProvider,
};
const client = Client.init(options);
let applicationTemplate = await client.api('/applicationTemplates/4f2fc37d-967b-4929-9959-fbe9c9dbccca')
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->applicationTemplates()->byApplicationTemplateId('applicationTemplate-id')->get()->wait();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
result = await graph_client.application_templates.by_application_template_id('applicationTemplate-id').get()
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
Response
Here's an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"id" : "id-value",
"displayName" : "displayName-value",
"homePageUrl" : "homePageUrl-value",
"supportedSingleSignOnModes" : ["supportedSingleSignOnModes-value"],
"logoUrl" : "logoUrl-value",
"categories" : ["categories-value"],
"publisher" : "publisher-value",
"description" : "description-value"
}