• About
  • Get Jnews
  • Contcat Us
Monday, March 27, 2023
various4news
No Result
View All Result
  • Login
  • News

    Breaking: Boeing Is Stated Shut To Issuing 737 Max Warning After Crash

    BREAKING: 189 individuals on downed Lion Air flight, ministry says

    Crashed Lion Air Jet Had Defective Velocity Readings on Final 4 Flights

    Police Officers From The K9 Unit Throughout A Operation To Discover Victims

    Folks Tiring of Demonstration, Besides Protesters in Jakarta

    Restricted underwater visibility hampers seek for flight JT610

    Trending Tags

    • Commentary
    • Featured
    • Event
    • Editorial
  • Politics
  • National
  • Business
  • World
  • Opinion
  • Tech
  • Science
  • Lifestyle
  • Entertainment
  • Health
  • Travel
  • News

    Breaking: Boeing Is Stated Shut To Issuing 737 Max Warning After Crash

    BREAKING: 189 individuals on downed Lion Air flight, ministry says

    Crashed Lion Air Jet Had Defective Velocity Readings on Final 4 Flights

    Police Officers From The K9 Unit Throughout A Operation To Discover Victims

    Folks Tiring of Demonstration, Besides Protesters in Jakarta

    Restricted underwater visibility hampers seek for flight JT610

    Trending Tags

    • Commentary
    • Featured
    • Event
    • Editorial
  • Politics
  • National
  • Business
  • World
  • Opinion
  • Tech
  • Science
  • Lifestyle
  • Entertainment
  • Health
  • Travel
No Result
View All Result
Morning News
No Result
View All Result
Home Computing

Utilization Meter Registration and Utilization Report APIs at the moment are a part of Cloud Supplier APIs on developer.vmware.com

Rabiesaadawi by Rabiesaadawi
February 6, 2023
in Computing
0
Improve to Utilization Meter 4.5.0.1 and Keep away from Potential Enterprise Disruption
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


We’ve an necessary announcement to make – Utilization Meter and Utilization Report APIs at the moment are a part of the Cloud Supplier Navigator and could be accessed from the Cloud Supplier part on developer.vmware.com. Moreover, there’s a new API for registering Utilization Meter with a contract within the VCPP Commerce Portal. Right here is how the Utilization API web page seems to be like on developer.vmware.com.

On this weblog submit, we are going to reveal the steps of registering a Utilization Meter occasion, getting data and downloading utilization experiences.

Earlier than utilizing the aforementioned APIs, there are a number of conditions that must be happy.

Stipulations

  1. A refresh token generated from Cloud Accomplice Navigator/Consumer Profile/API Tokens. Data could be discovered right here or scroll to the Producing an Entry Token part on this weblog submit.
  2. An entry token generated from the Cloud Accomplice Navigator refresh token. Learn right here or scroll to the Producing an Entry Token part on this weblog submit.

Word: A generated entry token expires after half-hour so that you must regenerate it infrequently.

Producing an Entry Token for Authentication

To execute the API requests described on this weblog submit, you’ll need to generate a refresh token from Cloud Accomplice Navigator (CPN) after which execute a POST request to the Cloud Providers Portal gateway to get the entry token with which you’ll authenticate with the CPN service – Utilization Perception.

The Utilization Perception service is the service which is able to register your Utilization Meter with a contract within the Commerce Portal and generate experiences for a Utilization Meter occasion.

Now let’s see learn how to generate an entry token:

  1. Log in to Cloud Accomplice Navigator.
  2. Change to the group for which you want to register a Utilization Meter or obtain utilization experiences.
  3. Beneath your username, click on My Account.
  4. Click on on the API Tokens tab.
  5. Within the API Tokens web page, click on GENERATE TOKEN.
  6. Copy the token and click on Proceed.

Word: Save your refresh token someplace as you’ll need it repeatedly to generate an entry token in your utilization API calls.

  1. In your API shopper, make the next POST Request to the Cloud Accomplice Navigator Service Gateway to generate an entry token.




POST https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize

READ ALSO

VMware vSAN 8 Replace 1 for Cloud Companies Suppliers

Is Your Wi-Fi Community a Safety Danger?

This entry token you’ll use to authenticate with Utilization Perception when sending the request for registering your Utilization Meter with a contract within the Commerce Portal.

See the pattern request and response:

Pattern cURL Code:




curl —location —request POST ‘https://console-.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize’

—header ‘Content material-Sort: utility/x-www-form-urlencoded’

—header ‘Settle for: utility/json’

—header ‘Cookie: incap_ses_875_1285679=dI6yChlNDWmSHUSOe6AkDJeH22MAAAAAVl2Twv8diGo4dJ3dWNmwZg==; nlbi_1285679=U7QpOt23TR0lxkHi+iiRRwAAAACv7L8J9/EtUtWlx9vSOrbq’

—knowledge–urlencode ‘refresh_token=7lz-3tDup5w1xGV54iRHyhlEIq5Malq1Ii5ZgoYuCBqq95jbwIvTBLsCxu3RsNyU’

Word: Substitute the refresh token with your personal generated from the CPN API Token web page.

  1. Copy the entry token from the response. Use it when executing the API requests described on this weblog submit.

Checking if a Utilization Meter occasion is registered

Earlier than registering a Utilization Meter, test if it has already been registered with Utilization Perception.

Right here is learn how to do it:

  1. Execute the next GET registration request:




GET https://ums.vmware.com/utilization/api/v1/agent-registrations/um-uuid

  • Use the UUID of your Utilization Meter.
  • Use the generated entry token to authenticate to the service.
  1. In case your registration is profitable, you’ll get the next response: Standing 200 OK, additionally a contract quantity, and a website title. See the screenshot under:

Pattern cURL Code




curl —location —request GET ‘https://ums.vmware.com/utilization/api/v1/agent-registrations/9273dc74-2cef-4009-abcc-69fe9ccfde8d’

—header ‘Authorization: Bearer

Word: Substitute the Utilization Meter UUID with your personal. You could find it in your Utilization Meter internet utility, below the About tab. Use the entry token you generated for the authorization.

Registering a Utilization Meter within the Commerce Portal

To register your Utilization Meter with a contract within the Commerce Portal utilizing the brand new REST API, you’ll need to authenticate with the Utilization Perception service to which to ship the registration request.

Listed here are the precise steps:

  1. Ship POST request to the Utilization Perception service, which is able to deal with the registration of the Utilization Meter occasion with a contract within the Commerce Portal.




POST https://ums.vmware.com/utilization/api/v1/agent-registrations

  1. Within the physique of the request, it’s essential to specify the next:




{

“agentId”: “88531d1c-296e-4b47-8431-c0e8182148e7”, // that is the UM UUID

“connectivityMode”: “ONLINE”,  //the mode through which UM will report knowledge

“contractNumber”: “1012345”, // the variety of the VCPP contract with which you’ll register your UM

“label”: “um46-reg-demo”, // the title you’ll give to your Utilization Meter

“meteringMode”: “PRODUCTION”, // the mode through which the information can be reported to the Commerce Portal

“siteName”: “Web site A”, // the positioning of the group with which you’ll register this UM

“model”: “4.6” // The UM model Word: Don’t use 4.x right here, because the request will return an error.

}

 

  1. For the authorization with the Utilization Perception service, use the generated entry token.
  1. Execute the request. If the Utilization Meter registration is profitable, then you’ll get code 202. See an instance under:

If this Utilization Meter has already been registered, you’ll get code 201.

  1. Go to the VMware Commerce portal to confirm if Utilization Meter is registered with the desired contract and org website.

Pattern cURL code




curl —location —request POST ‘https://ums.vmware.com/utilization/api/v1/agent-registrations’

—header ‘Content material-Sort: utility/json’

—header ‘Authorization: Bearer

–data-raw ‘{

“agentId”: “88531d1c-296e-4b47-8431-c0e8182148e7”,

“connectivityMode”: “ONLINE”,

“contractNumber”: “1012345”,

“label”: “um46-reg-demo”,

“meteringMode”: “PRODUCTION”,

“siteName”: “Web site A”,

“model”: “4.6”

 

}‘

Word: Use your Utilization Meter particulars an present the entry token you generated from the CPN refresh token.

Getting Data on All Utilization Stories

Utilization report API is now dully documented and is able to be carried out in your group. Listed here are the API requests that you should utilize to automate your utilization report technology:

  • Get data on all utilization experiences for a particular month and yr for a company
  • Obtain a particular utilization report by specifying its reference quantity retrieved from the get data on all utilization experiences API request
  • Lastly, get data on all experiences related by a utilization meter UUID

Get Data on All Utilization Stories for a Month

To get data on all utilization experiences of all Utilization Meters in your CPN group for a specific month and yr, do the next:

  1. Execute GET https://ums.vmware.com/utilization/api/v1/experiences/2023/1 request to the Utilization Perception service endpoint.
  2. Present the month and yr for which you want to get all utilization experiences for all of your registered Utilization Meters.
  3. Authenticate to Utilization Perception with the generated entry token.
  4. In case your request is profitable, you’ll get Standing 200 OK and an inventory of all utilization experiences related to Utilization Meter UUID. Right here is an instance of the response.

Pattern cURL code




curl —location —request GET ‘https://ums.vmware.com/utilization/api/v1/experiences/2023/01’

—header ‘Authorization: Bearer

 

Word: Specify a month and a yr for which to get data on all utilization experiences of a CPN group.

Obtain a Particular Utilization Report

To obtain a particular Utilization Meter report, that you must present within the parameters of your API request the reference variety of that report. To search out it, you want first to set off GET data on all utilization experiences request. See the Getting Data on All Utilization Stories for a Month part.

Right here is learn how to obtain a particular Utilization Meter report:

1. Make a GET request to https://ums.vmware.com/utilization/api/v1/experiences and specify the next:

  • Within the parameters of the request enter the reference variety of the report. This worth it’s essential to retrieve from the request defined within the Get Data on All Stories for a Month part.
  • Within the header of the request, it’s essential to specify the Settle for parameter to be the content material kind of the report (once more get this data from the get data on all utilization experiences API request)
  • Authenticate to the Utilization Perception service by utilizing the generated entry code.
  1. The response can be Standing 200 OK if the request is profitable, and also you additionally get the textual content of the zipped report. On this instance, the response just isn’t decoded as Postman does node decode the content material of zipped information.
  1. Save the response.  In Postman, the way in which to do it’s to click on Save Response. This manner you’ll obtain the referenced report.

Pattern cURL code




curl —location —request GET ‘https://ums.vmware.com/utilization/api/v1/experiences?ref=nPrNoRBz9cjia2YSJvUPpBNQY3raKZidg7dGzdAkmpercent2FzNGJFpVEKmccXNchrMZA7tHJKtWuOtbwmj0rB1gXb48PMQx0iSYRpercent2Fl1MYB03sZa7G8A4JGppTBszl6gmVXapXFjO2g’

—header ‘Settle for: textual content/tab-separated-values+gzip’

—header ‘Content material-Sort: utility/json’

—header ‘Authorization: Bearer

Word: Use the reference variety of the report you want to obtain the your generated entry token.

Get Data on all Stories of a Utilization Meter Occasion

To get data on all utilization experiences of a particular Utilization Meters, do the next:

  1. Execute a GET request to the Utilization Perception service, specifying the month and yr for which you want to get data and the uuid of the utilization meter with which the experiences are related.
  1. Present the generated entry token with which to authenticate with the Utilization Perception service.
  1. You’ll get the next response: Standing 200 OK and the small print of all experiences associated to this Utilization Meter and their reference numbers.

Word: Use the reference variety of the experiences you want to obtain with the GET / https://ums.vmware.com/utilization/api/v1/experiences API request.

Right here is an instance of the request and its response.

Pattern cURL Code




curl —location —request GET ‘https://ums.vmware.com/utilization/api/v1/experiences/2023/01/9273dc74-2cef-4009-abcc-69fe9ccfde8d’

—header ‘Authorization: Bearer

 

Word: Specify a month and a yr for which to get data on all utilization experiences related to the uuid of your utilization meter. Substitute the Utilization Meter UUID on this instance with your personal.

Conclusion

In a conclusion, you should utilize these APIs as a part of your Utilization Meter reporting automation.  Now with the registration of the Utilization Meter occasion you’ll be able to absolutely automate the set up and configuration of your Utilization Meter cases.

We’ll maintain enhancing and increasing our Utilization Meter-related APIs and wish to hear from you about what different APIs we are able to develop to enhance your reporting expertise.

The remainder of the Utilization Meter API requests could be discovered right here. Cloud Accomplice Navigator and Commerce Portal APIs could be discovered right here and right here.

For extra questions or queries, depart a remark under or ship us an electronic mail to [email protected] There’s a Slack channel accessible to cloud suppliers the place you too can ask your questions.



Source_link

Related Posts

VMware vSAN 8 for Cloud Service Suppliers
Computing

VMware vSAN 8 Replace 1 for Cloud Companies Suppliers

March 27, 2023
Is Your Wi-Fi Community a Safety Danger?
Computing

Is Your Wi-Fi Community a Safety Danger?

March 26, 2023
Don’t Panic: Overcoming IT Infrastructure Disasters
Computing

Don’t Panic: Overcoming IT Infrastructure Disasters

March 26, 2023
AWS Week in Evaluation – March 20, 2023
Computing

AWS Week in Evaluation – March 20, 2023

March 26, 2023
Even with protection instruments, CISOs say cyberattacks are ‘inevitable’
Computing

Even with protection instruments, CISOs say cyberattacks are ‘inevitable’

March 25, 2023
BT brings 5G and the cloud to companies on the transfer with AWS Wavelength
Computing

BT brings 5G and the cloud to companies on the transfer with AWS Wavelength

March 25, 2023
Next Post
Put up Collection-B, anti-fraud platform SEON acquires AML startup Complytron for a rumoured €2.5M • TechCrunch

Put up Collection-B, anti-fraud platform SEON acquires AML startup Complytron for a rumoured €2.5M • TechCrunch

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

Robotic knee substitute provides abuse survivor hope

Robotic knee substitute provides abuse survivor hope

August 22, 2022
Turkey’s hair transplant robotic is ’straight out a sci-fi film’

Turkey’s hair transplant robotic is ’straight out a sci-fi film’

September 8, 2022
PizzaHQ in Woodland Park NJ modernizes pizza-making with expertise

PizzaHQ in Woodland Park NJ modernizes pizza-making with expertise

July 10, 2022
How CoEvolution robotics software program runs warehouse automation

How CoEvolution robotics software program runs warehouse automation

May 28, 2022
CMR Surgical expands into LatAm with Versius launches underway

CMR Surgical expands into LatAm with Versius launches underway

May 25, 2022

EDITOR'S PICK

Guardforce AI Declares LOI to Purchase Twelve Extra

Guardforce AI Proclaims LOI to Purchase Shenzhen Kewei Robotic

September 13, 2022
5G tech allows complete digital transformation-Xinhua

5G tech allows complete digital transformation-Xinhua

August 17, 2022
nature’s robotic arms – TechCrunch

nature’s robotic arms – TechCrunch

July 25, 2022
Jessica Pegula's scorching begin to the Australian Summer time: United Cup Highlights | Vast World of Sports activities – Vast World of Sports activities

Jessica Pegula's scorching begin to the Australian Summer time: United Cup Highlights | Vast World of Sports activities – Vast World of Sports activities

January 14, 2023

About

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Follow us

Categories

  • Artificial Intelligence
  • Business
  • Computing
  • Entertainment
  • Fashion
  • Food
  • Gadgets
  • Health
  • Lifestyle
  • National
  • News
  • Opinion
  • Politics
  • Rebotics
  • Science
  • Software
  • Sports
  • Tech
  • Technology
  • Travel
  • Various articles
  • World

Recent Posts

  • Thrilling Spy Thriller About Video Recreation
  • What’s the Java Digital Machine (JVM)
  • VMware vSAN 8 Replace 1 for Cloud Companies Suppliers
  • ChatGPT Opened a New Period in Search. Microsoft Might Spoil It
  • Buy JNews
  • Landing Page
  • Documentation
  • Support Forum

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • Politics
  • National
  • Business
  • World
  • Entertainment
  • Fashion
  • Food
  • Health
  • Lifestyle
  • Opinion
  • Science
  • Tech
  • Travel

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In