meshcloud

meshcloud

  • User Docs
  • Operator Docs
  • API Docs
  • Release Notes
  • FAQ
  • Help
  • Feedback

›Guides

meshcloud

  • Overview
  • meshCustomer
  • meshProject
  • meshTenant
  • meshTenant Quota
  • Landing Zones
  • User Account
  • meshPlatforms
  • Project Resources
  • Project Metering
  • Payment Methods
  • Budget Alerts
  • Service Users
  • Metadata Tags
  • meshPolicies

meshMarketplace

  • Overview
  • Service Instances

Administration

  • Overview
  • meshCustomers
  • meshProjects
  • meshTenants
  • Delete Tenants
  • meshUsers
  • meshPlatforms
  • Landing Zones
  • Usage Reports
  • Resource Inventory
  • Service Brokers
  • Analytics
  • Guide: Emergency Users
  • meshPolicies
  • Unmanaged Tenants
  • meshStack Settings
  • API Users

Platforms

  • OpenStack
  • Cloud Foundry
  • Azure
  • Other Platforms

Guides

  • How to onboard your team to your meshCustomer
  • How to create a meshProject
  • How to onboard your team to a meshProject
  • How to change the Customer Owner of a meshCustomer via API
  • How to delete meshObjects in the meshPanel

FAQ

  • Projects FAQ
Edit

How to change the Customer Owner of a meshCustomer via API

This how-to guide is targeted at Cloud Foundation Partners. You need a meshObject API user to run through the steps below.

If the meshCustomer does not have a Customer Owner yet, you can add yourself as a Customer Admin and assign yourself the Customer Owner role via the panel.

If the meshCustomer has a single Customer Owner set, you do not need to use a meshObjectCollection and can start at step 3.

If the meshCustomer has two Customer Owners set, you need to follow all three steps.

Step 1: Create a meshObjectCollection

Follow API docs to create a meshObjectCollection.

curl --location --request POST 'https://backend-url/api/meshobjectcollections' \
--header 'Content-Type:  application/vnd.meshcloud.api.meshobjectcollection.v1+json;charset=UTF-8' \
--header 'Authorization: Basic xyz' \
--data-raw '{
"name": "collection-my-customer-customer-owners",
"owner": "partner@meshcloud.io",
"description": "This is a meshObjectCollection."
}'

Step 2: Import existing Customer Owners into the meshObjectCollection

Import the existing meshCustomerUserBindings for the Customer Owners into the meshObjectCollection. Importing is done by specifying the meshObjectCollection in the request URL.

curl --location --request PUT 'https://backend-url/api/meshobjects?meshObjectCollection=collection-my-customer-customer-owners&owner=partner@meshcloud.io' \
--header 'Content-Type:  application/vnd.meshcloud.api.meshobjects.v1+yaml;charset=UTF-8' \
--header 'Accept:  application/vnd.meshcloud.api.meshobjects.v1+json' \
--header 'Authorization: Basic xyz' \
--data-raw 'apiVersion: v1
kind: meshCustomerUserBinding
roleRef:
  name: Customer Owner
targetRef:
  name: my-customer
subjects:
  - name: partner@meshcloud.io'

Step 3: Set yourself as Customer Owner

Set yourself as Customer Owner.

# If you skipped steps 1 and 2, replace the first line of the command below with:
# curl --location --request PUT 'https://backend-url/api/meshobjects \
# If you went through steps 1 and 2, run the command as is:
curl --location --request PUT 'https://backend-url/api/meshobjects?meshObjectCollection=collection-my-customer-customer-owners&owner=partner@meshcloud.io' \
--header 'Content-Type:  application/vnd.meshcloud.api.meshobjects.v1+yaml;charset=UTF-8' \
--header 'Accept:  application/vnd.meshcloud.api.meshobjects.v1+json' \
--header 'Authorization: Basic xyz' \
--data-raw 'apiVersion: v1
kind: meshCustomerUserBinding
roleRef:
  name: Customer Owner
targetRef:
  name: my-customer
subjects:
  - name: partner@meshcloud.io'
Last updated on 3/21/2023
← How to onboard your team to a meshProjectHow to delete meshObjects in the meshPanel →
  • Step 1: Create a meshObjectCollection
  • Step 2: Import existing Customer Owners into the meshObjectCollection
  • Step 3: Set yourself as Customer Owner
meshcloud
Docs
User DocumentationOperator Documentation
Community & Follow us
TwitterFacebookLinkedInXING
More
Release NotesGitHub
Copyright © 2023 meshcloud GmbH