Il supporto di Cloud Deployment Manager terminerà il 31 dicembre 2025. Se al momento utilizzi Deployment Manager, esegui la migrazione a Infrastructure Manager o a una tecnologia di deployment alternativa entro il 31 dicembre 2025 per assicurarti che i tuoi servizi continuino senza interruzioni.
Creazione di provider di tipi personalizzati con backend personalizzati
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina descrive la creazione di tipi personalizzati per Google Cloud Deployment Manager basati su backend personalizzati.
La funzionalità Azioni è una funzionalità alpha che amplia la gamma di metodi API che Deployment Manager può chiamare. Poiché questa funzionalità non è supportata, ti consigliamo di eseguire la migrazione dell'utilizzo esistente di Actions ad alternative supportate. Alcune azioni, come
storage.buckets.setIamPolicy, corrispondono ai tipi di risorse di Deployment Manager
esistenti, che puoi
utilizzare per sostituirli.
Se il deployment richiede l'utilizzo di azioni che non possono essere sostituite dai
tipi di risorse di Deployment Manager supportati esistenti,
segui questa guida per creare un tipo personalizzato con un backend personalizzato per sostituire
l'utilizzo di queste azioni.
Creazione del provider di tipi personalizzato
Per una panoramica generale dell'integrazione di un'API di terze parti con Deployment Manager, consulta Integrazione con Deployment Manager.
Devi creare un backend personalizzato per esporre l'API al tuo provider di tipi personalizzati.
Per creare un backend personalizzato, puoi utilizzare uno dei seguenti metodi:
Un modo per ridurre lo sforzo di sviluppo necessario per creare un backend personalizzato è utilizzare
le funzioni Cloud Run. Se utilizzi già altre soluzioni serverless
nel tuo processo di sviluppo, potrebbe essere più efficiente utilizzarle. Per una panoramica dell'utilizzo delle funzioni Cloud Run come backend per un fornitore di tipi personalizzati, consulta l'implementazione di esempio del fornitore di tipi personalizzati.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-03 UTC."],[[["\u003cp\u003eThis guide details the process of creating custom types in Google Cloud Deployment Manager, backed by custom backends, to replace unsupported Actions.\u003c/p\u003e\n"],["\u003cp\u003eCustom backends can be implemented by building a RESTful service or leveraging serverless solutions like Cloud Run functions, Cloud Run, or App Engine.\u003c/p\u003e\n"],["\u003cp\u003eTo integrate a third-party API, you must first create a custom type provider.\u003c/p\u003e\n"],["\u003cp\u003eThe actions feature is now unsupported, which means that existing Actions need to be replaced with supported alternatives or by creating a custom type with a custom backend.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing Cloud Run functions can streamline the development of a custom backend for a custom type provider.\u003c/p\u003e\n"]]],[],null,["# Creating custom type providers with custom backends\n\nThis page describes creating custom types for Google Cloud Deployment Manager that are backed\nby custom backends.\n\nThe [Actions feature](/deployment-manager/docs/migrations/actions) is an alpha\nfeature that expands the range of API methods that Deployment Manager can\ncall. Because this feature is unsupported, we recommend that you\n[migrate your existing usage](/deployment-manager/docs/migrations/actions#migrating)\nof Actions to supported alternatives. Some Actions, such as\n`storage.buckets.setIamPolicy`, correspond to existing Deployment Manager\nresource types, which you\n[can use to replace them](/deployment-manager/docs/migrations/storage-buckets-setiampolicy).\nIf your deployment requires the use of Actions that can't be replaced by\nexisting\n[supported Deployment Manager resource types](/deployment-manager/docs/configuration/supported-resource-types),\nfollow this guide to create a custom type with a custom backend to replace your\nusage of these Actions.\n\nCreating your custom type provider\n==================================\n\nFor a high-level overview of integrating a third-party API with\nDeployment Manager, visit\n[Integrating with Deployment Manager](/deployment-manager/docs/configuration/type-providers/process-adding-api).\n\nFor instructions on adding an API as a type provider, visit\n[Adding an API as a type provider](/deployment-manager/docs/configuration/type-providers/creating-type-provider).\n\nFor advanced configuration options, such as input mappings, visit\n[Setting advanced API options](/deployment-manager/docs/configuration/type-providers/advanced-configuration-options).\n\nFor the requirements to add an API to Deployment Manager, visit\n[API requirements for integrating an API](/deployment-manager/docs/configuration/type-providers/api-requirements).\n\nCreating your custom backend\n============================\n\nYou must create a custom backend to expose the API to your custom type provider.\nTo create a custom backend, you can use one of the following methods:\n\n- Building and hosting a RESTful service on a platform of your choice. Refer\n to the\n [requirements for integrating an API](/deployment-manager/docs/configuration/type-providers/api-requirements).\n\n- Using one of the following serverless solutions to implement your custom\n backend:\n\n - [Cloud Run functions](/functions)\n\n - [Cloud Run](/run)\n\n - [App Engine](/appengine), in\n [standard or flexible mode](/appengine/docs/the-appengine-environments)\n\nOne way to reduce the development effort of creating a custom backend is to use\n[Cloud Run functions](/functions). If you already use other serverless solutions\nas a part of your development process, it might be more efficient to use those\ninstead. For an overview of using Cloud Run functions as the backend for a custom\ntype provider, visit the\n[Custom Type Provider](https://github.com/GoogleCloudPlatform/deploymentmanager-samples/blob/fa69cee7cf6cb09e9fc1d6c353c7d438d85ea554/google/resource-snippets/functions-backed-type/readme.md#high-level-approach)\nexample implementation."]]