This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from botocore.vendored import requests | |
import json | |
import boto3 | |
def lambda_handler(event, context): | |
budget_id = "[snip]" | |
api_key = "[snip]" | |
category1 = { | |
"id": "[snip]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rubrik_cdm | |
import urllib3 | |
import os | |
import shutil | |
import logging | |
urllib3.disable_warnings() | |
rubrik = rubrik_cdm.Connect() | |
mvname = 'network-backups' | |
networkconfigs = '/etc/oxidized/configs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from botocore.vendored import requests | |
import json | |
import boto3 | |
def lambda_handler(event, context): | |
api_key = "[YOUR API KEY]" | |
category1 = "[YOUR BUDGET CATEGORY ID]" | |
url = "https://api.youneedabudget.com/v1/budgets/last-used/months/current/categories/{}".format(category1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trigger CDM to refresh metadata from vCD | |
# Updated 10.14.19 to utilize new vCD-specific cmdlets in the PowerShell SDK for Rubrik | |
Import-Module Rubrik | |
$Key = "[API key]" # Key must be assigned to a user with Admin credentials to trigger metadata refresh | |
$vcdid = "[ID of vCD Server] # Ex: Vcd:::f96a2b1b-a06d-4f17-b6be-52141795532e | |
# Connect to Envoy, or CDM | |
Connect-Rubrik -Server [Server:Port] -Token $Key | Out-Null |